summaryrefslogtreecommitdiffstats
path: root/tools/editor/script_create_dialog.h
diff options
context:
space:
mode:
authorAdham Zahran <adham.zahran@hotmail.com>2016-10-12 22:23:48 +0200
committerAdham Zahran <adham.zahran@hotmail.com>2016-10-20 23:53:15 +0200
commita84a46176729ffab82703bdff62fcde73dd6477d (patch)
treef9dc4ed104d69aa0b6478fc49e44c68abe9af576 /tools/editor/script_create_dialog.h
parent78d97b060a6873a454e710380cb9ef1bde5e4c65 (diff)
downloadredot-engine-a84a46176729ffab82703bdff62fcde73dd6477d.tar.gz
fix #6031 when creating a script the language will be what you selected last time
Diffstat (limited to 'tools/editor/script_create_dialog.h')
-rw-r--r--tools/editor/script_create_dialog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/script_create_dialog.h b/tools/editor/script_create_dialog.h
index 181989402e..c71ea16d39 100644
--- a/tools/editor/script_create_dialog.h
+++ b/tools/editor/script_create_dialog.h
@@ -33,6 +33,7 @@
#include "scene/gui/line_edit.h"
#include "scene/gui/option_button.h"
#include "tools/editor/editor_file_dialog.h"
+#include "tools/editor/editor_settings.h"
#include "scene/gui/check_button.h"
class ScriptCreateDialog : public ConfirmationDialog {
@@ -50,6 +51,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
AcceptDialog *alert;
bool path_valid;
String initial_bp;
+ EditorSettings *editor_settings;
void _path_changed(const String& p_path=String());