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
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import ui
|
||||
import grp
|
||||
import touch
|
||||
import ui_mobile_widgets as widgets
|
||||
|
||||
class MobileJoystick(ui.Window):
|
||||
"""
|
||||
@@ -21,22 +21,9 @@ class MobileJoystick(ui.Window):
|
||||
self.knob_radius = knob_radius
|
||||
self.SetSize(radius * 2, radius * 2)
|
||||
|
||||
# 外圈底盘
|
||||
self.base_bar = ui.Bar()
|
||||
self.base_bar.SetParent(self)
|
||||
self.base_bar.AddFlag("not_pick")
|
||||
self.base_bar.SetPosition(0, 0)
|
||||
self.base_bar.SetSize(radius * 2, radius * 2)
|
||||
self.base_bar.SetColor(grp.GenerateColor(0.1, 0.1, 0.15, 0.4))
|
||||
self.base_bar.Show()
|
||||
|
||||
# 摇杆头
|
||||
self.knob = ui.Bar()
|
||||
self.knob.SetParent(self)
|
||||
self.knob.AddFlag("not_pick")
|
||||
self.knob.SetSize(knob_radius * 2, knob_radius * 2)
|
||||
self.knob.SetColor(grp.GenerateColor(0.8, 0.8, 0.9, 0.6))
|
||||
self.knob.Show()
|
||||
# 外圈底盘与摇杆头:原生圆框(ui_mobile_widgets.Disc)
|
||||
self.base_bar = widgets.MakeDisc(self, 0, 0, radius * 2, widgets.STYLE_JOY_BASE)
|
||||
self.knob = widgets.MakeDisc(self, 0, 0, knob_radius * 2, widgets.STYLE_JOY_KNOB)
|
||||
|
||||
# 未按下时停在默认位置,提示摇杆区
|
||||
if base_y is None:
|
||||
|
||||
Reference in New Issue
Block a user