1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Added an help menu

Also renamed the "tutorials" button in the script editor to be consistent with the help menu entry.
Fixed #8921
This commit is contained in:
Nuno Donato
2017-05-26 15:34:41 +01:00
parent ef66f8451c
commit 7661cb5a62
5 changed files with 57 additions and 11 deletions

View File

@@ -371,10 +371,12 @@ void EditorHelpIndex::_tree_item_selected() {
void EditorHelpIndex::select_class(const String &p_class) {
EditorNode *editor = EditorNode::get_singleton();
if (!tree_item_map.has(p_class))
return;
tree_item_map[p_class]->select(0);
class_list->ensure_cursor_is_visible();
editor->call("_editor_select", EditorNode::EDITOR_SCRIPT); // in case EditorHelpIndex beeen invoked on top of other editor window
}
void EditorHelpIndex::popup() {