aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/script_create_dialog.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-04-08 20:34:06 -0300
committerJuan Linietsky2015-04-08 20:34:06 -0300
commitdd12bd406e0c0b0c18047dcaf6a9e5bac95f1ee6 (patch)
tree768cdd9944fd63e859019203f3c6edd4ba33efc6 /tools/editor/script_create_dialog.cpp
parente18c6ef63bb57290b023fde01391f8bdcdfe5aed (diff)
parent59692d9012a320014366d3dcecac645a64a4d5f2 (diff)
downloadgodot-dd12bd406e0c0b0c18047dcaf6a9e5bac95f1ee6.tar.gz
godot-dd12bd406e0c0b0c18047dcaf6a9e5bac95f1ee6.tar.zst
godot-dd12bd406e0c0b0c18047dcaf6a9e5bac95f1ee6.zip
Merge pull request #1654 from TheHX/fix_editor_dialog
Changed popup_centered by popup_centered_minsize in editor dialogs
Diffstat (limited to 'tools/editor/script_create_dialog.cpp')
-rw-r--r--tools/editor/script_create_dialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/editor/script_create_dialog.cpp b/tools/editor/script_create_dialog.cpp
index 89c0bd6ab..886ee31bc 100644
--- a/tools/editor/script_create_dialog.cpp
+++ b/tools/editor/script_create_dialog.cpp
@@ -99,12 +99,12 @@ void ScriptCreateDialog::ok_pressed() {
if (class_name->is_editable() && !_validate(class_name->get_text())) {
alert->set_text("Class Name is Invalid!");
- alert->popup_centered(Size2(200,60));
+ alert->popup_centered_minsize();
return;
}
if (!_validate(parent_name->get_text())) {
alert->set_text("Parent Class Name is Invalid!");
- alert->popup_centered(Size2(200,60));
+ alert->popup_centered_minsize();
return;
@@ -134,7 +134,7 @@ void ScriptCreateDialog::ok_pressed() {
if (!path_valid) {
alert->set_text("Path is Invalid!");
- alert->popup_centered(Size2(200,60));
+ alert->popup_centered_minsize();
return;
}
@@ -142,7 +142,7 @@ void ScriptCreateDialog::ok_pressed() {
if (err!=OK) {
alert->set_text("Could not create script in filesystem: "+String(""));
- alert->popup_centered(Size2(200,60));
+ alert->popup_centered_minsize();
return;
}
scr->set_path(lpath);