diff options
author | Saracen <SaracenOne@gmail.com> | 2024-09-01 01:32:56 +0100 |
---|---|---|
committer | Saracen <SaracenOne@gmail.com> | 2024-09-01 01:32:56 +0100 |
commit | 1deb42ad8dd6429cde94f437675c0cff3f8dcb60 (patch) | |
tree | 0d83f1e18c9f27d779381060b6d7098ba3d89a4a /editor/editor_node.cpp | |
parent | 61598c5c88d95b96811d386cb20d714c35f4c6d7 (diff) | |
download | redot-engine-1deb42ad8dd6429cde94f437675c0cff3f8dcb60.tar.gz |
Improve behaviour of AnimationPlayer warnings.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index d3fa2ed716..5fd02b2881 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -5200,7 +5200,8 @@ void EditorNode::show_accept(const String &p_text, const String &p_title) { _close_save_scene_progress(); accept->set_ok_button_text(p_title); accept->set_text(p_text); - EditorInterface::get_singleton()->popup_dialog_centered(accept); + accept->reset_size(); + EditorInterface::get_singleton()->popup_dialog_centered_clamped(accept, Size2i(), 0.0); } } @@ -5210,7 +5211,8 @@ void EditorNode::show_save_accept(const String &p_text, const String &p_title) { _close_save_scene_progress(); save_accept->set_ok_button_text(p_title); save_accept->set_text(p_text); - EditorInterface::get_singleton()->popup_dialog_centered(save_accept); + save_accept->reset_size(); + EditorInterface::get_singleton()->popup_dialog_centered_clamped(save_accept, Size2i(), 0.0); } } @@ -5219,7 +5221,8 @@ void EditorNode::show_warning(const String &p_text, const String &p_title) { _close_save_scene_progress(); warning->set_text(p_text); warning->set_title(p_title); - EditorInterface::get_singleton()->popup_dialog_centered(warning); + warning->reset_size(); + EditorInterface::get_singleton()->popup_dialog_centered_clamped(warning, Size2i(), 0.0); } else { WARN_PRINT(p_title + " " + p_text); } |