From 0fcb0dcaa427a0490285df9afbddf62391220d15 Mon Sep 17 00:00:00 2001 From: shen <> Date: Mon, 19 Oct 2026 07:24:36 -0700 Subject: [PATCH] Remove the extra mobile quick-slot 7 and 8 buttons --- audit/history.jsonl | 1 + docs/ANDROID-TESTING.md | 2 +- src/host/touch_controller.h | 16 +++------------- src/host/touch_layout.h | 7 ++----- 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/audit/history.jsonl b/audit/history.jsonl index 06c36549..e28a7480 100644 --- a/audit/history.jsonl +++ b/audit/history.jsonl @@ -663,3 +663,4 @@ {"time": "2026-10-19T13:52:09.182541+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/Ava2ItemShop", "finding": "Vendor active uiitemshopnew.py; native GC93 and authenticated GD/DG76, InnoDB wallet/catalogue/order/award transaction, durable token and confirmed quote, bounded atomic decoder, native UI locale/event/scroll/preview adapters. Correct db prototype pointer index after sort. Classic item layout and CWindow algorithms remain unchanged.", "evidence": ["docs/AVA2-ITEMSHOP.md", "tests/wiki/test_itemshop.py", "tools/ava2-native/sources.json", "audit/evidence/itemshop/"], "result": "157 client tests; 31 server feature scripts including native-layout, integer-total and real prototype-index body tests. macOS/sbtest purchase, redemption, refusal/rollback, restart replay, SQL loss/lock timeout, lost-result retry and real widget callbacks verified. 49 original offers with matching IDs/prices/icons enabled only on sbtest; other 168 and recharge/wheel remain closed. Android offline build only; no production deployment or aggregate parity upgrade."} {"time": "2026-10-19T14:13:41.385041+00:00", "event": "authorized_mobile_ui_fix", "unit": "ScriptLib/MobileHUD and host/TouchController", "finding": "Fix UTF-8 minimap tooltip boundaries. Retain original skill arc per user feedback; smaller secondary menu artwork with 48dp hit targets, compact menus with drawer and native shop entry. Proportional two-finger camera zoom, stationary-stick fix and gesture cancellation.", "evidence": ["tests/wiki/test_minimap_buttons.py", "tests/port/port_login_flow_test.cpp", "audit/evidence/mobile-ui/acceptance.json", "audit/evidence/itemshop/minimap-tooltips.json", "docs/ANDROID-TESTING.md"], "result": "158 Python tests; focused real TouchController/camera offline flow; Mi 8 Lite Android multi-pointer and menu checks. No production deployment or aggregate parity upgrade."} {"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."} diff --git a/docs/ANDROID-TESTING.md b/docs/ANDROID-TESTING.md index 941efa95..253f21eb 100644 --- a/docs/ANDROID-TESTING.md +++ b/docs/ANDROID-TESTING.md @@ -51,7 +51,7 @@ ANDROID_SERIAL= python3 tools/perf/run_render_isolation.py build/qa/devi ## 手机操作与布局(2026-10-19) -根据本轮用户反馈,六个技能保留原先围绕右下攻击键的弧形排列,道具和自动狩猎位置随原技能布局保持一致。 +根据本轮用户反馈,六个技能保留围绕右下攻击键的弧形排列;自动狩猎放在外侧,底部7/8两个额外快捷按钮已移除。 菜单和自动狩猎按钮图形缩小28%,同时保留至少48dp触摸区域;头像和技能按钮保持原尺寸。 六个技能的弧半径从140缩到120(约14%),角间距从20°调整为25°,按原顺序排列,含15%扩展点击区也不重叠。 角色、背包、好友、设置及商城/更多沿屏幕上缘排列在小地图左侧;较窄画面自动换行。任务、挂机设置、帮助、聊天在“更多”中展开。 diff --git a/src/host/touch_controller.h b/src/host/touch_controller.h index ad289f78..666b52f6 100644 --- a/src/host/touch_controller.h +++ b/src/host/touch_controller.h @@ -18,7 +18,7 @@ class TouchController { public: struct ButtonDef { - int id; // 1 = attack, 2..7 = skills, 8 = auto hunt, 9..10 = bottom quick slots + int id; // 1 = attack, 2..7 = skills, 8 = auto hunt int dik; float x, y, radius; const char* label; @@ -506,14 +506,6 @@ public: } #endif - if (btn.id >= 9) { - const std::string label = std::to_string(quick_slot_index(btn.id) + 1); - const float h = r * 0.65f; - draw_segment_text(commands, label, btn.x - segment_text_width(label, h) / 2, - btn.y - h / 2, h, 0xFFD8C49A); - continue; - } - switch (btn.id) { case 1: { // ATK: crossed swords const float s = r * 0.35f; @@ -693,8 +685,8 @@ private: } static constexpr int kAutoHuntButton = 8; - static bool is_quick_slot_button(int id) { return (id >= 2 && id <= 7) || id == 9 || id == 10; } - static int quick_slot_index(int id) { return id >= 9 ? id - 3 : id - 2; } + static bool is_quick_slot_button(int id) { return id >= 2 && id <= 7; } + static int quick_slot_index(int id) { return id - 2; } // Clear "AUTO" vector button; green glow while the hunt runs. static void draw_auto_hunt_button(std::vector& commands, const ButtonDef& btn) { @@ -770,8 +762,6 @@ private: buttons_.push_back({6, 0x06, 0, 0, 22.0f, "S5", 0x80603090, 0xD08050D0}); buttons_.push_back({7, 0x07, 0, 0, 22.0f, "S6", 0x80308090, 0xD050C0D0}); buttons_.push_back({kAutoHuntButton, 0, 0, 0, 22.0f, "AUTO", 0x80707070, 0xD0FFFFFF}); - buttons_.push_back({9, 0x08, 0, 0, 24.0f, "7", 0xB032211B, 0xE0664B2D}); - buttons_.push_back({10, 0x09, 0, 0, 24.0f, "8", 0xB032211B, 0xE0664B2D}); for (auto& btn : buttons_) { if (is_quick_slot_button(btn.id)) { btn.color_idle = 0xA032211B; diff --git a/src/host/touch_layout.h b/src/host/touch_layout.h index 195c68bd..93193a57 100644 --- a/src/host/touch_layout.h +++ b/src/host/touch_layout.h @@ -9,8 +9,8 @@ namespace mt_host { struct TouchCircle { float x, y, radius; }; struct TouchLayout { - // Attack, six skills, auto hunt, two bottom item quick slots. - std::array buttons; + // Attack, six skills and auto hunt. + std::array buttons; float scale; }; @@ -33,9 +33,6 @@ inline TouchLayout make_touch_layout(float width, float height, float safe_inset } // Auto hunt button nestled compactly just outside the skill arc. layout.buttons[7] = {ax - 166 * s, ay - 42 * s, 22 * s}; - const float item_center = std::min(width / 2, layout.buttons[1].x - 114 * s); - layout.buttons[8] = {item_center - 36 * s, height - 38 * s, 24 * s}; - layout.buttons[9] = {item_center + 36 * s, height - 38 * s, 24 * s}; return layout; }