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

Method _script_selected

editor/script/script_editor_plugin.cpp:2020–2025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2018}
2019
2020void ScriptEditor::_script_selected(int p_idx) {
2021 grab_focus_block = !Input::get_singleton()->is_mouse_button_pressed(MouseButton::LEFT); //amazing hack, simply amazing
2022
2023 _go_to_tab(script_list->get_item_metadata(p_idx));
2024 grab_focus_block = false;
2025}
2026
2027void ScriptEditor::ensure_select_current() {
2028 if (tab_container->get_tab_count() && tab_container->get_current_tab() >= 0) {

Callers

nothing calls this directly

Calls 2

get_item_metadataMethod · 0.45

Tested by

no test coverage detected