summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-26 13:04:46 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-26 13:04:46 -0600
commit37c392ebc300148e4c0882a058e2802f7473965d (patch)
treeec98f4a5b7e460d7186f36417870046a44f6763d /editor/editor_node.cpp
parentd18f8046dd29ce004fb401aa5d8c22858855a149 (diff)
parent1deb42ad8dd6429cde94f437675c0cff3f8dcb60 (diff)
downloadredot-engine-37c392ebc300148e4c0882a058e2802f7473965d.tar.gz
Merge pull request #96414 from SaracenOne/improve_animation_warnings
Improve behaviour of AnimationPlayer warnings.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index f056a477c4..222696a608 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -5190,7 +5190,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);
}
}
@@ -5200,7 +5201,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);
}
}
@@ -5209,7 +5211,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);
}