Added checkbox to toggle if the animation will play only on the frames of the same tag

This commit is contained in:
OverloadedOrama 2020-04-15 16:25:58 +03:00
parent f27a3be6ae
commit 10280f25f9
4 changed files with 52 additions and 13 deletions

View file

@ -12,14 +12,24 @@ window_title = "Frame Tag Properties"
resizable = true
script = ExtResource( 1 )
[node name="ScrollContainer" type="ScrollContainer" parent="."]
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_bottom = -32.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
margin_right = 400.0
margin_bottom = 140.0
size_flags_horizontal = 3
size_flags_vertical = 3
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxTagContainer" type="VBoxContainer" parent="VBoxContainer/ScrollContainer"]
margin_right = 400.0
margin_bottom = 28.0
size_flags_horizontal = 3
@ -27,7 +37,7 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="HSeparator" type="HSeparator" parent="ScrollContainer/VBoxContainer"]
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/ScrollContainer/VBoxTagContainer"]
margin_right = 400.0
margin_bottom = 4.0
size_flags_horizontal = 3
@ -35,7 +45,7 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="AddTag" type="TextureButton" parent="ScrollContainer/VBoxContainer" groups=[
[node name="AddTag" type="TextureButton" parent="VBoxContainer/ScrollContainer/VBoxTagContainer" groups=[
"UIButtons",
]]
margin_top = 8.0
@ -50,15 +60,28 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="PlayOnlyTags" type="CheckBox" parent="VBoxContainer"]
margin_top = 144.0
margin_right = 326.0
margin_bottom = 168.0
hint_tooltip = "If it's selected, the animation plays only on the frames that have the same tag.
If it's not, the animation will play for all frames, ignoring tags."
mouse_default_cursor_shape = 2
size_flags_horizontal = 0
pressed = true
text = "Animation plays only on frames of the same tag"
[node name="TagOptions" type="ConfirmationDialog" parent="."]
margin_right = 200.0
margin_bottom = 70.0
margin_left = 8.0
margin_top = 8.0
margin_right = 392.0
margin_bottom = 164.0
[node name="GridContainer" type="GridContainer" parent="TagOptions"]
margin_left = 8.0
margin_top = 8.0
margin_right = 259.0
margin_bottom = 64.0
margin_right = 376.0
margin_bottom = 120.0
custom_constants/vseparation = 8
custom_constants/hseparation = 8
columns = 4
@ -122,7 +145,8 @@ min_value = 1.0
value = 1.0
[connection signal="about_to_show" from="." to="." method="_on_FrameTagDialog_about_to_show"]
[connection signal="popup_hide" from="." to="." method="_on_FrameTagDialog_popup_hide"]
[connection signal="pressed" from="ScrollContainer/VBoxContainer/AddTag" to="." method="_on_AddTag_pressed"]
[connection signal="pressed" from="VBoxContainer/ScrollContainer/VBoxTagContainer/AddTag" to="." method="_on_AddTag_pressed"]
[connection signal="toggled" from="VBoxContainer/PlayOnlyTags" to="." method="_on_PlayOnlyTags_toggled"]
[connection signal="confirmed" from="TagOptions" to="." method="_on_TagOptions_confirmed"]
[connection signal="custom_action" from="TagOptions" to="." method="_on_TagOptions_custom_action"]
[connection signal="popup_hide" from="TagOptions" to="." method="_on_TagOptions_popup_hide"]