|
@@ -979,6 +979,10 @@ void ScriptEditor::_menu_option(int p_option) {
|
|
|
|
|
|
OS::get_singleton()->shell_open("https://docs.godotengine.org/");
|
|
OS::get_singleton()->shell_open("https://docs.godotengine.org/");
|
|
} break;
|
|
} break;
|
|
|
|
+ case REQUEST_DOCS: {
|
|
|
|
+
|
|
|
|
+ OS::get_singleton()->shell_open("https://github.com/godotengine/godot-docs/issues/new");
|
|
|
|
+ } break;
|
|
|
|
|
|
case WINDOW_NEXT: {
|
|
case WINDOW_NEXT: {
|
|
|
|
|
|
@@ -1308,6 +1312,7 @@ void ScriptEditor::_notification(int p_what) {
|
|
EditorSettings::get_singleton()->connect("settings_changed", this, "_editor_settings_changed");
|
|
EditorSettings::get_singleton()->connect("settings_changed", this, "_editor_settings_changed");
|
|
help_search->set_icon(get_icon("HelpSearch", "EditorIcons"));
|
|
help_search->set_icon(get_icon("HelpSearch", "EditorIcons"));
|
|
site_search->set_icon(get_icon("Instance", "EditorIcons"));
|
|
site_search->set_icon(get_icon("Instance", "EditorIcons"));
|
|
|
|
+ request_docs->set_icon(get_icon("Issue", "EditorIcons"));
|
|
|
|
|
|
script_forward->set_icon(get_icon("Forward", "EditorIcons"));
|
|
script_forward->set_icon(get_icon("Forward", "EditorIcons"));
|
|
script_back->set_icon(get_icon("Back", "EditorIcons"));
|
|
script_back->set_icon(get_icon("Back", "EditorIcons"));
|
|
@@ -3079,6 +3084,12 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) {
|
|
menu_hb->add_child(site_search);
|
|
menu_hb->add_child(site_search);
|
|
site_search->set_tooltip(TTR("Open Godot online documentation"));
|
|
site_search->set_tooltip(TTR("Open Godot online documentation"));
|
|
|
|
|
|
|
|
+ request_docs = memnew(ToolButton);
|
|
|
|
+ request_docs->set_text(TTR("Request Docs"));
|
|
|
|
+ request_docs->connect("pressed", this, "_menu_option", varray(REQUEST_DOCS));
|
|
|
|
+ menu_hb->add_child(request_docs);
|
|
|
|
+ request_docs->set_tooltip(TTR("Help improve the Godot documentation by giving feedback"));
|
|
|
|
+
|
|
help_search = memnew(ToolButton);
|
|
help_search = memnew(ToolButton);
|
|
help_search->set_text(TTR("Search Help"));
|
|
help_search->set_text(TTR("Search Help"));
|
|
help_search->connect("pressed", this, "_menu_option", varray(SEARCH_HELP));
|
|
help_search->connect("pressed", this, "_menu_option", varray(SEARCH_HELP));
|