| 1 |
/* |
| 2 |
=========================================================================== |
| 3 |
Copyright (C) 2007 Open Arena Team |
| 4 |
|
| 5 |
This file is part of Open Arena. |
| 6 |
|
| 7 |
Open Arena is free software; you can redistribute it |
| 8 |
and/or modify it under the terms of the GNU General Public License as |
| 9 |
published by the Free Software Foundation; either version 2 of the License, |
| 10 |
or (at your option) any later version. |
| 11 |
|
| 12 |
Open Arena is distributed in the hope that it will be |
| 13 |
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
GNU General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU General Public License |
| 18 |
along with Open Arena; if not, write to the Free Software |
| 19 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 |
=========================================================================== |
| 21 |
*/ |
| 22 |
|
| 23 |
#include "ui/menudef.h" |
| 24 |
|
| 25 |
// classic H*L style menu |
| 26 |
|
| 27 |
{ |
| 28 |
menuDef { |
| 29 |
name "contentcontrol" |
| 30 |
visible 0 |
| 31 |
fullscreen 1 |
| 32 |
background MP_BACKGROUND |
| 33 |
focusColor MP_FOCUSCOLOR |
| 34 |
rect 0 0 640 480 |
| 35 |
outOfBoundsClick |
| 36 |
style 0 |
| 37 |
onOpen { } |
| 38 |
onEsc { |
| 39 |
close contentcontrol; |
| 40 |
open configuration; |
| 41 |
} |
| 42 |
|
| 43 |
itemDef { |
| 44 |
name titleness |
| 45 |
text "Content Control" |
| 46 |
style 0 |
| 47 |
type 0 |
| 48 |
textstyle 6 |
| 49 |
textscale 1 |
| 50 |
rect 0 65 1 1 |
| 51 |
textalign 0 |
| 52 |
textalignx 48 |
| 53 |
textaligny 40 |
| 54 |
forecolor MP_TITLECOLOR |
| 55 |
visible 1 |
| 56 |
} |
| 57 |
|
| 58 |
// The Bar of Buttons |
| 59 |
|
| 60 |
itemDef { |
| 61 |
name button2 |
| 62 |
text "Done" |
| 63 |
style 0 |
| 64 |
type 1 |
| 65 |
textstyle 3 |
| 66 |
textscale 0.3 |
| 67 |
rect 52 177 163 34 |
| 68 |
textalign 0 |
| 69 |
textalignx 5 |
| 70 |
textaligny 20 |
| 71 |
forecolor MP_TEXTCOLOR |
| 72 |
visible 1 |
| 73 |
action |
| 74 |
{ |
| 75 |
play "ui/assets/select.wav"; |
| 76 |
open configuration; |
| 77 |
close contentcontrol; |
| 78 |
} |
| 79 |
} |
| 80 |
// the content controls |
| 81 |
|
| 82 |
itemDef { |
| 83 |
name volume |
| 84 |
style 0 |
| 85 |
text "Quality:" |
| 86 |
style 0 |
| 87 |
type 0 |
| 88 |
textstyle 6 |
| 89 |
textscale .25 |
| 90 |
rect 212 137 1 1 |
| 91 |
textalign 0 |
| 92 |
textalignx 6 |
| 93 |
textaligny 18 |
| 94 |
forecolor MP_TEXTCOLOR |
| 95 |
visible 1 |
| 96 |
} |
| 97 |
|
| 98 |
|
| 99 |
// MAX PRAYERS |
| 100 |
itemDef { |
| 101 |
name maxprayamer |
| 102 |
style 0 |
| 103 |
text "Blood:" |
| 104 |
style 0 |
| 105 |
type 0 |
| 106 |
textstyle 6 |
| 107 |
textscale .25 |
| 108 |
rect 212 200 1 1 |
| 109 |
textalign 0 |
| 110 |
textalignx 6 |
| 111 |
textaligny 18 |
| 112 |
forecolor MP_TEXTCOLOR |
| 113 |
visible 1 |
| 114 |
} |
| 115 |
itemDef { |
| 116 |
name mussic |
| 117 |
style 0 |
| 118 |
type ITEM_TYPE_MULTI |
| 119 |
text "" |
| 120 |
cvar "com_blood" |
| 121 |
cvarFloatList { "Clean" 0 "Violent" 1} |
| 122 |
background "ui/assets/scrollbar" |
| 123 |
textstyle 6 |
| 124 |
textscale .24 |
| 125 |
rect 212 229 150 24 |
| 126 |
textalign 0 |
| 127 |
textalignx 6 |
| 128 |
textaligny 18 |
| 129 |
|
| 130 |
forecolor MP_TEXTCOLOR |
| 131 |
backcolor 0.0 0.0 0.0 1 |
| 132 |
outlinecolor 1 0.5 0.01 0.3 |
| 133 |
visible 1 |
| 134 |
} |
| 135 |
// other buttons |
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
itemDef { |
| 140 |
name yourmother |
| 141 |
style 0 |
| 142 |
text "Show gibs:" |
| 143 |
type ITEM_TYPE_MULTI |
| 144 |
cvar "cg_showGibs" |
| 145 |
cvarFloatList { "Hide gibs" 0 "MMM FRESH MEAT" 1 } |
| 146 |
textstyle 6 |
| 147 |
textscale .24 |
| 148 |
rect 212 287 150 24 |
| 149 |
textalign 0 |
| 150 |
textalignx 6 |
| 151 |
textaligny 18 |
| 152 |
forecolor MP_TEXTCOLOR |
| 153 |
visible 1 |
| 154 |
} |
| 155 |
/* |
| 156 |
itemDef { |
| 157 |
name shadows |
| 158 |
style 0 |
| 159 |
text "Shadows: " |
| 160 |
type ITEM_TYPE_MULTI |
| 161 |
cvar "cg_shadows" |
| 162 |
cvarFloatList { "Blob" 1 "Volumetric" 2 "Planar" 3 } |
| 163 |
textstyle 6 |
| 164 |
textscale .24 |
| 165 |
rect 54 287 116 24 |
| 166 |
textalign 0 |
| 167 |
textalignx 6 |
| 168 |
textaligny 20 |
| 169 |
forecolor MP_TEXTCOLOR |
| 170 |
visible 1 |
| 171 |
action { uiScript glCustom } |
| 172 |
} |
| 173 |
|
| 174 |
|
| 175 |
// other buttons |
| 176 |
|
| 177 |
itemDef { |
| 178 |
name frares |
| 179 |
style 0 |
| 180 |
text "Fullscreen:" |
| 181 |
cvar "r_fullscreen" |
| 182 |
style 0 |
| 183 |
type ITEM_TYPE_YESNO |
| 184 |
textstyle 6 |
| 185 |
textscale .22 |
| 186 |
rect 54 316 117 24 |
| 187 |
textalign 0 |
| 188 |
textalignx 6 |
| 189 |
textaligny 20 |
| 190 |
forecolor MP_TEXTCOLOR |
| 191 |
visible 1 |
| 192 |
action { uiScript glCustom } |
| 193 |
} |
| 194 |
|
| 195 |
itemDef { |
| 196 |
name pure |
| 197 |
style 0 |
| 198 |
text "GL Extensions:" |
| 199 |
cvar "r_allowExtensions" |
| 200 |
style 0 |
| 201 |
type ITEM_TYPE_YESNO |
| 202 |
textstyle 6 |
| 203 |
textscale .22 |
| 204 |
rect 54 340 116 24 |
| 205 |
textalign 0 |
| 206 |
textalignx 6 |
| 207 |
textaligny 20 |
| 208 |
forecolor MP_TEXTCOLOR |
| 209 |
visible 1 |
| 210 |
action { uiScript glCustom } |
| 211 |
} |
| 212 |
itemDef { |
| 213 |
name ded |
| 214 |
style 0 |
| 215 |
text "Color Depth:" |
| 216 |
style 0 |
| 217 |
type ITEM_TYPE_MULTI |
| 218 |
cvar "r_colorBits" |
| 219 |
cvarFloatList { "Desktop" 0 "16bpp" 16 "24bpp" 24 "32bpp" 32 } |
| 220 |
textstyle 6 |
| 221 |
textscale .22 |
| 222 |
rect 54 364 116 24 |
| 223 |
textalign 0 |
| 224 |
textalignx 6 |
| 225 |
textaligny 20 |
| 226 |
forecolor MP_TEXTCOLOR |
| 227 |
visible 1 |
| 228 |
action { uiScript glCustom } |
| 229 |
} |
| 230 |
|
| 231 |
// row 2 of other buttons |
| 232 |
|
| 233 |
itemDef { |
| 234 |
name fraglimit |
| 235 |
text "Multitexturing:" |
| 236 |
style 0 |
| 237 |
type ITEM_TYPE_MULTI |
| 238 |
|
| 239 |
cvar "r_vertexLight" |
| 240 |
cvarFloatList { "Yes" 0 "No" 1 } |
| 241 |
textstyle 6 |
| 242 |
textscale .22 |
| 243 |
rect 215 316 117 24 |
| 244 |
|
| 245 |
textalign 0 |
| 246 |
textalignx 6 |
| 247 |
textaligny 20 |
| 248 |
forecolor MP_TEXTCOLOR |
| 249 |
visible 1 |
| 250 |
action { uiScript glCustom } |
| 251 |
} |
| 252 |
|
| 253 |
itemDef { |
| 254 |
name timelimit |
| 255 |
text "Model Detail:" |
| 256 |
style 0 |
| 257 |
type ITEM_TYPE_MULTI |
| 258 |
cvar "r_lodBias" |
| 259 |
cvarFloatList { "Insane" -50 "High" 0 "Medium" 1 "Low" 2 "Minimum" 50} |
| 260 |
textstyle 6 |
| 261 |
textscale .22 |
| 262 |
rect 215 340 116 24 |
| 263 |
textalign 0 |
| 264 |
textalignx 6 |
| 265 |
textaligny 20 |
| 266 |
forecolor MP_TEXTCOLOR |
| 267 |
action { |
| 268 |
uiScript glCustom ; uiScript update "r_lodbias" |
| 269 |
} |
| 270 |
visible 1 |
| 271 |
} |
| 272 |
itemDef { |
| 273 |
name caplimit |
| 274 |
text "Texture filter:" |
| 275 |
type ITEM_TYPE_MULTI |
| 276 |
cvar "r_texturemode" |
| 277 |
cvarStrList { "Bilinear", "GL_LINEAR_MIPMAP_NEAREST", "Trilinear", "GL_LINEAR_MIPMAP_LINEAR" } |
| 278 |
style 0 |
| 279 |
maxchars 5 |
| 280 |
textstyle 6 |
| 281 |
textscale .22 |
| 282 |
textstyle 6 |
| 283 |
textscale .22 |
| 284 |
rect 215 364 116 24 |
| 285 |
textalign 0 |
| 286 |
textalignx 6 |
| 287 |
textaligny 20 |
| 288 |
forecolor MP_TEXTCOLOR |
| 289 |
visible 1 |
| 290 |
} |
| 291 |
|
| 292 |
itemDef { |
| 293 |
name minplayers |
| 294 |
text "Flares:" |
| 295 |
cvar "r_flares" |
| 296 |
style 0 |
| 297 |
type ITEM_TYPE_YESNO |
| 298 |
maxchars 2 |
| 299 |
textstyle 6 |
| 300 |
textscale .22 |
| 301 |
textstyle 6 |
| 302 |
textscale .22 |
| 303 |
rect 215 388 116 24 |
| 304 |
textalign 0 |
| 305 |
textalignx 6 |
| 306 |
action { uiScript glCustom } |
| 307 |
textaligny 20 |
| 308 |
forecolor MP_TEXTCOLOR |
| 309 |
visible 1 |
| 310 |
} |
| 311 |
|
| 312 |
itemDef { |
| 313 |
name bloom |
| 314 |
text "Bloom:" |
| 315 |
cvar "r_bloom" |
| 316 |
style 0 |
| 317 |
type ITEM_TYPE_YESNO |
| 318 |
maxchars 2 |
| 319 |
textstyle 6 |
| 320 |
textscale .22 |
| 321 |
textstyle 6 |
| 322 |
textscale .22 |
| 323 |
rect 54 412 116 24 |
| 324 |
textalign 0 |
| 325 |
textalignx 6 |
| 326 |
action { uiScript glCustom } |
| 327 |
textaligny 20 |
| 328 |
forecolor MP_TEXTCOLOR |
| 329 |
visible 1 |
| 330 |
} |
| 331 |
|
| 332 |
itemDef { |
| 333 |
name minfayers |
| 334 |
text "Detail Texturing:" |
| 335 |
cvar "r_detailTextures" |
| 336 |
style 0 |
| 337 |
type ITEM_TYPE_YESNO |
| 338 |
maxchars 2 |
| 339 |
textstyle 6 |
| 340 |
textscale .22 |
| 341 |
textstyle 6 |
| 342 |
textscale .22 |
| 343 |
rect 54 388 116 24 |
| 344 |
textalign 0 |
| 345 |
textalignx 6 |
| 346 |
textaligny 20 |
| 347 |
forecolor MP_TEXTCOLOR |
| 348 |
visible 1 |
| 349 |
} |
| 350 |
|
| 351 |
itemDef { |
| 352 |
name stencilbuffer |
| 353 |
style 0 |
| 354 |
text "Stencil Buffer: " |
| 355 |
type ITEM_TYPE_MULTI |
| 356 |
cvar "r_stencilbits" |
| 357 |
cvarFloatList { "None" 0 "Medium" 2 "High" 8 } |
| 358 |
textstyle 6 |
| 359 |
textscale .22 |
| 360 |
rect 215 412 116 24 |
| 361 |
textalign 0 |
| 362 |
textalignx 6 |
| 363 |
action { uiScript glCustom; uiScript update "r_stencilbits" } |
| 364 |
textaligny 20 |
| 365 |
forecolor MP_TEXTCOLOR |
| 366 |
visible 1 |
| 367 |
} |
| 368 |
*/ |
| 369 |
|
| 370 |
} |