| 2018 | } |
| 2019 | |
| 2020 | void 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 | |
| 2027 | void ScriptEditor::ensure_select_current() { |
| 2028 | if (tab_container->get_tab_count() && tab_container->get_current_tab() >= 0) { |
nothing calls this directly
no test coverage detected