2020-08-26 17:49:46 +03:00
|
|
|
[gd_scene load_steps=3 format=2]
|
2020-01-27 12:23:52 -03:00
|
|
|
|
2020-07-29 20:34:27 +03:00
|
|
|
[ext_resource path="res://src/UI/Dialogs/ImageEffects/RotateImage.gd" type="Script" id=1]
|
2020-08-26 17:49:46 +03:00
|
|
|
[ext_resource path="res://src/UI/TransparentChecker.tscn" type="PackedScene" id=2]
|
2020-05-02 01:19:01 +03:00
|
|
|
|
2020-01-27 12:23:52 -03:00
|
|
|
[node name="RotateImage" type="ConfirmationDialog"]
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_right = 342.0
|
|
|
|
margin_bottom = 450.0
|
|
|
|
rect_min_size = Vector2( 342, 450 )
|
2020-08-04 19:10:50 +03:00
|
|
|
window_title = "Rotate Image"
|
2020-02-04 18:29:34 +02:00
|
|
|
resizable = true
|
2020-01-27 12:23:52 -03:00
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_left = 8.0
|
|
|
|
margin_top = 8.0
|
|
|
|
margin_right = -8.0
|
|
|
|
margin_bottom = -36.0
|
|
|
|
|
2021-08-31 17:38:11 +05:00
|
|
|
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="VBoxContainer"]
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 226.0
|
2020-08-26 18:33:15 +03:00
|
|
|
size_flags_vertical = 3
|
2021-08-31 17:38:11 +05:00
|
|
|
|
|
|
|
[node name="Preview" type="TextureRect" parent="VBoxContainer/AspectRatioContainer"]
|
2022-05-03 17:38:29 +01:00
|
|
|
margin_left = 50.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_right = 276.0
|
|
|
|
margin_bottom = 226.0
|
2021-08-31 17:38:11 +05:00
|
|
|
rect_min_size = Vector2( 200, 200 )
|
2020-01-27 12:23:52 -03:00
|
|
|
expand = true
|
2020-08-26 17:49:46 +03:00
|
|
|
stretch_mode = 5
|
|
|
|
|
2021-08-31 17:38:11 +05:00
|
|
|
[node name="TransparentChecker" parent="VBoxContainer/AspectRatioContainer/Preview" instance=ExtResource( 2 )]
|
2020-08-26 17:49:46 +03:00
|
|
|
show_behind_parent = true
|
2021-08-31 17:38:11 +05:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
margin_right = 0.0
|
|
|
|
margin_bottom = 0.0
|
2020-01-27 12:23:52 -03:00
|
|
|
|
2022-07-24 01:31:39 +05:00
|
|
|
[node name="Indicator" type="Control" parent="VBoxContainer/AspectRatioContainer"]
|
|
|
|
margin_left = 50.0
|
|
|
|
margin_right = 276.0
|
|
|
|
margin_bottom = 226.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
|
2021-09-23 23:25:35 +05:00
|
|
|
[node name="LiveSettings" type="HBoxContainer" parent="VBoxContainer"]
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_top = 230.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 254.0
|
2021-09-23 23:25:35 +05:00
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="LiveCheckbox" type="CheckBox" parent="VBoxContainer/LiveSettings"]
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_left = 109.0
|
|
|
|
margin_right = 217.0
|
2021-09-23 23:25:35 +05:00
|
|
|
margin_bottom = 24.0
|
|
|
|
pressed = true
|
|
|
|
text = "Live Preview"
|
|
|
|
|
|
|
|
[node name="WaitSettings" type="HBoxContainer" parent="VBoxContainer"]
|
|
|
|
visible = false
|
|
|
|
margin_top = 232.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_right = 326.0
|
2021-09-23 23:25:35 +05:00
|
|
|
margin_bottom = 256.0
|
|
|
|
alignment = 1
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/WaitSettings"]
|
|
|
|
margin_top = 5.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_right = 248.0
|
2021-09-23 23:25:35 +05:00
|
|
|
margin_bottom = 19.0
|
|
|
|
text = "Update preview delay (in milliseconds)"
|
|
|
|
|
|
|
|
[node name="WaitTime" type="SpinBox" parent="VBoxContainer/WaitSettings"]
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_left = 252.0
|
|
|
|
margin_right = 326.0
|
2021-09-23 23:25:35 +05:00
|
|
|
margin_bottom = 24.0
|
|
|
|
min_value = 1.0
|
|
|
|
max_value = 1000.0
|
|
|
|
value = 200.0
|
|
|
|
editable = false
|
|
|
|
suffix = "msec"
|
|
|
|
|
2020-01-27 12:23:52 -03:00
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"]
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_top = 258.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 278.0
|
2020-01-27 12:23:52 -03:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"]
|
|
|
|
margin_top = 3.0
|
|
|
|
margin_right = 34.0
|
|
|
|
margin_bottom = 17.0
|
|
|
|
text = "Type:"
|
|
|
|
|
2020-08-28 01:20:07 +03:00
|
|
|
[node name="TypeOptionButton" type="OptionButton" parent="VBoxContainer/HBoxContainer2"]
|
2020-01-27 12:23:52 -03:00
|
|
|
margin_left = 38.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_right = 326.0
|
2020-01-27 12:23:52 -03:00
|
|
|
margin_bottom = 20.0
|
2020-02-04 18:29:34 +02:00
|
|
|
mouse_default_cursor_shape = 2
|
2020-01-27 12:23:52 -03:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
2022-07-24 01:31:39 +05:00
|
|
|
[node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
|
|
|
|
margin_top = 282.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 286.0
|
2022-05-03 17:38:29 +01:00
|
|
|
|
2022-07-24 01:31:39 +05:00
|
|
|
[node name="Pivot" type="VBoxContainer" parent="VBoxContainer"]
|
|
|
|
margin_top = 290.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 310.0
|
2022-05-03 17:38:29 +01:00
|
|
|
|
2022-07-25 05:01:23 +05:00
|
|
|
[node name="TitleButtons" type="HBoxContainer" parent="VBoxContainer/Pivot"]
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_right = 326.0
|
2022-05-03 17:38:29 +01:00
|
|
|
margin_bottom = 20.0
|
2022-07-25 05:01:23 +05:00
|
|
|
|
|
|
|
[node name="TogglePivot" type="Button" parent="VBoxContainer/Pivot/TitleButtons"]
|
|
|
|
margin_right = 268.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
size_flags_horizontal = 3
|
2022-07-24 01:31:39 +05:00
|
|
|
size_flags_vertical = 2
|
|
|
|
toggle_mode = true
|
|
|
|
text = "Pivot Options (>)"
|
|
|
|
flat = true
|
|
|
|
align = 0
|
2022-05-03 17:38:29 +01:00
|
|
|
|
2022-07-25 05:01:23 +05:00
|
|
|
[node name="Centre" type="Button" parent="VBoxContainer/Pivot/TitleButtons"]
|
|
|
|
margin_left = 272.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
hint_tooltip = "Centers the pivot (if selection is present then it's centre is selected instead)"
|
|
|
|
text = "Center"
|
|
|
|
|
2022-07-24 01:31:39 +05:00
|
|
|
[node name="Options" type="VBoxContainer" parent="VBoxContainer/Pivot"]
|
|
|
|
visible = false
|
|
|
|
margin_top = 24.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 76.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
alignment = 1
|
2022-05-03 17:38:29 +01:00
|
|
|
|
2022-07-24 01:31:39 +05:00
|
|
|
[node name="X" type="HBoxContainer" parent="VBoxContainer/Pivot/Options"]
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 24.0
|
2022-05-03 17:38:29 +01:00
|
|
|
|
2022-07-24 01:31:39 +05:00
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/Pivot/Options/X"]
|
|
|
|
margin_top = 5.0
|
|
|
|
margin_right = 106.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "X-axis"
|
|
|
|
align = 2
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="XPivot" type="SpinBox" parent="VBoxContainer/Pivot/Options/X"]
|
|
|
|
margin_left = 110.0
|
|
|
|
margin_right = 216.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
min_value = -10000.0
|
|
|
|
max_value = 10000.0
|
|
|
|
step = 0.5
|
|
|
|
allow_greater = true
|
|
|
|
allow_lesser = true
|
|
|
|
|
|
|
|
[node name="Spacer" type="Control" parent="VBoxContainer/Pivot/Options/X"]
|
|
|
|
margin_left = 220.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="Y" type="HBoxContainer" parent="VBoxContainer/Pivot/Options"]
|
|
|
|
margin_top = 28.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 52.0
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/Pivot/Options/Y"]
|
|
|
|
margin_top = 5.0
|
|
|
|
margin_right = 106.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
text = "Y-axis"
|
|
|
|
align = 2
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="YPivot" type="SpinBox" parent="VBoxContainer/Pivot/Options/Y"]
|
|
|
|
margin_left = 110.0
|
|
|
|
margin_right = 216.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
min_value = -10000.0
|
|
|
|
max_value = 10000.0
|
|
|
|
step = 0.5
|
|
|
|
allow_greater = true
|
|
|
|
allow_lesser = true
|
|
|
|
|
|
|
|
[node name="Spacer" type="Control" parent="VBoxContainer/Pivot/Options/Y"]
|
|
|
|
margin_left = 220.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="HSeparator2" type="HSeparator" parent="VBoxContainer"]
|
|
|
|
margin_top = 314.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 318.0
|
2022-05-03 17:38:29 +01:00
|
|
|
|
2020-08-28 01:20:07 +03:00
|
|
|
[node name="AngleOptions" type="HBoxContainer" parent="VBoxContainer"]
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_top = 322.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 346.0
|
2020-01-27 12:23:52 -03:00
|
|
|
|
2020-08-28 01:20:07 +03:00
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/AngleOptions"]
|
2020-01-27 12:23:52 -03:00
|
|
|
margin_top = 5.0
|
2020-08-26 17:49:46 +03:00
|
|
|
margin_right = 40.0
|
2020-01-27 12:23:52 -03:00
|
|
|
margin_bottom = 19.0
|
2020-05-16 14:48:13 +03:00
|
|
|
text = "Angle:"
|
2020-01-27 12:23:52 -03:00
|
|
|
|
2020-08-28 01:20:07 +03:00
|
|
|
[node name="AngleHSlider" type="HSlider" parent="VBoxContainer/AngleOptions"]
|
2020-08-26 17:49:46 +03:00
|
|
|
margin_left = 44.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_right = 248.0
|
2020-01-27 12:23:52 -03:00
|
|
|
margin_bottom = 24.0
|
2020-02-04 18:29:34 +02:00
|
|
|
mouse_default_cursor_shape = 2
|
2020-01-27 12:23:52 -03:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
|
|
|
max_value = 359.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2020-08-28 01:20:07 +03:00
|
|
|
[node name="AngleSpinBox" type="SpinBox" parent="VBoxContainer/AngleOptions"]
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_left = 252.0
|
|
|
|
margin_right = 326.0
|
2020-01-27 12:23:52 -03:00
|
|
|
margin_bottom = 24.0
|
2020-02-04 18:29:34 +02:00
|
|
|
mouse_default_cursor_shape = 2
|
2020-01-27 12:23:52 -03:00
|
|
|
max_value = 359.0
|
2020-05-11 20:07:16 +03:00
|
|
|
suffix = "°"
|
2020-10-23 17:50:52 +03:00
|
|
|
|
2022-07-24 01:31:39 +05:00
|
|
|
[node name="QuickRotations" type="HBoxContainer" parent="VBoxContainer"]
|
|
|
|
margin_top = 350.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 370.0
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="Deduct90" type="Button" parent="VBoxContainer/QuickRotations"]
|
|
|
|
margin_left = 76.0
|
|
|
|
margin_right = 109.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "-90"
|
|
|
|
|
|
|
|
[node name="Deduct45" type="Button" parent="VBoxContainer/QuickRotations"]
|
|
|
|
margin_left = 113.0
|
|
|
|
margin_right = 146.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "-45"
|
|
|
|
|
|
|
|
[node name="Zero" type="Button" parent="VBoxContainer/QuickRotations"]
|
|
|
|
margin_left = 150.0
|
|
|
|
margin_right = 170.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "0"
|
|
|
|
|
|
|
|
[node name="Add45" type="Button" parent="VBoxContainer/QuickRotations"]
|
|
|
|
margin_left = 174.0
|
|
|
|
margin_right = 210.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "+45"
|
|
|
|
|
|
|
|
[node name="Add90" type="Button" parent="VBoxContainer/QuickRotations"]
|
|
|
|
margin_left = 214.0
|
|
|
|
margin_right = 250.0
|
|
|
|
margin_bottom = 20.0
|
|
|
|
text = "+90"
|
|
|
|
|
|
|
|
[node name="HSeparator3" type="HSeparator" parent="VBoxContainer"]
|
|
|
|
margin_top = 374.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 378.0
|
|
|
|
|
2020-10-23 17:50:52 +03:00
|
|
|
[node name="OptionsContainer" type="HBoxContainer" parent="VBoxContainer"]
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_top = 382.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 406.0
|
2020-10-23 17:50:52 +03:00
|
|
|
|
|
|
|
[node name="SelectionCheckBox" type="CheckBox" parent="VBoxContainer/OptionsContainer"]
|
|
|
|
margin_right = 160.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
pressed = true
|
|
|
|
text = "Only affect selection"
|
|
|
|
|
|
|
|
[node name="AffectOptionButton" type="OptionButton" parent="VBoxContainer/OptionsContainer"]
|
|
|
|
margin_left = 164.0
|
2021-08-31 17:38:11 +05:00
|
|
|
margin_right = 278.0
|
2020-10-23 17:50:52 +03:00
|
|
|
margin_bottom = 24.0
|
|
|
|
mouse_default_cursor_shape = 2
|
2021-06-25 17:58:41 +03:00
|
|
|
text = "Selected cels"
|
|
|
|
items = [ "Selected cels", null, false, 0, null, "Current frame", null, false, 1, null, "All frames", null, false, 2, null, "All projects", null, false, 3, null ]
|
2020-10-23 17:50:52 +03:00
|
|
|
selected = 0
|
2021-06-25 17:58:41 +03:00
|
|
|
|
2021-09-23 23:25:35 +05:00
|
|
|
[node name="WaitApply" type="Timer" parent="."]
|
|
|
|
|
2022-07-24 01:31:39 +05:00
|
|
|
[connection signal="draw" from="VBoxContainer/AspectRatioContainer/Indicator" to="." method="_on_Indicator_draw"]
|
|
|
|
[connection signal="gui_input" from="VBoxContainer/AspectRatioContainer/Indicator" to="." method="_on_Indicator_gui_input"]
|
2021-09-23 23:25:35 +05:00
|
|
|
[connection signal="toggled" from="VBoxContainer/LiveSettings/LiveCheckbox" to="." method="_on_LiveCheckbox_toggled"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/WaitSettings/WaitTime" to="." method="_on_WaitTime_value_changed"]
|
2020-08-28 01:20:07 +03:00
|
|
|
[connection signal="item_selected" from="VBoxContainer/HBoxContainer2/TypeOptionButton" to="." method="_on_TypeOptionButton_item_selected"]
|
2022-07-25 05:01:23 +05:00
|
|
|
[connection signal="toggled" from="VBoxContainer/Pivot/TitleButtons/TogglePivot" to="." method="_on_TogglePivot_toggled"]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/Pivot/TitleButtons/Centre" to="." method="_on_Centre_pressed"]
|
2022-07-24 01:31:39 +05:00
|
|
|
[connection signal="value_changed" from="VBoxContainer/Pivot/Options/X/XPivot" to="." method="_on_Pivot_value_changed" binds= [ true ]]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/Pivot/Options/Y/YPivot" to="." method="_on_Pivot_value_changed" binds= [ false ]]
|
2020-08-28 01:20:07 +03:00
|
|
|
[connection signal="value_changed" from="VBoxContainer/AngleOptions/AngleHSlider" to="." method="_on_HSlider_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/AngleOptions/AngleSpinBox" to="." method="_on_SpinBox_value_changed"]
|
2022-07-24 01:31:39 +05:00
|
|
|
[connection signal="pressed" from="VBoxContainer/QuickRotations/Deduct90" to="." method="_on_quick_change_angle_pressed" binds= [ "-90" ]]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/QuickRotations/Deduct45" to="." method="_on_quick_change_angle_pressed" binds= [ "-45" ]]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/QuickRotations/Zero" to="." method="_on_quick_change_angle_pressed" binds= [ "0" ]]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/QuickRotations/Add45" to="." method="_on_quick_change_angle_pressed" binds= [ "+45" ]]
|
|
|
|
[connection signal="pressed" from="VBoxContainer/QuickRotations/Add90" to="." method="_on_quick_change_angle_pressed" binds= [ "+90" ]]
|
2021-09-23 23:25:35 +05:00
|
|
|
[connection signal="timeout" from="WaitApply" to="." method="_on_WaitApply_timeout"]
|