From a7a76ff9f02d904cfef5414b977ccf27eb5db70d Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:36:56 +0200 Subject: [PATCH] Enable always on top for more child dialogs of other dialogs Continuation of c72a1f4b902b0a2866ef84629c53ecca4e2362a6 --- src/Preferences/PreferencesDialog.tscn | 4 ++++ src/UI/Dialogs/ManageLayouts.tscn | 6 ++++-- src/UI/ExtensionExplorer/Store.tscn | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Preferences/PreferencesDialog.tscn b/src/Preferences/PreferencesDialog.tscn index 7b79c020e..2ca6809b4 100644 --- a/src/Preferences/PreferencesDialog.tscn +++ b/src/Preferences/PreferencesDialog.tscn @@ -1473,6 +1473,7 @@ text = "Pixelorama must be restarted for changes to take effect." mode = 1 title = "Open File(s)" size = Vector2i(560, 400) +always_on_top = true ok_button_text = "Open" file_mode = 1 access = 2 @@ -1484,6 +1485,7 @@ transient = true [node name="EnableExtensionConfirmation" type="ConfirmationDialog" parent="."] unique_name_in_owner = true +always_on_top = true dialog_text = "Are you sure you want to enable this extension? Make sure to only enable extensions from sources that you trust." dialog_autowrap = true @@ -1491,11 +1493,13 @@ dialog_autowrap = true unique_name_in_owner = true position = Vector2i(0, 36) size = Vector2i(400, 100) +always_on_top = true ok_button_text = "Delete Permanently" dialog_text = "Are you sure you want to delete this extension?" dialog_autowrap = true [node name="ResetOptionsConfirmation" type="ConfirmationDialog" parent="."] +always_on_top = true dialog_text = "Are you sure you want to reset the selected options? There will be no way to undo this." [connection signal="about_to_popup" from="." to="." method="_on_PreferencesDialog_about_to_show"] diff --git a/src/UI/Dialogs/ManageLayouts.tscn b/src/UI/Dialogs/ManageLayouts.tscn index 6d8e76dd4..55872c4d2 100644 --- a/src/UI/Dialogs/ManageLayouts.tscn +++ b/src/UI/Dialogs/ManageLayouts.tscn @@ -16,6 +16,7 @@ resource_name = "Layout" script = ExtResource("3") root = SubResource("1") hidden_tabs = {} +windows = {} save_on_change = false [node name="ManageLayouts" type="AcceptDialog"] @@ -110,6 +111,7 @@ disabled = true text = "Delete" [node name="LayoutSettings" type="ConfirmationDialog" parent="."] +always_on_top = true [node name="VBoxContainer" type="VBoxContainer" parent="LayoutSettings"] offset_right = 40.0 @@ -131,12 +133,12 @@ text = "Copy from" [node name="LayoutFrom" type="OptionButton" parent="LayoutSettings/VBoxContainer/HBoxContainer"] unique_name_in_owner = true layout_mode = 2 -item_count = 1 selected = 0 +item_count = 1 popup/item_0/text = "Current layout" -popup/item_0/id = 0 [node name="DeleteConfirmation" type="ConfirmationDialog" parent="."] +always_on_top = true dialog_text = "Are you sure you want to delete this layout?" [connection signal="about_to_popup" from="." to="." method="_on_ManageLayouts_about_to_show"] diff --git a/src/UI/ExtensionExplorer/Store.tscn b/src/UI/ExtensionExplorer/Store.tscn index 283a90b3a..897d3f4ae 100644 --- a/src/UI/ExtensionExplorer/Store.tscn +++ b/src/UI/ExtensionExplorer/Store.tscn @@ -12,6 +12,7 @@ size = Vector2i(760, 470) visible = false wrap_controls = true exclusive = true +always_on_top = true script = ExtResource("1_pwcwi") [node name="TabContainer" type="TabContainer" parent="."] @@ -24,9 +25,11 @@ offset_left = 7.0 offset_top = 8.0 offset_right = -7.0 offset_bottom = -8.0 +current_tab = 0 [node name="Store" type="MarginContainer" parent="TabContainer"] layout_mode = 2 +metadata/_tab_index = 0 [node name="StoreMainContainer" type="HSplitContainer" parent="TabContainer/Store"] layout_mode = 2 @@ -68,6 +71,7 @@ size_flags_horizontal = 3 [node name="Options" type="MarginContainer" parent="TabContainer"] visible = false layout_mode = 2 +metadata/_tab_index = 1 [node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/Options"] layout_mode = 2 @@ -153,6 +157,7 @@ unique_name_in_owner = true position = Vector2i(0, 36) size = Vector2i(511, 326) unresizable = true +always_on_top = true popup_window = true [node name="Content" type="VBoxContainer" parent="Error"] @@ -200,6 +205,7 @@ autowrap_mode = 3 unique_name_in_owner = true position = Vector2i(0, 36) size = Vector2i(357, 110) +always_on_top = true popup_window = true [node name="Content" type="VBoxContainer" parent="ErrorCustom"]