mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +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 = col.x(left ? -(kButtonWidth + kButtonMargin) : width() - (kButtonWidth + kFieldSpacing));
|
||||
|
||||
if (r_splitscreen)
|
||||
//if (r_splitscreen)
|
||||
{
|
||||
auto small_button_offset = [&]
|
||||
{
|
||||
|
|
@ -72,10 +72,12 @@ struct List
|
|||
|
||||
col.y(small_button_offset()).small_button(button_, pressed_);
|
||||
}
|
||||
#if 0
|
||||
else
|
||||
{
|
||||
col.y(-4).button(button_, pressed_);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
@ -112,7 +114,8 @@ struct List
|
|||
col = col.x(field.width());
|
||||
}
|
||||
|
||||
row_ = row_.y(r_splitscreen ? -13 : -17);
|
||||
//row_ = row_.y(r_splitscreen ? -13 : -17);
|
||||
row_ = row_.y(-13);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
@ -173,13 +176,13 @@ void K_drawSpectatorHUD(boolean director)
|
|||
switch (r_splitscreen)
|
||||
{
|
||||
case 0:
|
||||
return List(director ? 80 : 20, 20);
|
||||
return List(director ? 20 : 20, 34);
|
||||
|
||||
case 1:
|
||||
return List(40, 20);
|
||||
return List(40, 30);
|
||||
|
||||
default:
|
||||
return List(10, 20);
|
||||
return List(10, 24);
|
||||
}
|
||||
}();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue