mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
added a crosshair on/off toggle
This commit is contained in:
parent
680a6f348b
commit
7540de4027
2 changed files with 10 additions and 1 deletions
|
@ -123,6 +123,7 @@ CUSTOM_CVAR(Bool, hud_aspectscale, false, CVAR_ARCHIVE)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CVAR (Bool, crosshairon, true, CVAR_ARCHIVE);
|
||||||
CVAR (Int, crosshair, 0, CVAR_ARCHIVE)
|
CVAR (Int, crosshair, 0, CVAR_ARCHIVE)
|
||||||
CVAR (Bool, crosshairforce, false, CVAR_ARCHIVE)
|
CVAR (Bool, crosshairforce, false, CVAR_ARCHIVE)
|
||||||
CVAR (Color, crosshaircolor, 0xff0000, CVAR_ARCHIVE);
|
CVAR (Color, crosshaircolor, 0xff0000, CVAR_ARCHIVE);
|
||||||
|
@ -1029,9 +1030,16 @@ void DBaseStatusBar::DrawCrosshair ()
|
||||||
double size;
|
double size;
|
||||||
int w, h;
|
int w, h;
|
||||||
|
|
||||||
|
if (!crosshairon)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Don't draw the crosshair in chasecam mode
|
// Don't draw the crosshair in chasecam mode
|
||||||
if (players[consoleplayer].cheats & CF_CHASECAM)
|
if (players[consoleplayer].cheats & CF_CHASECAM)
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ST_LoadCrosshair();
|
ST_LoadCrosshair();
|
||||||
|
|
||||||
|
|
|
@ -1012,6 +1012,7 @@ OptionMenu "HUDOptions" protected
|
||||||
Submenu "$HUDMNU_FLASH", "FlashOptions"
|
Submenu "$HUDMNU_FLASH", "FlashOptions"
|
||||||
Submenu "$DSPLYMNU_SCOREBOARD", "ScoreboardOptions"
|
Submenu "$DSPLYMNU_SCOREBOARD", "ScoreboardOptions"
|
||||||
StaticText " "
|
StaticText " "
|
||||||
|
Option "$HUDMNU_CROSSHAIRON", "crosshairon", "OnOff"
|
||||||
Option "$HUDMNU_CROSSHAIR", "crosshair", "Crosshairs"
|
Option "$HUDMNU_CROSSHAIR", "crosshair", "Crosshairs"
|
||||||
Option "$HUDMNU_FORCECROSSHAIR", "crosshairforce", "OnOff"
|
Option "$HUDMNU_FORCECROSSHAIR", "crosshairforce", "OnOff"
|
||||||
Option "$HUDMNU_GROWCROSSHAIR", "crosshairgrow", "OnOff"
|
Option "$HUDMNU_GROWCROSSHAIR", "crosshairgrow", "OnOff"
|
||||||
|
|
Loading…
Reference in a new issue