You've already forked godot
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user