summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/plugins/script_text_editor.h')
-rw-r--r--editor/plugins/script_text_editor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.h b/editor/plugins/script_text_editor.h
index 2ea73d4c73..de89fe458c 100644
--- a/editor/plugins/script_text_editor.h
+++ b/editor/plugins/script_text_editor.h
@@ -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();
};