Commit 891d131
committed
Fix portrait controller visibility and add per-button action toggles with undo
- Portrait gameplay: switch from VStack split to ZStack overlay so the game
fills the screen and the virtual controller is bottom-aligned without an
opaque dark background panel for built-in skins.
- VirtualControllerView: remove Color(white: 0.10) fallback in portraitLayout
and replace single action-pad visibility with independent per-button checks
for triangle, cross, square, and circle.
- PadLayoutStore: add per-button visibility fallback (explicit key wins, then
group fallback). Save/load per-button visibility for action buttons in a
separate INI namespace with -1 sentinel for absent keys.
- PadLayoutEditView: add ephemeral undo stack for in-progress edits. Cancel
restores the original snapshot. Save clears undo state and persists.
- Editor visibility row: split the combined ACTION toggle into four separate
toggles with user-facing labels: Toggle: X, Toggle: O, Toggle: Triangle,
Toggle: Square.1 parent c239987 commit 891d131
4 files changed
Lines changed: 193 additions & 48 deletions
File tree
- app/src/main/swift
- Models
- Views
- Settings
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
144 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
146 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
147 | 153 | | |
148 | 154 | | |
149 | 155 | | |
| |||
192 | 198 | | |
193 | 199 | | |
194 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
195 | 209 | | |
196 | 210 | | |
197 | 211 | | |
| |||
266 | 280 | | |
267 | 281 | | |
268 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
269 | 290 | | |
270 | 291 | | |
271 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
92 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
93 | 94 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 95 | + | |
103 | 96 | | |
| 97 | + | |
104 | 98 | | |
105 | 99 | | |
106 | 100 | | |
| |||
0 commit comments