From ab3718eb2899919628b094859ddf5ac0fc5adb36 Mon Sep 17 00:00:00 2001 From: James Hogan Date: Mon, 23 Aug 2021 11:50:09 +0100 Subject: [PATCH] gui/dialogs/vr-options: Add mirror options Add options to the vr-options dialog to allow the mirror to be toggled, and the mirror mode to be changed (which reloads the compositor if changed). --- Video/graphics-properties.xml | 2 ++ gui/dialogs/vr-options.xml | 52 +++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/Video/graphics-properties.xml b/Video/graphics-properties.xml index 718b595b6..3b5104350 100644 --- a/Video/graphics-properties.xml +++ b/Video/graphics-properties.xml @@ -82,6 +82,8 @@ particular list. /sim/rendering/dynamic-lighting/enabled /sim/rendering/dynamic-lighting/max-pointlights /sim/rendering/dynamic-lighting/max-spotlights + /sim/vr/mirror-enabled + /sim/vr/mirror-mode diff --git a/gui/dialogs/vr-options.xml b/gui/dialogs/vr-options.xml index de7256b92..3dada14c1 100644 --- a/gui/dialogs/vr-options.xml +++ b/gui/dialogs/vr-options.xml @@ -97,6 +97,58 @@ + + hbox + 1 + + + + + left + + /sim/vr/mirror-enabled + true + + dialog-apply + + + nasal + + + + true + + 250 + true + /sim/vr/mirror-mode + AUTOMATIC + NONE + LEFT + RIGHT + LEFT_RIGHT + + dialog-apply + + + nasal + + + + + + + + + + true