Mobile HUD: minimap radar in its frame, top row at the screen edge

Preview radar drew at the fixed PC spot; it now follows the uiminimap
window (CPythonMiniMap::GetScreenPosition) and its open state. On
Android the top safe inset came from the hidden status bar's gesture
zone; Ava2Surface takes the top only from the cutout and visible bars.
The preview keyboard-hint header is skipped in touch mode, and
--game-script also runs with --preview-data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-10-13 11:15:37 +09:00
co-authored by Claude Opus 5.5
parent 15b2397b54
commit c132891aef
5 changed files with 112 additions and 23 deletions
+21
View File
@@ -1568,3 +1568,24 @@ Verified:
`ava2.speedtree_forest` (without that option the 9 asset tests are skipped).
- Desktop phone layout and the device both render trees with real branches and fronds.
- Device game phase: 60.3 fps, max frame gap 16.6 ms, 0 frames over 25 ms.
### 2026-10-13 Mobile HUD: minimap frame and top inset
- Minimap outside its frame (preview): with `--preview-data` no map loads, so
`miniMap.Render` returns early and the green circle was app_loop's dev radar, drawn at
the fixed PC spot `(screen_width - 132, 5)`. `CPythonMiniMap::Render` now records the
window position before the map check (`GetScreenPosition`), and the radar draws there.
It opens the minimap once via `ShowMiniMap()` (normally `AtlasInfo` does that on map
load), so `CanShow()` follows its close/open buttons. A real map was not affected.
- Top HUD row too low: SDL folds system-gesture insets into the safe area. In landscape
fullscreen the status bar is hidden but its swipe zone still gave a 120 px (67 logical)
top inset. `Ava2Activity.Ava2Surface` re-sends the insets with the top taken only from
the display cutout and visible system bars (device cutout is left-only).
- The preview keyboard-hint header is not drawn in touch mode; it overlapped the HUD.
- `--game-script` now also runs with `--preview-data` (desktop probing of the mobile HUD).
Verified on the device: minimap inside its frame, portrait/status bars and the entry row
at the top edge. Desktop ctest 59/59.
Outstanding: after a tap the cursor stays where the finger lifted, so hover tooltips
(e.g. "[F6] Battle pass") remain until the next touch.