mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-30 03:32:58 +00:00
cvar change for dummykartspeed and new tooltips for match race
Match Race has new tool tips to push the Gear 1 agenda (2 and 3 do too)
This commit is contained in:
parent
3d465337bb
commit
d3eb784bc4
2 changed files with 22 additions and 1 deletions
|
|
@ -972,7 +972,8 @@ consvar_t cv_dummyip = MenuDummy("dummyip", "");
|
|||
consvar_t cv_dummyipselect = MenuDummy("dummyipselect", "0").min_max(0, 2);
|
||||
|
||||
extern CV_PossibleValue_t dummykartspeed_cons_t[];
|
||||
consvar_t cv_dummykartspeed = MenuDummy("dummykartspeed", "Gear 2").values(dummykartspeed_cons_t);
|
||||
void DummyKartSpeed_OnChange(void);
|
||||
consvar_t cv_dummykartspeed = MenuDummy("dummykartspeed", "Gear 2").values(dummykartspeed_cons_t).onchange(DummyKartSpeed_OnChange);
|
||||
|
||||
consvar_t cv_dummymatchbots = MenuDummy("dummymatchbots", "Off").values({
|
||||
{0, "Off"},
|
||||
|
|
|
|||
|
|
@ -203,3 +203,23 @@ void Dummygpdifficulty_OnChange(void)
|
|||
|
||||
PLAY_RaceDifficulty[drace_gpdifficulty].tooltip = tooltip;
|
||||
}
|
||||
void DummyKartSpeed_OnChange(void);
|
||||
void DummyKartSpeed_OnChange(void)
|
||||
{
|
||||
const char *tooltip = NULL;
|
||||
|
||||
switch (cv_dummykartspeed.value)
|
||||
{
|
||||
case KARTSPEED_EASY:
|
||||
tooltip = "Boosts are reduced for ""\x83""casual play""\x80""! The ""\x83""main event""\x80"" when ""\x83""inviting friends""\x80"" over!";
|
||||
break;
|
||||
case KARTSPEED_NORMAL:
|
||||
tooltip = "Designed around ""\x82""competition""\x80"". Even playing from behind ""\x82""requires good driving""\x80"".";
|
||||
break;
|
||||
case KARTSPEED_HARD:
|
||||
tooltip = "An ""\x87""extra ""\x80""kick for various challenges. ""\x85""Not designed as a standard""\x80"", but fun in bursts.";
|
||||
break;
|
||||
}
|
||||
|
||||
PLAY_RaceDifficulty[drace_mrkartspeed].tooltip = tooltip;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue