1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Add option to disable loading scripts in ScriptCreateDialog

This commit is contained in:
Michael Alexsander
2020-01-08 19:43:55 -03:00
parent e97e951741
commit 8708d44a50
5 changed files with 33 additions and 16 deletions

View File

@@ -74,6 +74,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
bool is_class_name_valid;
bool is_built_in;
bool built_in_enabled;
bool load_enabled;
int current_language;
int default_language;
bool re_check_path;
@@ -126,7 +127,7 @@ protected:
static void _bind_methods();
public:
void config(const String &p_base_name, const String &p_base_path, bool p_built_in_enabled = true);
void config(const String &p_base_name, const String &p_base_path, bool p_built_in_enabled = true, bool p_load_enabled = true);
void set_inheritance_base_type(const String &p_base);
ScriptCreateDialog();
};