mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Add main_gutter (breakpoints, bookmarks, execution lines) to code_edit
This commit is contained in:
parent
907f9f2a84
commit
4d7df24d46
19 changed files with 403 additions and 377 deletions
|
@ -2682,7 +2682,8 @@ void VisualScriptEditor::reload(bool p_soft) {
|
|||
_update_graph();
|
||||
}
|
||||
|
||||
void VisualScriptEditor::get_breakpoints(List<int> *p_breakpoints) {
|
||||
Array VisualScriptEditor::get_breakpoints() {
|
||||
Array breakpoints;
|
||||
List<StringName> functions;
|
||||
script->get_function_list(&functions);
|
||||
for (List<StringName>::Element *E = functions.front(); E; E = E->next()) {
|
||||
|
@ -2691,10 +2692,11 @@ void VisualScriptEditor::get_breakpoints(List<int> *p_breakpoints) {
|
|||
for (List<int>::Element *F = nodes.front(); F; F = F->next()) {
|
||||
Ref<VisualScriptNode> vsn = script->get_node(E->get(), F->get());
|
||||
if (vsn->is_breakpoint()) {
|
||||
p_breakpoints->push_back(F->get() - 1); //subtract 1 because breakpoints in text start from zero
|
||||
breakpoints.push_back(F->get() - 1); //subtract 1 because breakpoints in text start from zero
|
||||
}
|
||||
}
|
||||
}
|
||||
return breakpoints;
|
||||
}
|
||||
|
||||
void VisualScriptEditor::add_callback(const String &p_function, PackedStringArray p_args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue