/* =========================================================================== Copyright (C) 2007 Open Arena Team This file is part of Open Arena. Open Arena is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Open Arena is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Open Arena; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA =========================================================================== */ #include "ui/menudef.h" // classic H*L style menu { menuDef { name "controls" visible 0 fullscreen 1 background MP_BACKGROUND focusColor MP_FOCUSCOLOR rect 0 0 640 480 outOfBoundsClick style 0 onOpen { } onEsc { close controls; open configuration; } itemDef { name titleness text "Controls" style 0 type 0 textstyle 6 textscale 1 rect 0 65 1 1 textalign 0 textalignx 48 textaligny 40 forecolor MP_TITLECOLOR visible 1 } // The Bar of Buttons itemDef { name button2 text "Done" style 0 type 1 textstyle 3 textscale 0.3 rect 52 177 163 34 textalign 0 textalignx 5 textaligny 20 forecolor MP_TEXTCOLOR visible 1 action { play "ui/assets/select.wav"; open configuration; close controls; } } // Movement Group itemDef { name looking style 0 group movements text "Aiming" textstyle 6 textscale .25 rect 215 332 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Turn Left: " type ITEM_TYPE_BIND cvar "+left" textstyle 6 textscale .20 rect 215 376 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Turn Right: " type ITEM_TYPE_BIND cvar "+right" textstyle 6 textscale .20 rect 215 388 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Look Up: " type ITEM_TYPE_BIND cvar "+lookup" textstyle 6 textscale .20 rect 215 400 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Look Down: " type ITEM_TYPE_BIND cvar "+lookdown" textstyle 6 textscale .20 rect 215 412 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Center View: " type ITEM_TYPE_BIND cvar "centerview" textstyle 6 textscale .20 rect 215 424 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Zoom: " type ITEM_TYPE_BIND cvar "+zoom" textstyle 6 textscale .20 rect 215 436 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Mouse look (hold): " type ITEM_TYPE_BIND cvar "+mlook" textstyle 6 textscale .20 rect 215 448 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Free Look: " type ITEM_TYPE_YESNO cvar "cl_freelook" textstyle 6 textscale .20 rect 215 460 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } // Movement itemDef { name looking style 0 group movements text "Movement" textstyle 6 textscale .25 rect 415 378 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Forward: " type ITEM_TYPE_BIND cvar "+forward" textstyle 6 textscale .20 rect 415 400 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Backpedal: " type ITEM_TYPE_BIND cvar "+back" textstyle 6 textscale .20 rect 415 412 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Strafe Left: " type ITEM_TYPE_BIND cvar "+moveleft" textstyle 6 textscale .20 rect 415 424 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Strafe Right: " type ITEM_TYPE_BIND cvar "+moveright" textstyle 6 textscale .20 rect 415 436 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Jump: " type ITEM_TYPE_BIND cvar "+moveup" textstyle 6 textscale .20 rect 415 448 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Crouch: " type ITEM_TYPE_BIND cvar "+movedown" textstyle 6 textscale .20 rect 415 460 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Turn Left: " type ITEM_TYPE_BIND cvar "+left" textstyle 6 textscale .20 rect 531 400 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } itemDef { name looking style 0 group movements text "Strafe: " type ITEM_TYPE_BIND cvar "+strafe" textstyle 6 textscale .20 rect 531 424 116 12 textalign 0 textalignx 0 textaligny 10 forecolor MP_TEXTCOLOR visible 1 } }