Tighten the mobile skill arc and reduce auto-hunt artwork
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user