Files
windroost/p2_godot_sample/scripts
wushenghua 4d8d8582b8 fix: mobile UI/UX - list scroll, safe area, text overflow, battle top-right
Owner device feedback after seeing parchment skin:
- Lists could not scroll when the finger started on a button/frame; only blank
  areas scrolled. Root cause: buttons/panels defaulted to MOUSE_FILTER_STOP and
  swallowed drags. make_button/make_panel/glass_panel now use MOUSE_FILTER_PASS
  (still tappable, but drags bubble to the parent ScrollContainer).
- Header pushed ~quarter screen down: safe area subtracted window_get_position()
  (Godot 4 get_display_safe_area() is already in window coords). Now uses the
  rect directly and clamps insets to sane bounds (top<=96, bottom<=64).
- Growth page talent buttons overflowed: 4-in-a-row HBox squeezed labels. Now a
  2-column GridContainer with wider buttons; star button widened to 150px;
  buttons get an 8px content margin so text no longer touches the frame.
- Battle top-right had no text: the timer Label was created empty and never
  assigned. Added an always-on info label (enemy count / boss name) and populate
  the countdown text when a timer is visible.
- New ui_scroll_layout_test gate asserts button/panel PASS filters, 2-col grid,
  and non-empty battle top-right info. 108 gates pass.

Owner must re-verify on device; these are automated_verified, not human_reviewed.
2026-11-20 13:00:03 +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