mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Challenges Menu: Indicate a new Chao Key by putting the menu cursor hand directly next to it
I don't want to pop up the tutorial menumessage every time, which was the other proposed solution
This commit is contained in:
parent
78266e2dad
commit
aad69b5209
2 changed files with 18 additions and 1 deletions
|
|
@ -7282,12 +7282,14 @@ static void M_DrawChallengeKeys(INT32 tilex, INT32 tiley)
|
||||||
|
|
||||||
fixed_t keyx = (8+offs)*FRACUNIT, keyy = 0;
|
fixed_t keyx = (8+offs)*FRACUNIT, keyy = 0;
|
||||||
|
|
||||||
|
const boolean keybuttonpress = (menumessage.active == false && M_MenuExtraHeld(pid) == true);
|
||||||
|
|
||||||
// Button prompt
|
// Button prompt
|
||||||
K_drawButton(
|
K_drawButton(
|
||||||
24 << FRACBITS,
|
24 << FRACBITS,
|
||||||
16 << FRACBITS,
|
16 << FRACBITS,
|
||||||
0, kp_button_c[1],
|
0, kp_button_c[1],
|
||||||
menumessage.active == false && M_MenuExtraHeld(pid) == true
|
keybuttonpress
|
||||||
);
|
);
|
||||||
|
|
||||||
// Metyr of rounds played that contribute to Chao Key generation
|
// Metyr of rounds played that contribute to Chao Key generation
|
||||||
|
|
@ -7334,6 +7336,20 @@ static void M_DrawChallengeKeys(INT32 tilex, INT32 tiley)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hand
|
||||||
|
if (challengesmenu.keywasadded == true)
|
||||||
|
{
|
||||||
|
INT32 handx = 32 + 16;
|
||||||
|
if (keybuttonpress == false)
|
||||||
|
{
|
||||||
|
// Only animate if it's the focus
|
||||||
|
handx -= (skullAnimCounter/5);
|
||||||
|
}
|
||||||
|
|
||||||
|
V_DrawScaledPatch(handx, 8, V_FLIP,
|
||||||
|
W_CachePatchName("M_CURSOR", PU_CACHE));
|
||||||
|
}
|
||||||
|
|
||||||
UINT8 keysbeingused = 0;
|
UINT8 keysbeingused = 0;
|
||||||
|
|
||||||
// The Chao Key swooping animation
|
// The Chao Key swooping animation
|
||||||
|
|
|
||||||
|
|
@ -548,6 +548,7 @@ void M_ChallengesTick(void)
|
||||||
|
|
||||||
challengesmenu.chaokeyhold = 0;
|
challengesmenu.chaokeyhold = 0;
|
||||||
challengesmenu.unlockcount[CMC_CHAOANIM]++;
|
challengesmenu.unlockcount[CMC_CHAOANIM]++;
|
||||||
|
challengesmenu.keywasadded = false; // disappearify the Hand
|
||||||
|
|
||||||
S_StartSound(NULL, sfx_chchng);
|
S_StartSound(NULL, sfx_chchng);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue