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

Method _breakpoint_item_pressed

editor/script/script_text_editor.cpp:1219–1225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217}
1218
1219void ScriptTextEditor::_breakpoint_item_pressed(int p_idx) {
1220 if (p_idx < 4) { // Any item before the separator.
1221 _edit_option(breakpoints_menu->get_item_id(p_idx));
1222 } else {
1223 code_editor->goto_line_centered(breakpoints_menu->get_item_metadata(p_idx));
1224 }
1225}
1226
1227void ScriptTextEditor::_breakpoint_toggled(int p_row) {
1228 EditorDebuggerNode::get_singleton()->set_breakpoint(script->get_path(), p_row + 1, code_editor->get_text_editor()->is_line_breakpointed(p_row));

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