Merge pull request #2053 from rodolforg/fix-import-button-label

Small fix for Import Game dialog labels
This commit is contained in:
Juan Linietsky 2015-10-17 12:13:33 -03:00
commit 7d33895320
1 changed files with 4 additions and 3 deletions

View File

@ -245,7 +245,8 @@ public:
project_name->clear(); project_name->clear();
if (import_mode) { if (import_mode) {
set_title("Import Existing Project:"); set_title("Import Existing Project");
get_ok()->set_text("Import");
pp->set_text("Project Path: (Must exist)"); pp->set_text("Project Path: (Must exist)");
pn->set_text("Project Name:"); pn->set_text("Project Name:");
pn->hide(); pn->hide();
@ -254,7 +255,8 @@ public:
popup_centered(Size2(500,125)); popup_centered(Size2(500,125));
} else { } else {
set_title("Create New Project:"); set_title("Create New Project");
get_ok()->set_text("Create");
pp->set_text("Project Path:"); pp->set_text("Project Path:");
pn->set_text("Project Name:"); pn->set_text("Project Name:");
pn->show(); pn->show();
@ -313,7 +315,6 @@ public:
l->add_color_override("font_color",Color(1,0.4,0.3,0.8)); l->add_color_override("font_color",Color(1,0.4,0.3,0.8));
l->set_align(Label::ALIGN_CENTER); l->set_align(Label::ALIGN_CENTER);
get_ok()->set_text("Create");
DirAccess *d = DirAccess::create(DirAccess::ACCESS_FILESYSTEM); DirAccess *d = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
project_path->set_text(d->get_current_dir()); project_path->set_text(d->get_current_dir());
memdelete(d); memdelete(d);