mirror of
https://github.com/Relintai/draw_gd.git
synced 2025-03-10 00:33:25 +01:00
Make the singleton node root so it can be found easier.
This commit is contained in:
parent
431d2e5488
commit
2f27051aa0
@ -44,7 +44,17 @@ flags = 0
|
|||||||
image = SubResource( 6 )
|
image = SubResource( 6 )
|
||||||
size = Vector2( 22, 22 )
|
size = Vector2( 22, 22 )
|
||||||
|
|
||||||
[node name="DrawGDControl" type="Control"]
|
[node name="DrawGDSingleton" type="Control"]
|
||||||
|
anchor_right = 1.0
|
||||||
|
anchor_bottom = 1.0
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
size_flags_vertical = 3
|
||||||
|
script = ExtResource( 13 )
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="DrawGDControl" type="Control" parent="."]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
@ -56,7 +66,7 @@ __meta__ = {
|
|||||||
"_edit_vertical_guides_": [ ]
|
"_edit_vertical_guides_": [ ]
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="MenuAndUI" type="VBoxContainer" parent="."]
|
[node name="MenuAndUI" type="VBoxContainer" parent="DrawGDControl"]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
custom_constants/separation = 0
|
custom_constants/separation = 0
|
||||||
@ -64,55 +74,55 @@ __meta__ = {
|
|||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="TopMenuContainer" parent="MenuAndUI" instance=ExtResource( 11 )]
|
[node name="TopMenuContainer" parent="DrawGDControl/MenuAndUI" instance=ExtResource( 11 )]
|
||||||
|
|
||||||
[node name="UI" parent="MenuAndUI" instance=ExtResource( 6 )]
|
[node name="UI" parent="DrawGDControl/MenuAndUI" instance=ExtResource( 6 )]
|
||||||
|
|
||||||
[node name="Dialogs" type="Control" parent="."]
|
[node name="Dialogs" type="Control" parent="DrawGDControl"]
|
||||||
mouse_filter = 2
|
mouse_filter = 2
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="ImageEffects" parent="Dialogs" instance=ExtResource( 2 )]
|
[node name="ImageEffects" parent="DrawGDControl/Dialogs" instance=ExtResource( 2 )]
|
||||||
|
|
||||||
[node name="BrushesPopup" parent="Dialogs" instance=ExtResource( 4 )]
|
[node name="BrushesPopup" parent="DrawGDControl/Dialogs" instance=ExtResource( 4 )]
|
||||||
|
|
||||||
[node name="PatternsPopup" parent="Dialogs" instance=ExtResource( 5 )]
|
[node name="PatternsPopup" parent="DrawGDControl/Dialogs" instance=ExtResource( 5 )]
|
||||||
|
|
||||||
[node name="CreateNewImage" parent="Dialogs" instance=ExtResource( 3 )]
|
[node name="CreateNewImage" parent="DrawGDControl/Dialogs" instance=ExtResource( 3 )]
|
||||||
margin_right = 375.0
|
margin_right = 375.0
|
||||||
|
|
||||||
[node name="OpenSprite" parent="Dialogs" instance=ExtResource( 7 )]
|
[node name="OpenSprite" parent="DrawGDControl/Dialogs" instance=ExtResource( 7 )]
|
||||||
current_dir = "/home/relintai/Projects/draw_gd"
|
current_dir = "/home/relintai/Projects/draw_gd"
|
||||||
current_path = "/home/relintai/Projects/draw_gd/"
|
current_path = "/home/relintai/Projects/draw_gd/"
|
||||||
|
|
||||||
[node name="SaveSprite" parent="Dialogs" instance=ExtResource( 12 )]
|
[node name="SaveSprite" parent="DrawGDControl/Dialogs" instance=ExtResource( 12 )]
|
||||||
margin_left = 108.0
|
margin_left = 108.0
|
||||||
margin_top = 40.0
|
margin_top = 40.0
|
||||||
margin_right = 623.0
|
margin_right = 623.0
|
||||||
margin_bottom = 388.0
|
margin_bottom = 388.0
|
||||||
|
|
||||||
[node name="SaveSpriteHTML5" parent="Dialogs" instance=ExtResource( 10 )]
|
[node name="SaveSpriteHTML5" parent="DrawGDControl/Dialogs" instance=ExtResource( 10 )]
|
||||||
|
|
||||||
[node name="ExportDialog" parent="Dialogs" instance=ExtResource( 9 )]
|
[node name="ExportDialog" parent="DrawGDControl/Dialogs" instance=ExtResource( 9 )]
|
||||||
|
|
||||||
[node name="PreferencesDialog" parent="Dialogs" instance=ExtResource( 8 )]
|
[node name="PreferencesDialog" parent="DrawGDControl/Dialogs" instance=ExtResource( 8 )]
|
||||||
margin_right = 617.0
|
margin_right = 617.0
|
||||||
|
|
||||||
[node name="UnsavedCanvasDialog" type="ConfirmationDialog" parent="Dialogs"]
|
[node name="UnsavedCanvasDialog" type="ConfirmationDialog" parent="DrawGDControl/Dialogs"]
|
||||||
margin_right = 467.0
|
margin_right = 467.0
|
||||||
margin_bottom = 70.0
|
margin_bottom = 70.0
|
||||||
window_title = "Unsaved Image"
|
window_title = "Unsaved Image"
|
||||||
dialog_text = "You have unsaved changes. If you proceed, the progress you have made will be lost."
|
dialog_text = "You have unsaved changes. If you proceed, the progress you have made will be lost."
|
||||||
|
|
||||||
[node name="QuitDialog" type="ConfirmationDialog" parent="Dialogs"]
|
[node name="QuitDialog" type="ConfirmationDialog" parent="DrawGDControl/Dialogs"]
|
||||||
margin_right = 243.0
|
margin_right = 243.0
|
||||||
margin_bottom = 70.0
|
margin_bottom = 70.0
|
||||||
resizable = true
|
resizable = true
|
||||||
dialog_text = "Are you sure you want to exit Pixelorama?"
|
dialog_text = "Are you sure you want to exit Pixelorama?"
|
||||||
|
|
||||||
[node name="QuitAndSaveDialog" type="ConfirmationDialog" parent="Dialogs"]
|
[node name="QuitAndSaveDialog" type="ConfirmationDialog" parent="DrawGDControl/Dialogs"]
|
||||||
margin_right = 330.0
|
margin_right = 330.0
|
||||||
margin_bottom = 70.0
|
margin_bottom = 70.0
|
||||||
window_title = "Save before exiting?"
|
window_title = "Save before exiting?"
|
||||||
@ -122,13 +132,13 @@ __meta__ = {
|
|||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="ErrorDialog" type="AcceptDialog" parent="Dialogs"]
|
[node name="ErrorDialog" type="AcceptDialog" parent="DrawGDControl/Dialogs"]
|
||||||
margin_right = 151.0
|
margin_right = 151.0
|
||||||
margin_bottom = 60.0
|
margin_bottom = 60.0
|
||||||
window_title = "Error"
|
window_title = "Error"
|
||||||
dialog_text = "This is an error message!"
|
dialog_text = "This is an error message!"
|
||||||
|
|
||||||
[node name="BackupConfirmation" type="ConfirmationDialog" parent="Dialogs"]
|
[node name="BackupConfirmation" type="ConfirmationDialog" parent="DrawGDControl/Dialogs"]
|
||||||
margin_left = 429.0
|
margin_left = 429.0
|
||||||
margin_top = 316.0
|
margin_top = 316.0
|
||||||
margin_right = 851.0
|
margin_right = 851.0
|
||||||
@ -138,35 +148,32 @@ popup_exclusive = true
|
|||||||
dialog_text = "Autosaved backup for [user://backup-1606662249-0] was found.
|
dialog_text = "Autosaved backup for [user://backup-1606662249-0] was found.
|
||||||
Do you want to reload it?"
|
Do you want to reload it?"
|
||||||
|
|
||||||
[node name="LeftCursor" type="Sprite" parent="."]
|
[node name="LeftCursor" type="Sprite" parent="DrawGDControl"]
|
||||||
visible = false
|
visible = false
|
||||||
position = Vector2( 795, 667 )
|
position = Vector2( 795, 667 )
|
||||||
texture = SubResource( 2 )
|
texture = SubResource( 2 )
|
||||||
|
|
||||||
[node name="RightCursor" type="Sprite" parent="."]
|
[node name="RightCursor" type="Sprite" parent="DrawGDControl"]
|
||||||
visible = false
|
visible = false
|
||||||
position = Vector2( 859, 667 )
|
position = Vector2( 859, 667 )
|
||||||
texture = SubResource( 4 )
|
texture = SubResource( 4 )
|
||||||
|
|
||||||
[node name="ModulateTween" type="Tween" parent="."]
|
[node name="ModulateTween" type="Tween" parent="DrawGDControl"]
|
||||||
|
|
||||||
[node name="DrawGDSingleton" type="Node" parent="."]
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/CreateNewImage" to="DrawGDControl" method="_can_draw_true"]
|
||||||
script = ExtResource( 13 )
|
[connection signal="file_selected" from="DrawGDControl/Dialogs/OpenSprite" to="DrawGDControl" method="_on_OpenSprite_file_selected"]
|
||||||
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/OpenSprite" to="DrawGDControl" method="_on_OpenSprite_popup_hide"]
|
||||||
[connection signal="popup_hide" from="Dialogs/CreateNewImage" to="." method="_can_draw_true"]
|
[connection signal="file_selected" from="DrawGDControl/Dialogs/SaveSprite" to="DrawGDControl" method="_on_SaveSprite_file_selected"]
|
||||||
[connection signal="file_selected" from="Dialogs/OpenSprite" to="." method="_on_OpenSprite_file_selected"]
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/SaveSprite" to="DrawGDControl" method="_can_draw_true"]
|
||||||
[connection signal="popup_hide" from="Dialogs/OpenSprite" to="." method="_on_OpenSprite_popup_hide"]
|
[connection signal="confirmed" from="DrawGDControl/Dialogs/SaveSpriteHTML5" to="DrawGDControl" method="_on_SaveSpriteHTML5_confirmed"]
|
||||||
[connection signal="file_selected" from="Dialogs/SaveSprite" to="." method="_on_SaveSprite_file_selected"]
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/SaveSpriteHTML5" to="DrawGDControl" method="_can_draw_true"]
|
||||||
[connection signal="popup_hide" from="Dialogs/SaveSprite" to="." method="_can_draw_true"]
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/ExportDialog" to="DrawGDControl" method="_can_draw_true"]
|
||||||
[connection signal="confirmed" from="Dialogs/SaveSpriteHTML5" to="." method="_on_SaveSpriteHTML5_confirmed"]
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/PreferencesDialog" to="DrawGDControl" method="_can_draw_true"]
|
||||||
[connection signal="popup_hide" from="Dialogs/SaveSpriteHTML5" to="." method="_can_draw_true"]
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/UnsavedCanvasDialog" to="DrawGDControl" method="_can_draw_true"]
|
||||||
[connection signal="popup_hide" from="Dialogs/ExportDialog" to="." method="_can_draw_true"]
|
[connection signal="confirmed" from="DrawGDControl/Dialogs/QuitDialog" to="DrawGDControl" method="_on_QuitDialog_confirmed"]
|
||||||
[connection signal="popup_hide" from="Dialogs/PreferencesDialog" to="." method="_can_draw_true"]
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/QuitDialog" to="DrawGDControl" method="_can_draw_true"]
|
||||||
[connection signal="popup_hide" from="Dialogs/UnsavedCanvasDialog" to="." method="_can_draw_true"]
|
[connection signal="confirmed" from="DrawGDControl/Dialogs/QuitAndSaveDialog" to="DrawGDControl" method="_on_QuitDialog_confirmed"]
|
||||||
[connection signal="confirmed" from="Dialogs/QuitDialog" to="." method="_on_QuitDialog_confirmed"]
|
[connection signal="custom_action" from="DrawGDControl/Dialogs/QuitAndSaveDialog" to="DrawGDControl" method="_on_QuitAndSaveDialog_custom_action"]
|
||||||
[connection signal="popup_hide" from="Dialogs/QuitDialog" to="." method="_can_draw_true"]
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/QuitAndSaveDialog" to="DrawGDControl" method="_can_draw_true"]
|
||||||
[connection signal="confirmed" from="Dialogs/QuitAndSaveDialog" to="." method="_on_QuitDialog_confirmed"]
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/ErrorDialog" to="DrawGDControl" method="_can_draw_true"]
|
||||||
[connection signal="custom_action" from="Dialogs/QuitAndSaveDialog" to="." method="_on_QuitAndSaveDialog_custom_action"]
|
[connection signal="popup_hide" from="DrawGDControl/Dialogs/BackupConfirmation" to="DrawGDControl" method="_can_draw_true"]
|
||||||
[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/BackupConfirmation" to="." method="_can_draw_true"]
|
|
||||||
|
Loading…
Reference in New Issue
Block a user