- Added cursorpic gameinfo property to set the mouse cursor image.

SVN r2852 (trunk)
This commit is contained in:
Randy Heit 2010-09-26 05:31:52 +00:00
parent 3f69b63873
commit 17f9e687bd
7 changed files with 10 additions and 1 deletions

View file

@ -901,7 +901,10 @@ void D_DoomLoop ()
// Clamp the timer to TICRATE until the playloop has been entered.
r_NoInterpolate = true;
I_SetCursor(TexMan["cursor"]);
if (gameinfo.CursorPic.IsEmpty() || !I_SetCursor(TexMan[gameinfo.CursorPic]))
{
I_SetCursor(TexMan["cursor"]);
}
for (;;)
{

View file

@ -274,6 +274,7 @@ void FMapInfoParser::ParseGameInfo()
GAMEINFOKEY_STRING(backpacktype, "backpacktype")
GAMEINFOKEY_STRING(statusbar, "statusbar")
GAMEINFOKEY_STRING(intermissionMusic, "intermissionMusic")
GAMEINFOKEY_STRING(CursorPic, "CursorPic")
GAMEINFOKEY_BOOL(noloopfinalemusic, "noloopfinalemusic")
GAMEINFOKEY_BOOL(drawreadthis, "drawreadthis")
GAMEINFOKEY_BOOL(intermissioncounter, "intermissioncounter")

View file

@ -106,6 +106,7 @@ struct gameinfo_t
FString backpacktype;
FString statusbar;
FString intermissionMusic;
FString CursorPic;
DWORD dimcolor;
float dimamount;
int definventorymaxamount;

View file

@ -55,6 +55,7 @@ gameinfo
playerclasses = "DoomPlayer"
pausesign = "M_PAUSE"
gibfactor = 1
cursorpic = "doomcurs"
}
skill baby

View file

@ -55,6 +55,7 @@ gameinfo
nightmarefast = true
pausesign = "PAUSED"
gibfactor = 0.5
cursorpic = "herecurs"
}
skill baby

View file

@ -53,6 +53,7 @@ gameinfo
nightmarefast = true
pausesign = "PAUSED"
gibfactor = 0.5
cursorpic = "hexncurs"
}
skill baby

View file

@ -55,6 +55,7 @@ gameinfo
PlayerClasses = "StrifePlayer"
pausesign = "PAUSED"
gibfactor = 0.5
cursorpic = "strfcurs"
}
skill baby