mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-12-14 11:14:43 -05:00
Use a different dialog for when quitting while there is unsaved progress
It now also works when quitting from File > Quit (or Control + Q)
This commit is contained in:
parent
105d612fcd
commit
5a44f3f4d5
2 changed files with 24 additions and 24 deletions
12
Main.tscn
12
Main.tscn
|
|
@ -1459,6 +1459,13 @@ margin_bottom = 70.0
|
|||
resizable = true
|
||||
dialog_text = "Are you sure you want to exit Pixelorama?"
|
||||
|
||||
[node name="QuitAndSaveDialog" type="ConfirmationDialog" parent="."]
|
||||
margin_right = 200.0
|
||||
margin_bottom = 70.0
|
||||
window_title = "Save before exiting?"
|
||||
resizable = true
|
||||
dialog_text = "You have unsaved progress. How do you wish to proceed?"
|
||||
|
||||
[node name="ErrorDialog" type="AcceptDialog" parent="."]
|
||||
margin_right = 76.0
|
||||
margin_bottom = 60.0
|
||||
|
|
@ -1546,9 +1553,10 @@ visible = false
|
|||
[connection signal="popup_hide" from="OutlineDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="AboutDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="confirmed" from="QuitDialog" to="." method="_on_QuitDialog_confirmed"]
|
||||
[connection signal="custom_action" from="QuitDialog" to="." method="_on_QuitDialog_custom_action"]
|
||||
[connection signal="popup_hide" from="QuitDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="popup_hide" from="QuitDialog" to="." method="_on_QuitDialog_popup_hide"]
|
||||
[connection signal="confirmed" from="QuitAndSaveDialog" to="." method="_on_QuitDialog_confirmed"]
|
||||
[connection signal="custom_action" from="QuitAndSaveDialog" to="." method="_on_QuitAndSaveDialog_custom_action"]
|
||||
[connection signal="popup_hide" from="QuitAndSaveDialog" to="." method="_can_draw_true"]
|
||||
[connection signal="confirmed" from="NewPaletteDialog" to="MenuAndUI/UI/LayerPanel/LayersAndMisc/VSplitContainer/PaletteVBoxContainer/ScrollPalette/CenterPalette/PaletteContainer" method="on_new_palette_confirmed"]
|
||||
[connection signal="file_selected" from="PaletteImportFileDialog" to="MenuAndUI/UI/LayerPanel/LayersAndMisc/VSplitContainer/PaletteVBoxContainer/ScrollPalette/CenterPalette/PaletteContainer" method="on_palette_import_file_selected"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue