mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-03-14 06:03:12 +00:00
commit
3bceed66ab
12 changed files with 26 additions and 39 deletions
|
@ -62,7 +62,7 @@ typedef struct {
|
|||
menuslider_s heightadjust;
|
||||
menuradiobutton_s rollhit;
|
||||
menuslider_s hapticintensity;
|
||||
menulist_s huddepth;
|
||||
menuslider_s huddepth;
|
||||
menuslider_s hudyoffset;
|
||||
|
||||
menubitmap_s back;
|
||||
|
@ -104,7 +104,7 @@ static void Comfort_MenuEvent( void* ptr, int notification ) {
|
|||
break;
|
||||
|
||||
case ID_HUDDEPTH:
|
||||
trap_Cvar_SetValue( "vr_hudDepth", s_comfort.huddepth.curvalue );
|
||||
trap_Cvar_SetValue( "vr_hudDepth", ((int)s_comfort.huddepth.curvalue % NUM_HUDDEPTH));
|
||||
break;
|
||||
|
||||
case ID_HUDYOFFSET:
|
||||
|
@ -120,17 +120,6 @@ static void Comfort_MenuEvent( void* ptr, int notification ) {
|
|||
static void Comfort_MenuInit( void ) {
|
||||
int y;
|
||||
|
||||
static const char *s_hud_depths[] =
|
||||
{
|
||||
"Very Close",
|
||||
"Close",
|
||||
"Middle",
|
||||
"Further",
|
||||
"Far",
|
||||
"Distant",
|
||||
NULL
|
||||
};
|
||||
|
||||
memset( &s_comfort, 0 ,sizeof(comfort_t) );
|
||||
|
||||
Comfort_Cache();
|
||||
|
@ -204,22 +193,22 @@ static void Comfort_MenuInit( void ) {
|
|||
s_comfort.hapticintensity.maxvalue = 1.0;
|
||||
|
||||
y += BIGCHAR_HEIGHT+2;
|
||||
s_comfort.huddepth.generic.type = MTYPE_SPINCONTROL;
|
||||
s_comfort.huddepth.generic.type = MTYPE_SLIDER;
|
||||
s_comfort.huddepth.generic.flags = QMF_PULSEIFFOCUS|QMF_SMALLFONT;
|
||||
s_comfort.huddepth.generic.x = VR_X_POS;
|
||||
s_comfort.huddepth.generic.y = y;
|
||||
s_comfort.huddepth.generic.name = "HUD Depth:";
|
||||
s_comfort.huddepth.generic.callback = Comfort_MenuEvent;
|
||||
s_comfort.huddepth.generic.id = ID_HUDDEPTH;
|
||||
s_comfort.huddepth.itemnames = s_hud_depths;
|
||||
s_comfort.huddepth.numitems = NUM_HUDDEPTH;
|
||||
s_comfort.huddepth.minvalue = 0;
|
||||
s_comfort.huddepth.maxvalue = 5;
|
||||
|
||||
y += BIGCHAR_HEIGHT+2;
|
||||
s_comfort.hudyoffset.generic.type = MTYPE_SLIDER;
|
||||
s_comfort.hudyoffset.generic.x = VR_X_POS;
|
||||
s_comfort.hudyoffset.generic.y = y;
|
||||
s_comfort.hudyoffset.generic.flags = QMF_PULSEIFFOCUS|QMF_SMALLFONT;
|
||||
s_comfort.hudyoffset.generic.name = "HUD Y Offset:";
|
||||
s_comfort.hudyoffset.generic.name = "HUD Vertical Position:";
|
||||
s_comfort.hudyoffset.generic.id = ID_HUDYOFFSET;
|
||||
s_comfort.hudyoffset.generic.callback = Comfort_MenuEvent;
|
||||
s_comfort.hudyoffset.minvalue = 0;
|
||||
|
|
|
@ -240,8 +240,8 @@ static void Controls3_MenuInit( void ) {
|
|||
|
||||
static const char *s_weaponselectormode[] =
|
||||
{
|
||||
"Controller Based",
|
||||
"HMD/Thumbstick Based",
|
||||
"VR Style / Pointing",
|
||||
"Classic / Thumbstick",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ static const char *hud_names[] =
|
|||
{
|
||||
"Off",
|
||||
"Floating",
|
||||
"Simple",
|
||||
"Fixed to View",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
@ -317,7 +317,7 @@ static void UI_SoundOptionsMenu_Init( void ) {
|
|||
soundOptionsInfo.sfxvolume.generic.x = 400;
|
||||
soundOptionsInfo.sfxvolume.generic.y = y;
|
||||
soundOptionsInfo.sfxvolume.minvalue = 0;
|
||||
soundOptionsInfo.sfxvolume.maxvalue = 10;
|
||||
soundOptionsInfo.sfxvolume.maxvalue = 7;
|
||||
|
||||
y += BIGCHAR_HEIGHT+2;
|
||||
soundOptionsInfo.musicvolume.generic.type = MTYPE_SLIDER;
|
||||
|
@ -328,7 +328,7 @@ static void UI_SoundOptionsMenu_Init( void ) {
|
|||
soundOptionsInfo.musicvolume.generic.x = 400;
|
||||
soundOptionsInfo.musicvolume.generic.y = y;
|
||||
soundOptionsInfo.musicvolume.minvalue = 0;
|
||||
soundOptionsInfo.musicvolume.maxvalue = 10;
|
||||
soundOptionsInfo.musicvolume.maxvalue = 7;
|
||||
|
||||
y += BIGCHAR_HEIGHT+2;
|
||||
soundOptionsInfo.soundSystem.generic.type = MTYPE_SPINCONTROL;
|
||||
|
|
|
@ -1322,7 +1322,7 @@ void R_Register( void )
|
|||
r_textureMode = ri.Cvar_Get( "r_textureMode", "GL_LINEAR_MIPMAP_LINEAR", CVAR_ARCHIVE );
|
||||
r_swapInterval = ri.Cvar_Get( "r_swapInterval", "0",
|
||||
CVAR_ARCHIVE | CVAR_LATCH );
|
||||
r_gamma = ri.Cvar_Get( "r_gamma", "1", CVAR_ARCHIVE );
|
||||
r_gamma = ri.Cvar_Get( "r_gamma", "1.05", CVAR_ARCHIVE );
|
||||
r_facePlaneCull = ri.Cvar_Get ("r_facePlaneCull", "1", CVAR_ARCHIVE );
|
||||
|
||||
r_railWidth = ri.Cvar_Get( "r_railWidth", "16", CVAR_ARCHIVE );
|
||||
|
|
|
@ -99,10 +99,9 @@ itemDef {
|
|||
itemDef {
|
||||
name comfort
|
||||
group grpComfort
|
||||
type ITEM_TYPE_MULTI
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "HUD Depth:"
|
||||
cvar "vr_hudDepth"
|
||||
cvarFloatList { "Very Close" 0 "Close" 1 "Middle" 2 "Further" 3 "Far" 4 "Distant" 5 }
|
||||
cvarfloat "vr_hudDepth" 1 0 5
|
||||
rect 99 250 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
|
@ -116,7 +115,7 @@ itemDef {
|
|||
name comfort
|
||||
group grpComfort
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "HUD Y Offset:"
|
||||
text "HUD Vertical Position:"
|
||||
cvarfloat "vr_hudYOffset" 20 -200 200
|
||||
rect 99 275 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
|
|
|
@ -180,7 +180,7 @@ itemDef {
|
|||
type ITEM_TYPE_MULTI
|
||||
text "Weapon Wheel Mode:"
|
||||
cvar "vr_weaponSelectorMode"
|
||||
cvarFloatList { "Controller Based" 0 "HMD/Thumbstick Based" 1 }
|
||||
cvarFloatList { "VR Style / Pointing" 0 "Classic / Thumbstick" 1 }
|
||||
rect 99 300 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
|
|
|
@ -302,7 +302,7 @@ itemDef {
|
|||
type ITEM_TYPE_MULTI
|
||||
text "Weapon Wheel Mode:"
|
||||
cvar "vr_weaponSelectorMode"
|
||||
cvarFloatList { "Controller Based" 0 "HMD/Thumbstick Based" 1 }
|
||||
cvarFloatList { "VR Style / Pointing" 0 "Classic / Thumbstick" 1 }
|
||||
rect 30 182 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
|
@ -402,10 +402,9 @@ itemDef {
|
|||
itemDef {
|
||||
name controls
|
||||
group grpControls
|
||||
type ITEM_TYPE_MULTI
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "HUD Depth:"
|
||||
cvar "vr_hudDepth"
|
||||
cvarFloatList { "Very Close" 0 "Close" 1 "Middle" 2 "Further" 3 "Far" 4 "Distant" 5 }
|
||||
cvarfloat "vr_hudDepth" 1 0 5
|
||||
rect 30 331 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
|
@ -418,7 +417,7 @@ itemDef {
|
|||
name controls
|
||||
group grpControls
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "HUD Y Offset:"
|
||||
text "HUD Vertical Position:"
|
||||
cvarfloat "vr_hudYOffset" 20 -200 200
|
||||
rect 30 351 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
|
|
|
@ -385,7 +385,7 @@ itemDef {
|
|||
type ITEM_TYPE_MULTI
|
||||
text "HUD Mode:"
|
||||
cvar "vr_hudDrawStatus"
|
||||
cvarFloatList { "Off" 0 "Floating" 1 "Simple" 2 }
|
||||
cvarFloatList { "Off" 0 "Floating" 1 "Fixed to View" 2 }
|
||||
rect 50 275 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
|
|
|
@ -419,7 +419,7 @@ itemDef {
|
|||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Effects Volume:"
|
||||
cvarfloat "s_volume" 0.7 0 1
|
||||
cvarfloat "s_volume" 0.1 0 0.7
|
||||
rect 0 65 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
|
@ -434,7 +434,7 @@ itemDef {
|
|||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Music Volume:"
|
||||
cvarfloat "s_musicvolume" 0.25 0 1
|
||||
cvarfloat "s_musicvolume" 0.1 0 0.7
|
||||
rect 0 85 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
|
|
|
@ -266,7 +266,7 @@ itemDef {
|
|||
type ITEM_TYPE_MULTI
|
||||
text "HUD Mode:"
|
||||
cvar "vr_hudDrawStatus"
|
||||
cvarFloatList { "Off" 0 "Floating" 1 "Simple" 2 }
|
||||
cvarFloatList { "Off" 0 "Floating" 1 "Fixed to View" 2 }
|
||||
rect 99 315 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
|
|
|
@ -446,7 +446,7 @@ itemDef {
|
|||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Effects Volume:"
|
||||
cvarfloat "s_volume" 0.7 0 1
|
||||
cvarfloat "s_volume" 0.1 0 0.7
|
||||
rect 99 92 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
|
@ -461,7 +461,7 @@ itemDef {
|
|||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Music Volume:"
|
||||
cvarfloat "s_musicvolume" 0.25 0 1
|
||||
cvarfloat "s_musicvolume" 0.1 0 0.7
|
||||
rect 99 119 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
|
|
Loading…
Reference in a new issue