mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-17 23:21:05 +00:00
Merge branch 'thin-intermission-names' into 'master'
Thin names for 9+ player intermission See merge request KartKrew/Kart-Public!37
This commit is contained in:
commit
6e9f689443
2 changed files with 11 additions and 19 deletions
16
src/k_kart.c
16
src/k_kart.c
|
@ -7097,19 +7097,15 @@ void HU_DrawTabRankings(INT32 x, INT32 y, playersort_t *tab, INT32 scorelines, I
|
||||||
continue; //ignore them.
|
continue; //ignore them.
|
||||||
|
|
||||||
if (netgame // don't draw it offline
|
if (netgame // don't draw it offline
|
||||||
&& tab[i].num != serverplayer)
|
&& tab[i].num != serverplayer)
|
||||||
HU_drawPing(x + ((i < 8) ? -19 : rightoffset + 13), y+2, playerpingtable[tab[i].num], false);
|
HU_drawPing(x + ((i < 8) ? -19 : rightoffset + 13), y+2, playerpingtable[tab[i].num], false);
|
||||||
|
|
||||||
if (scorelines > 8)
|
STRBUFCPY(strtime, tab[i].name);
|
||||||
strlcpy(strtime, tab[i].name, 6);
|
|
||||||
else
|
|
||||||
STRBUFCPY(strtime, tab[i].name);
|
|
||||||
|
|
||||||
V_DrawString(x + 20, y,
|
if (scorelines > 8)
|
||||||
((tab[i].num == whiteplayer)
|
V_DrawThinString(x + 20, y, ((tab[i].num == whiteplayer) ? hilicol : 0)|V_ALLOWLOWERCASE|V_6WIDTHSPACE, strtime);
|
||||||
? hilicol|V_ALLOWLOWERCASE
|
else
|
||||||
: V_ALLOWLOWERCASE),
|
V_DrawString(x + 20, y, ((tab[i].num == whiteplayer) ? hilicol : 0)|V_ALLOWLOWERCASE, strtime);
|
||||||
strtime);
|
|
||||||
|
|
||||||
if (players[tab[i].num].mo->color)
|
if (players[tab[i].num].mo->color)
|
||||||
{
|
{
|
||||||
|
|
|
@ -474,16 +474,12 @@ void Y_IntermissionDrawer(void)
|
||||||
V_DrawScaledPatch(x+16, y-4, 0, W_CachePatchName(va("K_CHILI%d", cursorframe+1), PU_CACHE));
|
V_DrawScaledPatch(x+16, y-4, 0, W_CachePatchName(va("K_CHILI%d", cursorframe+1), PU_CACHE));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gutter)
|
STRBUFCPY(strtime, data.match.name[i]);
|
||||||
strlcpy(strtime, data.match.name[i], 6);
|
|
||||||
else
|
|
||||||
STRBUFCPY(strtime, data.match.name[i]);
|
|
||||||
|
|
||||||
V_DrawString(x+36, y,
|
if (!gutter)
|
||||||
((data.match.num[i] == whiteplayer)
|
V_DrawThinString(x+36, y, ((data.match.num[i] == whiteplayer) ? hilicol : 0)|V_ALLOWLOWERCASE|V_6WIDTHSPACE, strtime);
|
||||||
? hilicol|V_ALLOWLOWERCASE
|
else
|
||||||
: V_ALLOWLOWERCASE),
|
V_DrawString(x+36, y, ((data.match.num[i] == whiteplayer) ? hilicol : 0)|V_ALLOWLOWERCASE, strtime);
|
||||||
strtime);
|
|
||||||
|
|
||||||
if (data.match.rankingsmode)
|
if (data.match.rankingsmode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue