mirror of
https://github.com/godotengine/godot.git
synced 2025-04-25 01:48:08 +08:00
Merge pull request #31523 from nekomatata/show-warning-loading
EditorNode::show_warning displays a console warning during project loading
This commit is contained in:
commit
51def4dab9
@ -3827,9 +3827,13 @@ void EditorNode::show_accept(const String &p_text, const String &p_title) {
|
||||
|
||||
void EditorNode::show_warning(const String &p_text, const String &p_title) {
|
||||
|
||||
warning->set_text(p_text);
|
||||
warning->set_title(p_title);
|
||||
warning->popup_centered_minsize();
|
||||
if (warning->is_inside_tree()) {
|
||||
warning->set_text(p_text);
|
||||
warning->set_title(p_title);
|
||||
warning->popup_centered_minsize();
|
||||
} else {
|
||||
WARN_PRINTS(p_title + " " + p_text);
|
||||
}
|
||||
}
|
||||
|
||||
void EditorNode::_copy_warning(const String &p_str) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user