- 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. // Clamp the timer to TICRATE until the playloop has been entered.
r_NoInterpolate = true; r_NoInterpolate = true;
I_SetCursor(TexMan["cursor"]); if (gameinfo.CursorPic.IsEmpty() || !I_SetCursor(TexMan[gameinfo.CursorPic]))
{
I_SetCursor(TexMan["cursor"]);
}
for (;;) for (;;)
{ {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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