From 918425469a34f0853786a34d3c003747aa5960c6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 9 Nov 2020 17:20:14 +0100 Subject: [PATCH] - fixed crosshair setup. Fixes #168 --- source/common/statusbar/base_sbar.cpp | 2 +- wadsrc/static/menudef.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/statusbar/base_sbar.cpp b/source/common/statusbar/base_sbar.cpp index 7457b39ce..331ea4096 100644 --- a/source/common/statusbar/base_sbar.cpp +++ b/source/common/statusbar/base_sbar.cpp @@ -57,7 +57,7 @@ IMPLEMENT_CLASS(DHUDFont, false, false); CVAR(Color, crosshaircolor, 0xff0000, CVAR_ARCHIVE); CVAR(Int, crosshairhealth, 2, CVAR_ARCHIVE); -CVAR(Float, crosshairscale, 1.0, CVAR_ARCHIVE); +CVARD(Float, crosshairscale, 0.5, CVAR_ARCHIVE, "changes the size of the crosshair"); CVAR(Bool, crosshairgrow, false, CVAR_ARCHIVE); EXTERN_CVAR(Bool, vid_fps) diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index 81de9230f..9ce6e415c 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -1165,7 +1165,7 @@ OptionMenu "HUDOptions" protected } StaticText "" Option "$DSPLYMNU_CROSSHAIR", "cl_crosshair", OnOff - Slider "$DSPLYMNU_CROSSHAIRSCALE", "cl_crosshairscale", 50, 100, 10, 1 + Slider "$DSPLYMNU_CROSSHAIRSCALE", "crosshairscale", 0.25, 1.0, 0.125, 2 Option "$HUDMNU_CROSSHAIR", "crosshair", "Crosshairs" //ColorPicker "$HUDMNU_CROSSHAIRCOLOR", "crosshaircolor" fixme: Does not exist yet in Raze. Option "$HUDMNU_CROSSHAIRHEALTH", "crosshairhealth", "CrosshairHealthTypes"