| 1 |
/* |
| 2 |
=========================================================================== |
| 3 |
Copyright (C) 1999-2005 Id Software, Inc. |
| 4 |
Modified 2007 Open Arena Team |
| 5 |
|
| 6 |
This file is part of Open Arena. |
| 7 |
|
| 8 |
Open Arena is free software; you can redistribute it |
| 9 |
and/or modify it under the terms of the GNU General Public License as |
| 10 |
published by the Free Software Foundation; either version 2 of the License, |
| 11 |
or (at your option) any later version. |
| 12 |
|
| 13 |
Open Arena is distributed in the hope that it will be |
| 14 |
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with Open Arena; if not, write to the Free Software |
| 20 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 |
=========================================================================== |
| 22 |
*/ |
| 23 |
|
| 24 |
|
| 25 |
#define ITEM_TYPE_TEXT 0 // simple text |
| 26 |
#define ITEM_TYPE_BUTTON 1 // button, basically text with a border |
| 27 |
#define ITEM_TYPE_RADIOBUTTON 2 // toggle button, may be grouped |
| 28 |
#define ITEM_TYPE_CHECKBOX 3 // check box |
| 29 |
#define ITEM_TYPE_EDITFIELD 4 // editable text, associated with a cvar |
| 30 |
#define ITEM_TYPE_COMBO 5 // drop down list |
| 31 |
#define ITEM_TYPE_LISTBOX 6 // scrollable list |
| 32 |
#define ITEM_TYPE_MODEL 7 // model |
| 33 |
#define ITEM_TYPE_OWNERDRAW 8 // owner draw, name specs what it is |
| 34 |
#define ITEM_TYPE_NUMERICFIELD 9 // editable text, associated with a cvar |
| 35 |
#define ITEM_TYPE_SLIDER 10 // mouse speed, volume, etc. |
| 36 |
#define ITEM_TYPE_YESNO 11 // yes no cvar setting |
| 37 |
#define ITEM_TYPE_MULTI 12 // multiple list setting, enumerated |
| 38 |
#define ITEM_TYPE_BIND 13 // multiple list setting, enumerated |
| 39 |
|
| 40 |
#define ITEM_ALIGN_LEFT 0 // left alignment |
| 41 |
#define ITEM_ALIGN_CENTER 1 // center alignment |
| 42 |
#define ITEM_ALIGN_RIGHT 2 // right alignment |
| 43 |
|
| 44 |
#define ITEM_TEXTSTYLE_NORMAL 0 // normal text |
| 45 |
#define ITEM_TEXTSTYLE_BLINK 1 // fast blinking |
| 46 |
#define ITEM_TEXTSTYLE_PULSE 2 // slow pulsing |
| 47 |
#define ITEM_TEXTSTYLE_SHADOWED 3 // drop shadow ( need a color for this ) |
| 48 |
#define ITEM_TEXTSTYLE_OUTLINED 4 // drop shadow ( need a color for this ) |
| 49 |
#define ITEM_TEXTSTYLE_OUTLINESHADOWED 5 // drop shadow ( need a color for this ) |
| 50 |
#define ITEM_TEXTSTYLE_SHADOWEDMORE 6 // drop shadow ( need a color for this ) |
| 51 |
|
| 52 |
#define WINDOW_BORDER_NONE 0 // no border |
| 53 |
#define WINDOW_BORDER_FULL 1 // full border based on border color ( single pixel ) |
| 54 |
#define WINDOW_BORDER_HORZ 2 // horizontal borders only |
| 55 |
#define WINDOW_BORDER_VERT 3 // vertical borders only |
| 56 |
#define WINDOW_BORDER_KCGRADIENT 4 // horizontal border using the gradient bars |
| 57 |
|
| 58 |
#define WINDOW_STYLE_EMPTY 0 // no background |
| 59 |
#define WINDOW_STYLE_FILLED 1 // filled with background color |
| 60 |
#define WINDOW_STYLE_GRADIENT 2 // gradient bar based on background color |
| 61 |
#define WINDOW_STYLE_SHADER 3 // gradient bar based on background color |
| 62 |
#define WINDOW_STYLE_TEAMCOLOR 4 // team color |
| 63 |
#define WINDOW_STYLE_CINEMATIC 5 // cinematic |
| 64 |
|
| 65 |
#define MENU_TRUE 1 // uh.. true |
| 66 |
#define MENU_FALSE 0 // and false |
| 67 |
|
| 68 |
#define HUD_VERTICAL 0x00 |
| 69 |
#define HUD_HORIZONTAL 0x01 |
| 70 |
|
| 71 |
// list box element types |
| 72 |
#define LISTBOX_TEXT 0x00 |
| 73 |
#define LISTBOX_IMAGE 0x01 |
| 74 |
|
| 75 |
// list feeders |
| 76 |
#define FEEDER_HEADS 0x00 // model heads |
| 77 |
#define FEEDER_MAPS 0x01 // text maps based on game type |
| 78 |
#define FEEDER_SERVERS 0x02 // servers |
| 79 |
#define FEEDER_CLANS 0x03 // clan names |
| 80 |
#define FEEDER_ALLMAPS 0x04 // all maps available, in graphic format |
| 81 |
#define FEEDER_REDTEAM_LIST 0x05 // red team members |
| 82 |
#define FEEDER_BLUETEAM_LIST 0x06 // blue team members |
| 83 |
#define FEEDER_PLAYER_LIST 0x07 // players |
| 84 |
#define FEEDER_TEAM_LIST 0x08 // team members for team voting |
| 85 |
#define FEEDER_MODS 0x09 // team members for team voting |
| 86 |
#define FEEDER_DEMOS 0x0a // team members for team voting |
| 87 |
#define FEEDER_SCOREBOARD 0x0b // team members for team voting |
| 88 |
#define FEEDER_Q3HEADS 0x0c // model heads |
| 89 |
#define FEEDER_SERVERSTATUS 0x0d // server status |
| 90 |
#define FEEDER_FINDPLAYER 0x0e // find player |
| 91 |
#define FEEDER_CINEMATICS 0x0f // cinematics |
| 92 |
|
| 93 |
// display flags |
| 94 |
#define CG_SHOW_BLUE_TEAM_HAS_REDFLAG 0x00000001 |
| 95 |
#define CG_SHOW_RED_TEAM_HAS_BLUEFLAG 0x00000002 |
| 96 |
#define CG_SHOW_ANYTEAMGAME 0x00000004 |
| 97 |
#define CG_SHOW_HARVESTER 0x00000008 |
| 98 |
#define CG_SHOW_ONEFLAG 0x00000010 |
| 99 |
#define CG_SHOW_CTF 0x00000020 |
| 100 |
#define CG_SHOW_OBELISK 0x00000040 |
| 101 |
#define CG_SHOW_HEALTHCRITICAL 0x00000080 |
| 102 |
#define CG_SHOW_SINGLEPLAYER 0x00000100 |
| 103 |
#define CG_SHOW_TOURNAMENT 0x00000200 |
| 104 |
#define CG_SHOW_DURINGINCOMINGVOICE 0x00000400 |
| 105 |
#define CG_SHOW_IF_PLAYER_HAS_FLAG 0x00000800 |
| 106 |
#define CG_SHOW_LANPLAYONLY 0x00001000 |
| 107 |
#define CG_SHOW_MINED 0x00002000 |
| 108 |
#define CG_SHOW_HEALTHOK 0x00004000 |
| 109 |
#define CG_SHOW_TEAMINFO 0x00008000 |
| 110 |
#define CG_SHOW_NOTEAMINFO 0x00010000 |
| 111 |
#define CG_SHOW_OTHERTEAMHASFLAG 0x00020000 |
| 112 |
#define CG_SHOW_YOURTEAMHASENEMYFLAG 0x00040000 |
| 113 |
#define CG_SHOW_ANYNONTEAMGAME 0x00080000 |
| 114 |
#define CG_SHOW_2DONLY 0x10000000 |
| 115 |
|
| 116 |
|
| 117 |
#define UI_SHOW_LEADER 0x00000001 |
| 118 |
#define UI_SHOW_NOTLEADER 0x00000002 |
| 119 |
#define UI_SHOW_FAVORITESERVERS 0x00000004 |
| 120 |
#define UI_SHOW_ANYNONTEAMGAME 0x00000008 |
| 121 |
#define UI_SHOW_ANYTEAMGAME 0x00000010 |
| 122 |
#define UI_SHOW_NEWHIGHSCORE 0x00000020 |
| 123 |
#define UI_SHOW_DEMOAVAILABLE 0x00000040 |
| 124 |
#define UI_SHOW_NEWBESTTIME 0x00000080 |
| 125 |
#define UI_SHOW_FFA 0x00000100 |
| 126 |
#define UI_SHOW_NOTFFA 0x00000200 |
| 127 |
#define UI_SHOW_NETANYNONTEAMGAME 0x00000400 |
| 128 |
#define UI_SHOW_NETANYTEAMGAME 0x00000800 |
| 129 |
#define UI_SHOW_NOTFAVORITESERVERS 0x00001000 |
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
// owner draw types |
| 135 |
// ideally these should be done outside of this file but |
| 136 |
// this makes it much easier for the macro expansion to |
| 137 |
// convert them for the designers ( from the .menu files ) |
| 138 |
#define CG_OWNERDRAW_BASE 1 |
| 139 |
#define CG_PLAYER_ARMOR_ICON 1 |
| 140 |
#define CG_PLAYER_ARMOR_VALUE 2 |
| 141 |
#define CG_PLAYER_HEAD 3 |
| 142 |
#define CG_PLAYER_HEALTH 4 |
| 143 |
#define CG_PLAYER_AMMO_ICON 5 |
| 144 |
#define CG_PLAYER_AMMO_VALUE 6 |
| 145 |
#define CG_SELECTEDPLAYER_HEAD 7 |
| 146 |
#define CG_SELECTEDPLAYER_NAME 8 |
| 147 |
#define CG_SELECTEDPLAYER_LOCATION 9 |
| 148 |
#define CG_SELECTEDPLAYER_STATUS 10 |
| 149 |
#define CG_SELECTEDPLAYER_WEAPON 11 |
| 150 |
#define CG_SELECTEDPLAYER_POWERUP 12 |
| 151 |
|
| 152 |
#define CG_FLAGCARRIER_HEAD 13 |
| 153 |
#define CG_FLAGCARRIER_NAME 14 |
| 154 |
#define CG_FLAGCARRIER_LOCATION 15 |
| 155 |
#define CG_FLAGCARRIER_STATUS 16 |
| 156 |
#define CG_FLAGCARRIER_WEAPON 17 |
| 157 |
#define CG_FLAGCARRIER_POWERUP 18 |
| 158 |
|
| 159 |
#define CG_PLAYER_ITEM 19 |
| 160 |
#define CG_PLAYER_SCORE 20 |
| 161 |
|
| 162 |
#define CG_BLUE_FLAGHEAD 21 |
| 163 |
#define CG_BLUE_FLAGSTATUS 22 |
| 164 |
#define CG_BLUE_FLAGNAME 23 |
| 165 |
#define CG_RED_FLAGHEAD 24 |
| 166 |
#define CG_RED_FLAGSTATUS 25 |
| 167 |
#define CG_RED_FLAGNAME 26 |
| 168 |
|
| 169 |
#define CG_BLUE_SCORE 27 |
| 170 |
#define CG_RED_SCORE 28 |
| 171 |
#define CG_RED_NAME 29 |
| 172 |
#define CG_BLUE_NAME 30 |
| 173 |
#define CG_HARVESTER_SKULLS 31 // only shows in harvester |
| 174 |
#define CG_ONEFLAG_STATUS 32 // only shows in one flag |
| 175 |
#define CG_PLAYER_LOCATION 33 |
| 176 |
#define CG_TEAM_COLOR 34 |
| 177 |
#define CG_CTF_POWERUP 35 |
| 178 |
|
| 179 |
#define CG_AREA_POWERUP 36 |
| 180 |
#define CG_AREA_LAGOMETER 37 // painted with old system |
| 181 |
#define CG_PLAYER_HASFLAG 38 |
| 182 |
#define CG_GAME_TYPE 39 // not done |
| 183 |
|
| 184 |
#define CG_SELECTEDPLAYER_ARMOR 40 |
| 185 |
#define CG_SELECTEDPLAYER_HEALTH 41 |
| 186 |
#define CG_PLAYER_STATUS 42 |
| 187 |
#define CG_FRAGGED_MSG 43 // painted with old system |
| 188 |
#define CG_PROXMINED_MSG 44 // painted with old system |
| 189 |
#define CG_AREA_FPSINFO 45 // painted with old system |
| 190 |
#define CG_AREA_SYSTEMCHAT 46 // painted with old system |
| 191 |
#define CG_AREA_TEAMCHAT 47 // painted with old system |
| 192 |
#define CG_AREA_CHAT 48 // painted with old system |
| 193 |
#define CG_GAME_STATUS 49 |
| 194 |
#define CG_KILLER 50 |
| 195 |
#define CG_PLAYER_ARMOR_ICON2D 51 |
| 196 |
#define CG_PLAYER_AMMO_ICON2D 52 |
| 197 |
#define CG_ACCURACY 53 |
| 198 |
#define CG_ASSISTS 54 |
| 199 |
#define CG_DEFEND 55 |
| 200 |
#define CG_EXCELLENT 56 |
| 201 |
#define CG_IMPRESSIVE 57 |
| 202 |
#define CG_PERFECT 58 |
| 203 |
#define CG_GAUNTLET 59 |
| 204 |
#define CG_SPECTATORS 60 |
| 205 |
#define CG_TEAMINFO 61 |
| 206 |
#define CG_VOICE_HEAD 62 |
| 207 |
#define CG_VOICE_NAME 63 |
| 208 |
#define CG_PLAYER_HASFLAG2D 64 |
| 209 |
#define CG_HARVESTER_SKULLS2D 65 // only shows in harvester |
| 210 |
#define CG_CAPFRAGLIMIT 66 |
| 211 |
#define CG_1STPLACE 67 |
| 212 |
#define CG_2NDPLACE 68 |
| 213 |
#define CG_CAPTURES 69 |
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
#define UI_OWNERDRAW_BASE 200 |
| 219 |
#define UI_HANDICAP 200 |
| 220 |
#define UI_EFFECTS 201 |
| 221 |
#define UI_PLAYERMODEL 202 |
| 222 |
#define UI_CLANNAME 203 |
| 223 |
#define UI_CLANLOGO 204 |
| 224 |
#define UI_GAMETYPE 205 |
| 225 |
#define UI_MAPPREVIEW 206 |
| 226 |
#define UI_SKILL 207 |
| 227 |
#define UI_BLUETEAMNAME 208 |
| 228 |
#define UI_REDTEAMNAME 209 |
| 229 |
#define UI_BLUETEAM1 210 |
| 230 |
#define UI_BLUETEAM2 211 |
| 231 |
#define UI_BLUETEAM3 212 |
| 232 |
#define UI_BLUETEAM4 213 |
| 233 |
#define UI_BLUETEAM5 214 |
| 234 |
#define UI_REDTEAM1 215 |
| 235 |
#define UI_REDTEAM2 216 |
| 236 |
#define UI_REDTEAM3 217 |
| 237 |
#define UI_REDTEAM4 218 |
| 238 |
#define UI_REDTEAM5 219 |
| 239 |
#define UI_NETSOURCE 220 |
| 240 |
#define UI_NETMAPPREVIEW 221 |
| 241 |
#define UI_NETFILTER 222 |
| 242 |
#define UI_TIER 223 |
| 243 |
#define UI_OPPONENTMODEL 224 |
| 244 |
#define UI_TIERMAP1 225 |
| 245 |
#define UI_TIERMAP2 226 |
| 246 |
#define UI_TIERMAP3 227 |
| 247 |
#define UI_PLAYERLOGO 228 |
| 248 |
#define UI_OPPONENTLOGO 229 |
| 249 |
#define UI_PLAYERLOGO_METAL 230 |
| 250 |
#define UI_OPPONENTLOGO_METAL 231 |
| 251 |
#define UI_PLAYERLOGO_NAME 232 |
| 252 |
#define UI_OPPONENTLOGO_NAME 233 |
| 253 |
#define UI_TIER_MAPNAME 234 |
| 254 |
#define UI_TIER_GAMETYPE 235 |
| 255 |
#define UI_ALLMAPS_SELECTION 236 |
| 256 |
#define UI_OPPONENT_NAME 237 |
| 257 |
#define UI_VOTE_KICK 238 |
| 258 |
#define UI_BOTNAME 239 |
| 259 |
#define UI_BOTSKILL 240 |
| 260 |
#define UI_REDBLUE 241 |
| 261 |
#define UI_CROSSHAIR 242 |
| 262 |
#define UI_SELECTEDPLAYER 243 |
| 263 |
#define UI_MAPCINEMATIC 244 |
| 264 |
#define UI_NETGAMETYPE 245 |
| 265 |
#define UI_NETMAPCINEMATIC 246 |
| 266 |
#define UI_SERVERREFRESHDATE 247 |
| 267 |
#define UI_SERVERMOTD 248 |
| 268 |
#define UI_GLINFO 249 |
| 269 |
#define UI_KEYBINDSTATUS 250 |
| 270 |
#define UI_CLANCINEMATIC 251 |
| 271 |
#define UI_MAP_TIMETOBEAT 252 |
| 272 |
#define UI_JOINGAMETYPE 253 |
| 273 |
#define UI_PREVIEWCINEMATIC 254 |
| 274 |
#define UI_STARTMAPCINEMATIC 255 |
| 275 |
#define UI_MAPS_SELECTION 256 |
| 276 |
|
| 277 |
#define VOICECHAT_GETFLAG "getflag" // command someone to get the flag |
| 278 |
#define VOICECHAT_OFFENSE "offense" // command someone to go on offense |
| 279 |
#define VOICECHAT_DEFEND "defend" // command someone to go on defense |
| 280 |
#define VOICECHAT_DEFENDFLAG "defendflag" // command someone to defend the flag |
| 281 |
#define VOICECHAT_PATROL "patrol" // command someone to go on patrol (roam) |
| 282 |
#define VOICECHAT_CAMP "camp" // command someone to camp (we don't have sounds for this one) |
| 283 |
#define VOICECHAT_FOLLOWME "followme" // command someone to follow you |
| 284 |
#define VOICECHAT_RETURNFLAG "returnflag" // command someone to return our flag |
| 285 |
#define VOICECHAT_FOLLOWFLAGCARRIER "followflagcarrier" // command someone to follow the flag carrier |
| 286 |
#define VOICECHAT_YES "yes" // yes, affirmative, etc. |
| 287 |
#define VOICECHAT_NO "no" // no, negative, etc. |
| 288 |
#define VOICECHAT_ONGETFLAG "ongetflag" // I'm getting the flag |
| 289 |
#define VOICECHAT_ONOFFENSE "onoffense" // I'm on offense |
| 290 |
#define VOICECHAT_ONDEFENSE "ondefense" // I'm on defense |
| 291 |
#define VOICECHAT_ONPATROL "onpatrol" // I'm on patrol (roaming) |
| 292 |
#define VOICECHAT_ONCAMPING "oncamp" // I'm camping somewhere |
| 293 |
#define VOICECHAT_ONFOLLOW "onfollow" // I'm following |
| 294 |
#define VOICECHAT_ONFOLLOWCARRIER "onfollowcarrier" // I'm following the flag carrier |
| 295 |
#define VOICECHAT_ONRETURNFLAG "onreturnflag" // I'm returning our flag |
| 296 |
#define VOICECHAT_INPOSITION "inposition" // I'm in position |
| 297 |
#define VOICECHAT_IHAVEFLAG "ihaveflag" // I have the flag |
| 298 |
#define VOICECHAT_BASEATTACK "baseattack" // the base is under attack |
| 299 |
#define VOICECHAT_ENEMYHASFLAG "enemyhasflag" // the enemy has our flag (CTF) |
| 300 |
#define VOICECHAT_STARTLEADER "startleader" // I'm the leader |
| 301 |
#define VOICECHAT_STOPLEADER "stopleader" // I resign leadership |
| 302 |
#define VOICECHAT_TRASH "trash" // lots of trash talk |
| 303 |
#define VOICECHAT_WHOISLEADER "whoisleader" // who is the team leader |
| 304 |
#define VOICECHAT_WANTONDEFENSE "wantondefense" // I want to be on defense |
| 305 |
#define VOICECHAT_WANTONOFFENSE "wantonoffense" // I want to be on offense |
| 306 |
#define VOICECHAT_KILLINSULT "kill_insult" // I just killed you |
| 307 |
#define VOICECHAT_TAUNT "taunt" // I want to taunt you |
| 308 |
#define VOICECHAT_DEATHINSULT "death_insult" // you just killed me |
| 309 |
#define VOICECHAT_KILLGAUNTLET "kill_gauntlet" // I just killed you with the gauntlet |
| 310 |
#define VOICECHAT_PRAISE "praise" // you did something good |
| 311 |
// if building with this in your ../ui/ file you MUST remove the ui/!! |
| 312 |
#include "ui/lang_english.h" // load english language |
| 313 |
// #include "lang_fr.h" // load french |
| 314 |
// #include "lang_de.h" // load german |
| 315 |
// #include "lang_sp.h" // load spanish |
| 316 |
// #include "lang_ja.h" // load japanese (won't be for a while unfortunately) |
| 317 |
|
| 318 |
// MAKE IT HOW IT LOOKS!!!! |
| 319 |
|
| 320 |
// #include "ui/theme_kirkland.h" // you know what this is |
| 321 |
#include "ui/theme_azure.h" // more ut/ta like |
| 322 |
// #include "ui/theme_classic.h" // more like regular menu |
| 323 |
// #include "ui/theme_greenie.h" // more like regular menu |
| 324 |
// please remember to add a new line at the end of a file |