mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Enable script templates by default
This commit is contained in:
parent
9a5d6d1049
commit
a299004622
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ void ScriptCreateDialog::_notification(int p_what) {
|
|||
} else {
|
||||
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);
|
||||
} break;
|
||||
|
||||
|
|
@ -849,6 +849,7 @@ void ScriptCreateDialog::_bind_methods() {
|
|||
ScriptCreateDialog::ScriptCreateDialog() {
|
||||
if (EditorSettings::get_singleton()) {
|
||||
EDITOR_DEF("_script_setup_templates_dictionary", Dictionary());
|
||||
EDITOR_DEF("_script_setup_use_script_templates", true);
|
||||
}
|
||||
|
||||
/* Main Controls */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue