aboutsummaryrefslogtreecommitdiff
path: root/editor/script_create_dialog.h
diff options
context:
space:
mode:
authormbalint122017-04-15 17:35:06 +0200
committermbalint122017-04-15 23:29:09 +0200
commita3afec588ce4f5643dcbae6d0e1ab14b898f6263 (patch)
tree4f2ef62735153206da4275ad1095cd39f67dfe69 /editor/script_create_dialog.h
parente55a496f79e80f9ab08c96bf0f74c565203758bb (diff)
downloadgodot-a3afec588ce4f5643dcbae6d0e1ab14b898f6263.tar.gz
godot-a3afec588ce4f5643dcbae6d0e1ab14b898f6263.tar.zst
godot-a3afec588ce4f5643dcbae6d0e1ab14b898f6263.zip
Diffstat (limited to 'editor/script_create_dialog.h')
-rw-r--r--editor/script_create_dialog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/script_create_dialog.h b/editor/script_create_dialog.h
index 499886fac..113d4a468 100644
--- a/editor/script_create_dialog.h
+++ b/editor/script_create_dialog.h
@@ -44,6 +44,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
Label *error_label;
Label *path_error_label;
LineEdit *parent_name;
+ Button *parent_browse_button;
OptionButton *language_menu;
LineEdit *file_path;
EditorFileDialog *file_browse;
@@ -52,6 +53,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
AcceptDialog *alert;
bool path_valid;
bool create_new;
+ bool is_browsing_parent;
String initial_bp;
EditorSettings *editor_settings;
@@ -60,7 +62,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
void _built_in_pressed();
bool _validate(const String &p_strin);
void _class_name_changed(const String &p_name);
- void _browse_path();
+ void _browse_path(bool browse_parent);
void _file_selected(const String &p_file);
virtual void ok_pressed();
void _create_new();