| 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 |
//will be the minimal hud but full hud for now |
| 25 |
{ |
| 26 |
assetGlobalDef { |
| 27 |
font "gfx/2d/bigchars" 16 |
| 28 |
smallFont "gfx/2d/bigchars" 12 |
| 29 |
bigFont "gfx/2d/bigchars" 20 |
| 30 |
cursor "gfx/ui/cursor" |
| 31 |
shadowColor 0.0 0.0 0.0 0.25 |
| 32 |
} |
| 33 |
|
| 34 |
menuDef { |
| 35 |
name "hud" |
| 36 |
fullScreen 0 |
| 37 |
visible 1 |
| 38 |
focusColor 0.1 0.6 1 1 |
| 39 |
rect 2 425 190 55 |
| 40 |
|
| 41 |
itemDef { |
| 42 |
name backer |
| 43 |
textstyle 3 |
| 44 |
textscale 0.7 |
| 45 |
rect 0 0 636 55 |
| 46 |
border 1 |
| 47 |
style WINDOW_STYLE_FILLED |
| 48 |
background "ui/assets/sbar" |
| 49 |
bordercolor 0.25 0.25 0.25 0.7 |
| 50 |
forecolor 1 0.5 0.01 1 |
| 51 |
backcolor 0.0 0.0 0.0 0.5 |
| 52 |
outlinecolor 1 0.5 0.01 0.3 |
| 53 |
decoration |
| 54 |
visible 1 |
| 55 |
} |
| 56 |
|
| 57 |
itemDef { |
| 58 |
name "thehead" |
| 59 |
rect 228 8 50 50 |
| 60 |
visible 1 |
| 61 |
decoration |
| 62 |
ownerdraw CG_PLAYER_HEAD |
| 63 |
} |
| 64 |
|
| 65 |
itemDef { |
| 66 |
name healthness |
| 67 |
textstyle 3 |
| 68 |
textscale 1 |
| 69 |
rect 288 0 84 48 |
| 70 |
textalign 0 |
| 71 |
textalignx 1 |
| 72 |
textaligny 1 |
| 73 |
ownerdraw CG_PLAYER_HEALTH |
| 74 |
forecolor 1 1 0.6 1 |
| 75 |
decoration |
| 76 |
visible 1 |
| 77 |
} |
| 78 |
|
| 79 |
itemDef { |
| 80 |
name aricon |
| 81 |
rect 500 0 50 50 |
| 82 |
visible 1 |
| 83 |
decoration |
| 84 |
ownerdraw CG_PLAYER_ARMOR_ICON |
| 85 |
} |
| 86 |
|
| 87 |
itemDef { |
| 88 |
name armor |
| 89 |
textstyle 3 |
| 90 |
textscale 1 |
| 91 |
rect 550 0 84 48 |
| 92 |
textalign 0 |
| 93 |
textalignx 1 |
| 94 |
textaligny 1 |
| 95 |
textscale .75 |
| 96 |
ownerdraw CG_PLAYER_ARMOR_VALUE |
| 97 |
forecolor 1 1 0.6 1 |
| 98 |
decoration |
| 99 |
visible 1 |
| 100 |
} |
| 101 |
|
| 102 |
itemDef { |
| 103 |
name amicon |
| 104 |
rect 87 10 45 45 |
| 105 |
visible 1 |
| 106 |
decoration |
| 107 |
ownerdraw CG_PLAYER_AMMO_ICON |
| 108 |
} |
| 109 |
|
| 110 |
itemDef { |
| 111 |
name ammo |
| 112 |
textstyle 3 |
| 113 |
textscale 1 |
| 114 |
rect 4 0 84 48 |
| 115 |
textalign 0 |
| 116 |
textalignx 1 |
| 117 |
textaligny 1 |
| 118 |
textscale .75 |
| 119 |
ownerdraw CG_PLAYER_AMMO_VALUE |
| 120 |
forecolor 1 1 0.6 1 |
| 121 |
decoration |
| 122 |
visible 1 |
| 123 |
} |
| 124 |
|
| 125 |
itemDef { |
| 126 |
name itemicon |
| 127 |
rect 135 10 15 15 |
| 128 |
visible 1 |
| 129 |
decoration |
| 130 |
ownerdraw CG_PLAYER_ITEM |
| 131 |
} |
| 132 |
|
| 133 |
itemDef { |
| 134 |
name perpow |
| 135 |
rect 135 36 15 15 |
| 136 |
visible 1 |
| 137 |
decoration |
| 138 |
ownerdraw CG_CTF_POWERUP |
| 139 |
} |
| 140 |
|
| 141 |
itemDef { |
| 142 |
name flag1 |
| 143 |
rect 151 10 35 35 |
| 144 |
visible 1 |
| 145 |
decoration |
| 146 |
ownerdraw CG_PLAYER_HASFLAG |
| 147 |
} |
| 148 |
|
| 149 |
itemDef { |
| 150 |
name skull1 |
| 151 |
rect 151 10 50 35 |
| 152 |
visible 1 |
| 153 |
decoration |
| 154 |
ownerdraw CG_HARVESTER_SKULLS |
| 155 |
} |
| 156 |
|
| 157 |
itemDef { |
| 158 |
name spscore |
| 159 |
rect 380 15 40 12 |
| 160 |
visible 1 |
| 161 |
decoration |
| 162 |
forecolor 1 1 1 1 |
| 163 |
text "KillLimit: " |
| 164 |
textscale .25 |
| 165 |
ownerdrawflag CG_SHOW_ANYNONTEAMGAME |
| 166 |
ownerdraw CG_CAPFRAGLIMIT |
| 167 |
} |
| 168 |
|
| 169 |
itemDef { |
| 170 |
name spscore1 |
| 171 |
rect 380 30 40 12 |
| 172 |
visible 1 |
| 173 |
decoration |
| 174 |
text "1st: " |
| 175 |
textscale .25 |
| 176 |
forecolor .25 .25 1 1 |
| 177 |
ownerdrawflag CG_SHOW_ANYNONTEAMGAME |
| 178 |
ownerdraw CG_1STPLACE |
| 179 |
} |
| 180 |
|
| 181 |
itemDef { |
| 182 |
name spscore2 |
| 183 |
rect 440 30 40 12 |
| 184 |
visible 1 |
| 185 |
decoration |
| 186 |
text "2nd: " |
| 187 |
textscale .25 |
| 188 |
forecolor 1 0 0 1 |
| 189 |
ownerdrawflag CG_SHOW_ANYNONTEAMGAME |
| 190 |
ownerdraw CG_2NDPLACE |
| 191 |
} |
| 192 |
|
| 193 |
itemDef { |
| 194 |
name spscore3 |
| 195 |
rect 380 45 40 0 |
| 196 |
visible 1 |
| 197 |
decoration |
| 198 |
text "Score: " |
| 199 |
textscale .2 |
| 200 |
forecolor 1 1 1 1 |
| 201 |
ownerdrawflag CG_SHOW_ANYNONTEAMGAME |
| 202 |
ownerdraw CG_PLAYER_SCORE |
| 203 |
} |
| 204 |
|
| 205 |
itemDef { |
| 206 |
name tscore |
| 207 |
rect 380 15 40 12 |
| 208 |
visible 1 |
| 209 |
decoration |
| 210 |
forecolor 1 1 1 1 |
| 211 |
text "CaptureLimit: " |
| 212 |
textscale .2 |
| 213 |
ownerdrawflag CG_SHOW_ANYTEAMGAME |
| 214 |
ownerdraw CG_CAPFRAGLIMIT |
| 215 |
} |
| 216 |
|
| 217 |
itemDef { |
| 218 |
name tscore1 |
| 219 |
rect 380 30 16 0 |
| 220 |
visible 1 |
| 221 |
decoration |
| 222 |
forecolor .25 .25 1 1 |
| 223 |
text "Blue: " |
| 224 |
textscale .2 |
| 225 |
ownerdrawflag CG_SHOW_ANYTEAMGAME |
| 226 |
ownerdraw CG_BLUE_SCORE |
| 227 |
} |
| 228 |
|
| 229 |
itemDef { |
| 230 |
name tscore2 |
| 231 |
rect 380 40 20 0 |
| 232 |
visible 1 |
| 233 |
decoration |
| 234 |
forecolor 1 0 0 1 |
| 235 |
text "Red: " |
| 236 |
textscale .2 |
| 237 |
ownerdrawflag CG_SHOW_ANYTEAMGAME |
| 238 |
ownerdraw CG_RED_SCORE |
| 239 |
} |
| 240 |
|
| 241 |
itemDef { |
| 242 |
name tscore3 |
| 243 |
rect 380 50 16 0 |
| 244 |
visible 1 |
| 245 |
decoration |
| 246 |
forecolor 1 1 1 1 |
| 247 |
text "Score: " |
| 248 |
textscale .2 |
| 249 |
ownerdrawflag CG_SHOW_ANYTEAMGAME |
| 250 |
ownerdraw CG_PLAYER_SCORE |
| 251 |
} |
| 252 |
|
| 253 |
} |
| 254 |
|
| 255 |
|
| 256 |
// ============================== |
| 257 |
// | VOICE CHAT !!! !!! !!! !!! | |
| 258 |
// ============================== |
| 259 |
menuDef { |
| 260 |
name "voiceMenu" |
| 261 |
fullScreen MENU_FALSE |
| 262 |
visible MENU_FALSE |
| 263 |
focusColor 0.1 0.6 1 1 |
| 264 |
rect 2 2 190 75 |
| 265 |
itemDef { |
| 266 |
name backer |
| 267 |
textstyle 3 |
| 268 |
textscale 0.7 |
| 269 |
rect 0 0 190 86 |
| 270 |
border 1 |
| 271 |
style WINDOW_STYLE_FILLED |
| 272 |
background "ui/assets/sbar" |
| 273 |
bordercolor 0.25 0.25 0.25 0.7 |
| 274 |
forecolor 1 0.5 0.01 1 |
| 275 |
backcolor 0.0 0.0 0.0 0.5 |
| 276 |
outlinecolor 1 0.5 0.01 0.3 |
| 277 |
decoration |
| 278 |
visible 1 |
| 279 |
} |
| 280 |
itemDef { |
| 281 |
name head |
| 282 |
rect 4 4 64 64 |
| 283 |
visible 1 |
| 284 |
decoration |
| 285 |
ownerdraw CG_VOICE_HEAD |
| 286 |
} |
| 287 |
itemDef { |
| 288 |
name headname |
| 289 |
rect 4 67 64 8 |
| 290 |
visible 1 |
| 291 |
decoration |
| 292 |
ownerdraw CG_VOICE_NAME |
| 293 |
textstyle 6 |
| 294 |
textscale .20 |
| 295 |
textalign 0 |
| 296 |
textalignx 0 |
| 297 |
textaligny 10 |
| 298 |
} |
| 299 |
} |
| 300 |
|
| 301 |
} |