Refine mobile HUD navigation, status readability and bounded chat preview
This commit is contained in:
@@ -455,8 +455,6 @@ public:
|
||||
for (const auto& btn : buttons_) {
|
||||
// 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;
|
||||
if (btn.id == kAutoHuntButton) {
|
||||
auto visual = btn;
|
||||
@@ -464,6 +462,7 @@ public:
|
||||
draw_auto_hunt_button(commands, visual);
|
||||
continue;
|
||||
}
|
||||
draw_control_disc(commands, btn.x, btn.y, r, btn.pressed);
|
||||
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
if (is_quick_slot_button(btn.id)) {
|
||||
@@ -694,16 +693,16 @@ private:
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
on = PythonBoot::AutoHuntIsEnabled();
|
||||
#endif
|
||||
const uint32_t disc = btn.pressed ? (on ? 0xEB257D32 : 0xEB16110C) : (on ? 0xDD1B5E20 : 0x8A16110C);
|
||||
const uint32_t disc = btn.pressed ? (on ? 0xEB257D32 : 0xEB16110C) : (on ? 0xDD1B5E20 : 0x4416110C);
|
||||
draw_filled_disc(commands, btn.x, btn.y, btn.radius * 0.88f, disc);
|
||||
|
||||
const uint32_t ring_col = on ? 0xFF80FF90 : (btn.pressed ? 0xFFB89545 : 0x8A997847);
|
||||
const uint32_t ring_col = on ? 0xFF80FF90 : (btn.pressed ? 0xFFB89545 : 0x55997847);
|
||||
draw_circle(commands, btn.x, btn.y, btn.radius * 0.90f, ring_col, 32);
|
||||
if (on) {
|
||||
draw_circle(commands, btn.x, btn.y, btn.radius * 0.72f, 0x6680FF90, 32);
|
||||
}
|
||||
|
||||
const uint32_t text_col = on ? 0xFFFFFFFF : (btn.pressed ? 0xFFFFFFFF : 0xFFD8C49A);
|
||||
const uint32_t text_col = on ? 0xFFFFFFFF : (btn.pressed ? 0xFFFFFFFF : 0xBBD8C49A);
|
||||
const float h = std::round(btn.radius * 0.44f);
|
||||
const float w = std::round(h * 0.52f);
|
||||
const float gap = std::max(1.5f, std::round(h * 0.18f));
|
||||
|
||||
@@ -31,8 +31,8 @@ inline TouchLayout make_touch_layout(float width, float height, float safe_inset
|
||||
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 - 166 * s, ay - 42 * s, 22 * s};
|
||||
// Secondary action at the lower edge of combat controls, away from the central view.
|
||||
layout.buttons[7] = {ax - 60 * s, ay + 60 * s, 22 * s};
|
||||
return layout;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user