Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ui/menudef.h"
- //////////////////////////////////////////////////
- ///////// inspectre's HUD w/ Variables /// v3 ////
- //////////////////////////////////////////////////
- // Thanks to ESR, QL Forums, visualhud.pk69.com, quakelivehud.blogspot.com, qlhud.net for information
- // refer to README.TXT for more information about this hud
- // use HUD_calculations.xlsx to easily determine new related values when changing sizes
- /* --- Variables ---*/
- // COPY + PASTE from spreadsheet
- // TIMER
- #define TIMER_POS 320 40 // Timer location
- #define TIMER_SIZE 108 36 // Timer textbox size (change textscale)
- #define TIMER_TXT_SZ 1 // Timer text size
- #define TIMER_TXT_COL 1 1 1 1 // Timer text color
- #define TIMER_BG_POS -70 -37 // Timer Background position (relative to TIMER_POS)
- #define TIMER_BG_SIZE 140 38 // Timer Background size
- #define TIMER_BG_COL 0 0 0 0 // Timer background color
- // SCORES
- #define SCORES_1ST_POS 600 436 // location of 1st place score
- #define SCORES_2ND_POS 600 456 // location of 2nd place score
- #define SCORES_SIZE 36 20 // Scorebox size (change textscale)
- #define SCORES_B_COL 0 0 1 0.8 // Background color for Blue team (team modes only)
- #define SCORES_R_COL 1 0 0 0.8 // Background color for Red team (team modes only)
- #define SCORES_ME_COL 0 0 0 0.8 // BG color for my score (non-team modes)
- #define SCORES_OPP_COL 0.4 0.4 0.4 0.8 // BG color for opp score (non-team modes)
- #define SC_BORDER1_POS 598.5 434.5 // 1st place border position
- #define SC_BORDER2_POS 598.5 454.5 // 2nd place border position
- #define SC_BORDER_SIZE 36 20
- #define SC_BORDER_SZ 1.5 // Score Border width
- #define SC_BORDER_COL 0.8 0.8 0.8 0.8 // Score Border Color
- #define SC_TXTBOX_POS 18 15.88 // Score textbox position (relative to SCORES_xxx_POS)
- #define SC_TXTBOX_SZ 0 0 // Score textbox size
- #define SC_TXT_COL 1 1 1 0.8 // Score text color (team modes only)
- #define SC_TXT_SIZE 0.3 // Score text size (all modes)
- // CTF, CA, TDM Markers (next to scorebox)
- #define CTF_FLG_POS -24 0 // Flag status position (relative to SCORES_xxx_POS)
- #define CTF_FLG_SIZE 20 20 // Flag status size
- #define CA_ICON_POS -28.5 3 // Clan Arena Icon position (relative to SCORES_xxx_POS)
- #define CA_ICON_SIZE 24.5 14 // Clan Arena Icon size
- #define CA_TXT_POS -14.5 13.8892 // CA text location (relative to SCORES_xxx_POS)
- #define CA_TXT_SIZE 0 0 // CA text box size
- #define CA_COUNT_SZ 0.21 // CA text count size
- #define TDM_ICON_POS -20 0
- #define TDM_ICON_SIZE 20 20
- // Health
- #define HP_POSITION 158 440 // Health indicator position
- #define HP_ICON_POS 0 0 // Health icon position (relative to HP_POS)
- #define HP_ICON_SIZE 0 0 // Health icon size
- #define HP_TXT_SZ 1 // Health text size
- #define HP_COL_RANGE1 -999 27 1 0 0 1 // Change text color based on hp value
- #define HP_COL_RANGE2 28 80 1 0.4 0.1 1
- #define HP_COL_RANGE3 81 100 1 0.8 0.2 1
- #define HP_COL_RANGE4 101 125 1 1 1 1
- #define HP_COL_RANGE5 126 150 0.65 0.98 1 1
- #define HP_COL_RANGE6 151 175 0.4 0.82 1 1
- #define HP_COL_RANGE7 176 999 0.15 0.66 1 1
- // Armor
- #define ARM_POSITION 378 440 // Armor indicator position
- #define ARM_ICON_POS 0 0 // Armor icon position (relative to HP_POS)
- #define ARM_ICON_SIZE 0 0 // Armor icon size
- #define ARM_TXT_SZ 1 // Armor text size
- #define ARM_COL_RANGE1 -999 25 1 0 0 1 // Change text color based on armor value
- #define ARM_COL_RANGE2 26 80 1 0.8 0.2 1
- #define ARM_COL_RANGE3 81 100 1 0.8 0.2 1
- #define ARM_COL_RANGE4 101 125 1 1 1 1
- #define ARM_COL_RANGE5 126 150 0.65 0.98 1 1
- #define ARM_COL_RANGE6 151 175 0.4 0.82 1 1
- #define ARM_COL_RANGE7 176 999 0.15 0.66 1 1
- // Ammo Indicator
- #define AMMO_POSITION 320 429 // Ammo indicator position
- #define AMMO_ICON_POS -12 0 // Ammo icon position (relative to AMMO_POSITION)
- #define AMMO_ICON_SIZE 24 24 // Ammo icon size
- #define AMMO_TXT_POS 0 25 // Ammo text position (relative to AMMO_POSITION)
- #define AMMO_TXT_SZ 0.5 // Ammo text size
- #define AMMO_COL_RANGE1 -999 5 1 0 0 1 // Change text color based on armor value
- #define AMMO_COL_RANGE2 6 100 1 1 1 1
- #define AMMO_COL_RANGE3 101 999 1 1 1 1
- // Pickups, Powerups
- #define PU_QUAD_POS 566 214 // Powerup indicators starting position - secondary, tertiary, etc will stack vertically
- #define PU_QUAD_ICON_SZ 24 24 // Powerup icon size
- #define PU_QUAD_TXT_SZ 0.55 // Powerup countdown text size
- #define PU_CTF_FLG_POS 0 440 // Flag pickup icon position
- #define PU_CTF_FLG_SZ 36 36 // Flag pickup icon size
- #define PU_CTF_RUNE_POS 610 254
- #define PU_CTF_RUNE_SZ 24 24
- #define PU_CTF_USE_POS 122 448 // Medkit position
- #define PU_CTF_USE_SZ 24 24 // Medkit icon size
- #define PU_KEY_POS 8 448 // Key position (same place as PU_CTF_FLG_POS)
- #define PU_KEY_SIZE 24 24 // Key icon size
- // Obits
- #define OBIT_POS 0 12 // Obit position
- #define OBIT_BOX_SIZE 65 12 // Obit box size
- #define OBIT_TXT_SIZE 0.22 // Obit text size
- // Widescreen Scaling (0=stretched, 1=left, 2=center, 3=right)
- #define WS_SCOREBOX 3
- #define WS_HEALTH 2
- #define WS_ARMOR 2
- #define WS_AMMO 2
- #define WS_TIMER 2
- #define WS_PU_QUAD 3
- #define WS_PU_FLAG 1
- #define WS_PU_RUNE 3
- #define WS_PU_USEABLE 2 // Medkit
- #define WS_PU_KEY 1
- #define WS_OBIT 1
- /* --- CHAT WINDOW --- */
- menuDef {
- name "chatArea"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 0 269 640 160
- widescreen 1
- itemDef {
- name "boxBackground"
- rect 0 0 640 160
- visible 1
- style WINDOW_STYLE_FILLED
- ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
- backcolor 0 0 0 0.75
- background "ui/assets/hud/chatm.tga"
- widescreen 0
- }
- itemdef {
- name chatWindow
- ownerdraw CG_AREA_NEW_CHAT
- rect 3 1 634 154
- visible 1
- decoration
- }
- }
- /* --- Timer --- */
- menuDef {
- name "timer"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect TIMER_POS TIMER_SIZE
- widescreen WS_TIMER
- itemDef {
- name "timerBackground"
- rect TIMER_BG_POS TIMER_BG_SIZE
- visible 1
- decoration
- style WINDOW_STYLE_FILLED
- backcolor TIMER_BG_COL
- }
- itemDef {
- name "timerIcon"
- rect 0 0 0 0
- visible 1
- decoration
- style 1
- backcolor 1 1 1 1
- background "icons/icon_time.tga"
- }
- itemDef {
- name "timerCounter"
- ownerdraw CG_LEVELTIMER
- rect 0 0 TIMER_SIZE
- visible 1
- forecolor TIMER_TXT_COL
- textscale TIMER_TXT_SZ
- textalign ITEM_ALIGN_RIGHT
- textstyle 3
- align 1
- decoration
- }
- }
- /* --- SCORE BOX --- */
- /* --- Team Game ScoreBox --- */
- // RED TEAM SCORE BAR TOP
- menuDef {
- name "redTeamScores"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_1ST_POS SCORES_SIZE
- ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
- widescreen WS_SCOREBOX
- itemDef {
- name "redScoreBox"
- rect 0 0 SCORES_SIZE
- visible 1
- decoration
- style WINDOW_STYLE_FILLED
- backcolor SCORES_R_COL
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- // red team score
- itemdef {
- name "redTeamScore"
- ownerdraw CG_1STPLACE
- rect SC_TXTBOX_POS SC_TXTBOX_SZ
- visible 1
- forecolor SC_TXT_COL
- textscale SC_TXT_SIZE
- align 1
- textstyle 2
- decoration
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- //TDM marker
- itemDef {
- name "clanArena"
- rect TDM_ICON_POS TDM_ICON_SIZE
- visible 1
- backcolor 1 1 1 1
- decoration
- style 1
- cvartest g_gametype
- showcvar { "3" }
- background "ui/assets/score/ca_arrow_red.tga"
- }
- // clan arena count
- itemDef {
- name "clanArena"
- rect CA_ICON_POS CA_ICON_SIZE
- visible 1
- backcolor 1 1 1 1
- decoration
- style 1
- cvartest g_gametype
- showcvar { "4" ; "9" }
- background "ui/assets/score/ca_score_red.tga"
- }
- itemdef {
- name "redClanPlayers"
- cvartest g_gametype
- showcvar { "4" ; "9" }
- ownerdraw CG_RED_CLAN_PLYRS
- rect CA_TXT_POS CA_TXT_SIZE
- visible 1
- textscale CA_COUNT_SZ
- forecolor 1 1 1 0.65
- decoration
- }
- // ctf icons
- itemDef {
- name "f"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- bordercolor 1 1 1 1
- decoration
- style 3
- ownerdrawflag CG_SHOW_HARVESTER
- background "icons/skull_red.tga"
- }
- itemDef {
- name "redflag"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- decoration
- ownerdrawflag CG_SHOW_CTF
- ownerdraw CG_RED_FLAGSTATUS
- }
- itemDef {
- name "oneflagstatus"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- decoration
- ownerdraw CG_ONEFLAG_STATUS
- }
- }
- // RED TEAM SCORE BAR BOTTOM
- menuDef {
- name "redTeamScores"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_2ND_POS SCORES_SIZE
- ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
- widescreen WS_SCOREBOX
- itemDef {
- name "redScoreBox"
- rect 0 0 SCORES_SIZE
- visible 1
- decoration
- style WINDOW_STYLE_FILLED
- backcolor SCORES_R_COL
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- // red team score
- itemdef {
- name "redTeamScore"
- ownerdraw CG_1STPLACE
- rect SC_TXTBOX_POS SC_TXTBOX_SZ
- visible 1
- forecolor SC_TXT_COL
- textscale SC_TXT_SIZE
- align 1
- textstyle 2
- decoration
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- //TDM marker
- itemDef {
- name "clanArena"
- rect TDM_ICON_POS TDM_ICON_SIZE
- visible 1
- backcolor 1 1 1 1
- decoration
- style 1
- cvartest g_gametype
- showcvar { "3" }
- background "ui/assets/score/ca_arrow_red.tga"
- }
- // clan arena count
- itemDef {
- name "clanArena"
- rect CA_ICON_POS CA_ICON_SIZE
- visible 1
- backcolor 1 1 1 1
- decoration
- style 1
- cvartest g_gametype
- showcvar { "4" ; "9" }
- background "ui/assets/score/ca_score_red.tga"
- }
- itemdef {
- name "redClanPlayers"
- cvartest g_gametype
- showcvar { "4" ; "9" }
- ownerdraw CG_RED_CLAN_PLYRS
- rect CA_TXT_POS CA_TXT_SIZE
- visible 1
- textscale CA_COUNT_SZ
- forecolor 1 1 1 0.65
- decoration
- }
- // ctf icons
- itemDef {
- name "f"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- bordercolor 1 1 1 1
- decoration
- style 3
- ownerdrawflag CG_SHOW_HARVESTER
- background "icons/skull_red.tga"
- }
- itemDef {
- name "redflag"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- decoration
- ownerdrawflag CG_SHOW_CTF
- ownerdraw CG_RED_FLAGSTATUS
- }
- itemDef {
- name "oneflagstatus"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- decoration
- ownerdraw CG_ONEFLAG_STATUS
- }
- }
- // BLUE TEAM SCORE BAR TOP
- menuDef {
- name "blueTeamScores"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_1ST_POS SCORES_SIZE
- ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
- widescreen WS_SCOREBOX
- itemDef {
- name "blueScoreBox"
- rect 0 0 SCORES_SIZE
- visible 1
- decoration
- style WINDOW_STYLE_FILLED
- backcolor SCORES_B_COL
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- // blue team score
- itemdef {
- name "blueTeamScore"
- ownerdraw CG_2NDPLACE
- rect SC_TXTBOX_POS SC_TXTBOX_SZ
- visible 1
- forecolor SC_TXT_COL
- textscale SC_TXT_SIZE
- align 1
- textstyle 2
- decoration
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- //TDM marker
- itemDef {
- name "clanArena"
- rect TDM_ICON_POS TDM_ICON_SIZE
- visible 1
- backcolor 1 1 1 1
- decoration
- style 1
- cvartest g_gametype
- showcvar { "3" }
- background "ui/assets/score/ca_arrow_blue.tga"
- }
- //clan arena count
- itemDef {
- name "clanArena"
- rect CA_ICON_POS CA_ICON_SIZE
- visible 1
- backcolor 1 1 1 1
- decoration
- style 1
- cvartest g_gametype
- showcvar { "4" ; "9" }
- background "ui/assets/score/ca_score_blu.tga"
- }
- itemdef {
- name "blueClanPlayers"
- cvartest g_gametype
- showcvar { "4" ; "9" }
- ownerdraw CG_BLUE_CLAN_PLYRS
- rect CA_TXT_POS CA_TXT_SIZE
- visible 1
- textscale CA_COUNT_SZ
- forecolor 1 1 1 0.65
- decoration
- }
- // ctf icons
- itemDef {
- name "f"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- bordercolor 1 1 1 .75
- decoration
- style 3
- ownerdrawflag CG_SHOW_HARVESTER
- background "icons/skull_blue.tga"
- }
- itemDef {
- name "blueflag"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- decoration
- ownerdrawflag CG_SHOW_CTF
- ownerdraw CG_BLUE_FLAGSTATUS
- }
- itemDef {
- name "oneflagstatus"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- decoration
- ownerdraw CG_ONEFLAG_STATUS
- }
- }
- // BLUE TEAM SCORE BAR BOTTOM
- menuDef {
- name "blueTeamScores"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_2ND_POS SCORES_SIZE
- ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
- widescreen WS_SCOREBOX
- itemDef {
- name "blueScoreBox"
- rect 0 0 SCORES_SIZE
- visible 1
- decoration
- style WINDOW_STYLE_FILLED
- backcolor SCORES_B_COL
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- // blue team score
- itemdef {
- name "blueTeamScore"
- ownerdraw CG_2NDPLACE
- rect SC_TXTBOX_POS SC_TXTBOX_SZ
- visible 1
- forecolor SC_TXT_COL
- textscale SC_TXT_SIZE
- align 1
- textstyle 2
- decoration
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- //TDM marker
- itemDef {
- name "clanArena"
- rect TDM_ICON_POS TDM_ICON_SIZE
- visible 1
- backcolor 1 1 1 1
- decoration
- style 1
- cvartest g_gametype
- showcvar { "3" }
- background "ui/assets/score/ca_arrow_blue.tga"
- }
- //clan arena count
- itemDef {
- name "clanArena"
- rect CA_ICON_POS CA_ICON_SIZE
- visible 1
- backcolor 1 1 1 1
- decoration
- style 1
- cvartest g_gametype
- showcvar { "4" ; "9" }
- background "ui/assets/score/ca_score_blu.tga"
- }
- itemdef {
- name "blueClanPlayers"
- cvartest g_gametype
- showcvar { "4" ; "9" }
- ownerdraw CG_BLUE_CLAN_PLYRS
- rect CA_TXT_POS CA_TXT_SIZE
- visible 1
- textscale CA_COUNT_SZ
- forecolor 1 1 1 0.65
- decoration
- }
- // ctf icons
- itemDef {
- name "f"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- bordercolor 1 1 1 .75
- decoration
- style 3
- ownerdrawflag CG_SHOW_HARVESTER
- background "icons/skull_blue.tga"
- }
- itemDef {
- name "blueflag"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- decoration
- ownerdrawflag CG_SHOW_CTF
- ownerdraw CG_BLUE_FLAGSTATUS
- }
- itemDef {
- name "oneflagstatus"
- rect CTF_FLG_POS CTF_FLG_SIZE
- visible 1
- decoration
- ownerdraw CG_ONEFLAG_STATUS
- }
- }
- /* --- Duel/FFA ScoreBox --- */
- // SCORE - FIRST PLACE
- menuDef {
- name "1STPlace"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_1ST_POS SCORES_SIZE
- ownerdrawflag CG_SHOW_ANYNONTEAMGAME
- widescreen WS_SCOREBOX
- itemDef {
- name "1STPlaceME"
- rect 0 0 SCORES_SIZE
- visible 1
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- decoration
- style WINDOW_STYLE_FILLED
- backcolor SCORES_ME_COL
- }
- itemDef {
- name "1STPlaceOPP"
- rect 0 0 SCORES_SIZE
- visible 1
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- decoration
- style WINDOW_STYLE_FILLED
- backcolor SCORES_OPP_COL
- }
- itemDef {
- name "1st place"
- ownerdraw CG_1STPLACE
- rect SC_TXTBOX_POS SC_TXTBOX_SZ
- visible 1
- textscale SC_TXT_SIZE
- align 1
- decoration
- }
- }
- // SCORE - SECOND PLACE
- menuDef {
- name "Trailing"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_2ND_POS SCORES_SIZE
- ownerdrawflag CG_SHOW_ANYNONTEAMGAME
- widescreen WS_SCOREBOX
- itemDef {
- name "2ndPlaceME"
- rect 0 0 SCORES_SIZE
- visible 1
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- decoration
- style WINDOW_STYLE_FILLED
- backcolor SCORES_ME_COL
- }
- itemDef {
- name "2ndPlaceOPP"
- rect 0 0 SCORES_SIZE
- visible 1
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- decoration
- style WINDOW_STYLE_FILLED
- backcolor SCORES_OPP_COL
- }
- itemDef {
- name "2nd place"
- ownerdraw CG_2NDPLACE
- rect SC_TXTBOX_POS SC_TXTBOX_SZ
- visible 1
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- textscale SC_TXT_SIZE
- align 1
- decoration
- }
- itemDef {
- name "2nd place"
- ownerdraw CG_PLAYER_SCORE
- rect SC_TXTBOX_POS SC_TXTBOX_SZ
- visible 1
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- textscale SC_TXT_SIZE
- align 1
- decoration
- }
- }
- // Score - Border
- menuDef {
- name "Score Border"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 0 0 0 0
- widescreen WS_SCOREBOX
- itemDef {
- name "Border 1st"
- visible 1
- rect SC_BORDER1_POS SC_BORDER_SIZE
- border WINDOW_BORDER_FULL
- bordersize SC_BORDER_SZ
- bordercolor SC_BORDER_COL
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- }
- itemDef {
- name "Border 2nd"
- visible 1
- rect SC_BORDER2_POS SC_BORDER_SIZE
- border WINDOW_BORDER_FULL
- bordersize SC_BORDER_SZ
- bordercolor SC_BORDER_COL
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- }
- }
- /* --- Health indicator --- */
- menuDef {
- name "healthIndicator"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect HP_POSITION 104 36
- ownerdrawflag 0
- widescreen WS_HEALTH
- itemDef {
- name "healthIndicatorIcon"
- rect HP_ICON_POS HP_ICON_SIZE
- visible 1
- decoration
- style 1
- backcolor 1 1 1 1
- background "ui/assets/hud/health.tga"
- ownerdraw CG_TEAM_COLORIZED
- }
- itemDef {
- name "healthIndicatorCounter"
- rect 52 -12 104 36
- visible 1
- textalign 0
- decoration
- textstyle 3
- align 1
- forecolor 1 1 1 1
- textscale HP_TXT_SZ
- ownerdraw CG_PLAYER_HEALTH
- addColorRange HP_COL_RANGE1
- addColorRange HP_COL_RANGE2
- addColorRange HP_COL_RANGE3
- addColorRange HP_COL_RANGE4
- addColorRange HP_COL_RANGE5
- addColorRange HP_COL_RANGE6
- addColorRange HP_COL_RANGE7
- }
- itemDef {
- name "HPBackground"
- rect 0 0 104 36
- visible 1
- decoration
- style WINDOW_STYLE_FILLED
- backcolor 0 0 0 0
- }
- }
- /* --- graphical obits --- */
- menuDef {
- name "obits"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 0 0 68 15
- widescreen WS_OBIT
- itemDef {
- name "obituaries"
- rect OBIT_POS OBIT_BOX_SIZE
- visible 1
- textscale OBIT_TXT_SIZE
- ownerdraw CG_PLAYER_OBIT
- }
- }
- /* --- Armor indicator --- */
- menuDef {
- name "armorIndicator"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect ARM_POSITION 104 36
- ownerdrawflag 0
- widescreen WS_ARMOR
- itemDef {
- name "armorIndicatorIcon"
- rect ARM_ICON_POS ARM_ICON_SIZE
- visible 1
- decoration
- style 1
- backcolor 1 1 1 1
- background "ui/assets/hud/armor.tga"
- ownerdraw CG_TEAM_COLORIZED
- }
- itemDef {
- name "armorIndicatorCounter"
- rect 52 -12 104 36
- visible 1
- textalign 0
- decoration
- textstyle 3
- align 1
- forecolor 1 1 1 1
- textscale ARM_TXT_SZ
- ownerdraw CG_PLAYER_ARMOR_VALUE
- addColorRange ARM_COL_RANGE1
- addColorRange ARM_COL_RANGE2
- addColorRange ARM_COL_RANGE3
- addColorRange ARM_COL_RANGE4
- addColorRange ARM_COL_RANGE5
- addColorRange ARM_COL_RANGE6
- addColorRange ARM_COL_RANGE7
- }
- itemDef {
- name "ARMBackground"
- rect 0 0 104 36
- visible 1
- decoration
- style WINDOW_STYLE_FILLED
- backcolor 0 0 0 0
- }
- }
- /* --- Ammo indicator --- */
- menuDef {
- name "ammoIndicator"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect AMMO_POSITION 52 46 // area
- ownerdrawflag 0
- widescreen WS_AMMO
- itemDef {
- name "ammoIndicatorIcon"
- rect AMMO_ICON_POS AMMO_ICON_SIZE
- visible 1
- decoration
- ownerdraw CG_PLAYER_AMMO_ICON
- }
- itemDef {
- name "ammoIndicatorCounter"
- rect AMMO_TXT_POS 52 18
- visible 1
- textalign 0
- decoration
- textstyle 3
- align 1
- forecolor 1 1 1 1
- textscale AMMO_TXT_SZ
- ownerdraw CG_PLAYER_AMMO_VALUE
- addColorRange AMMO_COL_RANGE1
- addColorRange AMMO_COL_RANGE2
- addColorRange AMMO_COL_RANGE3
- }
- }
- /* --- Flag indicator --- */
- //red player has blue flag
- menuDef {
- name "flagIndicator"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect PU_CTF_FLG_POS 32 32
- ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_RED
- widescreen WS_PU_FLAG
- itemDef {
- name "flag"
- rect 0 0 PU_CTF_FLG_SZ
- visible 1
- decoration
- style WINDOW_STYLE_FILLED
- ownerdraw CG_PLAYER_HASFLAG
- }
- }
- //blue player has red flag
- menuDef {
- name "flagIndicator"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect PU_CTF_FLG_POS 32 32
- ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_BLUE
- widescreen WS_PU_FLAG
- itemDef {
- name "flag"
- rect 0 0 PU_CTF_FLG_SZ
- visible 1
- decoration
- style WINDOW_STYLE_FILLED
- ownerdraw CG_PLAYER_HASFLAG
- }
- }
- /* --- powerup indicator --- */
- menuDef {
- name "powerupIndicator"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect PU_QUAD_POS 50 80
- widescreen WS_PU_QUAD
- itemDef {
- name "powerupIndicatorArea"
- rect 0 0 PU_QUAD_ICON_SZ
- visible 1
- decoration
- textscale PU_QUAD_TXT_SZ // Obsolete?
- ownerdraw CG_AREA_POWERUP
- special 4
- align HUD_VERTICAL
- }
- }
- /* --- CTF Powerup indicator --- */
- menuDef {
- name "CTFPowerupIndicator"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect PU_CTF_RUNE_POS PU_CTF_RUNE_SZ
- widescreen WS_PU_RUNE
- itemDef {
- name "CTFPOWERUP"
- rect 0 0 PU_CTF_RUNE_SZ
- visible 1
- decoration
- ownerdraw CG_CTF_POWERUP
- }
- }
- /* --- Usable player item --- */
- menuDef {
- name "playerItem"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect PU_CTF_USE_POS PU_CTF_USE_SZ
- widescreen WS_PU_USEABLE
- itemDef {
- name "playerItemIcon"
- rect 0 0 PU_CTF_USE_SZ
- visible 1
- decoration
- ownerdraw CG_PLAYER_ITEM
- }
- }
- /* --- Player Item Keys --- */
- // same location as Flag indicator ATM
- menuDef {
- name "playerItemKeys"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect PU_KEY_POS PU_KEY_SIZE
- widescreen WS_PU_KEY
- itemDef {
- name "playerItemKeysIcon"
- rect 0 0 PU_KEY_SIZE
- visible 1
- decoration
- ownerdraw CG_PLAYER_HASKEY
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement