Store line change in script navigation history
This commit is contained in:
parent
11d3768132
commit
3a1246c198
8 changed files with 107 additions and 9 deletions
|
|
@ -99,6 +99,7 @@ class ScriptTextEditor : public ScriptEditorBase {
|
|||
|
||||
Color marked_line_color = Color(1, 1, 1);
|
||||
Color folded_code_region_color = Color(1, 1, 1);
|
||||
int previous_line = 0;
|
||||
|
||||
PopupPanel *color_panel = nullptr;
|
||||
ColorPicker *color_picker = nullptr;
|
||||
|
|
@ -164,6 +165,8 @@ protected:
|
|||
void _breakpoint_item_pressed(int p_idx);
|
||||
void _breakpoint_toggled(int p_row);
|
||||
|
||||
void _on_caret_moved();
|
||||
|
||||
void _validate_script(); // No longer virtual.
|
||||
void _update_warnings();
|
||||
void _update_errors();
|
||||
|
|
@ -260,6 +263,9 @@ public:
|
|||
|
||||
virtual void validate() override;
|
||||
|
||||
Variant get_previous_state();
|
||||
void store_previous_state();
|
||||
|
||||
ScriptTextEditor();
|
||||
~ScriptTextEditor();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue