summaryrefslogtreecommitdiff
path: root/editor/script_create_dialog.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-06-14 23:11:41 +0200
committerGitHub <noreply@github.com>2017-06-14 23:11:41 +0200
commit19017a760cbddee9bf0b40824ae9fbf5ca6d9042 (patch)
treec0338f78ed6a476261f16ee684f0654471eae5d5 /editor/script_create_dialog.h
parent80de0c35df3aea7155c6e8026448896c3c749126 (diff)
parent8361b1ce07266350ef6b6a2d34411030b7e587b2 (diff)
Merge pull request #9158 from Hinsbart/script_templates
Add ability to use custom script templates.
Diffstat (limited to 'editor/script_create_dialog.h')
-rw-r--r--editor/script_create_dialog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/script_create_dialog.h b/editor/script_create_dialog.h
index 862d4f88f2..1adbfe3f7d 100644
--- a/editor/script_create_dialog.h
+++ b/editor/script_create_dialog.h
@@ -48,6 +48,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
LineEdit *parent_name;
Button *parent_browse_button;
OptionButton *language_menu;
+ OptionButton *template_menu;
LineEdit *file_path;
Button *path_button;
EditorFileDialog *file_browse;
@@ -68,6 +69,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
bool is_built_in;
int current_language;
bool re_check_path;
+ String script_template;
void _path_changed(const String &p_path = String());
void _lang_changed(int l = 0);
@@ -75,6 +77,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
bool _validate(const String &p_strin);
void _class_name_changed(const String &p_name);
void _parent_name_changed(const String &p_parent);
+ void _template_changed(int p_template = 0);
void _browse_path(bool browse_parent);
void _file_selected(const String &p_file);
virtual void ok_pressed();