- added some initial configurability to statistics intermission screen:
* Font and color for map name can be set if it's not a titlepatch * 'Finished' and 'Entering' can be either patches or a printed text in all gamees now. * Font and color for 'finished' and 'entering' text can be set. * moved 'finished' and 'Now entering:' texts into string table. SVN r2981 (trunk)
This commit is contained in:
parent
4a9892725d
commit
72192397ad
10 changed files with 157 additions and 84 deletions
27
src/gi.cpp
27
src/gi.cpp
|
|
@ -163,6 +163,28 @@ const char* GameInfoBoarders[] =
|
|||
} \
|
||||
}
|
||||
|
||||
#define GAMEINFOKEY_FONT(key, variable) \
|
||||
else if(nextKey.CompareNoCase(variable) == 0) \
|
||||
{ \
|
||||
sc.MustGetToken(TK_StringConst); \
|
||||
gameinfo.key.fontname = sc.String; \
|
||||
if (sc.CheckToken(',')) { \
|
||||
sc.MustGetToken(TK_StringConst); \
|
||||
gameinfo.key.color = sc.String; \
|
||||
} else { \
|
||||
gameinfo.key.color = NAME_None; \
|
||||
} \
|
||||
}
|
||||
|
||||
#define GAMEINFOKEY_PATCH(key, variable) \
|
||||
else if(nextKey.CompareNoCase(variable) == 0) \
|
||||
{ \
|
||||
sc.MustGetToken(TK_StringConst); \
|
||||
gameinfo.key.fontname = sc.String; \
|
||||
gameinfo.key.color = NAME_Null; \
|
||||
}
|
||||
|
||||
|
||||
void FMapInfoParser::ParseGameInfo()
|
||||
{
|
||||
sc.MustGetToken('{');
|
||||
|
|
@ -311,6 +333,11 @@ void FMapInfoParser::ParseGameInfo()
|
|||
GAMEINFOKEY_INT(TextScreenX, "textscreenx")
|
||||
GAMEINFOKEY_INT(TextScreenY, "textscreeny")
|
||||
GAMEINFOKEY_STRING(DefaultEndSequence, "defaultendsequence")
|
||||
GAMEINFOKEY_FONT(mStatscreenMapNameFont, "statscreen_mapnamefont")
|
||||
GAMEINFOKEY_FONT(mStatscreenFinishedFont, "statscreen_finishedfont")
|
||||
GAMEINFOKEY_FONT(mStatscreenEnteringFont, "statscreen_enteringfont")
|
||||
GAMEINFOKEY_PATCH(mStatscreenFinishedFont, "statscreen_finishedpatch")
|
||||
GAMEINFOKEY_PATCH(mStatscreenEnteringFont, "statscreen_enteringpatch")
|
||||
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue