Editor: Make "open 2d/3d/script editor" shortcuts configurable.

Also adds shortcuts for opening the AssetLib and for switching to the next/prev editor.
This commit is contained in:
Andreas Haas
2017-05-16 21:26:32 +02:00
parent ce2077262a
commit 3be8a94868
3 changed files with 52 additions and 23 deletions

View File

@ -440,6 +440,8 @@ private:
void _imported(Node *p_node);
void _node_renamed();
void _editor_select_next();
void _editor_select_prev();
void _editor_select(int p_which);
void _set_scene_metadata(const String &p_file, int p_idx = -1);
void _get_scene_metadata(const String &p_file);
@ -618,7 +620,8 @@ public:
enum EditorTable {
EDITOR_2D = 0,
EDITOR_3D,
EDITOR_SCRIPT
EDITOR_SCRIPT,
EDITOR_ASSETLIB
};
void set_visible_editor(EditorTable p_table) { _editor_select(p_table); }