| 201 | } |
| 202 | |
| 203 | void ScriptCreateDialog::config(const String &p_base_name, const String &p_base_path, bool p_built_in_enabled, bool p_load_enabled) { |
| 204 | parent_name->set_text(p_base_name); |
| 205 | parent_name->deselect(); |
| 206 | built_in_name->set_text(""); |
| 207 | |
| 208 | file_path->set_text(p_base_path); |
| 209 | file_path->deselect(); |
| 210 | |
| 211 | built_in_enabled = p_built_in_enabled; |
| 212 | load_enabled = p_load_enabled; |
| 213 | |
| 214 | _language_changed(language_menu->get_selected()); |
| 215 | |
| 216 | if (_can_be_built_in()) { |
| 217 | built_in->set_pressed(EditorSettings::get_singleton()->get_project_metadata("script_setup", "create_built_in_script", false)); |
| 218 | _built_in_pressed(); |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | void ScriptCreateDialog::set_inheritance_base_type(const String &p_base) { |
| 223 | base_type = p_base; |
no test coverage detected