Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ui/menudef.h"
- //Crosshair
- menuDef {
- name "ScoreFrame"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 2 0 32 256
- itemDef {
- name "crosshair" //Don't forget to remove your ingame crosshair (cg_drawcrossair 0)to use only the custom one
- text "." //To change the crosshair style (working with all ur keyboard keys, replace by a + to have a cross etc...)
- rect 316.9 241.7 50 12 //To change crosshair place if not centered (first value = hor and 2nd = vert)
- textscale 0.36 //to change the size of custom crosshair
- visible 1
- style 0
- decoration
- forecolor 0 1 1 1 //To change the crosshair color (here cyan)
- }
- }
- /* --- Ammo indicator --- */
- menuDef {
- name "ammoIndicator"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 411 288 21 28 // area
- ownerdrawflag 0
- itemDef {
- name "ammoIndicatorIcon"
- rect 1 0 19 19
- visible 1
- decoration
- ownerdraw CG_PLAYER_AMMO_ICON
- }
- itemDef {
- name "ammoIndicatorCounter"
- rect 0 21 21 7
- visible 1
- textalign 0
- decoration
- textstyle 0
- forecolor 1 1 1 1
- textscale 0.2
- ownerdraw CG_PLAYER_AMMO_VALUE
- addColorRange -999 5 1 0 0 1
- addColorRange 6 100 1 1 1 1
- addColorRange 101 999 1 1 1 1
- }
- }
- /* --- Health indicator --- */
- menuDef {
- name "healthIndicator"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 226 407 68 23
- ownerdrawflag 0
- itemDef {
- name "healthIndicatorIcon"
- rect 0 0 0 0
- visible 1
- decoration
- style 1
- backcolor 1 1 1 1
- background "ui/assets/hud/health.tga"
- ownerdraw CG_TEAM_COLORIZED
- }
- itemDef {
- name "healthIndicatorCounter"
- rect 0 0 68 23
- visible 1
- textalign 0
- decoration
- textstyle 0
- forecolor 1 1 1 1
- textscale 0.65
- ownerdraw CG_PLAYER_HEALTH
- addColorRange -999 25 1 0 0 1
- addColorRange 26 100 1 0.8 0.2 1
- addColorRange 101 999 1 1 1 1
- }
- }
- /* --- Armor indicator --- */
- menuDef {
- name "armorIndicator"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 304 404 110 32
- ownerdrawflag 0
- itemDef {
- name "armorIndicatorIcon"
- rect 0 0 32 32
- visible 1
- decoration
- style 1
- backcolor 1 1 1 1
- background "ui/assets/hud/armor.tga"
- ownerdraw CG_TEAM_COLORIZED
- }
- itemDef {
- name "armorIndicatorCounter"
- rect 42 5 68 23
- visible 1
- textalign 0
- decoration
- textstyle 0
- forecolor 1 1 1 1
- textscale 0.65
- ownerdraw CG_PLAYER_ARMOR_VALUE
- addColorRange -999 25 1 0 0 1
- addColorRange 26 100 1 0.8 0.2 1
- addColorRange 101 999 1 1 1 1
- }
- }
- /* --- graphical obits --- */
- menuDef {
- name "obits"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 282 0 76 15
- itemDef {
- name "obituaries"
- rect 0 12 65 12
- visible 1
- textscale .22
- ownerdraw CG_PLAYER_OBIT
- }
- }
- /* --- Timer --- */
- menuDef {
- name "timer"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 291 57 58 19
- ownerdrawflag CG_SHOW_TOURNAMENT
- 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"
- rect 0 19 0 19
- visible 1
- textalign 0
- decoration
- textstyle 3
- forecolor 1 1 1 1
- textscale 0.54
- ownerdraw CG_LEVELTIMER
- }
- }
- <br />
- <b>Warning</b>: include(templates/customDefinition.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/home/content/40/6583740/html/qlvhud/download.php</b> on line <b>149</b><br />
- <br />
- <b>Warning</b>: include() [<a href='function.include'>function.include</a>]: Failed opening 'templates/customDefinition.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in <b>/home/content/40/6583740/html/qlvhud/download.php</b> on line <b>149</b><br />
- /* --- rectangle box --- */
- menuDef {
- name "chatArea"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect 0 438 220 42
- itemDef {
- name "boxBackground"
- rect 0 0 220 42
- visible 1
- style WINDOW_STYLE_FILLED
- ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
- backcolor 0 0 0 0
- }
- itemdef {
- name chatWindow
- ownerdraw CG_AREA_NEW_CHAT
- rect 0 -80 220 120
- visible 1
- decoration
- }
- }
- /*
- COMPACT SCORE BOX
- better scorebox code by JOZ
- thanks, mate ;)
- */
- #define SCORES_1ST_POS 538 464
- #define SCORES_2ND_POS 590 464
- //top
- menuDef {
- name "TopScoresBG"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_1ST_POS 50 16
- itemDef {
- name "SelfTLeft"
- rect 0 0 16 16
- visible 1
- ownerdraw CG_TEAM_COLORIZED
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonl.tga"
- }
- itemDef {
- name "SelfTMid"
- rect 16 0 18 16
- visible 1
- ownerdraw CG_TEAM_COLORIZED
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonm.tga"
- }
- itemDef {
- name "SelfTRight"
- rect 34 0 16 16
- visible 1
- ownerdraw CG_TEAM_COLORIZED
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonr.tga"
- }
- itemDef {
- name "TLeft"
- rect 0 0 16 16
- visible 1
- backcolor 1 1 1 0.25
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonl.tga"
- }
- itemDef {
- name "TMid"
- rect 16 0 18 16
- visible 1
- backcolor 1 1 1 0.25
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonm.tga"
- }
- itemDef {
- name "TRight"
- rect 34 0 16 16
- visible 1
- backcolor 1 1 1 0.25
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonr.tga"
- }
- }
- //bottom
- menuDef {
- name "BottomScoresBG"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_2ND_POS 50 16
- itemDef {
- name "SelfTLeft"
- rect 0 0 16 16
- visible 1
- ownerdraw CG_TEAM_COLORIZED
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonl.tga"
- }
- itemDef {
- name "SelfTMid"
- rect 16 0 18 16
- visible 1
- ownerdraw CG_TEAM_COLORIZED
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonm.tga"
- }
- itemDef {
- name "SelfTRight"
- rect 34 0 16 16
- visible 1
- ownerdraw CG_TEAM_COLORIZED
- ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonr.tga"
- }
- itemDef {
- name "TLeft"
- rect 0 0 16 16
- visible 1
- backcolor 1 1 1 0.25
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonl.tga"
- }
- itemDef {
- name "TMid"
- rect 16 0 18 16
- visible 1
- backcolor 1 1 1 0.25
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonm.tga"
- }
- itemDef {
- name "TRight"
- rect 34 0 16 16
- visible 1
- backcolor 1 1 1 0.25
- ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
- decoration
- style 1
- background "ui/assets/hud/teamonr.tga"
- }
- }
- // RED TEAM SCORE BAR TOP
- menuDef {
- name "redTeamScores"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_1ST_POS 50 16
- ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
- // red team score
- itemdef {
- name "blueTeamScore"
- ownerdraw CG_1STPLACE
- rect 28 12 35 9
- visible 1
- forecolor 1 1 1 0.8
- textscale .24
- textalign 2
- textstyle 2
- decoration
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- //TDM marker
- itemDef {
- name "clanArena"
- rect -4 -4 23 23
- 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 2 2 21 11
- 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 14 11 136 40
- visible 1
- textscale .18
- forecolor 1 1 1 0.65
- decoration
- }
- // ctf icons
- itemDef {
- name "f"
- rect 2 2 11 11
- visible 1
- bordercolor 1 1 1 1
- decoration
- style 3
- ownerdrawflag CG_SHOW_HARVESTER
- background "icons/skull_red.tga"
- }
- itemDef {
- name "redflag"
- rect 2 2 11 11
- visible 1
- decoration
- ownerdrawflag CG_SHOW_CTF
- ownerdraw CG_RED_FLAGSTATUS
- }
- itemDef {
- name "oneflagstatus"
- rect 2 2 11 11
- 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 50 16
- ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
- // red team score
- itemdef {
- name "blueTeamScore"
- ownerdraw CG_1STPLACE
- rect 28 12 35 9
- visible 1
- forecolor 1 1 1 0.8
- textscale .24
- textalign 2
- textstyle 2
- decoration
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- //TDM marker
- itemDef {
- name "clanArena"
- rect -4 -4 23 23
- 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 2 2 21 11
- 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 14 11 136 40
- visible 1
- textscale .18
- forecolor 1 1 1 0.65
- decoration
- }
- // ctf icons
- itemDef {
- name "f"
- rect 2 2 11 11
- visible 1
- bordercolor 1 1 1 1
- decoration
- style 3
- ownerdrawflag CG_SHOW_HARVESTER
- background "icons/skull_red.tga"
- }
- itemDef {
- name "redflag"
- rect 2 2 11 11
- visible 1
- decoration
- ownerdrawflag CG_SHOW_CTF
- ownerdraw CG_RED_FLAGSTATUS
- }
- itemDef {
- name "oneflagstatus"
- rect 2 2 11 11
- 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 50 16
- ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
- // blue team score
- itemdef {
- name "blueTeamScore"
- ownerdraw CG_2NDPLACE
- rect 28 12 35 9
- visible 1
- forecolor 1 1 1 0.8
- textscale .24
- textalign 2
- textstyle 2
- decoration
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- //TDM marker
- itemDef {
- name "clanArena"
- rect -4 -4 23 23
- 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 2 2 21 11
- 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 14 11 136 40
- visible 1
- textscale .18
- forecolor 1 1 1 0.65
- decoration
- }
- // ctf icons
- itemDef {
- name "f"
- rect 2 2 11 11
- visible 1
- bordercolor 1 1 1 .75
- decoration
- style 3
- ownerdrawflag CG_SHOW_HARVESTER
- background "icons/skull_blue.tga"
- }
- itemDef {
- name "blueflag"
- rect 2 2 11 11
- visible 1
- decoration
- ownerdrawflag CG_SHOW_CTF
- ownerdraw CG_BLUE_FLAGSTATUS
- }
- itemDef {
- name "oneflagstatus"
- rect 2 2 11 11
- 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 50 16
- ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
- // blue team score
- itemdef {
- name "blueTeamScore"
- ownerdraw CG_2NDPLACE
- rect 28 12 35 9
- visible 1
- forecolor 1 1 1 0.8
- textscale .24
- textalign 2
- textstyle 2
- decoration
- ownerdrawflag CG_SHOW_ANYTEAMGAME
- }
- //TDM marker
- itemDef {
- name "clanArena"
- rect -4 -4 23 23
- 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 2 2 21 11
- 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 14 11 136 40
- visible 1
- textscale .18
- forecolor 1 1 1 0.65
- decoration
- }
- // ctf icons
- itemDef {
- name "f"
- rect 2 2 11 11
- visible 1
- bordercolor 1 1 1 .75
- decoration
- style 3
- ownerdrawflag CG_SHOW_HARVESTER
- background "icons/skull_blue.tga"
- }
- itemDef {
- name "blueflag"
- rect 2 2 11 11
- visible 1
- decoration
- ownerdrawflag CG_SHOW_CTF
- ownerdraw CG_BLUE_FLAGSTATUS
- }
- itemDef {
- name "oneflagstatus"
- rect 2 2 11 11
- visible 1
- decoration
- ownerdraw CG_ONEFLAG_STATUS
- }
- }
- // SCORE - FIRST PLACE
- menuDef {
- name "1STPlace"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_1ST_POS 50 16
- ownerdrawflag CG_SHOW_ANYNONTEAMGAME
- itemDef {
- name "1st place"
- visible 1
- rect -1597 13 1640 40
- textscale .26
- ownerdraw CG_1ST_PLACE_SCORE
- decoration
- }
- }
- // SCORE - SECOND PLACE
- menuDef {
- name "Trailing"
- fullScreen MENU_FALSE
- visible MENU_TRUE
- rect SCORES_2ND_POS 50 16
- ownerdrawflag CG_SHOW_ANYNONTEAMGAME
- itemDef {
- name "2nd place"
- visible 1
- rect -6597 13 6640 40
- textscale .26
- ownerdraw CG_2ND_PLACE_SCORE
- decoration
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement