summaryrefslogtreecommitdiff
path: root/tools/editor/script_create_dialog.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-05-04 13:24:02 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-05-04 13:24:02 -0300
commitfbbe7dcdfbd09fc6ef5614dea2183481a27e4f4e (patch)
tree4e783f0e4347a2f612e6b85398c83a492d7b090f /tools/editor/script_create_dialog.cpp
parent7f5b744b92256e42aa3c700ee88d8318732935c6 (diff)
parent6f8bd899311d459b9e391b4acf72ccfa5cc1d806 (diff)
Merge remote-tracking branch 'origin/master'
Conflicts: drivers/windows/dir_access_windows.cpp
Diffstat (limited to 'tools/editor/script_create_dialog.cpp')
-rw-r--r--tools/editor/script_create_dialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/editor/script_create_dialog.cpp b/tools/editor/script_create_dialog.cpp
index 89c0bd6ab4..35f7798ed5 100644
--- a/tools/editor/script_create_dialog.cpp
+++ b/tools/editor/script_create_dialog.cpp
@@ -5,7 +5,7 @@
/* GODOT ENGINE */
/* http://www.godotengine.org */
/*************************************************************************/
-/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur. */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the */
@@ -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);