mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-04 07:52:22 +00:00
HUD: adjust position of director controls
- Do not collide with player name
- Do not avoid colliding with lap number
- Lap number is still very readable even when it's
heavily obscured
This commit is contained in:
parent
0e7b4c0987
commit
ea5c589f18
1 changed files with 8 additions and 5 deletions
|
|
@ -55,7 +55,7 @@ struct List
|
||||||
col.text(label_);
|
col.text(label_);
|
||||||
col = col.x(left ? -(kButtonWidth + kButtonMargin) : width() - (kButtonWidth + kFieldSpacing));
|
col = col.x(left ? -(kButtonWidth + kButtonMargin) : width() - (kButtonWidth + kFieldSpacing));
|
||||||
|
|
||||||
if (r_splitscreen)
|
//if (r_splitscreen)
|
||||||
{
|
{
|
||||||
auto small_button_offset = [&]
|
auto small_button_offset = [&]
|
||||||
{
|
{
|
||||||
|
|
@ -72,10 +72,12 @@ struct List
|
||||||
|
|
||||||
col.y(small_button_offset()).small_button(button_, pressed_);
|
col.y(small_button_offset()).small_button(button_, pressed_);
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
col.y(-4).button(button_, pressed_);
|
col.y(-4).button(button_, pressed_);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
@ -112,7 +114,8 @@ struct List
|
||||||
col = col.x(field.width());
|
col = col.x(field.width());
|
||||||
}
|
}
|
||||||
|
|
||||||
row_ = row_.y(r_splitscreen ? -13 : -17);
|
//row_ = row_.y(r_splitscreen ? -13 : -17);
|
||||||
|
row_ = row_.y(-13);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
@ -173,13 +176,13 @@ void K_drawSpectatorHUD(boolean director)
|
||||||
switch (r_splitscreen)
|
switch (r_splitscreen)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
return List(director ? 80 : 20, 20);
|
return List(director ? 20 : 20, 34);
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
return List(40, 20);
|
return List(40, 30);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return List(10, 20);
|
return List(10, 24);
|
||||||
}
|
}
|
||||||
}();
|
}();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue