MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / config

Method config

editor/script/script_create_dialog.cpp:203–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void 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
222void ScriptCreateDialog::set_inheritance_base_type(const String &p_base) {
223 base_type = p_base;

Callers 2

_menu_optionMethod · 0.45

Calls 5

get_project_metadataMethod · 0.80
set_textMethod · 0.45
deselectMethod · 0.45
get_selectedMethod · 0.45
set_pressedMethod · 0.45

Tested by

no test coverage detected