mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 05:11:34 +00:00
Draw icons for directories
This commit is contained in:
parent
b177673195
commit
2fcb087d50
1 changed files with 9 additions and 2 deletions
11
src/m_menu.c
11
src/m_menu.c
|
@ -5403,6 +5403,7 @@ static void M_DrawReplayHut(void)
|
||||||
for (i = 0; i < (INT16)sizedirmenu; i++)
|
for (i = 0; i < (INT16)sizedirmenu; i++)
|
||||||
{
|
{
|
||||||
INT32 localy = y+i*10;
|
INT32 localy = y+i*10;
|
||||||
|
INT32 localx = x;
|
||||||
|
|
||||||
if (localy < 65)
|
if (localy < 65)
|
||||||
continue;
|
continue;
|
||||||
|
@ -5415,6 +5416,12 @@ static void M_DrawReplayHut(void)
|
||||||
G_LoadDemoInfo(&demolist[i]);
|
G_LoadDemoInfo(&demolist[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (demolist[i].type == MD_SUBDIR)
|
||||||
|
{
|
||||||
|
localx += 8;
|
||||||
|
V_DrawFixedPatch(x<<FRACBITS, localy<<FRACBITS, FRACUNIT/4, 0, W_CachePatchName(dirmenu[i][DIR_TYPE] == EXT_UP ? "M_FBACK" : "M_FFLDR", PU_CACHE), NULL);
|
||||||
|
}
|
||||||
|
|
||||||
if (itemOn == replaylistitem && i == (INT16)dir_on[menudepthleft])
|
if (itemOn == replaylistitem && i == (INT16)dir_on[menudepthleft])
|
||||||
{
|
{
|
||||||
cursory = localy;
|
cursory = localy;
|
||||||
|
@ -5442,10 +5449,10 @@ static void M_DrawReplayHut(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
V_DrawString(x - (replayScrollTitle>>1), localy, highlightflags|V_ALLOWLOWERCASE, demolist[i].title);
|
V_DrawString(localx - (replayScrollTitle>>1), localy, highlightflags|V_ALLOWLOWERCASE, demolist[i].title);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
V_DrawString(x, localy, V_ALLOWLOWERCASE, demolist[i].title);
|
V_DrawString(localx, localy, V_ALLOWLOWERCASE, demolist[i].title);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw the cursor
|
// Draw the cursor
|
||||||
|
|
Loading…
Reference in a new issue