mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- Added cursorpic gameinfo property to set the mouse cursor image.
SVN r2852 (trunk)
This commit is contained in:
parent
3f69b63873
commit
17f9e687bd
7 changed files with 10 additions and 1 deletions
|
@ -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 (;;)
|
||||
{
|
||||
|
|
|
@ -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")
|
||||
|
|
1
src/gi.h
1
src/gi.h
|
@ -106,6 +106,7 @@ struct gameinfo_t
|
|||
FString backpacktype;
|
||||
FString statusbar;
|
||||
FString intermissionMusic;
|
||||
FString CursorPic;
|
||||
DWORD dimcolor;
|
||||
float dimamount;
|
||||
int definventorymaxamount;
|
||||
|
|
|
@ -55,6 +55,7 @@ gameinfo
|
|||
playerclasses = "DoomPlayer"
|
||||
pausesign = "M_PAUSE"
|
||||
gibfactor = 1
|
||||
cursorpic = "doomcurs"
|
||||
}
|
||||
|
||||
skill baby
|
||||
|
|
|
@ -55,6 +55,7 @@ gameinfo
|
|||
nightmarefast = true
|
||||
pausesign = "PAUSED"
|
||||
gibfactor = 0.5
|
||||
cursorpic = "herecurs"
|
||||
}
|
||||
|
||||
skill baby
|
||||
|
|
|
@ -53,6 +53,7 @@ gameinfo
|
|||
nightmarefast = true
|
||||
pausesign = "PAUSED"
|
||||
gibfactor = 0.5
|
||||
cursorpic = "hexncurs"
|
||||
}
|
||||
|
||||
skill baby
|
||||
|
|
|
@ -55,6 +55,7 @@ gameinfo
|
|||
PlayerClasses = "StrifePlayer"
|
||||
pausesign = "PAUSED"
|
||||
gibfactor = 0.5
|
||||
cursorpic = "strfcurs"
|
||||
}
|
||||
|
||||
skill baby
|
||||
|
|
Loading…
Reference in a new issue