| 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 |
{ |
| 26 |
assetGlobalDef { |
| 27 |
font "gfx/2d/bigchars" 16 |
| 28 |
smallFont "gfx/2d/bigchars" 12 |
| 29 |
bigFont "gfx/2d/bigchars" 20 |
| 30 |
cursor "ui/assets/cursor" |
| 31 |
shadowColor 0.0 0.0 0.0 0.25 |
| 32 |
|
| 33 |
} |
| 34 |
|
| 35 |
|
| 36 |
menuDef { |
| 37 |
name main |
| 38 |
background MP_BACKGROUND |
| 39 |
fullScreen MENU_TRUE |
| 40 |
rect 0 0 640 480 |
| 41 |
visible MENU_TRUE |
| 42 |
focusColor MP_FOCUSCOLOR |
| 43 |
onOpen { |
| 44 |
setitemcolor fadebox backcolor 0 0 0 1 ; |
| 45 |
playlooped "music/menu" ; |
| 46 |
uiScript stopRefresh ; |
| 47 |
} |
| 48 |
|
| 49 |
|
| 50 |
itemDef { |
| 51 |
name titleness |
| 52 |
text MISSIONPACK_TITLE |
| 53 |
style 0 |
| 54 |
type 0 |
| 55 |
textstyle 6 |
| 56 |
textscale 1 |
| 57 |
rect 0 65 1 1 |
| 58 |
textalign 0 |
| 59 |
textalignx 48 |
| 60 |
textaligny 90 |
| 61 |
forecolor MP_TITLECOLOR |
| 62 |
visible 1 |
| 63 |
} |
| 64 |
|
| 65 |
// The Bar of Buttons |
| 66 |
|
| 67 |
itemDef { |
| 68 |
name mouseybar |
| 69 |
type 1 |
| 70 |
style 1 |
| 71 |
rect 73 177 425 34 |
| 72 |
visible 1 |
| 73 |
mouseEnter { hide stdta ; show gameselect } |
| 74 |
mouseExit { hide gameselect ; show stdta } |
| 75 |
decoration |
| 76 |
} |
| 77 |
|
| 78 |
itemDef { |
| 79 |
name stdta |
| 80 |
text "Play" |
| 81 |
style 0 |
| 82 |
type 1 |
| 83 |
textstyle 3 |
| 84 |
textscale 0.3 |
| 85 |
rect 73 177 100 34 |
| 86 |
textalign 0 |
| 87 |
textalignx 5 |
| 88 |
textaligny 20 |
| 89 |
forecolor MP_TEXTCOLOR |
| 90 |
visible 1 |
| 91 |
} |
| 92 |
|
| 93 |
|
| 94 |
itemDef { |
| 95 |
name gameselect |
| 96 |
text "Single Player" |
| 97 |
style 0 |
| 98 |
type 1 |
| 99 |
textstyle 3 |
| 100 |
textscale 0.3 |
| 101 |
rect 73 177 125 34 |
| 102 |
textalign 0 |
| 103 |
textalignx 5 |
| 104 |
textaligny 20 |
| 105 |
forecolor MP_TEXTCOLOR |
| 106 |
visible 0 |
| 107 |
action { |
| 108 |
close main; |
| 109 |
open skirmish |
| 110 |
} |
| 111 |
} |
| 112 |
|
| 113 |
itemDef { |
| 114 |
name gameselect |
| 115 |
text "Start Server" |
| 116 |
style 0 |
| 117 |
type 1 |
| 118 |
textstyle 3 |
| 119 |
textscale 0.3 |
| 120 |
rect 200 177 125 34 |
| 121 |
textalign 0 |
| 122 |
textalignx 5 |
| 123 |
textaligny 20 |
| 124 |
forecolor MP_TEXTCOLOR |
| 125 |
visible 0 |
| 126 |
action { |
| 127 |
close main; |
| 128 |
open createserver |
| 129 |
} |
| 130 |
} |
| 131 |
|
| 132 |
itemDef { |
| 133 |
name gameselect |
| 134 |
text "Multiplayer" |
| 135 |
style 0 |
| 136 |
type 1 |
| 137 |
textstyle 3 |
| 138 |
textscale 0.3 |
| 139 |
rect 325 177 115 34 |
| 140 |
textalign 0 |
| 141 |
textalignx 5 |
| 142 |
textaligny 20 |
| 143 |
forecolor MP_TEXTCOLOR |
| 144 |
visible 0 |
| 145 |
action { |
| 146 |
close main; |
| 147 |
open joinserver |
| 148 |
} |
| 149 |
} |
| 150 |
|
| 151 |
itemDef { |
| 152 |
name gameselect |
| 153 |
text "Mods" |
| 154 |
style 0 |
| 155 |
type 1 |
| 156 |
textstyle 3 |
| 157 |
textscale 0.3 |
| 158 |
rect 440 177 30 34 |
| 159 |
textalign 0 |
| 160 |
textalignx 5 |
| 161 |
textaligny 20 |
| 162 |
forecolor MP_TEXTCOLOR |
| 163 |
visible 0 |
| 164 |
action { |
| 165 |
play MP_SND_SELECT; |
| 166 |
} |
| 167 |
} |
| 168 |
|
| 169 |
itemDef { |
| 170 |
name mousebar2 |
| 171 |
type 1 |
| 172 |
style 1 |
| 173 |
rect 73 209 350 34 |
| 174 |
visible 1 |
| 175 |
mouseEnter { hide config ; show configops } |
| 176 |
mouseExit { hide configops ; show config } |
| 177 |
decoration |
| 178 |
} |
| 179 |
|
| 180 |
itemDef { |
| 181 |
name config |
| 182 |
text "Configure" |
| 183 |
style 0 |
| 184 |
type 1 |
| 185 |
textstyle 3 |
| 186 |
textscale 0.3 |
| 187 |
rect 73 209 163 34 |
| 188 |
textalign 0 |
| 189 |
textalignx 5 |
| 190 |
textaligny 20 |
| 191 |
forecolor MP_TEXTCOLOR |
| 192 |
visible 1 |
| 193 |
} |
| 194 |
|
| 195 |
itemDef { |
| 196 |
name configops |
| 197 |
text "Configure Game" |
| 198 |
style 0 |
| 199 |
type 1 |
| 200 |
textstyle 3 |
| 201 |
textscale 0.3 |
| 202 |
textalign 0 |
| 203 |
textalignx 5 |
| 204 |
textaligny 20 |
| 205 |
rect 73 209 163 34 |
| 206 |
forecolor MP_TEXTCOLOR |
| 207 |
visible 0 |
| 208 |
action { |
| 209 |
close main; |
| 210 |
open configuration |
| 211 |
} |
| 212 |
} |
| 213 |
|
| 214 |
itemDef { |
| 215 |
name configops |
| 216 |
text "Player Model" |
| 217 |
style 0 |
| 218 |
type 1 |
| 219 |
textstyle 3 |
| 220 |
textscale 0.3 |
| 221 |
rect 250 209 163 34 |
| 222 |
textalign 0 |
| 223 |
textalignx 5 |
| 224 |
textaligny 20 |
| 225 |
forecolor MP_TEXTCOLOR |
| 226 |
visible 0 |
| 227 |
action { |
| 228 |
close menu; |
| 229 |
open player |
| 230 |
} |
| 231 |
} |
| 232 |
|
| 233 |
itemDef { |
| 234 |
name button8 |
| 235 |
text "Help" |
| 236 |
style 0 |
| 237 |
type 1 |
| 238 |
textstyle 3 |
| 239 |
textscale 0.3 |
| 240 |
rect 73 241 163 34 |
| 241 |
textalign 0 |
| 242 |
textalignx 5 |
| 243 |
textaligny 20 |
| 244 |
forecolor MP_TEXTCOLOR |
| 245 |
visible 1 |
| 246 |
action |
| 247 |
{ |
| 248 |
play MP_SND_SELECT; |
| 249 |
} |
| 250 |
} |
| 251 |
|
| 252 |
itemDef { |
| 253 |
name button10 |
| 254 |
text "Quit" |
| 255 |
style 0 |
| 256 |
type 1 |
| 257 |
textstyle 3 |
| 258 |
textscale 0.3 |
| 259 |
rect 73 273 163 34 |
| 260 |
textalign 0 |
| 261 |
textalignx 5 |
| 262 |
textaligny 20 |
| 263 |
forecolor MP_TEXTCOLOR |
| 264 |
visible 1 |
| 265 |
action |
| 266 |
{ |
| 267 |
play MP_SND_SELECT; |
| 268 |
uiscript "quit"; |
| 269 |
} |
| 270 |
} |
| 271 |
/* crazy idea |
| 272 |
itemDef { |
| 273 |
name modeldec |
| 274 |
ownerdraw UI_PLAYERMODEL |
| 275 |
rect 361 118 300 350 |
| 276 |
style 0 |
| 277 |
decoration |
| 278 |
visible 1 |
| 279 |
} |
| 280 |
*/ |
| 281 |
/*itemDef { |
| 282 |
name button9 |
| 283 |
text "Movies" |
| 284 |
style 0 |
| 285 |
type 1 |
| 286 |
textstyle 3 |
| 287 |
textscale 0.3 |
| 288 |
rect 73 337 163 34 |
| 289 |
textalign 0 |
| 290 |
textalignx 5 |
| 291 |
textaligny 20 |
| 292 |
forecolor MP_TEXTCOLOR |
| 293 |
visible 1 |
| 294 |
action |
| 295 |
{ |
| 296 |
play MP_SND_SELECT; |
| 297 |
} |
| 298 |
}*/ |
| 299 |
|
| 300 |
|
| 301 |
itemDef { |
| 302 |
name warning |
| 303 |
text "OPENARENAMISSIONPACK MENU v0.003" |
| 304 |
style 0 |
| 305 |
type 1 |
| 306 |
textstyle 6 |
| 307 |
textscale .2 |
| 308 |
rect 0 0 32 12 |
| 309 |
textalign 3 |
| 310 |
textalignx 20 |
| 311 |
textaligny 32 |
| 312 |
forecolor 1 1 1 1 |
| 313 |
visible 1 |
| 314 |
} |
| 315 |
} |
| 316 |
} |
| 317 |
} |
| 318 |
} |
| 319 |
} |
| 320 |
} |