1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Changed popup_centered by popup_centered_minsize in editor dialogs

This commit is contained in:
Franklin Sobrinho
2015-04-08 14:02:13 -03:00
parent e18c6ef63b
commit 59692d9012
19 changed files with 90 additions and 90 deletions

View File

@@ -336,7 +336,7 @@ void AnimationPlayerEditor::_animation_name_edited() {
String new_name = name->get_text();
if (new_name=="" || new_name.find(":")!=-1 || new_name.find("/")!=-1) {
error_dialog->set_text("ERROR: Invalid animation name!");
error_dialog->popup_centered(Size2(300,70));
error_dialog->popup_centered_minsize();
return;
}
@@ -347,7 +347,7 @@ void AnimationPlayerEditor::_animation_name_edited() {
if (player->has_animation(new_name)) {
error_dialog->set_text("ERROR: Animation Name Already Exists!");
error_dialog->popup_centered(Size2(300,70));
error_dialog->popup_centered_minsize();
return;
}