diff options
| author | Rémi Verschelde | 2016-07-18 00:52:36 +0200 |
|---|---|---|
| committer | GitHub | 2016-07-18 00:52:36 +0200 |
| commit | 62eae7cbe25f3e2f5cf2cc3bd4cb8d13a6845ef3 (patch) | |
| tree | f49bd157c22882a2013676b1f81411481492e1ea /scene/gui/text_edit.cpp | |
| parent | 8de5aedb9ef7d4c17027b41b40677d1892f4158c (diff) | |
| parent | 2c9468a46ac7be81085baec4778fcbf3075b2c70 (diff) | |
| download | godot-62eae7cbe25f3e2f5cf2cc3bd4cb8d13a6845ef3.tar.gz godot-62eae7cbe25f3e2f5cf2cc3bd4cb8d13a6845ef3.tar.zst godot-62eae7cbe25f3e2f5cf2cc3bd4cb8d13a6845ef3.zip | |
Merge pull request #5723 from Paulb23/toggle_breakpoint_gutter_issue_5712
Fixed toggle breakpoint gutter not updating when the game is running, issue 5712
Diffstat (limited to 'scene/gui/text_edit.cpp')
| -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 3449be1d9..46b64ce40 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -1509,6 +1509,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; } } @@ -4488,6 +4489,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 ); |
