summaryrefslogtreecommitdiff
path: root/tools/editor/script_create_dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/editor/script_create_dialog.h')
-rw-r--r--tools/editor/script_create_dialog.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/editor/script_create_dialog.h b/tools/editor/script_create_dialog.h
index c71ea16d39..df16efc73c 100644
--- a/tools/editor/script_create_dialog.h
+++ b/tools/editor/script_create_dialog.h
@@ -5,7 +5,7 @@
/* GODOT ENGINE */
/* http://www.godotengine.org */
/*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur. */
+/* Copyright (c) 2007-2017 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 */
@@ -37,7 +37,7 @@
#include "scene/gui/check_button.h"
class ScriptCreateDialog : public ConfirmationDialog {
- OBJ_TYPE(ScriptCreateDialog,ConfirmationDialog);
+ GDCLASS(ScriptCreateDialog,ConfirmationDialog);
LineEdit *class_name;
Label *error_label;
@@ -50,6 +50,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
VBoxContainer *path_vb;
AcceptDialog *alert;
bool path_valid;
+ bool create_new;
String initial_bp;
EditorSettings *editor_settings;
@@ -62,6 +63,9 @@ class ScriptCreateDialog : public ConfirmationDialog {
void _browse_path();
void _file_selected(const String& p_file);
virtual void ok_pressed();
+ void _create_new();
+ void _load_exist();
+ void _update_controls();
protected:
static void _bind_methods();