diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2016-07-15 15:02:55 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2016-07-15 15:02:55 +0100 |
commit | b550471a148d232f50d0d1f03256fc9ef82a52f3 (patch) | |
tree | 7efdde13478a80336847f4028ad045c2b8930ae0 /scene/gui | |
parent | 3e2c7bf797bd073727e5d0272ce47aa77895935b (diff) |
Fixed breakpoint gutter toggle not updating when game is running, issue 5712
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index a680d5d873..2f18707db1 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1502,6 +1502,7 @@ void TextEdit::_input_event(const InputEvent& p_input_event) { int gutter=cache.style_normal->get_margin(MARGIN_LEFT); if (mb.x > gutter && mb.x <= gutter + cache.breakpoint_gutter_width + 3) { set_line_as_breakpoint(row, !is_line_set_as_breakpoint(row)); + emit_signal("breakpoint_toggled", row); return; } } @@ -4468,6 +4469,7 @@ void TextEdit::_bind_methods() { ADD_SIGNAL(MethodInfo("cursor_changed")); ADD_SIGNAL(MethodInfo("text_changed")); ADD_SIGNAL(MethodInfo("request_completion")); + ADD_SIGNAL(MethodInfo("breakpoint_toggled", PropertyInfo( Variant::INT, "row"))); BIND_CONSTANT( MENU_CUT ); BIND_CONSTANT( MENU_COPY ); |