Tighten the mobile skill arc and reduce auto-hunt artwork
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"device": "Mi 8 Lite",
|
||||
"screen_logical": [
|
||||
1169,
|
||||
600
|
||||
],
|
||||
"mode": "offline UI acceptance",
|
||||
"auto_hunt_visual_scale": 0.72,
|
||||
"auto_hunt_hit_target": "unchanged",
|
||||
"skill_button_size": "unchanged",
|
||||
"skill_arc_radius_before": 140,
|
||||
"skill_arc_radius_after": 120,
|
||||
"skill_angle_step_before": 20,
|
||||
"skill_angle_step_after": 25,
|
||||
"layout_scenarios": 6,
|
||||
"expanded_hit_circle_factor": 1.15,
|
||||
"bounds_and_nonoverlap": "PASS",
|
||||
"android_build_and_install": "PASS",
|
||||
"macos_build": "PASS",
|
||||
"screenshot": "build/phone-compact-controls-20261019/after.png"
|
||||
}
|
||||
@@ -662,3 +662,4 @@
|
||||
{"time": "2026-10-19T06:35:09.108370+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/Ava2NativeSystems", "finding": "Vendor active AVA2 uiBattlePassEx, uiWiki/WikiUI, uiDropItem and uiEventCalendarNew; preserve classic SHOP_SIGN39 by moving event payload to GC214, configured-db battlepass persistence, real loaded drop data and original CWindow algorithms. Correct active-versus-legacy protocol mapping.", "evidence": ["docs/AVA2-NATIVE-SYSTEMS.md", "tests/wiki/test_native_systems.py", "tools/ava2-native/sources.json", "docs/AVA2-PARITY-PLAN.md"], "result": "146 client tests, 30 server feature scripts with updated version-marker retest, native macOS/Android offline builds; sbtest mission/final idempotency, persistent native views, drop data, scoped calendar/icon verified. Production game a8d606ea deployed; backup /root/backup-native-systems/20261019-083154. No aggregate parity upgrade; phone not tested."}
|
||||
{"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."}
|
||||
|
||||
@@ -52,7 +52,8 @@ ANDROID_SERIAL=<serial> python3 tools/perf/run_render_isolation.py build/qa/devi
|
||||
## 手机操作与布局(2026-10-19)
|
||||
|
||||
根据本轮用户反馈,六个技能保留原先围绕右下攻击键的弧形排列,道具和自动狩猎位置随原技能布局保持一致。
|
||||
菜单按钮图形缩小28%,同时保留至少48dp触摸区域;头像和战斗按钮不随次要菜单缩小。
|
||||
菜单和自动狩猎按钮图形缩小28%,同时保留至少48dp触摸区域;头像和技能按钮保持原尺寸。
|
||||
六个技能的弧半径从140缩到120(约14%),角间距从20°调整为25°,按原顺序排列,含15%扩展点击区也不重叠。
|
||||
角色、背包、好友、设置及商城/更多沿屏幕上缘排列在小地图左侧;较窄画面自动换行。任务、挂机设置、帮助、聊天在“更多”中展开。
|
||||
左侧保留移动摇杆和主要视野,副本/战令/生物学家入口继续在小地图外环。
|
||||
|
||||
|
||||
@@ -453,12 +453,15 @@ public:
|
||||
|
||||
// Right-side attack and quick-slot buttons.
|
||||
for (const auto& btn : buttons_) {
|
||||
draw_control_disc(commands, btn.x, btn.y, btn.radius, btn.pressed);
|
||||
// Auto hunt is a secondary action: smaller art, unchanged accessible hit radius.
|
||||
const float r = btn.radius * (btn.id == kAutoHuntButton ? 0.72f : 1.0f);
|
||||
draw_control_disc(commands, btn.x, btn.y, r, btn.pressed);
|
||||
|
||||
const uint32_t icon_col = 0xFFFFFFFF;
|
||||
const float r = btn.radius;
|
||||
if (btn.id == kAutoHuntButton) {
|
||||
draw_auto_hunt_button(commands, btn);
|
||||
auto visual = btn;
|
||||
visual.radius = r;
|
||||
draw_auto_hunt_button(commands, visual);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,18 +21,18 @@ inline TouchLayout make_touch_layout(float width, float height, float safe_inset
|
||||
const float s = layout.scale;
|
||||
const float ax = width - safe_inset - 74 * s;
|
||||
// Lowered attack button for thumb resting near the bottom edge.
|
||||
const float ay = height - 88 * s;
|
||||
const float ay = height - 94 * s;
|
||||
layout.buttons[0] = {ax, ay, 42 * s};
|
||||
// Compact single-layer skill arc in the upper-left of attack button:
|
||||
// 20-degree spacing from 170 to 270 degrees at radius 140 keeps the skills tightly
|
||||
// wrapped around the attack button without encroaching on the minimap or screen center.
|
||||
// A tighter single skill arc retains full touch targets: widening angular spacing
|
||||
// to 25 degrees lets the radius shrink from 140 to 120 without overlapping even
|
||||
// the 15% expanded hit circles. Keep the existing clockwise skill order.
|
||||
for (int slot = 0; slot < 6; ++slot) {
|
||||
const float angle = (170.0f + 20.0f * slot) * 3.14159265f / 180.0f;
|
||||
layout.buttons[slot + 1] = {ax + std::cos(angle) * 140 * s,
|
||||
ay + std::sin(angle) * 140 * s, 22 * s};
|
||||
const float angle = (165.0f + 25.0f * slot) * 3.14159265f / 180.0f;
|
||||
layout.buttons[slot + 1] = {ax + std::cos(angle) * 120 * s,
|
||||
ay + std::sin(angle) * 120 * s, 22 * s};
|
||||
}
|
||||
// Auto hunt button nestled compactly just outside the skill arc.
|
||||
layout.buttons[7] = {ax - 195 * s, ay - 50 * s, 22 * s};
|
||||
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};
|
||||
|
||||
@@ -9,7 +9,7 @@ int main() {
|
||||
struct Screen { float width, height, inset, target; };
|
||||
for (const auto screen : {Screen{640, 360, 24, 48}, Screen{800, 600, 0, 48},
|
||||
Screen{1300, 600, 40, 48}, Screen{1067, 600, 32, 72},
|
||||
Screen{1366, 1024, 62, 48}}) {
|
||||
Screen{1366, 1024, 62, 48}, Screen{1169, 600, 0, 74}}) {
|
||||
const auto layout = mt_host::make_touch_layout(screen.width, screen.height, screen.inset, screen.target);
|
||||
const auto& attack = layout.buttons[0];
|
||||
float previous_angle = -1000;
|
||||
@@ -24,6 +24,7 @@ int main() {
|
||||
"skills leave the bottom status and menu strip clear");
|
||||
const float dx = b.x - attack.x, dy = b.y - attack.y;
|
||||
const float distance = std::hypot(dx, dy);
|
||||
check(distance <= 121 * layout.scale, "the skill arc stays compact around attack");
|
||||
if (i == 1) first_distance = distance;
|
||||
check(std::abs(distance - first_distance) < 0.01f, "all six skills occupy one ring");
|
||||
float angle = std::atan2(dy, dx);
|
||||
@@ -33,7 +34,7 @@ int main() {
|
||||
}
|
||||
for (int j = 0; j < i; ++j) {
|
||||
const auto& other = layout.buttons[j];
|
||||
check(std::hypot(b.x - other.x, b.y - other.y) > 1.05f * (b.radius + other.radius),
|
||||
check(std::hypot(b.x - other.x, b.y - other.y) > 1.15f * (b.radius + other.radius),
|
||||
"expanded touch areas cannot activate a neighboring control");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user