mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
Grouped Image effect dialogs together in Main.tscn
This commit is contained in:
parent
c7f50107d6
commit
462187a6c1
|
@ -52,6 +52,28 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ImageEffects" type="Control" parent="Dialogs"]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="ScaleImage" parent="Dialogs/ImageEffects" instance=ExtResource( 31 )]
|
||||
margin_bottom = 127.0
|
||||
|
||||
[node name="ResizeCanvas" parent="Dialogs/ImageEffects" instance=ExtResource( 7 )]
|
||||
margin_right = 216.0
|
||||
margin_bottom = 392.0
|
||||
|
||||
[node name="RotateImage" parent="Dialogs/ImageEffects" instance=ExtResource( 38 )]
|
||||
|
||||
[node name="OutlineDialog" parent="Dialogs/ImageEffects" instance=ExtResource( 33 )]
|
||||
margin_right = 217.0
|
||||
margin_bottom = 106.0
|
||||
|
||||
[node name="HSVDialog" parent="Dialogs/ImageEffects" instance=ExtResource( 44 )]
|
||||
|
||||
[node name="GradientDialog" parent="Dialogs/ImageEffects" instance=ExtResource( 9 )]
|
||||
margin_bottom = 214.0
|
||||
|
||||
[node name="BrushesPopup" parent="Dialogs" instance=ExtResource( 6 )]
|
||||
|
||||
[node name="PatternsPopup" parent="Dialogs" instance=ExtResource( 5 )]
|
||||
|
@ -73,22 +95,9 @@ margin_bottom = 388.0
|
|||
|
||||
[node name="ExportDialog" parent="Dialogs" instance=ExtResource( 39 )]
|
||||
|
||||
[node name="ScaleImage" parent="Dialogs" instance=ExtResource( 31 )]
|
||||
margin_bottom = 127.0
|
||||
|
||||
[node name="ResizeCanvas" parent="Dialogs" instance=ExtResource( 7 )]
|
||||
margin_right = 216.0
|
||||
margin_bottom = 392.0
|
||||
|
||||
[node name="PreferencesDialog" parent="Dialogs" instance=ExtResource( 32 )]
|
||||
margin_right = 617.0
|
||||
|
||||
[node name="RotateImage" parent="Dialogs" instance=ExtResource( 38 )]
|
||||
|
||||
[node name="OutlineDialog" parent="Dialogs" instance=ExtResource( 33 )]
|
||||
margin_right = 217.0
|
||||
margin_bottom = 106.0
|
||||
|
||||
[node name="AboutDialog" parent="Dialogs" instance=ExtResource( 34 )]
|
||||
|
||||
[node name="UnsavedCanvasDialog" type="ConfirmationDialog" parent="Dialogs"]
|
||||
|
@ -119,8 +128,6 @@ margin_bottom = 60.0
|
|||
window_title = "Error!"
|
||||
dialog_text = "This is an error message!"
|
||||
|
||||
[node name="HSVDialog" parent="Dialogs" instance=ExtResource( 44 )]
|
||||
|
||||
[node name="BackupConfirmation" type="ConfirmationDialog" parent="Dialogs"]
|
||||
margin_right = 349.0
|
||||
margin_bottom = 88.0
|
||||
|
@ -129,8 +136,6 @@ popup_exclusive = true
|
|||
dialog_text = "Autosaved backup for %s was found.
|
||||
Do you want to reload it?"
|
||||
|
||||
[node name="GradientDialog" parent="Dialogs" instance=ExtResource( 9 )]
|
||||
|
||||
[node name="LeftCursor" type="Sprite" parent="."]
|
||||
visible = false
|
||||
|
||||
|
@ -138,6 +143,12 @@ visible = false
|
|||
visible = false
|
||||
|
||||
[node name="ModulateTween" type="Tween" parent="."]
|
||||
[connection signal="popup_hide" from="Dialogs/ImageEffects/ScaleImage" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/ImageEffects/ResizeCanvas" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/ImageEffects/RotateImage" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/ImageEffects/OutlineDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/ImageEffects/HSVDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/ImageEffects/GradientDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/SplashDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/CreateNewImage" to="." method="_can_draw_true"]
|
||||
[connection signal="file_selected" from="Dialogs/OpenSprite" to="." method="_on_OpenSprite_file_selected"]
|
||||
|
@ -147,11 +158,7 @@ visible = false
|
|||
[connection signal="confirmed" from="Dialogs/SaveSpriteHTML5" to="." method="_on_SaveSpriteHTML5_confirmed"]
|
||||
[connection signal="popup_hide" from="Dialogs/SaveSpriteHTML5" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/ExportDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/ScaleImage" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/ResizeCanvas" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/PreferencesDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/RotateImage" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/OutlineDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/AboutDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/UnsavedCanvasDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="confirmed" from="Dialogs/QuitDialog" to="." method="_on_QuitDialog_confirmed"]
|
||||
|
@ -160,6 +167,4 @@ visible = false
|
|||
[connection signal="custom_action" from="Dialogs/QuitAndSaveDialog" to="." method="_on_QuitAndSaveDialog_custom_action"]
|
||||
[connection signal="popup_hide" from="Dialogs/QuitAndSaveDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/ErrorDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/HSVDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/BackupConfirmation" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="Dialogs/GradientDialog" to="." method="_can_draw_true"]
|
||||
|
|
|
@ -331,17 +331,17 @@ func image_menu_id_pressed(id : int) -> void:
|
|||
9: # HSV
|
||||
show_hsv_configuration_popup()
|
||||
10: # Gradient
|
||||
Global.control.get_node("Dialogs/GradientDialog").popup_centered()
|
||||
Global.control.get_node("Dialogs/ImageEffects/GradientDialog").popup_centered()
|
||||
Global.dialog_open(true)
|
||||
|
||||
|
||||
func show_scale_image_popup() -> void:
|
||||
Global.control.get_node("Dialogs/ScaleImage").popup_centered()
|
||||
Global.control.get_node("Dialogs/ImageEffects/ScaleImage").popup_centered()
|
||||
Global.dialog_open(true)
|
||||
|
||||
|
||||
func show_resize_canvas_popup() -> void:
|
||||
Global.control.get_node("Dialogs/ResizeCanvas").popup_centered()
|
||||
Global.control.get_node("Dialogs/ImageEffects/ResizeCanvas").popup_centered()
|
||||
Global.dialog_open(true)
|
||||
|
||||
|
||||
|
@ -359,18 +359,18 @@ func flip_image(horizontal : bool) -> void:
|
|||
|
||||
func show_rotate_image_popup() -> void:
|
||||
var image : Image = Global.current_project.frames[Global.current_project.current_frame].cels[Global.current_project.current_layer].image
|
||||
Global.control.get_node("Dialogs/RotateImage").set_sprite(image)
|
||||
Global.control.get_node("Dialogs/RotateImage").popup_centered()
|
||||
Global.control.get_node("Dialogs/ImageEffects/RotateImage").set_sprite(image)
|
||||
Global.control.get_node("Dialogs/ImageEffects/RotateImage").popup_centered()
|
||||
Global.dialog_open(true)
|
||||
|
||||
|
||||
func show_add_outline_popup() -> void:
|
||||
Global.control.get_node("Dialogs/OutlineDialog").popup_centered()
|
||||
Global.control.get_node("Dialogs/ImageEffects/OutlineDialog").popup_centered()
|
||||
Global.dialog_open(true)
|
||||
|
||||
|
||||
func show_hsv_configuration_popup() -> void:
|
||||
Global.control.get_node("Dialogs/HSVDialog").popup_centered()
|
||||
Global.control.get_node("Dialogs/ImageEffects/HSVDialog").popup_centered()
|
||||
Global.dialog_open(true)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue