watch: devices wrap, up to 3 rows

This commit is contained in:
galister
2025-12-19 00:24:40 +09:00
parent 3b44535407
commit 4dc8bb0a3a
3 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ All overlays are listed on bottom row.
padding="32" interactable="0" padding="32" interactable="0"
flex_direction="column" gap="8"> flex_direction="column" gap="8">
<!-- Top elements (device battery levels) --> <!-- Top elements (device battery levels) -->
<div flex_direction="row" id="devices" interactable="0" gap="8"> <div id="devices" interactable="0" gap="6" width="100%" max_width="400" flex_direction="row" flex_wrap="wrap">
<!-- Src here may be changed, but maintain `TrackedDeviceRole` order: HMD, Left, Right, Tracker --> <!-- Src here may be changed, but maintain `TrackedDeviceRole` order: HMD, Left, Right, Tracker -->
<Device src="watch/hmd.svg" idx="0" /> <Device src="watch/hmd.svg" idx="0" />
<Device src="watch/controller_l.svg" idx="1" /> <Device src="watch/controller_l.svg" idx="1" />

View File

@@ -59,7 +59,7 @@
padding="32" interactable="0" padding="32" interactable="0"
flex_direction="column" gap="8"> flex_direction="column" gap="8">
<!-- Top elements (device battery levels) --> <!-- Top elements (device battery levels) -->
<div flex_direction="row" id="devices" interactable="0" gap="8"> <div id="devices" interactable="0" gap="6" width="100%" max_width="400" flex_direction="row" flex_wrap="wrap">
<!-- Src here may be changed, but maintain `TrackedDeviceRole` order: HMD, Left, Right, Tracker --> <!-- Src here may be changed, but maintain `TrackedDeviceRole` order: HMD, Left, Right, Tracker -->
<Device src="watch/hmd.svg" idx="0" /> <Device src="watch/hmd.svg" idx="0" />
<Device src="watch/controller_l.svg" idx="1" /> <Device src="watch/controller_l.svg" idx="1" />

View File

@@ -42,7 +42,7 @@ use crate::{
pub const WATCH_NAME: &str = "watch"; pub const WATCH_NAME: &str = "watch";
const MAX_TOOLBOX_BUTTONS: usize = 16; const MAX_TOOLBOX_BUTTONS: usize = 16;
const MAX_DEVICES: usize = 9; const MAX_DEVICES: usize = 12;
pub const WATCH_POS: Vec3 = vec3(-0.03, -0.01, 0.125); pub const WATCH_POS: Vec3 = vec3(-0.03, -0.01, 0.125);
pub const WATCH_ROT: Quat = Quat::from_xyzw(-0.707_106_6, 0.000_796_361_8, 0.707_106_6, 0.0); pub const WATCH_ROT: Quat = Quat::from_xyzw(-0.707_106_6, 0.000_796_361_8, 0.707_106_6, 0.0);