mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
M_DrawChallenges, M_DrawChallengesPreview: Button prompts
- Chao Key usage(/skipping unlock animation) - Toggle text for SECRET_ALTTITLE
This commit is contained in:
parent
2949495c76
commit
da1e865e8b
1 changed files with 19 additions and 6 deletions
|
|
@ -5275,8 +5275,13 @@ static void M_DrawChallengePreview(INT32 x, INT32 y)
|
||||||
{
|
{
|
||||||
x = 8;
|
x = 8;
|
||||||
y = BASEVIDHEIGHT-16;
|
y = BASEVIDHEIGHT-16;
|
||||||
V_DrawGamemodeString(x, y - 32, V_ALLOWLOWERCASE, R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_PLAGUE, GTC_MENUCACHE), cv_alttitle.string);
|
V_DrawGamemodeString(x, y - 33, V_ALLOWLOWERCASE, R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_PLAGUE, GTC_MENUCACHE), cv_alttitle.string);
|
||||||
V_DrawThinString(x, y, V_6WIDTHSPACE|V_ALLOWLOWERCASE|highlightflags, "Press (A)");
|
|
||||||
|
K_drawButtonAnim(x, y, 0, kp_button_a[1], challengesmenu.ticker);
|
||||||
|
x += SHORT(kp_button_a[1][0]->width);
|
||||||
|
V_DrawThinString(x, y + 1, V_6WIDTHSPACE|V_ALLOWLOWERCASE|highlightflags, "Toggle");
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
@ -5341,6 +5346,8 @@ static void M_DrawChallengePreview(INT32 x, INT32 y)
|
||||||
|
|
||||||
void M_DrawChallenges(void)
|
void M_DrawChallenges(void)
|
||||||
{
|
{
|
||||||
|
const UINT8 pid = 0;
|
||||||
|
|
||||||
INT32 x = currentMenu->x, explodex, selectx = 0, selecty = 0;
|
INT32 x = currentMenu->x, explodex, selectx = 0, selecty = 0;
|
||||||
INT32 y;
|
INT32 y;
|
||||||
INT16 i, j;
|
INT16 i, j;
|
||||||
|
|
@ -5509,10 +5516,16 @@ challengedesc:
|
||||||
|
|
||||||
fixed_t keyx = (8+offs)*FRACUNIT, keyy = 5*FRACUNIT;
|
fixed_t keyx = (8+offs)*FRACUNIT, keyy = 5*FRACUNIT;
|
||||||
|
|
||||||
if (!challengesmenu.chaokeyhold)
|
const char *timerstr = va("%u", gamedata->chaokeys);
|
||||||
V_DrawFixedPatch(keyx, keyy, FRACUNIT, 0, key, NULL);
|
|
||||||
|
|
||||||
V_DrawTimerString((27+offs), 9-challengesmenu.unlockcount[CC_CHAOANIM], 0, va("%u", gamedata->chaokeys));
|
V_DrawTimerString((27+offs), 9-challengesmenu.unlockcount[CC_CHAOANIM], 0, timerstr);
|
||||||
|
|
||||||
|
K_drawButton(
|
||||||
|
(27 + offs + V_TimerStringWidth(timerstr, 0) + 2) << FRACBITS,
|
||||||
|
11 << FRACBITS,
|
||||||
|
0, kp_button_c[1],
|
||||||
|
M_MenuExtraHeld(pid)
|
||||||
|
);
|
||||||
|
|
||||||
offs = challengekeybarwidth;
|
offs = challengekeybarwidth;
|
||||||
if (gamedata->chaokeys < GDMAX_CHAOKEYS)
|
if (gamedata->chaokeys < GDMAX_CHAOKEYS)
|
||||||
|
|
@ -6051,7 +6064,7 @@ void M_DrawWrongWarp(void)
|
||||||
|
|
||||||
void M_DrawSoundTest(void)
|
void M_DrawSoundTest(void)
|
||||||
{
|
{
|
||||||
UINT8 pid = 0; // todo: Add ability for any splitscreen player to bring up the menu.
|
const UINT8 pid = 0;
|
||||||
|
|
||||||
INT32 x, y, i, cursorx = 0;
|
INT32 x, y, i, cursorx = 0;
|
||||||
INT32 titleoffset = 0, titlewidth;
|
INT32 titleoffset = 0, titlewidth;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue