ui/menudef.h

Go to the documentation of this file.
00001 
00002 
00003 #define CT_LTBLUE1      0.367   0.261   0.722
00004 #define CT_DKBLUE1      0.199   0.0             0.398
00005 
00006 #define CT_LTCYAN       0               0.5             0.5
00007 #define CT_DKCYAN       0               0.25    0.25
00008 
00009 #define ITEM_TYPE_TEXT 0                  // simple text
00010 #define ITEM_TYPE_BUTTON 1                // button, basically text with a border 
00011 #define ITEM_TYPE_RADIOBUTTON 2           // toggle button, may be grouped 
00012 #define ITEM_TYPE_CHECKBOX 3              // check box
00013 #define ITEM_TYPE_EDITFIELD 4             // editable text, associated with a cvar
00014 #define ITEM_TYPE_COMBO 5                 // drop down list
00015 #define ITEM_TYPE_LISTBOX               6                 // scrollable list  
00016 #define ITEM_TYPE_MODEL                 7         // model
00017 #define ITEM_TYPE_OWNERDRAW             8         // owner draw, name specs what it is
00018 #define ITEM_TYPE_NUMERICFIELD  9         // editable text, associated with a cvar
00019 #define ITEM_TYPE_SLIDER                10        // mouse speed, volume, etc.
00020 #define ITEM_TYPE_YESNO                 11        // yes no cvar setting
00021 #define ITEM_TYPE_MULTI                 12        // multiple list setting, enumerated
00022 #define ITEM_TYPE_BIND                  13                // multiple list setting, enumerated
00023 #define ITEM_TYPE_TEXTSCROLL    14                // scrolls text
00024     
00025 #define ITEM_ALIGN_LEFT 0                 // left alignment
00026 #define ITEM_ALIGN_CENTER 1               // center alignment
00027 #define ITEM_ALIGN_RIGHT 2                // right alignment
00028 
00029 #define ITEM_TEXTSTYLE_NORMAL 0           // normal text
00030 #define ITEM_TEXTSTYLE_BLINK 1            // fast blinking
00031 #define ITEM_TEXTSTYLE_PULSE 2            // slow pulsing
00032 #define ITEM_TEXTSTYLE_SHADOWED 3         // drop shadow ( need a color for this )
00033 #define ITEM_TEXTSTYLE_OUTLINED 4         // drop shadow ( need a color for this )
00034 #define ITEM_TEXTSTYLE_OUTLINESHADOWED 5  // drop shadow ( need a color for this )
00035 #define ITEM_TEXTSTYLE_SHADOWEDMORE 6         // drop shadow ( need a color for this )
00036                           
00037 #define WINDOW_BORDER_NONE 0              // no border
00038 #define WINDOW_BORDER_FULL 1              // full border based on border color ( single pixel )
00039 #define WINDOW_BORDER_HORZ 2              // horizontal borders only
00040 #define WINDOW_BORDER_VERT 3              // vertical borders only 
00041 #define WINDOW_BORDER_KCGRADIENT 4        // horizontal border using the gradient bars
00042   
00043 #define WINDOW_STYLE_EMPTY 0              // no background
00044 #define WINDOW_STYLE_FILLED 1             // filled with background color
00045 #define WINDOW_STYLE_GRADIENT 2           // gradient bar based on background color 
00046 #define WINDOW_STYLE_SHADER   3           // gradient bar based on background color 
00047 #define WINDOW_STYLE_TEAMCOLOR 4          // team color
00048 #define WINDOW_STYLE_CINEMATIC 5          // cinematic
00049 
00050 #define MENU_TRUE 1                       // uh.. true
00051 #define MENU_FALSE 0                      // and false
00052 
00053 #define HUD_VERTICAL                            0x00
00054 #define HUD_HORIZONTAL                          0x01
00055 
00056 // list box element types
00057 #define LISTBOX_TEXT  0x00
00058 #define LISTBOX_IMAGE 0x01
00059 
00060 // list feeders
00061 //#define FEEDER_HEADS                                          0x00                    // model heads
00062 #define FEEDER_MAPS                                                     0x01                    // text maps based on game type
00063 #define FEEDER_SERVERS                                          0x02                    // servers
00064 //#define FEEDER_CLANS                                          0x03                    // clan names
00065 #define FEEDER_ALLMAPS                                          0x04                    // all maps available, in graphic format
00066 #define FEEDER_REDTEAM_LIST                                     0x05                    // red team members
00067 #define FEEDER_BLUETEAM_LIST                            0x06                    // blue team members
00068 #define FEEDER_PLAYER_LIST                                      0x07                    // players
00069 #define FEEDER_TEAM_LIST                                        0x08                    // team members for team voting
00070 #define FEEDER_MODS                                                     0x09                    // team members for team voting
00071 #define FEEDER_DEMOS                                            0x0a                    // team members for team voting
00072 #define FEEDER_SCOREBOARD                                       0x0b                    // team members for team voting
00073 #define FEEDER_Q3HEADS                                          0x0c                    // model heads
00074 #define FEEDER_SERVERSTATUS                                     0x0d                    // server status
00075 #define FEEDER_FINDPLAYER                                       0x0e                    // find player
00076 #define FEEDER_CINEMATICS                                       0x0f                    // cinematics
00077 
00078 #define FEEDER_FORCECFG                                         0x10                    // force config list
00079 
00080 #define FEEDER_SIEGE_TEAM1                                      0x11                    // siege class list for team1
00081 #define FEEDER_SIEGE_TEAM2                                      0x12                    // siege class list for team2
00082 
00083 #define FEEDER_PLAYER_SPECIES                           0x13                    // models/player/*
00084 #define FEEDER_PLAYER_SKIN_HEAD                         0x14                    // head*.skin files in species folder
00085 #define FEEDER_PLAYER_SKIN_TORSO                        0x15                    // torso*.skin files in species folder
00086 #define FEEDER_PLAYER_SKIN_LEGS                         0x16                    // lower*.skin files in species folder
00087 #define FEEDER_COLORCHOICES                                     0x17                    // special hack to feed text/actions from playerchoice.txt in species folder
00088 
00089 #define FEEDER_TEAM1_INFANTRY                           0x18                    // for siege team choice
00090 #define FEEDER_TEAM1_VANGUARD                           0x19                    // for siege team choice
00091 #define FEEDER_TEAM1_SUPPORT                            0x1a                    // for siege team choice
00092 #define FEEDER_TEAM1_JEDI                                       0x1b                    // for siege team choice
00093 #define FEEDER_TEAM1_DEMO                                       0x1c                    // for siege team choice
00094 #define FEEDER_TEAM1_HEAVY                                      0x1d                    // for siege team choice
00095 
00096 #define FEEDER_TEAM2_INFANTRY                           0x1e                    // for siege team choice
00097 #define FEEDER_TEAM2_VANGUARD                           0x1f                    // for siege team choice
00098 #define FEEDER_TEAM2_SUPPORT                            0x20                    // for siege team choice
00099 #define FEEDER_TEAM2_JEDI                                       0x21                    // for siege team choice
00100 #define FEEDER_TEAM2_DEMO                                       0x22                    // for siege team choice
00101 #define FEEDER_TEAM2_HEAVY                                      0x23                    // for siege team choice
00102 
00103 #define FEEDER_SIEGE_BASE_CLASS                         0x24                    // for siege team choice
00104 #define FEEDER_SIEGE_CLASS_WEAPONS                      0x25                    // for siege team choice
00105 #define FEEDER_SIEGE_CLASS_INVENTORY            0x26                    // for siege team choice
00106 #define FEEDER_SIEGE_CLASS_FORCE                        0x27                    // for siege team choice
00107 #define FEEDER_LANGUAGES                                        0x28                    // for language choice
00108 #define FEEDER_MOVES                                            0x29                    // moves for the data pad moves screen
00109 #define FEEDER_MOVES_TITLES                                     0x2a                    // move titles for the data pad moves screen
00110 #define FEEDER_SABER_SINGLE_INFO                        0x2b                    // saber single
00111 #define FEEDER_SABER_STAFF_INFO                         0x2c                    // saber staff
00112 
00113 
00114 // Xbox specific, hope no one minds
00115 #define FEEDER_XBL_ACCOUNTS                                     0xA0                    // list of available XBL accounts
00116 #define FEEDER_XBL_PLAYERS                                      0xA1                    // players (current and recent)
00117 #define FEEDER_XBL_FRIENDS                                      0xA2                    // friends
00118 #define FEEDER_XBL_SERVERS                                      0xA3                    // results of an optimatch query
00119 
00120 // display flags
00121 #define CG_SHOW_BLUE_TEAM_HAS_REDFLAG     0x00000001
00122 #define CG_SHOW_RED_TEAM_HAS_BLUEFLAG     0x00000002
00123 #define CG_SHOW_ANYTEAMGAME               0x00000004
00124 #define CG_SHOW_HARVESTER                 0x00000008
00125 #define CG_SHOW_ONEFLAG                   0x00000010
00126 #define CG_SHOW_CTF                       0x00000020
00127 #define CG_SHOW_OBELISK                   0x00000040
00128 #define CG_SHOW_HEALTHCRITICAL            0x00000080
00129 #define CG_SHOW_SINGLEPLAYER              0x00000100
00130 #define CG_SHOW_TOURNAMENT                0x00000200
00131 #define CG_SHOW_DURINGINCOMINGVOICE       0x00000400
00132 #define CG_SHOW_IF_PLAYER_HAS_FLAG                              0x00000800
00133 #define CG_SHOW_LANPLAYONLY                                                             0x00001000
00134 #define CG_SHOW_MINED                                                                                   0x00002000
00135 #define CG_SHOW_HEALTHOK                                    0x00004000
00136 #define CG_SHOW_TEAMINFO                                    0x00008000
00137 #define CG_SHOW_NOTEAMINFO                          0x00010000
00138 #define CG_SHOW_OTHERTEAMHASFLAG          0x00020000
00139 #define CG_SHOW_YOURTEAMHASENEMYFLAG      0x00040000
00140 #define CG_SHOW_ANYNONTEAMGAME            0x00080000
00141 #define CG_SHOW_2DONLY                                                                          0x10000000
00142 
00143 
00144 #define UI_SHOW_LEADER                                      0x00000001
00145 #define UI_SHOW_NOTLEADER                                   0x00000002
00146 #define UI_SHOW_FAVORITESERVERS                                         0x00000004
00147 #define UI_SHOW_ANYNONTEAMGAME                                          0x00000008
00148 #define UI_SHOW_ANYTEAMGAME                                                             0x00000010
00149 #define UI_SHOW_NEWHIGHSCORE                                                    0x00000020
00150 #define UI_SHOW_DEMOAVAILABLE                                                   0x00000040
00151 #define UI_SHOW_NEWBESTTIME                                                             0x00000080
00152 #define UI_SHOW_FFA                                                                                             0x00000100
00153 #define UI_SHOW_NOTFFA                                                                          0x00000200
00154 #define UI_SHOW_NETANYNONTEAMGAME                                       0x00000400
00155 #define UI_SHOW_NETANYTEAMGAME                                          0x00000800
00156 #define UI_SHOW_NOTFAVORITESERVERS                              0x00001000
00157 
00158 
00159 
00160 
00161 // owner draw types
00162 // ideally these should be done outside of this file but
00163 // this makes it much easier for the macro expansion to 
00164 // convert them for the designers ( from the .menu files )
00165 #define CG_OWNERDRAW_BASE 1
00166 #define CG_PLAYER_ARMOR_ICON 1              
00167 #define CG_PLAYER_ARMOR_VALUE 2
00168 #define CG_PLAYER_HEAD 3
00169 #define CG_PLAYER_HEALTH 4
00170 #define CG_PLAYER_AMMO_ICON 5
00171 #define CG_PLAYER_AMMO_VALUE 6
00172 #define CG_SELECTEDPLAYER_HEAD 7
00173 #define CG_SELECTEDPLAYER_NAME 8
00174 #define CG_SELECTEDPLAYER_LOCATION 9
00175 #define CG_SELECTEDPLAYER_STATUS 10
00176 #define CG_SELECTEDPLAYER_WEAPON 11
00177 #define CG_SELECTEDPLAYER_POWERUP 12
00178 
00179 #define CG_FLAGCARRIER_HEAD 13
00180 #define CG_FLAGCARRIER_NAME 14
00181 #define CG_FLAGCARRIER_LOCATION 15
00182 #define CG_FLAGCARRIER_STATUS 16
00183 #define CG_FLAGCARRIER_WEAPON 17
00184 #define CG_FLAGCARRIER_POWERUP 18
00185 
00186 #define CG_PLAYER_ITEM 19
00187 #define CG_PLAYER_SCORE 20
00188 
00189 #define CG_BLUE_FLAGHEAD 21
00190 #define CG_BLUE_FLAGSTATUS 22
00191 #define CG_BLUE_FLAGNAME 23
00192 #define CG_RED_FLAGHEAD 24
00193 #define CG_RED_FLAGSTATUS 25
00194 #define CG_RED_FLAGNAME 26
00195 
00196 #define CG_BLUE_SCORE 27
00197 #define CG_RED_SCORE 28
00198 #define CG_RED_NAME 29
00199 #define CG_BLUE_NAME 30
00200 #define CG_HARVESTER_SKULLS 31                                  // only shows in harvester
00201 #define CG_ONEFLAG_STATUS 32                                            // only shows in one flag
00202 #define CG_PLAYER_LOCATION 33
00203 #define CG_TEAM_COLOR 34
00204 #define CG_CTF_POWERUP 35
00205                                         
00206 #define CG_AREA_POWERUP 36
00207 #define CG_AREA_LAGOMETER       37            // painted with old system
00208 #define CG_PLAYER_HASFLAG 38            
00209 #define CG_GAME_TYPE 39                 // not done
00210 
00211 #define CG_SELECTEDPLAYER_ARMOR 40      
00212 #define CG_SELECTEDPLAYER_HEALTH 41
00213 #define CG_PLAYER_STATUS 42
00214 #define CG_FRAGGED_MSG 43               // painted with old system
00215 #define CG_PROXMINED_MSG 44             // painted with old system
00216 #define CG_AREA_FPSINFO 45              // painted with old system
00217 #define CG_AREA_SYSTEMCHAT 46           // painted with old system
00218 #define CG_AREA_TEAMCHAT 47             // painted with old system
00219 #define CG_AREA_CHAT 48                 // painted with old system
00220 #define CG_GAME_STATUS 49
00221 #define CG_KILLER 50
00222 #define CG_PLAYER_ARMOR_ICON2D 51              
00223 #define CG_PLAYER_AMMO_ICON2D 52
00224 #define CG_ACCURACY 53
00225 #define CG_ASSISTS 54
00226 #define CG_DEFEND 55
00227 #define CG_EXCELLENT 56
00228 #define CG_IMPRESSIVE 57
00229 #define CG_PERFECT 58
00230 #define CG_GAUNTLET 59
00231 #define CG_SPECTATORS 60
00232 #define CG_TEAMINFO 61
00233 #define CG_VOICE_HEAD 62
00234 #define CG_VOICE_NAME 63
00235 #define CG_PLAYER_HASFLAG2D 64            
00236 #define CG_HARVESTER_SKULLS2D 65                                        // only shows in harvester
00237 #define CG_CAPFRAGLIMIT 66       
00238 #define CG_1STPLACE 67
00239 #define CG_2NDPLACE 68
00240 #define CG_CAPTURES 69
00241 #define CG_PLAYER_FORCE_VALUE 70
00242 
00243 
00244 
00245 
00246 #define UI_OWNERDRAW_BASE 200
00247 #define UI_HANDICAP 200
00248 #define UI_EFFECTS 201
00249 #define UI_PLAYERMODEL 202
00250 #define UI_CLANNAME 203
00251 #define UI_CLANLOGO 204
00252 #define UI_GAMETYPE 205
00253 #define UI_MAPPREVIEW 206
00254 #define UI_SKILL 207
00255 #define UI_BLUETEAMNAME 208
00256 #define UI_REDTEAMNAME 209
00257 #define UI_BLUETEAM1 210
00258 #define UI_BLUETEAM2 211
00259 #define UI_BLUETEAM3 212
00260 #define UI_BLUETEAM4 213
00261 #define UI_BLUETEAM5 214
00262 #define UI_REDTEAM1 215
00263 #define UI_REDTEAM2 216
00264 #define UI_REDTEAM3 217
00265 #define UI_REDTEAM4 218
00266 #define UI_REDTEAM5 219
00267 #define UI_NETSOURCE 220
00268 #define UI_NETMAPPREVIEW 221
00269 #define UI_NETFILTER 222
00270 #define UI_TIER 223
00271 #define UI_OPPONENTMODEL 224
00272 #define UI_TIERMAP1 225
00273 #define UI_TIERMAP2 226
00274 #define UI_TIERMAP3 227
00275 #define UI_PLAYERLOGO 228
00276 #define UI_OPPONENTLOGO 229
00277 #define UI_PLAYERLOGO_METAL 230
00278 #define UI_OPPONENTLOGO_METAL 231
00279 #define UI_PLAYERLOGO_NAME 232
00280 #define UI_OPPONENTLOGO_NAME 233
00281 #define UI_TIER_MAPNAME 234
00282 #define UI_TIER_GAMETYPE 235
00283 #define UI_ALLMAPS_SELECTION 236
00284 #define UI_OPPONENT_NAME 237
00285 #define UI_VOTE_KICK 238
00286 #define UI_BOTNAME 239
00287 #define UI_BOTSKILL 240
00288 #define UI_REDBLUE 241
00289 #define UI_CROSSHAIR 242
00290 #define UI_SELECTEDPLAYER 243
00291 #define UI_MAPCINEMATIC 244
00292 #define UI_NETGAMETYPE 245
00293 #define UI_NETMAPCINEMATIC 246
00294 #define UI_SERVERREFRESHDATE 247
00295 #define UI_SERVERMOTD 248
00296 #define UI_GLINFO  249
00297 #define UI_KEYBINDSTATUS 250
00298 #define UI_CLANCINEMATIC 251
00299 #define UI_MAP_TIMETOBEAT 252
00300 #define UI_JOINGAMETYPE 253
00301 #define UI_PREVIEWCINEMATIC 254
00302 #define UI_STARTMAPCINEMATIC 255
00303 #define UI_MAPS_SELECTION 256
00304 #define UI_FORCE_SIDE 257
00305 #define UI_FORCE_RANK 258
00306 #define UI_FORCE_RANK_HEAL 259
00307 #define UI_FORCE_RANK_LEVITATION 260
00308 #define UI_FORCE_RANK_SPEED 261
00309 #define UI_FORCE_RANK_PUSH 262
00310 #define UI_FORCE_RANK_PULL 263
00311 #define UI_FORCE_RANK_TELEPATHY 264
00312 #define UI_FORCE_RANK_GRIP 265
00313 #define UI_FORCE_RANK_LIGHTNING 266
00314 #define UI_FORCE_RANK_RAGE 267
00315 #define UI_FORCE_RANK_PROTECT 268
00316 #define UI_FORCE_RANK_ABSORB 269
00317 #define UI_FORCE_RANK_TEAM_HEAL 270
00318 #define UI_FORCE_RANK_TEAM_FORCE        271
00319 #define UI_FORCE_RANK_DRAIN                     272
00320 #define UI_FORCE_RANK_SEE                       273
00321 #define UI_FORCE_RANK_SABERATTACK       274
00322 #define UI_FORCE_RANK_SABERDEFEND       275
00323 #define UI_FORCE_RANK_SABERTHROW        276
00324 #define UI_VERSION                                      277
00325 #define UI_TOTALFORCESTARS                      278
00326 #define UI_AUTOSWITCHLIST                       279
00327 
00328 //How handy it would be if this were an enum.
00329 #define UI_BLUETEAM6 280
00330 #define UI_BLUETEAM7 281
00331 #define UI_BLUETEAM8 282
00332 #define UI_REDTEAM6 283
00333 #define UI_REDTEAM7 284
00334 #define UI_REDTEAM8 285
00335 
00336 // Yes it would be handy
00337 #define UI_FORCE_MASTERY_SET 286
00338 #define UI_SKIN_COLOR 287
00339 #define UI_FORCE_POINTS 288
00340 
00341 //extra, for patch
00342 #define UI_JEDI_NONJEDI 289
00343 
00344 // Xbox-only, for complicated passcode entry screen. Sorry.
00345 #define UI_XBOX_PASSCODE 290
00346 
00347 #define UI_CHAT_MAIN            291
00348 #define UI_CHAT_ATTACK          292
00349 #define UI_CHAT_DEFEND          293
00350 #define UI_CHAT_REQUEST         294
00351 #define UI_CHAT_REPLY           295
00352 #define UI_CHAT_SPOT            296
00353 #define UI_CHAT_TACTICAL        297
00354 
00355 #define VOICECHAT_GETFLAG                       "getflag"                               // command someone to get the flag
00356 #define VOICECHAT_OFFENSE                       "offense"                               // command someone to go on offense
00357 #define VOICECHAT_DEFEND                        "defend"                                // command someone to go on defense
00358 #define VOICECHAT_DEFENDFLAG            "defendflag"                    // command someone to defend the flag
00359 #define VOICECHAT_PATROL                        "patrol"                                // command someone to go on patrol (roam)
00360 #define VOICECHAT_CAMP                          "camp"                                  // command someone to camp (we don't have sounds for this one)
00361 #define VOICECHAT_FOLLOWME                      "followme"                              // command someone to follow you
00362 #define VOICECHAT_RETURNFLAG            "returnflag"                    // command someone to return our flag
00363 #define VOICECHAT_FOLLOWFLAGCARRIER     "followflagcarrier"             // command someone to follow the flag carrier
00364 #define VOICECHAT_YES                           "yes"                                   // yes, affirmative, etc.
00365 #define VOICECHAT_NO                            "no"                                    // no, negative, etc.
00366 #define VOICECHAT_ONGETFLAG                     "ongetflag"                             // I'm getting the flag
00367 #define VOICECHAT_ONOFFENSE                     "onoffense"                             // I'm on offense
00368 #define VOICECHAT_ONDEFENSE                     "ondefense"                             // I'm on defense
00369 #define VOICECHAT_ONPATROL                      "onpatrol"                              // I'm on patrol (roaming)
00370 #define VOICECHAT_ONCAMPING                     "oncamp"                                // I'm camping somewhere
00371 #define VOICECHAT_ONFOLLOW                      "onfollow"                              // I'm following
00372 #define VOICECHAT_ONFOLLOWCARRIER       "onfollowcarrier"               // I'm following the flag carrier
00373 #define VOICECHAT_ONRETURNFLAG          "onreturnflag"                  // I'm returning our flag
00374 #define VOICECHAT_INPOSITION            "inposition"                    // I'm in position
00375 #define VOICECHAT_IHAVEFLAG                     "ihaveflag"                             // I have the flag
00376 #define VOICECHAT_BASEATTACK            "baseattack"                    // the base is under attack
00377 #define VOICECHAT_ENEMYHASFLAG          "enemyhasflag"                  // the enemy has our flag (CTF)
00378 #define VOICECHAT_STARTLEADER           "startleader"                   // I'm the leader
00379 #define VOICECHAT_STOPLEADER            "stopleader"                    // I resign leadership
00380 #define VOICECHAT_TRASH                         "trash"                                 // lots of trash talk
00381 #define VOICECHAT_WHOISLEADER           "whoisleader"                   // who is the team leader
00382 #define VOICECHAT_WANTONDEFENSE         "wantondefense"                 // I want to be on defense
00383 #define VOICECHAT_WANTONOFFENSE         "wantonoffense"                 // I want to be on offense
00384 #define VOICECHAT_KILLINSULT            "kill_insult"                   // I just killed you
00385 #define VOICECHAT_TAUNT                         "taunt"                                 // I want to taunt you
00386 #define VOICECHAT_DEATHINSULT           "death_insult"                  // you just killed me
00387 #define VOICECHAT_KILLGAUNTLET          "kill_gauntlet"                 // I just killed you with the gauntlet
00388 #define VOICECHAT_PRAISE                        "praise"                                // you did something good