mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
Show difficulty on GP results screen
This commit is contained in:
parent
d236620adf
commit
2f73cddf50
1 changed files with 28 additions and 0 deletions
|
|
@ -87,6 +87,7 @@ static struct podiumData_s
|
||||||
boolean fastForward;
|
boolean fastForward;
|
||||||
|
|
||||||
char header[64];
|
char header[64];
|
||||||
|
char difficulty[64];
|
||||||
|
|
||||||
void Init(void);
|
void Init(void);
|
||||||
void NextLevel(void);
|
void NextLevel(void);
|
||||||
|
|
@ -258,6 +259,27 @@ void podiumData_s::Init(void)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch(grandprixinfo.gamespeed)
|
||||||
|
{
|
||||||
|
case KARTSPEED_EASY:
|
||||||
|
snprintf(difficulty, sizeof difficulty, "Relaxed");
|
||||||
|
break;
|
||||||
|
case KARTSPEED_NORMAL:
|
||||||
|
snprintf(difficulty, sizeof difficulty, "Intense");
|
||||||
|
break;
|
||||||
|
case KARTSPEED_HARD:
|
||||||
|
snprintf(difficulty, sizeof difficulty, "Vicious");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
snprintf(difficulty, sizeof difficulty, "?");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (grandprixinfo.masterbots)
|
||||||
|
snprintf(difficulty, sizeof difficulty, "Master");
|
||||||
|
|
||||||
|
if (cv_4thgear.value || cv_levelskull.value)
|
||||||
|
snprintf(difficulty, sizeof difficulty, "Extra");
|
||||||
|
|
||||||
header[sizeof header - 1] = '\0';
|
header[sizeof header - 1] = '\0';
|
||||||
|
|
||||||
displayLevels = 0;
|
displayLevels = 0;
|
||||||
|
|
@ -504,6 +526,12 @@ void podiumData_s::Draw(void)
|
||||||
.colormap(bestHuman->skin, static_cast<skincolornum_t>(bestHuman->skincolor))
|
.colormap(bestHuman->skin, static_cast<skincolornum_t>(bestHuman->skincolor))
|
||||||
.patch(faceprefix[bestHuman->skin][FACE_WANTED]);
|
.patch(faceprefix[bestHuman->skin][FACE_WANTED]);
|
||||||
|
|
||||||
|
drawer_winner
|
||||||
|
.xy(16, 28)
|
||||||
|
.align(srb2::Draw::Align::kCenter)
|
||||||
|
.font(srb2::Draw::Font::kMenu)
|
||||||
|
.text(difficulty);
|
||||||
|
|
||||||
drawer_winner
|
drawer_winner
|
||||||
.xy(44, 31)
|
.xy(44, 31)
|
||||||
.align(srb2::Draw::Align::kCenter)
|
.align(srb2::Draw::Align::kCenter)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue