Moved VR Settings from "Graphics" Menu

This commit is contained in:
iChris4 committed 2026-09-08 15:53:35 +02:00
1 parent 6440c5bc10
commit bf8539999d
1 file changed
+11
+11
View File
@@ -816,6 +816,12 @@ void DrawGraphicsSettings() {
} }
ImGui::Separator(); ImGui::Separator();
ImGui::Text("Graphics API: %s", GraphicsApiDisplayName()); ImGui::Text("Graphics API: %s", GraphicsApiDisplayName());
}
// The VR settings live in their own top-bar menu: they are a self-contained
// group, and keeping them out of Graphics stops that menu from running off the
// bottom of the screen.
void DrawVrSettings() {
if (ImGui::Checkbox("Enable OpenXR VR", &g_vrEnabled)) { if (ImGui::Checkbox("Enable OpenXR VR", &g_vrEnabled)) {
RuntimeConfigFile::SetVrEnabled(g_vrEnabled); RuntimeConfigFile::SetVrEnabled(g_vrEnabled);
} }
@@ -1079,6 +1085,11 @@ void DrawTopBar() {
ImGui::EndMenu(); ImGui::EndMenu();
} }
if (ImGui::BeginMenu("VR")) {
DrawVrSettings();
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Controller settings")) { if (ImGui::BeginMenu("Controller settings")) {
DrawControllerSettings(); DrawControllerSettings();
ImGui::EndMenu(); ImGui::EndMenu();