OctaCore/config/ui/options.cfg

596 lines
28 KiB
INI

///////////////////////////////////////////////////////////////////////////////
// Options //
///////////////////////////////////////////////////////////////////////////////
UI_opttabs = 0
UI_optc1wA = 0.025
UI_optc1wB = 0.270
UI_optc1w = (+f $UI_optc1wA $UI_optc1wB)
UI_optc2w = 0.363
UI_optrowh = 0.032
UI_optbar = [
uitablerow [
uifill $UI_optc1w 0.020 [UIbar 1]
uifill $UI_optc2w 0.020 [UIbar 1]
uialign* -1
]
]
UI_ratio4:3 = [
"640 480"
"800 600"
"1024 768"
"1152 864"
"1280 960"
"1400 1050"
"1600 1200"
"1920 1440"
"2560 1920"
]
UI_ratio5:4 = [
"800 640"
"960 768"
"1280 1024"
"1440 1152"
"1600 1280"
"1920 1536"
"2560 2048"
]
UI_ratio16:9 = [
"800 450"
"1024 600"
"1280 720"
"1366 768"
"1600 900"
"1920 1080"
"2048 1152"
"2560 1440"
]
UI_ratio16:10 = [
"768 480"
"1024 640"
"1280 800"
"1440 900"
"1680 1050"
"1920 1200"
"2560 1600"
]
opt_ratios = [4:3 5:4 16:9 16:10]
opt_ratios_assoc = (concat "custom" "custom" (looplistconcat ratio $opt_ratios [concat $ratio $ratio]))
UI_findratio = [
looplist ratio $opt_ratios [
looplist res $[UI_ratio@ratio] [
if (=s $res $UI_resolution) [UI_aspectratio = $ratio]
]
]
]
UImenu "options" [
hidechanges 1
uihlist 0 [
UIvtab 0.2 (*f 0.048 6) UI_opttabs [
0 "Game" []
1 "Edit" []
2 "Graphics" []
3 "Display" []
4 "Resolution" []
5 "Audio" []
//* "Console" []
] 1
uialign- 0 -1
UIbar 0 1
uifill 0.02
uiscroll 0.67 0.6 [
uifill 0.67 0.6 [
uialign 0 -1
uitable 0 0.005 [
uialign -1 -1
case $UI_opttabs 0 [//Game//////////////////////////////////////////////////////////
UI_optbar//----------------------------------------------------------------------
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "FOV" 0.6]
uihlist 0 [
UIhslider fov 10 150 5 0.3 $UI_optrowh [uitext $fov 0.6]
uifield fov 3 [] 0.65 style_generic_focus
]
uialign* -1 0
]
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Sensitivity" 0.6]
uihlist 0 [
UIhslider sensitivity 0.1 40.0 0.1 0.3 $UI_optrowh [uitext $sensitivity 0.6]
uifield sensitivity 3 [] 0.65 style_generic_focus
]
uialign* -1 0
]
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Zoom FOV" 0.6]
uihlist 0 [
UIhslider zoomfov 10 90 1 0.3 $UI_optrowh [uitext $zoomfov 0.6]
uifield zoomfov 3 [] 0.65 style_generic_focus
]
uialign* -1 0
]
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Zoom Sensitivity" 0.6]
uihlist 0 [
UIhslider zoomsens 0.1 20.0 0.1 0.3 $UI_optrowh [uitext $zoomsens 0.6]
uifield zoomsens 3 [] 0.65 style_generic_focus
]
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $zoomtoggle 0.016
uitext "Zoom Toggle" 0.6
] $UI_optc1wB $UI_optrowh [zoomtoggle (! $zoomtoggle)] -1
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $invmouse 0.016
uitext "Invert Mouse" 0.6
] $UI_optc1wB $UI_optrowh [invmouse (! $invmouse)] -1
uialign* -1 0
]
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "UI Sensitivity" 0.6]
uihlist 0 [
UIhslider uisensitivity 0.1 4.0 0.1 0.3 0.032 [uitext $uisensitivity 0.6]
uifield uisensitivity 3 [] 0.65 style_generic_focus
]
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
UIbutton "hold2" [
UIcheckbox $showfps 0.016
uitext "Show FPS" 0.6
] $UI_optc1wB $UI_optrowh [showfps (! $showfps)] -1
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $wallclock 0.016
uitext "Show Clock" 0.6
] $UI_optc1wB $UI_optrowh [wallclock (! $wallclock)] -1
uialign* -1 0
uihlist 0 [
UIbutton "hold2" [
UIcheckbox $wallclock24 0.016
uitext (concatword (? (! $wallclock) "^f4") "24 Hour") 0.6
] 0.178 $UI_optrowh [wallclock24 (! $wallclock24)] -1
UIbutton "hold2" [
UIcheckbox $wallclocksecs 0.016
uitext (concatword (? (! $wallclock) "^f4") "Seconds") 0.6
] 0.178 $UI_optrowh [wallclocksecs (! $wallclocksecs)] -1
]
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $hudgun 0.016
uitext "Show Weapon" 0.6
] $UI_optc1wB $UI_optrowh [hudgun (! $hudgun)] -1
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $damagescreen 0.016
uitext "Bloody Screen" 0.6
] $UI_optc1wB $UI_optrowh [damagescreen (! $damagescreen)] -1
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $blood 0.016
uitext "Blood" 0.6
] $UI_optc1wB $UI_optrowh [blood (! $blood)] -1
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
UIbutton "hold2" [
UIcheckbox (! $hidedead) 0.016
uitext "Show Dead Players" 0.6
] $UI_optc1wB $UI_optrowh [hidedead (! $hidedead)] -1
UIhslider ragdollmillis 0 300000 5000 0.3 $UI_optrowh [uitext (concatword (? $hidedead "^f4") (div $ragdollmillis 1000)) 0.6]
uialign* -1 0
]
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext (concatword (? $hidedead "^f4") "Ragdoll Velocity") 0.6]
UIhslider deadpush 1 20 1 0.3 $UI_optrowh [uitext (concatword (? $hidedead "^f4") $deadpush) 0.6]
uialign* -1 0
]
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Fullbright Models" 0.6]
uihlist 0 [
UIlistslider fullbrightmodels = [0 "^f4off" 60 "^f1subtle" 100 "^f0bright" 150 "^f2overbright" 200 "^f3max"] 0.3 $UI_optrowh
uifield fullbrightmodels 3 [] 0.65 style_generic_focus
]
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Radar" 0.6]
uihlist 0 [
UIbutton "hold2" [
UIcheckbox $radarteammates 0.016
uitext "Teammates" 0.6
] 0.178 $UI_optrowh [radarteammates (! $radarteammates)] -1
UIbutton "hold2" [
UIcheckbox $showminimap 0.016
uitext "Mini-Map" 0.6
] 0.178 $UI_optrowh [showminimap (! $showminimap)] -1
]
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Scoreboard" 0.6]
uivlist 0 [
uihlist 0 [
UIbutton "hold2" [
UIcheckbox $showkills 0.016
uitext "Kills" 0.6
] 0.178 $UI_optrowh [showkills (! $showkills)] -1
UIbutton "hold2" [
UIcheckbox $showdeaths 0.016
uitext "Deaths" 0.6
] 0.178 $UI_optrowh [showdeaths (! $showdeaths)] -1
]
uihlist 0 [
UIbutton "hold2" [
UIcheckbox $showscore 0.016
uitext "Score" 0.6
] 0.178 $UI_optrowh [showscore (! $showscore)] -1
uifill 0.178
]
uihlist 0 [
UIbutton "hold2" [
UIcheckbox $showping 0.016
uitext "Ping" 0.6
] 0.178 $UI_optrowh [showping (! $showping)] -1
UIbutton "hold2" [
UIcheckbox $showclientnum 0.016
uitext "Client#" 0.6
] 0.178 $UI_optrowh [showclientnum (! $showclientnum)] -1
]
uihlist 0 [
UIbutton "hold2" [
UIcheckbox $showip 0.016
uitext "IP:Port" 0.6
] 0.178 $UI_optrowh [showip (! $showip)] -1
UIbutton "hold2" [
UIcheckbox $showspectators 0.016
uitext "Spectators" 0.6
] 0.178 $UI_optrowh [showspectators (! $showspectators)] -1
]
uihlist 0 [
UIbutton "hold2" [
UIcheckbox $sbtransparent 0.016
uitext "Transparent" 0.6
] 0.178 $UI_optrowh [sbtransparent (! $sbtransparent)] -1
uifill 0.178
]
uialign* -1 -1
]
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
] 1 [//Edit/////////////////////////////////////////////////////////////////////////
UI_optbar//----------------------------------------------------------------------
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Shift Floatspeed" 0.6]
uihlist 0 [
UIhslider editfloatspeed 10 10000 10 0.3 $UI_optrowh [uitext $editfloatspeed 0.6]
uifield editfloatspeed 4 [] 0.65 style_generic_focus
]
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
] 2 [//Graphics/////////////////////////////////////////////////////////////////////
UI_optbar//----------------------------------------------------------------------
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Shadow Resolution" 0.6]
UIlistslider smsize = [11 "^f1low" 12 "^f0medium" 13 "^f2high"] 0.3 $UI_optrowh
uialign* -1 0
]
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Shadow Filtering" 0.6]
UIlistslider smfilter = [0 "^f1low" 1 "^f0medium" 2 "^f2high" 3 "^f3ultra"] 0.3 $UI_optrowh
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $gi 0.016
uitext "Global Illumination" 0.6
] $UI_optc1wB $UI_optrowh [gi (! $gi)] -1
UIlistslider rhtaps = [
12 @(concatword (? (! $gi) "^f4" "^f1") "low")
20 @(concatword (? (! $gi) "^f4" "^f0") "medium")
32 @(concatword (? (! $gi) "^f4" "^f2") "high")
] 0.3 $UI_optrowh
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $ao 0.016
uitext "SSAO" 0.6
] $UI_optc1wB $UI_optrowh [ao (! $ao)] -1
UIlistslider aotaps = [
5 @(concatword (? (! $ao) "^f4" "^f1") "low")
8 @(concatword (? (! $ao) "^f4" "^f0") "medium")
12 @(concatword (? (! $ao) "^f4" "^f2") "high")
] 0.3 $UI_optrowh [aobilateral (? (>= $aotaps 8) 4 3)]
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $volumetric 0.016
uitext "Volumetric Lighting" 0.6
] $UI_optc1wB $UI_optrowh [volumetric (! $volumetric)] -1
UIlistslider volsteps = [
12 @(concatword (? (! $volumetric) "^f4" "^f1") "low")
16 @(concatword (? (! $volumetric) "^f4" "^f0") "medium")
24 @(concatword (? (! $volumetric) "^f4" "^f2") "high")
] 0.3 $UI_optrowh [
volbilateral (? (>= $volsteps 16) 2 1)
]
uialign* -1 0
]
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Water" 0.6]
uivlist 0 [
uihlist 0 [
UIbutton "hold2" [
UIcheckbox $waterreflect 0.016
uitext "reflection" 0.6
] 0.178 $UI_optrowh [waterreflect (! $waterreflect)] -1
UIbutton "hold2" [
UIcheckbox $caustics 0.016
uitext "caustics" 0.6
] 0.178 $UI_optrowh [caustics (! $caustics)] -1
]
UIbutton "hold2" [
UIcheckbox $vertwater 0.016
uitext "animation" 0.6
] 0.178 $UI_optrowh [vertwater (! $vertwater)] -1
uialign* -1 -1
]
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $softparticles 0.016
uitext "Soft Particles" 0.6
] $UI_optc1wB $UI_optrowh [softparticles (! $softparticles)] -1
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $stains 0.016
uitext "Stains" 0.6
] $UI_optc1wB $UI_optrowh [stains (! $stains)] -1
uihlist 0 [
UIlistslider stainfade = [
2 @(concatword (? (! $stains) "^f4" "^f1") "instant-fade")
15 @(concatword (? (! $stains) "^f4" "^f0") "quick-fade")
30 @(concatword (? (! $stains) "^f4" "^f2") "moderate-fade")
60 @(concatword (? (! $stains) "^f4" "^f3") "slow-fade")
] 0.3 $UI_optrowh [
maxstaintris (? (> $stainfade 15) 8192 2048)
]
uifield stainfade 4 [
maxstaintris (? (> $stainfade 15) 8192 2048)
] 0.65 style_generic_focus
]
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $grass 0.016
uitext "3D Grass" 0.6
] $UI_optc1wB $UI_optrowh [grass (! $grass)] -1
uihlist 0 [
UIlistslider grassdist = [
128 @(concatword (? (! $grass) "^f4" "^f1") "quick-fade")
256 @(concatword (? (! $grass) "^f4" "^f0") "moderate-fade")
512 @(concatword (? (! $grass) "^f4" "^f2") "slow-fade")
1024 @(concatword (? (! $grass) "^f4" "^f3") "slower-fade")
] 0.3 $UI_optrowh
uifield grassdist 4 [] 0.65 style_generic_focus
]
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
] 3 [//Display//////////////////////////////////////////////////////////////////////
UI_optbar//----------------------------------------------------------------------
uitablerow [
UIbutton "hold2" [
UIcheckbox $fullscreen 0.016
uitext "Fullscreen" 0.6
] $UI_optc1wB $UI_optrowh [fullscreen (! $fullscreen)] -1
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Anisotropic Filtering" 0.6]
UIlistslider aniso = [0 "^f4off" 2 "^f12x" 4 "^f04x" 8 "^f28x" 16 "^f316x"] 0.3 $UI_optrowh
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
UIbutton "hold2" [
UIcheckbox $smaa 0.016
uitext "Morphological AA" 0.6
] $UI_optc1wB $UI_optrowh [smaa (! $smaa)] -1
UIlistslider smaaquality = [
0 @(concatword (? (! $smaa) "^f4" "^f1") "low")
1 @(concatword (? (! $smaa) "^f4" "^f0") "medium")
2 @(concatword (? (! $smaa) "^f4" "^f2") "high")
3 @(concatword (? (! $smaa) "^f4" "^f3") "ultra")
] 0.3 $UI_optrowh [smaacoloredge (>= $smaaquality 3)]
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $tqaa 0.016
uitext "Temporal AA" 0.6
] $UI_optc1wB $UI_optrowh [tqaa (! $tqaa)] -1
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $fxaa 0.016
uitext "FXAA" 0.6
] $UI_optc1wB $UI_optrowh [fxaa (! $fxaa)] -1
UIlistslider fxaaquality = [
0 @(concatword (? (! $fxaa) "^f4" "^f1") "low")
1 @(concatword (? (! $fxaa) "^f4" "^f0") "medium")
2 @(concatword (? (! $fxaa) "^f4" "^f2") "high")
3 @(concatword (? (! $fxaa) "^f4" "^f3") "ultra")
] 0.3 $UI_optrowh
uialign* -1 0
]
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Multisample AA" 0.6]
UIlistslider msaa = [0 "^f4off" 2 "^f12x" 4 "^f04x" 8 "^f28x" 16 "^f316x"] 0.3 $UI_optrowh
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Gamma" 0.6]
uihlist 0 [
UIhslider gamma 30 300 5 0.3 $UI_optrowh [uitext $gamma 0.6]
uifield gamma 3 [] 0.65 style_generic_focus
]
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox $vsync 0.016
uitext "V-sync" 0.6
] $UI_optc1wB $UI_optrowh [vsync (! $vsync)] -1
UIbutton "hold2" [
UIcheckbox $vsynctear 0.016
uitext (concatword (? (! $vsync) "^f4") "Tear") 0.6
] 0.15 $UI_optrowh [vsynctear (! $vsynctear)] -1
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
] 4 [//Resolution///////////////////////////////////////////////////////////////////
UI_optbar//----------------------------------------------------------------------
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Aspect Ratio" 0.6]
UIlistslider UI_aspectratio =s $opt_ratios_assoc 0.3 $UI_optrowh [
if (=s $UI_aspectratio "custom") [] [
UI_resolution = (at $[UI_ratio@UI_aspectratio] 1)
screenw (at $UI_resolution 0)
screenh (at $UI_resolution 1)
]
]
uialign* -1 0
]
uitablerow [
UIbutton "hold2" [
UIcheckbox (!=s $UI_aspectratio "custom") 0.016
uitext "Preset Resolution" 0.6
] $UI_optc1wB $UI_optrowh [
if (=s $UI_aspectratio "custom") [
UI_findratio
if (=s $UI_aspectratio "custom") [
UI_aspectratio = "16:10"
UI_resolution = (at $[UI_ratio@UI_aspectratio] 1)
screenw (at $UI_resolution 0)
screenh (at $UI_resolution 1)
]
] [
UI_aspectratio = "custom"
]
] -1
if (=s $UI_aspectratio "custom") [
uihlist 0.009 [
uifield screenw 5 [] 0.65 style_generic_focus
uitext "x" 0.6
uifield screenh 5 [] 0.65 style_generic_focus
UIbutton "" [uitext "Native" 0.6] 0.1 $UI_optrowh [
UI_resolution = (concat $desktopw $desktoph)
UI_findratio
screenw (at $UI_resolution 0)
screenh (at $UI_resolution 1)
]
]
] [
UIlistslider UI_resolution = (
looplistconcat i $[UI_ratio@UI_aspectratio] [
result (concat (escape $i) (strreplace $i " " "x"))
]
) 0.3 $UI_optrowh [
screenw (at $UI_resolution 0)
screenh (at $UI_resolution 1)
]
]
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext "Upscaling" 0.6]
UIlistslider gscalecubic = [0 "^f1low" 1 "^f0high"] 0.3 $UI_optrowh
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
] 5 [//Audio////////////////////////////////////////////////////////////////////////
UI_optbar//----------------------------------------------------------------------
uitablerow [
UIbutton "hold2" [
UIcheckbox $sound 0.016
uitext "Enable Audio" 0.6
] $UI_optc1wB $UI_optrowh [sound (! $sound)] -1
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext (concatword (? (! $sound) "^f4") "Sound Volume") 0.6]
uihlist 0 [
UIhslider soundvol 0 255 5 0.3 $UI_optrowh [uitext $soundvol 0.6]
uifield soundvol 3 [] 0.65 style_generic_focus
]
uialign* -1 0
]
uitablerow [
uihlist 0.01 [uifill $UI_optc1wA ; uitext (concatword (? (! $sound) "^f4") "Music Volume") 0.6]
uihlist 0 [
UIhslider musicvol 0 255 5 0.3 $UI_optrowh [uitext $musicvol 0.6]
uifield musicvol 3 [] 0.65 style_generic_focus
]
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
UIbutton "hold2" [
UIcheckbox $hitsound 0.016
uitext (concatword (? (! $sound) "^f4") "Hit Confirmation") 0.6
] $UI_optc1wB $UI_optrowh [hitsound (! $hitsound)] -1
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
uitablerow [
UIbutton "hold2" [
UIcheckbox $mumble 0.016
uitext "Mumble Positional Audio" 0.6
] $UI_optc1wB $UI_optrowh [mumble (! $mumble)] -1
uialign* -1 0
]
UI_optbar//----------------------------------------------------------------------
]
]
]
]
UIvscroll 0.02 0.6 1.421 0.5
]
] [
UI_aspectratio = "custom"
UI_resolution = (concat $screenw $screenh)
UI_findratio
] [if (pendingchanges) [showui "changes"]] [] "Options"