[gd_scene load_steps=7 format=3 uid="uid://0vt4p8wqudyi"]

[ext_resource type="Script" uid="uid://cd2hrik4wvt1o" path="res://addons/curved_lines_2d/svg_texture_helper.gd" id="1_tkwla"]
[ext_resource type="Script" uid="uid://yh2davxk4fh7" path="res://addons/curved_lines_2d/svg_resource.gd" id="2_fv747"]

[sub_resource type="Resource" id="Resource_2fobf"]
script = ExtResource("2_fv747")
svg_file_path = "res://addons/curved_lines_2d/tests/01-godot-icon.svg"
render_scale = 1.0
svg_string = "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4Ij4KICAgIDxyZWN0IHdpZHRoPSIxMjQiIGhlaWdodD0iMTI0IiB4PSIyIiB5PSIyIiBmaWxsPSIjMzYzZDUyIiBzdHJva2U9IiMyMTI1MzIiIHN0cm9rZS13aWR0aD0iNCIKICAgICAgICByeD0iMTQiIC8+CiAgICA8ZyBmaWxsPSIjZmZmIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMi4zMjIgMTIuMzIyKXNjYWxlKC4xMDEpIj4KICAgICAgICA8cGF0aCBkPSJNMTA1IDY3M3YzM3E0MDcgMzU0IDgxNCAwdi0zM3oiIC8+CiAgICAgICAgPHBhdGggZmlsbD0iIzQ3OGNiZiIKICAgICAgICAgICAgZD0ibTEwNSA2NzMgMTUyIDE0cTEyIDEgMTUgMTRsNCA2NyAxMzIgMTAgOC02MXEyLTExIDE1LTE1aDE2MnExMyA0IDE1IDE1bDggNjEgMTMyLTEwIDQtNjdxMy0xMyAxNS0xNGwxNTItMTRWNDI3cTMwLTM5IDU2LTgxLTM1LTU5LTgzLTEwOC00MyAyMC04MiA0Ny00MC0zNy04OC02NCA3LTUxIDgtMTAyLTU5LTI4LTEyMy00Mi0yNiA0My00NiA4OS00OS03LTk4IDAtMjAtNDYtNDYtODktNjQgMTQtMTIzIDQyIDEgNTEgOCAxMDItNDggMjctODggNjQtMzktMjctODItNDctNDggNDktODMgMTA4IDI2IDQyIDU2IDgxem0wIDMzdjM5YzAgMjc2IDgxMyAyNzYgODE0IDB2LTM5bC0xMzQgMTItNSA2OXEtMiAxMC0xNCAxM2wtMTYyIDExcS0xMiAwLTE2LTExbC0xMC02NUg0NDZsLTEwIDY1cS00IDExLTE2IDExbC0xNjItMTFxLTEyLTMtMTQtMTNsLTUtNjl6IiAvPgogICAgICAgIDxwYXRoIGQ9Ik00ODMgNjAwYzAgMzQgNTggMzQgNTggMHYtODZjMC0zNC01OC0zNC01OCAweiIgLz4KICAgICAgICA8Y2lyY2xlIGN4PSI3MjUiIGN5PSI1MjYiIHI9IjkwIiAvPgogICAgICAgIDxjaXJjbGUgY3g9IjI5OSIgY3k9IjUyNiIgcj0iOTAiIC8+CiAgICA8L2c+CiAgICA8ZyBmaWxsPSIjNDE0MDQyIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMi4zMjIgMTIuMzIyKXNjYWxlKC4xMDEpIj4KICAgICAgICA8Y2lyY2xlIGN4PSIzMDciIGN5PSI1MzIiIHI9IjYwIiAvPgogICAgICAgIDxjaXJjbGUgY3g9IjcxNyIgY3k9IjUzMiIgcj0iNjAiIC8+CiAgICA8L2c+Cjwvc3ZnPg=="
original_size = Vector2(128, 128)
metadata/_custom_type_script = "uid://yh2davxk4fh7"

[sub_resource type="Resource" id="Resource_tkwla"]
script = ExtResource("2_fv747")
svg_file_path = "res://addons/curved_lines_2d/tests/fan_art.svg"
render_scale = 1.0
svg_string = "[encoded data, 13588 characters]"
original_size = Vector2(45, 63)

[sub_resource type="Resource" id="Resource_fv747"]
script = ExtResource("2_fv747")
svg_file_path = "res://addons/curved_lines_2d/tests/snail_concept.svg"
render_scale = 1.0
svg_string = "[encoded data, 28040 characters]"
original_size = Vector2(90, 92)
metadata/_custom_type_script = "uid://yh2davxk4fh7"

[sub_resource type="Resource" id="Resource_l4vqo"]
script = ExtResource("2_fv747")
svg_file_path = "res://addons/curved_lines_2d/tests/rat_concept_art.svg"
render_scale = 1.0
svg_string = "[encoded data, 34008 characters]"
original_size = Vector2(120, 76)
metadata/_custom_type_script = "uid://yh2davxk4fh7"

[node name="GUI" type="HFlowContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="TextureRect" type="TextureRect" parent="."]
custom_minimum_size = Vector2(180, 130)
layout_mode = 2
expand_mode = 1
stretch_mode = 5

[node name="SVGTextureHelper" type="Node" parent="TextureRect"]
script = ExtResource("1_tkwla")
svg_resource = SubResource("Resource_2fobf")
target_property = "texture"
metadata/_custom_type_script = "uid://cd2hrik4wvt1o"

[node name="Button" type="Button" parent="."]
custom_minimum_size = Vector2(310, 128)
layout_mode = 2
text = "SVG Icon Button"
expand_icon = true

[node name="IconSVGTextureHelper" type="Node" parent="Button"]
script = ExtResource("1_tkwla")
svg_resource = SubResource("Resource_tkwla")
target_property = "icon"

[node name="TextureButton" type="TextureButton" parent="."]
custom_minimum_size = Vector2(240, 260)
layout_mode = 2
ignore_texture_size = true
stretch_mode = 5

[node name="SVGTextureHelperForNormal" type="Node" parent="TextureButton"]
script = ExtResource("1_tkwla")
svg_resource = SubResource("Resource_fv747")
target_property = "texture_normal"
metadata/_custom_type_script = "uid://cd2hrik4wvt1o"

[node name="SVGTextureHelperForHover" type="Node" parent="TextureButton"]
script = ExtResource("1_tkwla")
svg_resource = SubResource("Resource_l4vqo")
target_property = "texture_hover"
metadata/_custom_type_script = "uid://cd2hrik4wvt1o"
