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

Method _sbox_input

editor/gui/create_dialog.cpp:543–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543void CreateDialog::_sbox_input(const Ref<InputEvent> &p_event) {
544 // Redirect navigational key events to the tree.
545 Ref<InputEventKey> key = p_event;
546 if (key.is_valid()) {
547 if (key->is_action("ui_up", true) || key->is_action("ui_down", true) || key->is_action("ui_page_up") || key->is_action("ui_page_down")) {
548 search_options->gui_input(key);
549 search_box->accept_event();
550 } else if (key->is_action_pressed("ui_select", true)) {
551 TreeItem *ti = search_options->get_selected();
552 if (ti) {
553 ti->set_collapsed(!ti->is_collapsed());
554 }
555 search_box->accept_event();
556 }
557 }
558}
559
560void CreateDialog::_notification(int p_what) {
561 switch (p_what) {

Callers

nothing calls this directly

Calls 8

is_actionMethod · 0.80
accept_eventMethod · 0.80
is_validMethod · 0.45
gui_inputMethod · 0.45
is_action_pressedMethod · 0.45
get_selectedMethod · 0.45
set_collapsedMethod · 0.45
is_collapsedMethod · 0.45

Tested by

no test coverage detected