From 4e2f4d57cab9fcbe6279b876a011f470a4528ae6 Mon Sep 17 00:00:00 2001 From: Alessandro Senese Date: Fri, 30 Aug 2024 12:42:59 +0100 Subject: [PATCH] connect button --- .../ui/AnimationPicker/AnimationPicker.tscn | 39 +++++++++---------- addons/anima/ui/EventItem.tscn | 4 +- project.godot | 2 +- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/addons/anima/ui/AnimationPicker/AnimationPicker.tscn b/addons/anima/ui/AnimationPicker/AnimationPicker.tscn index 44cd007..4b66094 100644 --- a/addons/anima/ui/AnimationPicker/AnimationPicker.tscn +++ b/addons/anima/ui/AnimationPicker/AnimationPicker.tscn @@ -5,9 +5,6 @@ [ext_resource type="Texture2D" uid="uid://ca72ljjcye5v1" path="res://addons/anima/resources/anima-preview.png" id="2_pk6n6"] [ext_resource type="PackedScene" uid="uid://0luo7c2dwb4l" path="res://addons/anima/ui/AnimationPicker/CTASecondaryButton.tscn" id="3_qvnfb"] -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0ikkc"] -bg_color = Color(1, 1, 1, 1) - [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_4yg3m"] content_margin_left = 12.0 content_margin_right = 12.0 @@ -23,6 +20,9 @@ content_margin_left = 12.0 content_margin_right = 12.0 bg_color = Color(0.14902, 0.27451, 0.32549, 1) +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0ikkc"] +bg_color = Color(1, 1, 1, 1) + [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0op83"] bg_color = Color(0.215686, 0.215686, 0.215686, 1) corner_radius_bottom_right = 8 @@ -55,11 +55,10 @@ layout_mode = 2 size_flags_vertical = 3 theme_override_colors/font_hovered_color = Color(0, 0, 0, 1) theme_override_font_sizes/font_size = 18 -theme_override_styles/panel = SubResource("StyleBoxFlat_0ikkc") theme_override_styles/tab_selected = SubResource("StyleBoxFlat_4yg3m") theme_override_styles/tab_hovered = SubResource("StyleBoxFlat_0tlf5") theme_override_styles/tab_unselected = SubResource("StyleBoxFlat_5ixaa") -current_tab = 0 +theme_override_styles/panel = SubResource("StyleBoxFlat_0ikkc") [node name="Animations" type="HBoxContainer" parent="TabContainer"] layout_mode = 2 @@ -219,20 +218,20 @@ auto_brace_completion_highlight_matching = true [connection signal="item_rect_changed" from="." to="." method="_on_item_rect_changed"] [connection signal="text_submitted" from="TabContainer/Animations/Control/Panel/MarginContainer/HBoxContainer/AnimationSpeed" to="." method="_on_animation_speed_text_submitted"] [connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/HeaderButton" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/HeaderButton" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18585" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18585" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18595" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18595" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18605" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18605" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18617" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18617" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18629" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18629" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18659" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18659" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18687" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18687" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18697" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18697" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18709" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18709" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18721" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18721" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18731" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18731" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18741" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18741" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18751" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18751" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18755" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18755" method="_on_toggled"] -[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18775" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18775" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18802" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18802" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18812" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18812" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18822" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18822" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18834" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18834" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18846" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18846" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18876" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18876" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18904" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18904" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18914" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18914" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18926" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18926" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18938" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18938" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18948" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18948" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18958" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18958" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18968" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18968" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18972" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18972" method="_on_toggled"] +[connection signal="toggled" from="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18992" to="TabContainer/Animations/VBoxContainer/ScrollContainer/ListContainer/@Button@18992" method="_on_toggled"] [connection signal="pressed" from="TabContainer/Animations/VBoxContainer/MarginContainer/HBoxContainer/UseAnimation" to="." method="_on_use_animation_pressed"] [connection signal="pressed" from="TabContainer/Animations/VBoxContainer/MarginContainer/HBoxContainer/CloseButton" to="." method="_on_close_button_pressed"] diff --git a/addons/anima/ui/EventItem.tscn b/addons/anima/ui/EventItem.tscn index cd50b99..2fc93f3 100644 --- a/addons/anima/ui/EventItem.tscn +++ b/addons/anima/ui/EventItem.tscn @@ -102,9 +102,9 @@ text = "Play method" unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 -selected = 0 item_count = 3 popup/item_0/text = "Forward" +popup/item_0/id = 0 popup/item_1/text = "Backwards" popup/item_1/id = 1 popup/item_2/text = "Loop" @@ -130,9 +130,9 @@ text = "Mode:" unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 -selected = 0 item_count = 3 popup/item_0/text = "Forward" +popup/item_0/id = 0 popup/item_1/text = "Backward" popup/item_1/id = 1 popup/item_2/text = "In circle" diff --git a/project.godot b/project.godot index 69f423f..3973854 100644 --- a/project.godot +++ b/project.godot @@ -12,7 +12,7 @@ config_version=5 config/name="Anima" run/main_scene="res://demos/DemosSelector.tscn" -config/features=PackedStringArray("4.3") +config/features=PackedStringArray("4.2") [autoload]