1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-13 14:55:18 +00:00
Pixelorama/src/UI/Dialogs/ImageEffects/RotateImage.tscn

202 lines
6.3 KiB
Text
Raw Normal View History

[gd_scene load_steps=3 format=2]
2020-01-27 12:23:52 -03:00
[ext_resource path="res://src/UI/Dialogs/ImageEffects/RotateImage.gd" type="Script" id=1]
[ext_resource path="res://src/UI/TransparentChecker.tscn" type="PackedScene" id=2]
2020-01-27 12:23:52 -03:00
[node name="RotateImage" type="ConfirmationDialog"]
margin_right = 320.0
margin_bottom = 380.0
rect_min_size = Vector2( 320, 380 )
window_title = "Rotate Image"
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
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="VBoxContainer"]
margin_right = 304.0
margin_bottom = 204.0
size_flags_vertical = 3
[node name="Preview" type="TextureRect" parent="VBoxContainer/AspectRatioContainer"]
margin_left = 50.0
margin_right = 254.0
margin_bottom = 204.0
rect_min_size = Vector2( 200, 200 )
2020-01-27 12:23:52 -03:00
expand = true
stretch_mode = 5
[node name="TransparentChecker" parent="VBoxContainer/AspectRatioContainer/Preview" instance=ExtResource( 2 )]
show_behind_parent = true
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 0.0
margin_bottom = 0.0
2020-01-27 12:23:52 -03:00
[node name="LiveSettings" type="HBoxContainer" parent="VBoxContainer"]
margin_top = 208.0
margin_right = 304.0
margin_bottom = 232.0
alignment = 1
[node name="LiveCheckbox" type="CheckBox" parent="VBoxContainer/LiveSettings"]
margin_left = 98.0
margin_right = 206.0
margin_bottom = 24.0
pressed = true
text = "Live Preview"
[node name="WaitSettings" type="HBoxContainer" parent="VBoxContainer"]
visible = false
margin_top = 232.0
margin_right = 332.0
margin_bottom = 256.0
alignment = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="VBoxContainer/WaitSettings"]
margin_left = 3.0
margin_top = 5.0
margin_right = 251.0
margin_bottom = 19.0
text = "Update preview delay (in milliseconds)"
[node name="WaitTime" type="SpinBox" parent="VBoxContainer/WaitSettings"]
margin_left = 255.0
margin_right = 329.0
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"]
margin_top = 236.0
margin_right = 304.0
margin_bottom = 256.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:"
[node name="TypeOptionButton" type="OptionButton" parent="VBoxContainer/HBoxContainer2"]
2020-01-27 12:23:52 -03:00
margin_left = 38.0
margin_right = 304.0
2020-01-27 12:23:52 -03:00
margin_bottom = 20.0
mouse_default_cursor_shape = 2
2020-01-27 12:23:52 -03:00
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_top = 260.0
margin_right = 304.0
margin_bottom = 280.0
alignment = 1
[node name="Deduct90" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_left = 65.0
margin_right = 98.0
margin_bottom = 20.0
text = "-90"
[node name="Deduct45" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_left = 102.0
margin_right = 135.0
margin_bottom = 20.0
text = "-45"
[node name="Zero" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_left = 139.0
margin_right = 159.0
margin_bottom = 20.0
text = "0"
[node name="Add45" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_left = 163.0
margin_right = 199.0
margin_bottom = 20.0
text = "+45"
[node name="Add90" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_left = 203.0
margin_right = 239.0
margin_bottom = 20.0
text = "+90"
[node name="AngleOptions" type="HBoxContainer" parent="VBoxContainer"]
margin_top = 284.0
margin_right = 304.0
margin_bottom = 308.0
2020-01-27 12:23:52 -03:00
[node name="Label" type="Label" parent="VBoxContainer/AngleOptions"]
2020-01-27 12:23:52 -03:00
margin_top = 5.0
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
[node name="AngleHSlider" type="HSlider" parent="VBoxContainer/AngleOptions"]
margin_left = 44.0
margin_right = 226.0
2020-01-27 12:23:52 -03:00
margin_bottom = 24.0
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
}
[node name="AngleSpinBox" type="SpinBox" parent="VBoxContainer/AngleOptions"]
margin_left = 230.0
margin_right = 304.0
2020-01-27 12:23:52 -03:00
margin_bottom = 24.0
mouse_default_cursor_shape = 2
2020-01-27 12:23:52 -03:00
max_value = 359.0
suffix = "°"
[node name="OptionsContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_top = 312.0
margin_right = 304.0
margin_bottom = 336.0
[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
margin_right = 278.0
margin_bottom = 24.0
mouse_default_cursor_shape = 2
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 ]
selected = 0
[node name="WaitApply" type="Timer" parent="."]
[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"]
[connection signal="item_selected" from="VBoxContainer/HBoxContainer2/TypeOptionButton" to="." method="_on_TypeOptionButton_item_selected"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Deduct90" to="." method="_on_quick_change_angle_pressed" binds= [ "-90" ]]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Deduct45" to="." method="_on_quick_change_angle_pressed" binds= [ "-45" ]]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Zero" to="." method="_on_quick_change_angle_pressed" binds= [ "0" ]]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Add45" to="." method="_on_quick_change_angle_pressed" binds= [ "+45" ]]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Add90" to="." method="_on_quick_change_angle_pressed" binds= [ "+90" ]]
[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"]
[connection signal="timeout" from="WaitApply" to="." method="_on_WaitApply_timeout"]