Mobile HUD layout: disc widgets, quickslot wheel and belt (mobile step 4)
Native CDisc window for procedural round frames; ui_mobile_widgets (RoundButton, QuickSlotDisc); HUD laid out as the phone plan: player panel, top-right entry row with minimap, left button column, attack disc with two quickslot rings, potion belt on quickslot page 4, exp bar. The PC taskbar and its tooltips are hidden in mobile mode. Adds global quickslot use/add/move for the belt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
b79fbce0b0
commit
11bd94d1ce
@@ -1255,3 +1255,49 @@ Outstanding: no device run (background/resume, surface recreation, audio
|
||||
resume, server keepalive while paused); low memory only logs (no cache purge);
|
||||
the HUD reads the insets only when it is built; iOS lifecycle needs the event
|
||||
watch to do the save work synchronously.
|
||||
|
||||
### 2026-10-12 Mobile step 4 — mobile HUD layout
|
||||
|
||||
The touch HUD (`upstream/python-root/ui_mobile_*.py`, mobile mode only) now
|
||||
follows the planned phone layout instead of the step-3 prototype:
|
||||
|
||||
- Native `UI::CDisc` (`wndMgr.RegisterDisc` / `SetDiscColors` /
|
||||
`SetDiscArc`, `WT_DISC`): radial-gradient disc with a bevelled rim and an
|
||||
optional clockwise pie arc, drawn with `SDL_RenderGeometry`. All round
|
||||
frames are procedural; icons come only from AVA2's own taskbar / skill /
|
||||
item / face textures.
|
||||
- `ui_mobile_widgets.py`: `Disc`, `RoundButton` (icon or label, fires on
|
||||
release inside), `QuickSlotDisc` (one `ui.SlotWindow` slot inside a disc;
|
||||
tap uses it, tap while dragging adds or moves into it — the
|
||||
`uitaskbar.AddQuickSlot` logic; refresh is a one-slot
|
||||
`TaskBar.RefreshQuickSlot`).
|
||||
- Layout (inset by `touch.GetSafeArea()`): top-left face disc
|
||||
(`uiCharacter.FACE_IMAGE_DICT`) + "Lv. name" + HP/SP/stamina gauges with
|
||||
the original `AffectShower` below; original `uiTarget.TargetBoard` stays top
|
||||
centre; top-right row Messenger / Status / Inventory / Menu (menu panel:
|
||||
Skill, Quest, Guild, System) with the original minimap and event icon under
|
||||
it; left column Quest / Skill / Emote / Chat plus the original
|
||||
`GameButtonWindow` hint buttons in a second column; bottom-right attack disc
|
||||
(r 60, `touch.SetAttackButton`) with 8 quickslots on two rings (current
|
||||
quickslot page, cycles pages 1-3) and page / ride (`/ride`, the Ctrl+G
|
||||
command) / pick-up buttons; bottom centre potion belt = quickslot page 4
|
||||
(global 24-31); 3 px experience bar at the bottom edge.
|
||||
- `interfaceModule.ShowDefaultWindows` / `ShowAllWindows` call
|
||||
`MobileHUD.AdoptDefaultWindows`: hides the PC taskbar (and its TOP_MOST
|
||||
HP/SP/EXP tooltips, which only the taskbar's OnUpdate hides), expanded
|
||||
taskbars and energy bar, moves the minimap, chat and game hint buttons.
|
||||
`game.GameWindow` calls `AdoptGameWindows` after the event icon opens.
|
||||
- New `player.RequestUseGlobalQuickSlot` / `RequestAddGlobalQuickSlot` /
|
||||
`RequestMoveGlobalQuickSlotToGlobalQuickSlot` (global < 32, same
|
||||
CG_QUICKSLOT packets as the local variants) for the belt; switching
|
||||
`SetQuickPage` was not usable because it refreshes the inventory.
|
||||
|
||||
Verified: `ava2.touch_game` (taskbar hidden, belt = globals 24-31, minimap
|
||||
under the top row, HUD buttons are UI while open world / joystick / attack are
|
||||
not, attack disc pixels drawn, insets move the player panel),
|
||||
`ava2.python` (global quickslot packets and range limits), 53/53 desktop
|
||||
tests, desktop screenshot reviewed, Android APK builds.
|
||||
Outstanding: no device run; minimap is still the original round one; labels
|
||||
are English; chat input line can overlap the wheel's page button while typing;
|
||||
no auto-hunt / target-lock buttons; Android keeps the 1024x768 letterboxed
|
||||
logical size (step 5 scaling); the HUD reads the safe area only when built.
|
||||
|
||||
Reference in New Issue
Block a user