You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Changed popup_centered by popup_centered_minsize in editor dialogs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user