mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Enable script templates by default
(cherry picked from commit a299004622
)
This commit is contained in:
parent
ce8f9dfea8
commit
07596299e6
1 changed files with 2 additions and 1 deletions
|
@ -124,7 +124,7 @@ void ScriptCreateDialog::_notification(int p_what) {
|
||||||
} else {
|
} else {
|
||||||
language_menu->select(default_language);
|
language_menu->select(default_language);
|
||||||
}
|
}
|
||||||
is_using_templates = EDITOR_DEF("_script_setup_use_script_templates", false);
|
is_using_templates = EDITOR_GET("_script_setup_use_script_templates");
|
||||||
use_templates->set_pressed(is_using_templates);
|
use_templates->set_pressed(is_using_templates);
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
@ -849,6 +849,7 @@ void ScriptCreateDialog::_bind_methods() {
|
||||||
ScriptCreateDialog::ScriptCreateDialog() {
|
ScriptCreateDialog::ScriptCreateDialog() {
|
||||||
if (EditorSettings::get_singleton()) {
|
if (EditorSettings::get_singleton()) {
|
||||||
EDITOR_DEF("_script_setup_templates_dictionary", Dictionary());
|
EDITOR_DEF("_script_setup_templates_dictionary", Dictionary());
|
||||||
|
EDITOR_DEF("_script_setup_use_script_templates", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Main Controls */
|
/* Main Controls */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue