1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Mark dialogs as popup_windows

So they can close when the user clicks outside the window on Godot 4.2
This commit is contained in:
Emmanouil Papadeas 2023-11-11 03:12:49 +02:00
parent 397e9e7c17
commit 94b3e75f30
20 changed files with 34 additions and 0 deletions

View file

@ -74,23 +74,28 @@ position = Vector2i(0, 24)
[node name="UnsavedCanvasDialog" type="ConfirmationDialog" parent="Dialogs"] [node name="UnsavedCanvasDialog" type="ConfirmationDialog" parent="Dialogs"]
title = "Unsaved Image" title = "Unsaved Image"
exclusive = false exclusive = false
popup_window = true
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="Dialogs"]
exclusive = false exclusive = false
popup_window = 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="Dialogs"]
title = "Save before exiting?" title = "Save before exiting?"
exclusive = false exclusive = false
popup_window = true
dialog_text = "You have unsaved progress. How do you wish to proceed?" dialog_text = "You have unsaved progress. How do you wish to proceed?"
[node name="ErrorDialog" type="AcceptDialog" parent="Dialogs"] [node name="ErrorDialog" type="AcceptDialog" parent="Dialogs"]
exclusive = false exclusive = false
popup_window = true
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="Dialogs"]
exclusive = false exclusive = false
popup_window = true
dialog_text = "Autosaved project(s) from a crashed session were found. dialog_text = "Autosaved project(s) from a crashed session were found.
Do you want to recover the data?" Do you want to recover the data?"
dialog_autowrap = true dialog_autowrap = true

View file

@ -5,6 +5,8 @@
[node name="CreatePaletteDialog" type="ConfirmationDialog"] [node name="CreatePaletteDialog" type="ConfirmationDialog"]
title = "Create a new palette" title = "Create a new palette"
size = Vector2i(325, 437) size = Vector2i(325, 437)
exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]

View file

@ -5,6 +5,8 @@
[node name="EditPaletteDialog" type="ConfirmationDialog"] [node name="EditPaletteDialog" type="ConfirmationDialog"]
title = "Edit Palette" title = "Edit Palette"
size = Vector2i(409, 559) size = Vector2i(409, 559)
exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]
@ -94,6 +96,8 @@ autowrap_mode = 3
[node name="DeleteConfirmation" type="ConfirmationDialog" parent="."] [node name="DeleteConfirmation" type="ConfirmationDialog" parent="."]
size = Vector2i(445, 105) size = Vector2i(445, 105)
exclusive = false
popup_window = true
ok_button_text = "Delete Permanently" ok_button_text = "Delete Permanently"
[node name="Label" type="Label" parent="DeleteConfirmation"] [node name="Label" type="Label" parent="DeleteConfirmation"]

View file

@ -14,6 +14,7 @@
title = "Preferences" title = "Preferences"
size = Vector2i(800, 500) size = Vector2i(800, 500)
exclusive = false exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="HSplitContainer" type="HSplitContainer" parent="."] [node name="HSplitContainer" type="HSplitContainer" parent="."]
@ -1296,6 +1297,8 @@ text = "Pixelorama must be restarted for changes to take effect."
[node name="AddExtensionFileDialog" type="FileDialog" parent="Popups"] [node name="AddExtensionFileDialog" type="FileDialog" parent="Popups"]
mode = 1 mode = 1
exclusive = false
popup_window = true
access = 2 access = 2
filters = PackedStringArray("*.pck ; Godot Resource Pack File", "*.zip ;") filters = PackedStringArray("*.pck ; Godot Resource Pack File", "*.zip ;")
show_hidden_files = true show_hidden_files = true
@ -1304,6 +1307,8 @@ show_hidden_files = true
unique_name_in_owner = true unique_name_in_owner = true
position = Vector2i(0, 36) position = Vector2i(0, 36)
size = Vector2i(500, 100) size = Vector2i(500, 100)
exclusive = false
popup_window = true
ok_button_text = "Delete Permanently" ok_button_text = "Delete Permanently"
[node name="Label" type="Label" parent="DeleteConfirmation"] [node name="Label" type="Label" parent="DeleteConfirmation"]

View file

@ -10,6 +10,7 @@
[node name="CreateNewImage" type="ConfirmationDialog"] [node name="CreateNewImage" type="ConfirmationDialog"]
title = "New..." title = "New..."
exclusive = false exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]

View file

@ -11,6 +11,7 @@ title = "Export..."
position = Vector2i(0, 36) position = Vector2i(0, 36)
size = Vector2i(700, 600) size = Vector2i(700, 600)
exclusive = false exclusive = false
popup_window = true
dialog_hide_on_ok = false dialog_hide_on_ok = false
script = ExtResource("1") script = ExtResource("1")

View file

@ -9,6 +9,7 @@
canvas_item_default_texture_filter = 0 canvas_item_default_texture_filter = 0
size = Vector2i(360, 316) size = Vector2i(360, 316)
exclusive = false exclusive = false
popup_window = true
script = ExtResource("3") script = ExtResource("3")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]

View file

@ -7,6 +7,7 @@
canvas_item_default_texture_filter = 0 canvas_item_default_texture_filter = 0
title = "Resize Canvas" title = "Resize Canvas"
exclusive = false exclusive = false
popup_window = true
script = ExtResource("2") script = ExtResource("2")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]

View file

@ -8,6 +8,7 @@
[node name="ScaleImage" type="ConfirmationDialog"] [node name="ScaleImage" type="ConfirmationDialog"]
title = "Scale Image" title = "Scale Image"
exclusive = false exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]

View file

@ -7,6 +7,7 @@
[node name="ShaderEffect" type="ConfirmationDialog"] [node name="ShaderEffect" type="ConfirmationDialog"]
exclusive = false exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]

View file

@ -20,6 +20,7 @@ hidden_tabs = {}
[node name="ManageLayouts" type="AcceptDialog"] [node name="ManageLayouts" type="AcceptDialog"]
title = "Manage Layouts" title = "Manage Layouts"
exclusive = false exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]

View file

@ -4,6 +4,7 @@
title = "Open File(s)" title = "Open File(s)"
size = Vector2i(558, 400) size = Vector2i(558, 400)
exclusive = false exclusive = false
popup_window = true
ok_button_text = "Open" ok_button_text = "Open"
file_mode = 1 file_mode = 1
access = 2 access = 2

View file

@ -3,5 +3,6 @@
[node name="SaveSprite" type="FileDialog"] [node name="SaveSprite" type="FileDialog"]
size = Vector2i(675, 400) size = Vector2i(675, 400)
exclusive = false exclusive = false
popup_window = true
access = 2 access = 2
filters = PackedStringArray("*.pxo ; Pixelorama Project") filters = PackedStringArray("*.pxo ; Pixelorama Project")

View file

@ -2,6 +2,7 @@
[node name="SaveSpriteHTML5" type="ConfirmationDialog"] [node name="SaveSpriteHTML5" type="ConfirmationDialog"]
exclusive = false exclusive = false
popup_window = true
[node name="FileNameContainer" type="HBoxContainer" parent="."] [node name="FileNameContainer" type="HBoxContainer" parent="."]
anchors_preset = 10 anchors_preset = 10

View file

@ -29,6 +29,7 @@ canvas_item_default_texture_filter = 0
position = Vector2i(0, 36) position = Vector2i(0, 36)
size = Vector2i(602, 650) size = Vector2i(602, 650)
exclusive = false exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="Contents" type="VBoxContainer" parent="."] [node name="Contents" type="VBoxContainer" parent="."]

View file

@ -11,6 +11,7 @@ blend_mode = 4
canvas_item_default_texture_filter = 0 canvas_item_default_texture_filter = 0
title = "Tile Mode Offsets" title = "Tile Mode Offsets"
exclusive = false exclusive = false
popup_window = true
script = ExtResource("3") script = ExtResource("3")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]

View file

@ -6,6 +6,7 @@
[node name="WindowOpacityDialog" type="AcceptDialog"] [node name="WindowOpacityDialog" type="AcceptDialog"]
title = "Window Opacity" title = "Window Opacity"
exclusive = false exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]

View file

@ -260,6 +260,8 @@ text = "Choose"
[node name="Path" type="FileDialog" parent="Dialogs"] [node name="Path" type="FileDialog" parent="Dialogs"]
mode = 2 mode = 2
exclusive = false
popup_window = true
access = 2 access = 2
[node name="Timer" type="Timer" parent="."] [node name="Timer" type="Timer" parent="."]

View file

@ -5,6 +5,7 @@
[node name="FrameProperties" type="ConfirmationDialog"] [node name="FrameProperties" type="ConfirmationDialog"]
title = "Frame properties" title = "Frame properties"
exclusive = false exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]

View file

@ -7,6 +7,7 @@
title = "Frame Tag Properties" title = "Frame Tag Properties"
size = Vector2i(413, 300) size = Vector2i(413, 300)
exclusive = false exclusive = false
popup_window = true
script = ExtResource("1") script = ExtResource("1")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]
@ -64,6 +65,7 @@ text = "Animation plays only on frames of the same tag"
[node name="TagOptions" type="ConfirmationDialog" parent="."] [node name="TagOptions" type="ConfirmationDialog" parent="."]
size = Vector2i(303, 127) size = Vector2i(303, 127)
exclusive = false exclusive = false
popup_window = true
[node name="GridContainer" type="GridContainer" parent="TagOptions"] [node name="GridContainer" type="GridContainer" parent="TagOptions"]
offset_left = 8.0 offset_left = 8.0