Remove the extra mobile quick-slot 7 and 8 buttons

This commit is contained in:
shen
2026-10-19 07:24:36 -07:00
parent f64bb1899b
commit 0fcb0dcaa4
4 changed files with 7 additions and 19 deletions
+2 -5
View File
@@ -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<TouchCircle, 10> buttons;
// Attack, six skills and auto hunt.
std::array<TouchCircle, 8> 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;
}