mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 09:00:28 +02:00
Add Flat Screen mode for VR races and update settings accordingly
This commit is contained in:
1 parent
2a89fac79d
commit
2a4686191e
16 files changed
+161
-50
No files matched your search
@@ -114,15 +114,23 @@ class SettingsPage(
|
||||
}
|
||||
|
||||
private fun buildVr() {
|
||||
val firstPerson = { c: TomlConfig -> c.bool("vr", "first_person") ?: false }
|
||||
// Flat Screen mode keeps races on the menu screen, which none of the race view rows reach.
|
||||
val immersive = { c: TomlConfig -> !(c.bool("vr", "flat_screen") ?: false) }
|
||||
val firstPerson = { c: TomlConfig -> immersive(c) && (c.bool("vr", "first_person") ?: false) }
|
||||
// The steering wheel and hand steering belong to the cockpit seat.
|
||||
val cockpit = { c: TomlConfig -> firstPerson(c) && stringIndex(c, "vr", "first_person_seat", SEATS) == 0 }
|
||||
section(R.string.section_vr_camera) {
|
||||
toggle(
|
||||
R.string.vr_flat_screen, R.string.vr_flat_screen_helper,
|
||||
read = { !immersive(it) },
|
||||
write = { c, value -> c.setBool("vr", "flat_screen", value) },
|
||||
)
|
||||
choice(
|
||||
R.string.vr_camera, R.string.vr_camera_helper,
|
||||
listOf(R.string.vr_camera_chase, R.string.vr_camera_first_person),
|
||||
read = { if (firstPerson(it)) 1 else 0 },
|
||||
read = { if (it.bool("vr", "first_person") == true) 1 else 0 },
|
||||
write = { c, index -> c.setBool("vr", "first_person", index == 1) },
|
||||
enabledIf = immersive,
|
||||
)
|
||||
choice(
|
||||
R.string.vr_rotation, R.string.vr_rotation_helper,
|
||||
@@ -172,6 +180,7 @@ class SettingsPage(
|
||||
read = { number(it, "vr", "lean_back_degrees", -45.0, 45.0, 0.0) },
|
||||
format = { "%.0f°".format(it) },
|
||||
write = { c, value -> c.setFloat("vr", "lean_back_degrees", value) },
|
||||
enabledIf = immersive,
|
||||
)
|
||||
}
|
||||
section(R.string.section_vr_headset) {
|
||||
@@ -203,6 +212,7 @@ class SettingsPage(
|
||||
R.string.vr_hud_screen, R.string.vr_hud_screen_helper,
|
||||
read = { it.bool("vr", "hud_virtual_screen") ?: true },
|
||||
write = { c, value -> c.setBool("vr", "hud_virtual_screen", value) },
|
||||
enabledIf = immersive,
|
||||
)
|
||||
slider(
|
||||
R.string.vr_hud_distance, R.string.vr_hud_distance_helper, 0.5, 5.0, 0.1,
|
||||
|
||||
@@ -172,6 +172,8 @@
|
||||
|
||||
<!-- VR tab -->
|
||||
<string name="section_vr_camera">Camera</string>
|
||||
<string name="vr_flat_screen">Flat Screen mode</string>
|
||||
<string name="vr_flat_screen_helper">Plays races on the same flat screen as the menus instead of all around you. The camera settings below do not apply while it is on.</string>
|
||||
<string name="vr_camera">Camera</string>
|
||||
<string name="vr_camera_helper">Ride behind the kart like the game, or sit in the driver\'s seat.</string>
|
||||
<string name="vr_camera_chase">Chase camera</string>
|
||||
@@ -218,7 +220,7 @@
|
||||
<string name="vr_hud_width">Screen width</string>
|
||||
<string name="vr_hud_width_helper">How wide the menu screen and race HUD are.</string>
|
||||
<string name="vr_passthrough">Passthrough around the menu screen</string>
|
||||
<string name="vr_passthrough_helper">Shows your room through the headset\'s cameras around the menus instead of black. Races stay fully virtual.</string>
|
||||
<string name="vr_passthrough_helper">Shows your room through the headset\'s cameras around the menus instead of black. Races stay fully virtual, except in Flat Screen mode.</string>
|
||||
|
||||
<!-- Graphics tab -->
|
||||
<string name="section_graphics">Rendering</string>
|
||||
@@ -256,7 +258,7 @@
|
||||
<string name="controls_map_z">Z</string>
|
||||
<string name="controls_map_z_value">Left trigger</string>
|
||||
<string name="controls_map_c">C</string>
|
||||
<string name="controls_map_c_value">Left grip</string>
|
||||
<string name="controls_map_c_value">Right B</string>
|
||||
<string name="controls_map_pointer">Pointer and motion</string>
|
||||
<string name="controls_map_pointer_value">Aim and move the right controller</string>
|
||||
<string name="controls_map_panel">Settings panel</string>
|
||||
|
||||
Reference in new issue
Block a user