mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
add "hidepartimes" MAPINFO/GameInfo property
This commit is contained in:
parent
b5f80bb69c
commit
a2f8b7d0df
4 changed files with 11 additions and 0 deletions
|
@ -76,6 +76,7 @@ DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, berserkpic)
|
||||||
DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, defaultdropstyle)
|
DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, defaultdropstyle)
|
||||||
DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, normforwardmove)
|
DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, normforwardmove)
|
||||||
DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, normsidemove)
|
DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, normsidemove)
|
||||||
|
DEFINE_FIELD_X(GameInfoStruct, gameinfo_t, mHideParTimes)
|
||||||
|
|
||||||
const char *GameNames[17] =
|
const char *GameNames[17] =
|
||||||
{
|
{
|
||||||
|
@ -443,6 +444,7 @@ void FMapInfoParser::ParseGameInfo()
|
||||||
GAMEINFOKEY_TWODOUBLES(normforwardmove, "normforwardmove")
|
GAMEINFOKEY_TWODOUBLES(normforwardmove, "normforwardmove")
|
||||||
GAMEINFOKEY_TWODOUBLES(normsidemove, "normsidemove")
|
GAMEINFOKEY_TWODOUBLES(normsidemove, "normsidemove")
|
||||||
GAMEINFOKEY_BOOL(nomergepickupmsg, "nomergepickupmsg")
|
GAMEINFOKEY_BOOL(nomergepickupmsg, "nomergepickupmsg")
|
||||||
|
GAMEINFOKEY_BOOL(mHideParTimes, "hidepartimes")
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -208,6 +208,7 @@ struct gameinfo_t
|
||||||
double normsidemove[2];
|
double normsidemove[2];
|
||||||
int fullscreenautoaspect = 3;
|
int fullscreenautoaspect = 3;
|
||||||
bool nomergepickupmsg;
|
bool nomergepickupmsg;
|
||||||
|
bool mHideParTimes;
|
||||||
|
|
||||||
const char *GetFinalePage(unsigned int num) const;
|
const char *GetFinalePage(unsigned int num) const;
|
||||||
};
|
};
|
||||||
|
|
|
@ -107,6 +107,7 @@ extend struct GameInfoStruct
|
||||||
native TextureID berserkpic;
|
native TextureID berserkpic;
|
||||||
native double normforwardmove[2];
|
native double normforwardmove[2];
|
||||||
native double normsidemove[2];
|
native double normsidemove[2];
|
||||||
|
native bool mHideParTimes;
|
||||||
}
|
}
|
||||||
|
|
||||||
extend class Object
|
extend class Object
|
||||||
|
|
|
@ -915,6 +915,13 @@ class StatusScreen abstract play version("2.5")
|
||||||
Plrs[i] = wbs.plyr[i];
|
Plrs[i] = wbs.plyr[i];
|
||||||
otherkills -= Plrs[i].skills;
|
otherkills -= Plrs[i].skills;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gameinfo.mHideParTimes)
|
||||||
|
{
|
||||||
|
// par time and suck time are not displayed if zero.
|
||||||
|
wbs.partime = 0;
|
||||||
|
wbs.sucktime = 0;
|
||||||
|
}
|
||||||
|
|
||||||
entering.Init(gameinfo.mStatscreenEnteringFont);
|
entering.Init(gameinfo.mStatscreenEnteringFont);
|
||||||
finished.Init(gameinfo.mStatscreenFinishedFont);
|
finished.Init(gameinfo.mStatscreenFinishedFont);
|
||||||
|
|
Loading…
Reference in a new issue