summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-04-26 15:12:47 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-04-26 15:12:47 +0200
commit7cb52a676f3f3dbfb22a67b69810b6056e6ecc9d (patch)
tree92e972a873251d77af94b5953ef07231d5a5b019 /editor/plugins/script_text_editor.h
parent610a9bed1345c7336eb2dc5d969d7b75ac0067c2 (diff)
parent3a1246c198ac819edaf0d3f0c52f2255af0c8977 (diff)
downloadredot-engine-7cb52a676f3f3dbfb22a67b69810b6056e6ecc9d.tar.gz
Merge pull request #63515 from KoBeWi/script_jumper
Store line change in script navigation history
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();
};