mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-27 18:24:40 +00:00
Add input UI for M_DrawLevelSelect (resolves #1572)
This commit is contained in:
parent
515188e472
commit
f951509e5f
1 changed files with 37 additions and 0 deletions
|
|
@ -3738,6 +3738,43 @@ void M_DrawLevelSelect(void)
|
|||
}
|
||||
|
||||
M_DrawCupTitle(tay, &levellist.levelsearch);
|
||||
|
||||
t = (abs(t)/2) + BASEVIDWIDTH - 4;
|
||||
tay += 30;
|
||||
|
||||
const boolean queuewithinsize = (menuqueue.size + roundqueue.size < ROUNDQUEUE_MAX);
|
||||
|
||||
const char *worktext = "Go to Course";
|
||||
if (levellist.levelsearch.timeattack)
|
||||
worktext = "Select Course";
|
||||
else if (levellist.canqueue && menuqueue.size && queuewithinsize)
|
||||
worktext = roundqueue.size ? "Add to Queue" : "Start Queue";
|
||||
|
||||
if (worktext)
|
||||
{
|
||||
K_DrawGameControl(t, tay, 0, va("<a_animated> %s", worktext), 2, TINY_FONT, 0);
|
||||
tay += 13;
|
||||
}
|
||||
|
||||
if (levellist.canqueue)
|
||||
{
|
||||
worktext = queuewithinsize
|
||||
? "<z_animated>" : "<z_pressed><gray>";
|
||||
K_DrawGameControl(t, tay, 0, va("%s Queue Course", worktext), 2, TINY_FONT, 0);
|
||||
tay += 13;
|
||||
|
||||
worktext = NULL;
|
||||
if (menuqueue.size)
|
||||
worktext = "Undo";
|
||||
else if (roundqueue.size)
|
||||
worktext = "Clear Queue";
|
||||
|
||||
if (worktext)
|
||||
{
|
||||
K_DrawGameControl(t, tay, 0, va("<c_animated> %s", worktext), 2, TINY_FONT, 0);
|
||||
tay += 13;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static boolean M_LevelSelectHasBG(menu_t *check)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue