diff options
| author | Paulb23 | 2017-04-27 16:07:39 +0100 |
|---|---|---|
| committer | Paulb23 | 2017-04-27 16:07:39 +0100 |
| commit | e37928bb506a153ea42778bc79251718e4c37727 (patch) | |
| tree | 506309cc9a69e503714de34b1fcbd048ac1096c7 /editor/plugins/script_editor_plugin.h | |
| parent | 5f15f03d38ed712d33f41ceb5bc812acf818a184 (diff) | |
| download | godot-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.h | 9 |
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(); |
