mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
M_DrawChallengePreview: Improve SECRET_MAP
- Change scale and offsets of map icon to match other unlock types that show a single map
- Show a gametype string
- Fudges GT_VERSUS into GT_SPECIAL just like the menu does
- Shows "Match Race/Online" for a level with no preferred gametype like TEST RUN
This commit is contained in:
parent
1701662b6b
commit
bfb939161a
1 changed files with 35 additions and 2 deletions
|
|
@ -5214,13 +5214,46 @@ static void M_DrawChallengePreview(INT32 x, INT32 y)
|
||||||
}
|
}
|
||||||
case SECRET_MAP:
|
case SECRET_MAP:
|
||||||
{
|
{
|
||||||
|
const char *gtname = "INVALID HEADER";
|
||||||
UINT16 mapnum = M_UnlockableMapNum(ref);
|
UINT16 mapnum = M_UnlockableMapNum(ref);
|
||||||
|
|
||||||
K_DrawMapThumbnail(
|
K_DrawMapThumbnail(
|
||||||
(x-30)<<FRACBITS, (146+2)<<FRACBITS,
|
(x-50)<<FRACBITS, (146+2)<<FRACBITS,
|
||||||
60<<FRACBITS,
|
80<<FRACBITS,
|
||||||
0,
|
0,
|
||||||
mapnum,
|
mapnum,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
if (mapnum < nummapheaders && mapheaderinfo[mapnum] != NULL)
|
||||||
|
{
|
||||||
|
INT32 guessgt = G_GuessGametypeByTOL(mapheaderinfo[mapnum]->typeoflevel);
|
||||||
|
|
||||||
|
if (guessgt == -1)
|
||||||
|
{
|
||||||
|
// No Time Attack support, so specify...
|
||||||
|
gtname = "Match Race/Online";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (guessgt == GT_VERSUS)
|
||||||
|
{
|
||||||
|
// Fudge since there's no Versus-specific menu right now...
|
||||||
|
guessgt = GT_SPECIAL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (guessgt == GT_SPECIAL && !M_SecretUnlocked(SECRET_SPECIALATTACK, true))
|
||||||
|
{
|
||||||
|
gtname = "???";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gtname = gametypes[guessgt]->name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
V_DrawThinString(1, BASEVIDHEIGHT-(9+3), V_ALLOWLOWERCASE|V_6WIDTHSPACE, gtname);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SECRET_ENCORE:
|
case SECRET_ENCORE:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue