2023-04-04 04:19:18 +03:00
|
|
|
[gd_scene load_steps=5 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]
|
2023-04-04 04:19:18 +03:00
|
|
|
[ext_resource path="res://src/UI/Dialogs/ImageEffects/ImageEffectParent.tscn" type="PackedScene" id=2]
|
2022-10-15 14:10:08 +03:00
|
|
|
[ext_resource path="res://src/UI/Nodes/ValueSlider.tscn" type="PackedScene" id=3]
|
2023-04-04 04:19:18 +03:00
|
|
|
[ext_resource path="res://src/UI/Nodes/ValueSliderV2.tscn" type="PackedScene" id=4]
|
2020-05-02 01:19:01 +03:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="RotateImage" instance=ExtResource( 2 )]
|
2020-08-04 19:10:50 +03:00
|
|
|
window_title = "Rotate Image"
|
2020-01-27 12:23:52 -03:00
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="VBoxContainer" parent="." index="3"]
|
2023-04-20 22:29:03 +03:00
|
|
|
margin_bottom = 416.0
|
2020-01-27 12:23:52 -03:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="AspectRatioContainer" parent="VBoxContainer" index="0"]
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 228.0
|
2021-08-31 17:38:11 +05:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Preview" parent="VBoxContainer/AspectRatioContainer" index="0"]
|
|
|
|
margin_left = 25.0
|
|
|
|
margin_right = 253.0
|
|
|
|
margin_bottom = 228.0
|
2022-07-24 01:31:39 +05:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Indicator" type="Control" parent="VBoxContainer/AspectRatioContainer" index="1"]
|
|
|
|
margin_left = 25.0
|
|
|
|
margin_right = 253.0
|
2023-03-25 19:59:02 +05:00
|
|
|
margin_bottom = 228.0
|
2023-04-04 04:19:18 +03:00
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
|
|
|
|
[node name="LiveSettings" type="HBoxContainer" parent="VBoxContainer" index="1"]
|
|
|
|
margin_top = 232.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 256.0
|
2021-09-23 23:25:35 +05:00
|
|
|
alignment = 1
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="LiveCheckbox" type="CheckBox" parent="VBoxContainer/LiveSettings" index="0"]
|
|
|
|
margin_left = 85.0
|
|
|
|
margin_right = 193.0
|
2021-09-23 23:25:35 +05:00
|
|
|
margin_bottom = 24.0
|
2022-07-25 14:39:23 +03:00
|
|
|
mouse_default_cursor_shape = 2
|
2021-09-23 23:25:35 +05:00
|
|
|
pressed = true
|
|
|
|
text = "Live Preview"
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="WaitTime" parent="VBoxContainer" index="2" instance=ExtResource( 3 )]
|
2021-09-23 23:25:35 +05:00
|
|
|
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
|
|
|
|
min_value = 1.0
|
|
|
|
max_value = 1000.0
|
|
|
|
value = 200.0
|
|
|
|
editable = false
|
2022-10-15 14:10:08 +03:00
|
|
|
prefix = "Preview delay:"
|
|
|
|
suffix = "ms"
|
2021-09-23 23:25:35 +05:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer" index="3"]
|
|
|
|
margin_top = 260.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 280.0
|
2020-01-27 12:23:52 -03:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2" index="0"]
|
2020-01-27 12:23:52 -03:00
|
|
|
margin_top = 3.0
|
|
|
|
margin_right = 34.0
|
|
|
|
margin_bottom = 17.0
|
|
|
|
text = "Type:"
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="TypeOptionButton" type="OptionButton" parent="VBoxContainer/HBoxContainer2" index="1"]
|
2020-01-27 12:23:52 -03:00
|
|
|
margin_left = 38.0
|
2023-04-04 04:19:18 +03:00
|
|
|
margin_right = 278.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
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="HSeparator" type="HSeparator" parent="VBoxContainer" index="4"]
|
|
|
|
margin_top = 284.0
|
|
|
|
margin_right = 278.0
|
2023-03-25 19:59:02 +05:00
|
|
|
margin_bottom = 288.0
|
2022-05-03 17:38:29 +01:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="PivotOptions" type="HBoxContainer" parent="VBoxContainer" index="5"]
|
|
|
|
margin_top = 292.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 316.0
|
2022-07-24 01:31:39 +05:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Pivot" parent="VBoxContainer/PivotOptions" index="0" instance=ExtResource( 4 )]
|
|
|
|
margin_right = 220.0
|
|
|
|
margin_bottom = 24.0
|
|
|
|
size_flags_horizontal = 3
|
2022-07-24 01:31:39 +05:00
|
|
|
step = 0.5
|
|
|
|
allow_greater = true
|
|
|
|
allow_lesser = true
|
2023-04-04 04:19:18 +03:00
|
|
|
grid_columns = 2
|
|
|
|
prefix_x = "Pivot x:"
|
|
|
|
prefix_y = "Pivot y:"
|
2022-07-24 01:31:39 +05:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Centre" type="Button" parent="VBoxContainer/PivotOptions" index="1"]
|
|
|
|
margin_left = 224.0
|
|
|
|
margin_right = 278.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_bottom = 24.0
|
2022-07-25 14:39:23 +03:00
|
|
|
hint_tooltip = "Places the pivot at the center of the image, or at the center of the selection, if it is present."
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
text = "Center"
|
2022-07-24 01:31:39 +05:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="HSeparator2" type="HSeparator" parent="VBoxContainer" index="6"]
|
|
|
|
margin_top = 320.0
|
|
|
|
margin_right = 278.0
|
2023-03-25 19:59:02 +05:00
|
|
|
margin_bottom = 324.0
|
2023-04-04 04:19:18 +03:00
|
|
|
|
|
|
|
[node name="AngleSlider" parent="VBoxContainer" index="7" instance=ExtResource( 3 )]
|
|
|
|
margin_top = 328.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 352.0
|
2020-01-27 12:23:52 -03:00
|
|
|
max_value = 359.0
|
2022-10-15 14:10:08 +03:00
|
|
|
prefix = "Angle:"
|
2020-05-11 20:07:16 +03:00
|
|
|
suffix = "°"
|
2022-10-15 14:10:08 +03:00
|
|
|
snap_step = 45.0
|
2020-10-23 17:50:52 +03:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="QuickRotations" type="HBoxContainer" parent="VBoxContainer" index="8"]
|
|
|
|
margin_top = 356.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 376.0
|
2022-07-24 01:31:39 +05:00
|
|
|
alignment = 1
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Deduct90" type="Button" parent="VBoxContainer/QuickRotations" index="0"]
|
|
|
|
margin_right = 52.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_bottom = 20.0
|
2022-07-25 17:47:01 +03:00
|
|
|
mouse_default_cursor_shape = 2
|
2022-10-15 14:10:08 +03:00
|
|
|
size_flags_horizontal = 3
|
2022-07-24 01:31:39 +05:00
|
|
|
text = "-90"
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Deduct45" type="Button" parent="VBoxContainer/QuickRotations" index="1"]
|
|
|
|
margin_left = 56.0
|
|
|
|
margin_right = 108.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_bottom = 20.0
|
2022-07-25 17:47:01 +03:00
|
|
|
mouse_default_cursor_shape = 2
|
2022-10-15 14:10:08 +03:00
|
|
|
size_flags_horizontal = 3
|
2022-07-24 01:31:39 +05:00
|
|
|
text = "-45"
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Zero" type="Button" parent="VBoxContainer/QuickRotations" index="2"]
|
|
|
|
margin_left = 112.0
|
|
|
|
margin_right = 165.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_bottom = 20.0
|
2022-07-25 17:47:01 +03:00
|
|
|
mouse_default_cursor_shape = 2
|
2022-10-15 14:10:08 +03:00
|
|
|
size_flags_horizontal = 3
|
2022-07-24 01:31:39 +05:00
|
|
|
text = "0"
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Add45" type="Button" parent="VBoxContainer/QuickRotations" index="3"]
|
|
|
|
margin_left = 169.0
|
|
|
|
margin_right = 221.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_bottom = 20.0
|
2022-07-25 17:47:01 +03:00
|
|
|
mouse_default_cursor_shape = 2
|
2022-10-15 14:10:08 +03:00
|
|
|
size_flags_horizontal = 3
|
2022-07-24 01:31:39 +05:00
|
|
|
text = "+45"
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Add90" type="Button" parent="VBoxContainer/QuickRotations" index="4"]
|
|
|
|
margin_left = 225.0
|
|
|
|
margin_right = 278.0
|
2022-07-24 01:31:39 +05:00
|
|
|
margin_bottom = 20.0
|
2022-07-25 17:47:01 +03:00
|
|
|
mouse_default_cursor_shape = 2
|
2022-10-15 14:10:08 +03:00
|
|
|
size_flags_horizontal = 3
|
2022-07-24 01:31:39 +05:00
|
|
|
text = "+90"
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="SmearOptions" type="VBoxContainer" parent="VBoxContainer" index="9"]
|
2022-07-28 01:04:24 +03:00
|
|
|
visible = false
|
2022-10-15 14:10:08 +03:00
|
|
|
margin_top = 352.0
|
2022-07-28 01:04:24 +03:00
|
|
|
margin_right = 326.0
|
2022-10-15 14:10:08 +03:00
|
|
|
margin_bottom = 430.0
|
2022-07-28 01:04:24 +03:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/SmearOptions" index="0"]
|
2022-07-28 01:04:24 +03:00
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 4.0
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/SmearOptions" index="1"]
|
2022-07-28 01:04:24 +03:00
|
|
|
margin_top = 8.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 22.0
|
|
|
|
text = "Smear options:"
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="ToleranceSlider" parent="VBoxContainer/SmearOptions" index="2" instance=ExtResource( 3 )]
|
2022-07-28 01:04:24 +03:00
|
|
|
margin_top = 26.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 50.0
|
|
|
|
max_value = 255.0
|
|
|
|
value = 100.0
|
2022-10-15 14:10:08 +03:00
|
|
|
prefix = "Tolerance:"
|
2022-07-28 01:04:24 +03:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="InitialAngleSlider" parent="VBoxContainer/SmearOptions" index="3" instance=ExtResource( 3 )]
|
2022-07-28 01:04:24 +03:00
|
|
|
margin_top = 54.0
|
|
|
|
margin_right = 326.0
|
|
|
|
margin_bottom = 78.0
|
|
|
|
max_value = 359.0
|
|
|
|
value = 359.0
|
2022-10-15 14:10:08 +03:00
|
|
|
prefix = "Initial angle:"
|
2022-07-28 01:04:24 +03:00
|
|
|
suffix = "°"
|
2022-10-15 14:10:08 +03:00
|
|
|
snap_step = 45.0
|
2022-07-28 01:04:24 +03:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="HSeparator3" type="HSeparator" parent="VBoxContainer" index="10"]
|
|
|
|
margin_top = 380.0
|
|
|
|
margin_right = 278.0
|
2023-03-25 19:59:02 +05:00
|
|
|
margin_bottom = 384.0
|
2020-10-23 17:50:52 +03:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="OptionsContainer" parent="VBoxContainer" index="11"]
|
|
|
|
margin_top = 388.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 412.0
|
2020-10-23 17:50:52 +03:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="AffectOptionButton" parent="VBoxContainer/OptionsContainer" index="1"]
|
|
|
|
margin_right = 278.0
|
2021-06-25 17:58:41 +03:00
|
|
|
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 ]
|
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="AnimationOptions" parent="VBoxContainer" index="12"]
|
|
|
|
margin_top = 416.0
|
|
|
|
margin_right = 278.0
|
|
|
|
margin_bottom = 450.0
|
2023-03-25 19:59:02 +05:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="PanelContainer" parent="VBoxContainer/AnimationOptions" index="1"]
|
|
|
|
margin_right = 157.0
|
2023-03-25 19:59:02 +05:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="AnimateMenu" parent="VBoxContainer/AnimationOptions/PanelContainer" index="0"]
|
|
|
|
margin_right = 88.0
|
2023-03-25 19:59:02 +05:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="InitalButton" parent="VBoxContainer/AnimationOptions" index="2"]
|
|
|
|
margin_left = 161.0
|
|
|
|
margin_right = 278.0
|
2023-03-25 19:59:02 +05:00
|
|
|
|
2023-04-04 04:19:18 +03:00
|
|
|
[node name="WaitApply" type="Timer" parent="." index="4"]
|
2021-09-23 23:25:35 +05:00
|
|
|
|
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"]
|
2022-10-15 14:10:08 +03:00
|
|
|
[connection signal="value_changed" from="VBoxContainer/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"]
|
2023-04-04 04:19:18 +03:00
|
|
|
[connection signal="value_changed" from="VBoxContainer/PivotOptions/Pivot" to="." method="_on_Pivot_value_changed"]
|
2022-10-15 14:10:08 +03:00
|
|
|
[connection signal="pressed" from="VBoxContainer/PivotOptions/Centre" to="." method="_on_Centre_pressed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/AngleSlider" to="." method="_on_AngleSlider_value_changed"]
|
2022-07-25 17:47:01 +03: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 ]]
|
2022-10-15 14:10:08 +03:00
|
|
|
[connection signal="value_changed" from="VBoxContainer/SmearOptions/ToleranceSlider" to="." method="_on_ToleranceSlider_value_changed"]
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/SmearOptions/InitialAngleSlider" to="." method="_on_InitialAngleSlider_value_changed"]
|
2021-09-23 23:25:35 +05:00
|
|
|
[connection signal="timeout" from="WaitApply" to="." method="_on_WaitApply_timeout"]
|