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

Method _bookmark_item_pressed

editor/script/script_text_editor.cpp:1064–1070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062}
1063
1064void ScriptTextEditor::_bookmark_item_pressed(int p_idx) {
1065 if (p_idx < 4) { // Any item before the separator.
1066 _edit_option(bookmarks_menu->get_item_id(p_idx));
1067 } else {
1068 code_editor->goto_line_centered(bookmarks_menu->get_item_metadata(p_idx));
1069 }
1070}
1071
1072static Vector<Node *> _find_all_node_for_script(Node *p_base, Node *p_current, const Ref<Script> &p_script) {
1073 Vector<Node *> nodes;

Callers

nothing calls this directly

Calls 3

get_item_idMethod · 0.45
goto_line_centeredMethod · 0.45
get_item_metadataMethod · 0.45

Tested by

no test coverage detected