- Applied Blzut3's sbarinfo update #11:
* SBarInfo will also accept a '|' between flags for those who are really
bothered by the indefinite "arguments" in the middle of the statement.
* Added: completeBorder. When set to true SBarInfo will draw the border where
the status bar normally goes.
* Fixed: I forgot to accept TK_None on "base" and "statusbar".
* Fixed: "base" was apparently broken when the SBarInfo init code was moved to
d_main.cpp. Also, if "base Strife" was used then it would not use the
default log message of "find help".
SVN r736 (trunk)
This commit is contained in:
parent
0bb9fc1e2d
commit
0f3a1cc8b1
5 changed files with 70 additions and 9 deletions
|
|
@ -1547,7 +1547,23 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
|
|||
{
|
||||
int cstype = SBarInfoScript->GetGameType();
|
||||
|
||||
if (cstype == GAME_Any || cstype == gameinfo.gametype)
|
||||
if(cstype == GAME_Doom) //Did the user specify a "base"
|
||||
{
|
||||
StatusBar = CreateDoomStatusBar ();
|
||||
}
|
||||
else if(cstype == GAME_Heretic)
|
||||
{
|
||||
StatusBar = CreateHereticStatusBar();
|
||||
}
|
||||
else if(cstype == GAME_Hexen)
|
||||
{
|
||||
StatusBar = CreateHexenStatusBar();
|
||||
}
|
||||
else if(cstype == GAME_Strife)
|
||||
{
|
||||
StatusBar = CreateStrifeStatusBar();
|
||||
}
|
||||
else //Use the default, empty or custom.
|
||||
{
|
||||
StatusBar = CreateCustomStatusBar();
|
||||
}
|
||||
|
|
@ -1579,7 +1595,7 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
|
|||
StatusBar->NewGame ();
|
||||
setsizeneeded = true;
|
||||
|
||||
if (gameinfo.gametype == GAME_Strife)
|
||||
if (gameinfo.gametype == GAME_Strife || (SBarInfoScript != NULL && SBarInfoScript->GetGameType() == GAME_Strife))
|
||||
{
|
||||
// Set the initial quest log text for Strife.
|
||||
for (i = 0; i < MAXPLAYERS; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue