mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Add menu items for online docs to GUI tools (#5689)
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <imgui.h>
|
||||
#include <ntcore_cpp.h>
|
||||
#include <wpigui.h>
|
||||
#include <wpigui_openurl.h>
|
||||
|
||||
namespace gui = wpi::gui;
|
||||
|
||||
@@ -157,6 +158,15 @@ static void DisplayGui() {
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
if (ImGui::BeginMenu("Docs")) {
|
||||
if (ImGui::MenuItem("Online documentation")) {
|
||||
wpi::gui::OpenURL(
|
||||
"https://docs.wpilib.org/en/stable/docs/software/wpilib-tools/"
|
||||
"outlineviewer/");
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
ImGui::EndMenuBar();
|
||||
|
||||
// settings popup
|
||||
|
||||
Reference in New Issue
Block a user