Changed popup_centered by popup_centered_minsize in editor dialogs
This commit is contained in:
parent
e18c6ef63b
commit
59692d9012
19 changed files with 90 additions and 90 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue