mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +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.
|
// 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 (;;)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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")
|
||||||
|
|
1
src/gi.h
1
src/gi.h
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue