mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 04:04:18 +02:00
Moved VR Settings from "Graphics" Menu
This commit is contained in:
1 parent
6440c5bc10
commit
bf8539999d
1 file changed
+11
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user