add fancyroulette toggle

This commit is contained in:
Alug committed 2025-01-19 17:31:08 +01:00
1 parent 383cc71bb3
commit b6d50da809
3 files changed
+19 -10

No files matched your search

+5 -1
View File
@@ -91,6 +91,8 @@ consvar_t cv_showlaptimes = {"showlaptimes", "Off", CV_SAVE, CV_OnOff, NULL, 0,
consvar_t cv_posanim = {"postitionanimation", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
consvar_t cv_smallposnum = {"smallpositionnumber", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
consvar_t cv_fancyroulette = {"animatedroulette", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
consvar_t cv_minihead = {"smallminimapplayers", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
consvar_t cv_showminimapnames = {"showminimapnames", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
@@ -839,6 +841,8 @@ void K_RegisterKartStuff(void)
CV_RegisterVar(&cv_posanim);
CV_RegisterVar(&cv_smallposnum);
CV_RegisterVar(&cv_fancyroulette);
CV_RegisterVar(&cv_showlaptimes);
CV_RegisterVar(&cv_newspeedometer);
@@ -8309,7 +8313,7 @@ static void K_drawKartItem(void)
fixed_t rfy = fy<<FRACBITS;
INT32 fancyflags = V_HUDTRANS|fflags;
if (stplyr->kartstuff[k_itemroulette] && !stplyr->deadtimer)
if (cv_fancyroulette.value && stplyr->kartstuff[k_itemroulette] && !stplyr->deadtimer)
{
fixed_t frac = R_UsingFrameInterpolation() ? (rendertimefrac & FRACMASK) : 0;
UINT8 fancystep = (offset ? 6 : 10);
+1
View File
@@ -31,6 +31,7 @@ extern consvar_t cv_biglaps;
extern consvar_t cv_highresportrait;
extern consvar_t cv_stat_xoffset, cv_stat_yoffset;
extern consvar_t cv_showstats;
extern consvar_t cv_fancyroulette;
extern consvar_t cv_showlaptimes;
extern consvar_t cv_battlespeedo;
+13 -9
View File
@@ -2296,20 +2296,22 @@ static menuitem_t OP_SaturnHudMenu[] =
{IT_STRING | IT_CVAR, NULL, "Flash Lap Times", &cv_showlaptimes, 90},
{IT_STRING | IT_CVAR, NULL, "Show Lap Emblem", &cv_showlapemblem, 100},
{IT_STRING | IT_CVAR, NULL, "Show Cecho Messages", &cv_cechotoggle, 105},
{IT_STRING | IT_CVAR, NULL, "Animated Roulette", &cv_fancyroulette, 100},
{IT_STRING | IT_CVAR, NULL, "Show Names on Minimap", &cv_showminimapnames, 115},
{IT_STRING | IT_CVAR, NULL, "Small Minimap Players", &cv_minihead, 120},
{IT_STRING | IT_CVAR, NULL, "Show Lap Emblem", &cv_showlapemblem, 110},
{IT_STRING | IT_CVAR, NULL, "Show Cecho Messages", &cv_cechotoggle, 115},
{IT_STRING | IT_CVAR, NULL, "Beta Intermissionscreen", &cv_betainterscreen, 130},
{IT_STRING | IT_CVAR, NULL, "Show Names on Minimap", &cv_showminimapnames, 125},
{IT_STRING | IT_CVAR, NULL, "Small Minimap Players", &cv_minihead, 130},
{IT_STRING | IT_CVAR, NULL, "Show Director Prompt", &cv_showdirectorhud, 140},
{IT_STRING | IT_CVAR, NULL, "Beta Intermissionscreen", &cv_betainterscreen, 140},
{IT_STRING | IT_SUBMENU, NULL, "Nametags...", &OP_NametagDef, 150},
{IT_STRING | IT_SUBMENU, NULL, "Driftgauge...", &OP_DriftGaugeDef, 155},
{IT_STRING | IT_CVAR, NULL, "Show Director Prompt", &cv_showdirectorhud, 150},
{IT_SUBMENU|IT_STRING, NULL, "Hud Offsets...", &OP_HudOffsetDef, 165},
{IT_STRING | IT_SUBMENU, NULL, "Nametags...", &OP_NametagDef, 160},
{IT_STRING | IT_SUBMENU, NULL, "Driftgauge...", &OP_DriftGaugeDef, 165},
{IT_SUBMENU|IT_STRING, NULL, "Hud Offsets...", &OP_HudOffsetDef, 175},
};
static const char* OP_SaturnHudTooltips[] =
@@ -2326,6 +2328,7 @@ static const char* OP_SaturnHudTooltips[] =
"Make the Postionnumber half the size.",
"Disable the animation of the Positionnumber\nwhen overtaking someone.",
"Flash current Lap Time when doing a Lap on the Timer.",
"Enables an animation while the roulette is active.",
"Show the big 'LAP' text on a lap change.",
"Show the big Cecho Messages.",
"Show player names on the minimap.",
@@ -2351,6 +2354,7 @@ enum
sh_smolpos,
sh_posanim,
sh_laptime,
sh_fancy,
sh_lapemblem,
sh_cechotogle,
sh_mapname,