Files
windroost/p2_godot_sample/scripts
wushenghua ed8b63e9d3 fix: battle safe area, blank top-right buttons, invisible shell nav
Owner device feedback:
1) Battle top bar sat under the status bar / Dynamic Island. Root cause:
   BattleHud.set_safe_area() was never called by anyone, so its layout rect
   used zero insets. Wired it through BattleScene.set_safe_area() from the
   shell's already-computed _safe_top/_safe_bottom, both at battle presentation
   and on viewport/safe-area change. Test injects 59/34 insets and asserts the
   HUD's resource bar global top equals the inset.
2) Top-right gear and pause rendered as empty boxes: "⚙" and "⏸" are absent
   from the bundled CJK font. Replaced with a gear ICON + "设置" label and a
   "暂停"/"Pause" label; target marker "▼" replaced with a known-good "◆".
   refresh_static_text now keeps these labels localized.
3) Shell bottom nav was completely off-screen (pos.y=844 on an 844-tall
   viewport): PRESET_BOTTOM_WIDE left offset_top=0, so minimum-size growth
   pushed it below the screen. Pin both offsets explicitly (76px bar above the
   home indicator) and grow the page host to match. The first tab also showed
   "[hud.nav.map]" (missing key) -- mapped it to hud.nav.expedition.
   Four tabs now visible on every non-battle page and use the same labels and
   destinations as the battle nav, so page relationships are consistent.

108 gates pass; normal-render captures inspected for battle/skyport/map.
agent_visual_reviewed -- owner must confirm on device.
2026-11-20 13:55:55 +08:00
..
2026-11-06 18:16:26 +08:00
2026-11-06 18:47:38 +08:00
2026-11-06 18:47:38 +08:00