mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add Close All,Close Other Tabs to script editor
This commit is contained in:
parent
e132adf49f
commit
88b5287731
2 changed files with 78 additions and 0 deletions
|
|
@ -116,6 +116,8 @@ class ScriptEditor : public VBoxContainer {
|
|||
FILE_SAVE_THEME,
|
||||
FILE_SAVE_THEME_AS,
|
||||
FILE_CLOSE,
|
||||
FILE_CLOSE_OTHERS,
|
||||
FILE_CLOSE_ALL,
|
||||
CLOSE_DOCS,
|
||||
EDIT_UNDO,
|
||||
EDIT_REDO,
|
||||
|
|
@ -188,6 +190,7 @@ class ScriptEditor : public VBoxContainer {
|
|||
EditorHelpSearch *help_search_dialog;
|
||||
|
||||
ItemList *script_list;
|
||||
PopupMenu *script_list_menu;
|
||||
HSplitContainer *script_split;
|
||||
ItemList *members_overview;
|
||||
bool members_overview_enabled;
|
||||
|
|
@ -239,6 +242,8 @@ class ScriptEditor : public VBoxContainer {
|
|||
void _close_tab(int p_idx);
|
||||
|
||||
void _close_current_tab();
|
||||
void _close_other_tabs(int idx);
|
||||
void _close_all_tab(int except);
|
||||
void _close_docs_tab();
|
||||
|
||||
bool grab_focus_block;
|
||||
|
|
@ -283,6 +288,8 @@ class ScriptEditor : public VBoxContainer {
|
|||
|
||||
void _script_selected(int p_idx);
|
||||
|
||||
void _script_rmb_selected(int p_idx, const Vector2 & p_pos);
|
||||
|
||||
void _find_scripts(Node *p_base, Node *p_current, Set<Ref<Script> > &used);
|
||||
|
||||
void _tree_changed();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue