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:
shenlei
2026-10-12 21:14:29 +09:00
co-authored by Claude Opus 5.5
parent b79fbce0b0
commit 11bd94d1ce
17 changed files with 968 additions and 397 deletions
+19
View File
@@ -330,6 +330,25 @@ namespace UI
DWORD m_dwLeftColor, m_dwRightColor, m_dwCenterColor;
};
// Mobile HUD (docs/MOBILE-ARCHITECTURE.md step 4): a round frame drawn with geometry instead of
// textures. A disc filled with a radial gradient, a bevelled rim (top colour fading to bottom
// colour) and an optional clockwise pie from 12 o'clock for cooldowns and gauges.
class CDisc : public CWindow
{
public:
static DWORD Type();
CDisc(PyObject * ppyObject) : CWindow(ppyObject) {}
virtual ~CDisc() {}
void SetDiscColors(DWORD inner, DWORD outer, DWORD rimTop, DWORD rimBottom, float rimWidth)
{ m_dwInner = inner; m_dwOuter = outer; m_dwRimTop = rimTop; m_dwRimBottom = rimBottom; m_fRimWidth = rimWidth; }
void SetDiscArc(float fraction, DWORD color) { m_fArc = fraction; m_dwArc = color; }
protected:
void OnRender() override;
BOOL OnIsType(DWORD dwType) override;
DWORD m_dwInner = 0xC0202028, m_dwOuter = 0xC0101014, m_dwRimTop = 0xFFC8A060, m_dwRimBottom = 0xFF604020, m_dwArc = 0xA0000000;
float m_fRimWidth = 3.0f, m_fArc = 0.0f;
};
class CTextLine : public CWindow
{
public: