From d3eb784bc4352eb833344b41981e725036178179 Mon Sep 17 00:00:00 2001 From: VelocitOni Date: Wed, 29 Oct 2025 01:31:28 -0400 Subject: [PATCH] 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) --- src/cvars.cpp | 3 ++- src/menus/play-local-race-difficulty.c | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/cvars.cpp b/src/cvars.cpp index f2b2a24d5..72fd05f89 100644 --- a/src/cvars.cpp +++ b/src/cvars.cpp @@ -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"}, diff --git a/src/menus/play-local-race-difficulty.c b/src/menus/play-local-race-difficulty.c index dc8f74a57..44c73a1ab 100644 --- a/src/menus/play-local-race-difficulty.c +++ b/src/menus/play-local-race-difficulty.c @@ -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; +} \ No newline at end of file