Hide mobile HP and SP numeric labels
This commit is contained in:
@@ -665,3 +665,4 @@
|
||||
{"time": "2026-10-19T14:22:27.432875+00:00", "event": "authorized_mobile_ui_refinement", "unit": "host/TouchController", "finding": "Shrink AUTO artwork to 72% while preserving hit target; tighten the single six-skill arc from radius140 to120 with 25-degree spacing and preserved clockwise order. Strengthen all-button overlap checks to actual 1.15 expanded hit radius.", "evidence": ["audit/evidence/mobile-ui/compact-controls.json", "tests/host/touch_layout_test.cpp", "docs/ANDROID-TESTING.md"], "result": "Six layout scenarios PASS; macOS and Android builds PASS, installed and visually checked on connected Mi 8 Lite. No production server change."}
|
||||
{"time": "2026-10-19T14:24:36.040212+00:00", "event": "authorized_mobile_ui_refinement", "unit": "host/TouchController", "finding": "Remove mobile quick-slot buttons 7/8 from the button list and eight-control geometry; remove their render and pointer assignment branches. Keep attack, six-skill arc and AUTO.", "evidence": ["src/host/touch_controller.h", "src/host/touch_layout.h", "tests/host/touch_layout_test.cpp", "docs/ANDROID-TESTING.md"], "result": "Layout checks PASS across six screen/safe-area/target configurations. Android and macOS builds PASS. Updated APK installed on Mi 8 Lite; no server changes."}
|
||||
{"time": "2026-10-19T19:10:33.466877+00:00", "event": "authorized_mobile_ui_refinement", "unit": "ScriptLib/MobileHUD, MeshPort notice and chat preview", "finding": "Three named primary entries with seven-action collapsing drawer; contrasting HP/SP numbers, lower/dim AUTO, bounded three-line chat preview using platform render scissor without modifying chat history, network status below buffs with duplicate-state suppression.", "evidence": ["audit/evidence/mobile-ui/hud-refinement.json", "tests/port/port_login_flow_test.cpp", "tests/meshport/test_login.py", "docs/ANDROID-TESTING.md"], "result": "158 Python tests, nine notice tests, native mobile menu/chat/scissor/gesture flow, six combat layouts and macOS/Android builds passed. APK installed on locked Mi 8 Lite; new on-device visual acceptance remains pending unlock. No server deployment or aggregate parity upgrade."}
|
||||
{"time": "2026-10-19T22:09:36.221469+00:00", "event": "authorized_mobile_ui_refinement", "unit": "ScriptLib/MobileHUD", "finding": "Remove HP/SP numeric labels and their dark plate at user request; retain original native gauges, recovery updates and stamina strip.", "evidence": ["src/platform/ScriptLib/MobileHUDScript.inc", "tests/port/port_login_flow_test.cpp", "docs/ANDROID-TESTING.md"], "result": "Focused native mobile flow PASS; Android and macOS builds PASS. APK installed successfully on Mi 8 Lite. Device remains locked; visual acceptance pending unlock. No server changes."}
|
||||
|
||||
@@ -57,7 +57,7 @@ ANDROID_SERIAL=<serial> python3 tools/perf/run_render_isolation.py build/qa/devi
|
||||
顶部仅保留带名称的背包、商城、更多。角色、好友、设置、任务、挂机设置、帮助和聊天在“更多”的三列面板中展开,点击功能后自动收起;HUD隐藏时也收起。
|
||||
左侧保留移动摇杆和主要视野,副本/战令/生物学家入口继续在小地图外环。
|
||||
自动狩猎移到战斗区下缘,未开启时淡化底色和边框,技能弧形、按钮大小和顺序保持。
|
||||
生命/法力数字以14号字和独立深色底板显示;组网提示放在状态/增益下方,成功6秒后消失,重复状态不延长提示。
|
||||
生命/法力只显示原生状态条,不显示具体数值或数字底板;组网提示放在状态/增益下方,成功6秒后消失,重复状态不延长提示。
|
||||
聊天预览最多显示三行并限制宽度,消息按原方式渐隐;打开输入或完整聊天记录沿用原界面。
|
||||
裁剪通过 `chat.RenderPreview` 的平台绘制剪裁完成,消息和历史列表不做删减,绘制后恢复剪裁范围。
|
||||
|
||||
|
||||
@@ -127,18 +127,7 @@ class Status(ui.Window):
|
||||
taskbar.GetChild(name).Hide()
|
||||
self.face = RoundAction(self, "", action, uiCharacter.FACE_IMAGE_DICT.get(net.GetMainActorRace()))
|
||||
self.name = _Text(self, "")
|
||||
self.numbersBack = ui.Bar()
|
||||
self.numbersBack.SetParent(self)
|
||||
self.numbersBack.AddFlag("not_pick")
|
||||
self.numbersBack.SetColor(0x99131619)
|
||||
self.numbersBack.Show()
|
||||
self.hp = _Text(self, "")
|
||||
self.sp = _Text(self, "")
|
||||
self.energy = _Text(self, "")
|
||||
self.hp.SetFontName("Tahoma:14")
|
||||
self.sp.SetFontName("Tahoma:14")
|
||||
self.hp.SetPackedFontColor(0xFFFFE9E4)
|
||||
self.sp.SetPackedFontColor(0xFFD7ECFF)
|
||||
self.values = (0, 1, 0, 1, 0, 1)
|
||||
self.lastStatus = None
|
||||
self.Show()
|
||||
@@ -146,7 +135,7 @@ class Status(ui.Window):
|
||||
def Place(self, scale):
|
||||
self.scale = scale
|
||||
self.SetPosition(int(12*scale), int(10*scale))
|
||||
self.SetSize(int(300*scale), int(110*scale))
|
||||
self.SetSize(int(300*scale), int(80*scale))
|
||||
# The original three bars are native-size: their outer frame is 34 pixels tall.
|
||||
self.face.Place(18*scale, 14*scale+12, 34)
|
||||
self.name.SetPosition(int(66*scale), 0)
|
||||
@@ -154,14 +143,7 @@ class Status(ui.Window):
|
||||
bar_x = int(18*scale) + 34 - 56
|
||||
self.gauge.SetPosition(bar_x, int(14*scale))
|
||||
self.frame.SetPosition(bar_x, int(14*scale))
|
||||
self.hp.SetHorizontalAlignLeft()
|
||||
self.sp.SetHorizontalAlignLeft()
|
||||
text_x = int(66*scale)
|
||||
self.numbersBack.SetPosition(text_x-5, int(51*scale))
|
||||
self.numbersBack.SetSize(int(224*scale), int(37*scale))
|
||||
self.hp.SetPosition(text_x, int(53*scale))
|
||||
self.sp.SetPosition(text_x, int(71*scale))
|
||||
self.energy.SetPosition(text_x, int(92*scale))
|
||||
self.energy.SetPosition(int(66*scale), int(56*scale))
|
||||
|
||||
def Refresh(self):
|
||||
hp, mh = player.GetStatus(player.HP), player.GetStatus(player.MAX_HP)
|
||||
@@ -174,8 +156,6 @@ class Status(ui.Window):
|
||||
self.taskbar.RefreshStatus()
|
||||
self.lastStatus = status
|
||||
self.name.SetText("%s Lv.%d" % (player.GetName(), player.GetStatus(player.LEVEL)))
|
||||
self.hp.SetText(L("生命 %d / %d") % (hp, mh) if mh > 0 else L("生命 --"))
|
||||
self.sp.SetText(L("法力 %d / %d") % (sp, ms) if ms > 0 else L("法力 --"))
|
||||
energy = player.GetStatus(player.ENERGY)
|
||||
remaining = player.GetStatus(player.ENERGY_END_TIME) - app.GetGlobalTimeStamp()
|
||||
if energy > 0 and remaining > 0:
|
||||
|
||||
@@ -518,8 +518,7 @@ int main(int argc, char** argv)
|
||||
"assert not _hud.menuExpanded and not _hud.menuBackdrop.IsShow()\n"
|
||||
"assert _hud.window.interface.wndInventory.IsShow()\n"
|
||||
"_hud.window.interface.wndInventory.Hide()\n"
|
||||
"assert player.FeatureLocaleToUTF8(_hud.status.hp.GetText()).decode('utf-8').startswith(u'\\u751f\\u547d ')\n"
|
||||
"assert player.FeatureLocaleToUTF8(_hud.status.sp.GetText()).decode('utf-8').startswith(u'\\u6cd5\\u529b ')"));
|
||||
"assert _hud.status.gauge.IsShow() and _hud.status.frame.IsShow()"));
|
||||
CHECK(py("_hud.ToggleMore()\n_menu_b=_hud.drawer[0]"));
|
||||
std::string drawerXY;
|
||||
CHECK(PythonBoot::Evaluate("'%d %d' % _menu_b.GetGlobalPosition()", &drawerXY, nullptr));
|
||||
|
||||
Reference in New Issue
Block a user