mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-02-07 13:41:02 +00:00
- made CheatKey and EasyKey vector graphics configurable through MAPINFO.
This commit is contained in:
parent
313245dd77
commit
8edace83c5
4 changed files with 11 additions and 2 deletions
|
@ -908,8 +908,8 @@ void AM_StaticInit()
|
||||||
|
|
||||||
if (gameinfo.mMapArrow.IsNotEmpty()) AM_ParseArrow(MapArrow, gameinfo.mMapArrow);
|
if (gameinfo.mMapArrow.IsNotEmpty()) AM_ParseArrow(MapArrow, gameinfo.mMapArrow);
|
||||||
if (gameinfo.mCheatMapArrow.IsNotEmpty()) AM_ParseArrow(CheatMapArrow, gameinfo.mCheatMapArrow);
|
if (gameinfo.mCheatMapArrow.IsNotEmpty()) AM_ParseArrow(CheatMapArrow, gameinfo.mCheatMapArrow);
|
||||||
AM_ParseArrow(CheatKey, "maparrows/key.txt");
|
AM_ParseArrow(CheatKey, gameinfo.mCheatKey);
|
||||||
AM_ParseArrow(EasyKey, "maparrows/ravenkey.txt");
|
AM_ParseArrow(EasyKey, gameinfo.mEasyKey);
|
||||||
if (MapArrow.Size() == 0) I_FatalError("No automap arrow defined");
|
if (MapArrow.Size() == 0) I_FatalError("No automap arrow defined");
|
||||||
|
|
||||||
char namebuf[9];
|
char namebuf[9];
|
||||||
|
|
|
@ -290,6 +290,9 @@ void FMapInfoParser::ParseGameInfo()
|
||||||
else gameinfo.mCheatMapArrow = "";
|
else gameinfo.mCheatMapArrow = "";
|
||||||
}
|
}
|
||||||
// Insert valid keys here.
|
// Insert valid keys here.
|
||||||
|
GAMEINFOKEY_STRING(mCheatKey, "cheatKey")
|
||||||
|
GAMEINFOKEY_STRING(mEasyKey, "easyKey")
|
||||||
|
GAMEINFOKEY_STRING(TitlePage, "titlePage")
|
||||||
GAMEINFOKEY_STRING(TitlePage, "titlePage")
|
GAMEINFOKEY_STRING(TitlePage, "titlePage")
|
||||||
GAMEINFOKEY_STRINGARRAY(creditPages, "addcreditPage", 8, false)
|
GAMEINFOKEY_STRINGARRAY(creditPages, "addcreditPage", 8, false)
|
||||||
GAMEINFOKEY_STRINGARRAY(creditPages, "CreditPage", 8, true)
|
GAMEINFOKEY_STRINGARRAY(creditPages, "CreditPage", 8, true)
|
||||||
|
|
1
src/gi.h
1
src/gi.h
|
@ -169,6 +169,7 @@ struct gameinfo_t
|
||||||
int TextScreenY;
|
int TextScreenY;
|
||||||
FName DefaultEndSequence;
|
FName DefaultEndSequence;
|
||||||
FString mMapArrow, mCheatMapArrow;
|
FString mMapArrow, mCheatMapArrow;
|
||||||
|
FString mEasyKey, mCheatKey;
|
||||||
FGIFont mStatscreenMapNameFont;
|
FGIFont mStatscreenMapNameFont;
|
||||||
FGIFont mStatscreenFinishedFont;
|
FGIFont mStatscreenFinishedFont;
|
||||||
FGIFont mStatscreenEnteringFont;
|
FGIFont mStatscreenEnteringFont;
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
Gameinfo
|
||||||
|
{
|
||||||
|
CheatKey = "maparrows/key.txt"
|
||||||
|
EasyKey = "maparrows/ravenkey.txt"
|
||||||
|
}
|
||||||
|
|
||||||
Intermission Inter_Titlescreen
|
Intermission Inter_Titlescreen
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue