summaryrefslogtreecommitdiffstats
path: root/editor/script_create_dialog.h
diff options
context:
space:
mode:
authorRedMser <redmser.jj2@gmail.com>2023-06-11 18:23:48 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-03-05 09:43:29 +0100
commit2bd714e34eb57b3fff2c9eaff0eb59ac2cb515aa (patch)
tree7ec18020c3d986dafe5078a4e394a749933111c8 /editor/script_create_dialog.h
parenta07dd0d6a520723c4838fb4b65461a16b7a50f90 (diff)
downloadredot-engine-2bd714e34eb57b3fff2c9eaff0eb59ac2cb515aa.tar.gz
Allow configuring the script filename casing rule
Defaults to "Auto", which detects the casing based on the preference of the currently selected language (C# for example prefers PascalCase whereas GDScript prefers snake_case).
Diffstat (limited to 'editor/script_create_dialog.h')
-rw-r--r--editor/script_create_dialog.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/script_create_dialog.h b/editor/script_create_dialog.h
index 66301ea3b9..c8f043b420 100644
--- a/editor/script_create_dialog.h
+++ b/editor/script_create_dialog.h
@@ -71,7 +71,6 @@ class ScriptCreateDialog : public ConfirmationDialog {
bool is_browsing_parent = false;
String path_error;
String template_inactive_message;
- String initial_bp;
bool is_new_script_created = true;
bool is_path_valid = false;
bool supports_built_in = false;
@@ -82,7 +81,6 @@ class ScriptCreateDialog : public ConfirmationDialog {
bool is_using_templates = true;
bool built_in_enabled = true;
bool load_enabled = true;
- int current_language;
int default_language;
bool re_check_path = false;
@@ -117,6 +115,7 @@ class ScriptCreateDialog : public ConfirmationDialog {
Vector<ScriptLanguage::ScriptTemplate> _get_user_templates(const ScriptLanguage *p_language, const StringName &p_object, const String &p_dir, const ScriptLanguage::TemplateLocation &p_origin) const;
ScriptLanguage::ScriptTemplate _parse_template(const ScriptLanguage *p_language, const String &p_path, const String &p_filename, const ScriptLanguage::TemplateLocation &p_origin, const String &p_inherits) const;
String _get_script_origin_label(const ScriptLanguage::TemplateLocation &p_origin) const;
+ String _adjust_file_path(const String &p_base_path) const;
protected:
void _notification(int p_what);