aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/script_editor_plugin.h
diff options
context:
space:
mode:
authorPaulb232017-04-27 16:07:39 +0100
committerPaulb232017-04-27 16:07:39 +0100
commite37928bb506a153ea42778bc79251718e4c37727 (patch)
tree506309cc9a69e503714de34b1fcbd048ac1096c7 /editor/plugins/script_editor_plugin.h
parent5f15f03d38ed712d33f41ceb5bc812acf818a184 (diff)
downloadgodot-e37928bb506a153ea42778bc79251718e4c37727.tar.gz
godot-e37928bb506a153ea42778bc79251718e4c37727.tar.zst
godot-e37928bb506a153ea42778bc79251718e4c37727.zip
Added recent scripts to script editor
Diffstat (limited to '')
-rw-r--r--editor/plugins/script_editor_plugin.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.h b/editor/plugins/script_editor_plugin.h
index 6a5460916..983847dda 100644
--- a/editor/plugins/script_editor_plugin.h
+++ b/editor/plugins/script_editor_plugin.h
@@ -120,6 +120,7 @@ class ScriptEditor : public VBoxContainer {
enum {
FILE_NEW,
FILE_OPEN,
+ FILE_OPEN_RECENT,
FILE_SAVE,
FILE_SAVE_AS,
FILE_SAVE_ALL,
@@ -169,6 +170,8 @@ class ScriptEditor : public VBoxContainer {
Timer *autosave_timer;
uint64_t idle;
+ PopupMenu *recent_scripts;
+
Button *help_search;
Button *site_search;
Button *class_search;
@@ -207,6 +210,8 @@ class ScriptEditor : public VBoxContainer {
Vector<ScriptHistory> history;
int history_pos;
+ Vector<String> previous_scripts;
+
EditorHelpIndex *help_index;
void _tab_changed(int p_which);
@@ -224,6 +229,10 @@ class ScriptEditor : public VBoxContainer {
bool _test_script_times_on_disk(Ref<Script> p_for_script = Ref<Script>());
+ void _add_recent_script(String p_path);
+ void _update_recent_scripts();
+ void _open_recent_script(int p_idx);
+
void _close_tab(int p_idx, bool p_save = true);
void _close_current_tab();