Commit 8ce563a
feat(world-scene): tidy HUD buttons — collapse zoom cluster, swap arrange icon (#65)
- Remove the top-right slider toggle button; rely on the existing
DevPalette command "Show/Hide world controls" (Cmd+K) as the entry.
- Collapse the three zoom buttons (Zoom in / Zoom out / Reset view)
into a single "Reset view" button (RotateCcw icon). The +/-/0
keyboard shortcuts still zoom/reset and are advertised in the
button's aria-label.
- Swap the arrange-mode icon from Move (4-arrow) to Pencil to match
the edit-mode semantic.
- Update HUD test: panel-only controls (rain/music/bird) now seeded
via a Map-backed localStorage stub (matches DevPalette.test.tsx
pattern). Adds a regression guard asserting the legacy slider toggle
is absent.
Co-authored-by: Reza Ilmi <reza.ilmi@gt.tech.gov.sg>1 parent 15b519d commit 8ce563a
3 files changed
Lines changed: 51 additions & 42 deletions
File tree
- src/components
- student-space/hud
- test/components/student-space/hud
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 1 | + | |
14 | 2 | | |
15 | 3 | | |
16 | 4 | | |
| |||
129 | 117 | | |
130 | 118 | | |
131 | 119 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 120 | + | |
137 | 121 | | |
138 | 122 | | |
139 | 123 | | |
140 | 124 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 125 | | |
152 | 126 | | |
153 | 127 | | |
| |||
399 | 373 | | |
400 | 374 | | |
401 | 375 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
409 | 381 | | |
410 | 382 | | |
411 | 383 | | |
| |||
Lines changed: 42 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
8 | 27 | | |
9 | 28 | | |
10 | 29 | | |
| |||
61 | 80 | | |
62 | 81 | | |
63 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
64 | 91 | | |
65 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
66 | 98 | | |
67 | 99 | | |
68 | 100 | | |
69 | 101 | | |
70 | | - | |
| 102 | + | |
71 | 103 | | |
72 | | - | |
73 | | - | |
| 104 | + | |
| 105 | + | |
74 | 106 | | |
75 | 107 | | |
76 | 108 | | |
| |||
87 | 119 | | |
88 | 120 | | |
89 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
90 | 127 | | |
91 | 128 | | |
92 | 129 | | |
| |||
0 commit comments