Guest User

Untitled

a guest
Feb 3rd, 2014
322
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "ui/menudef.h"
  2. //Crosshair
  3.  
  4. menuDef {
  5. name "ScoreFrame"
  6. fullScreen MENU_FALSE
  7. visible MENU_TRUE
  8. rect 2 0 32 256
  9.  
  10.  
  11. itemDef {
  12. name "crosshair" //Don't forget to remove your ingame crosshair (cg_drawcrossair 0)to use only the custom one
  13. text "." //To change the crosshair style (working with all ur keyboard keys, replace by a + to have a cross etc...)
  14. rect 316.9 241.7 50 12 //To change crosshair place if not centered (first value = hor and 2nd = vert)
  15. textscale 0.36 //to change the size of custom crosshair
  16. visible 1
  17. style 0
  18. decoration
  19. forecolor 0 1 1 1 //To change the crosshair color (here cyan)
  20. }
  21. }
  22.  
  23. /* --- Ammo indicator --- */
  24. menuDef {
  25. name "ammoIndicator"
  26. fullScreen MENU_FALSE
  27. visible MENU_TRUE
  28. rect 411 288 21 28 // area
  29. ownerdrawflag 0
  30. itemDef {
  31. name "ammoIndicatorIcon"
  32. rect 1 0 19 19
  33. visible 1
  34. decoration
  35. ownerdraw CG_PLAYER_AMMO_ICON
  36. }
  37.  
  38. itemDef {
  39. name "ammoIndicatorCounter"
  40. rect 0 21 21 7
  41. visible 1
  42. textalign 0
  43. decoration
  44. textstyle 0
  45. forecolor 1 1 1 1
  46. textscale 0.2
  47. ownerdraw CG_PLAYER_AMMO_VALUE
  48.  
  49. addColorRange -999 5 1 0 0 1
  50. addColorRange 6 100 1 1 1 1
  51. addColorRange 101 999 1 1 1 1
  52.  
  53. }
  54. }
  55.  
  56. /* --- Health indicator --- */
  57.  
  58. menuDef {
  59. name "healthIndicator"
  60. fullScreen MENU_FALSE
  61. visible MENU_TRUE
  62. rect 226 407 68 23
  63. ownerdrawflag 0
  64.  
  65. itemDef {
  66. name "healthIndicatorIcon"
  67. rect 0 0 0 0
  68. visible 1
  69. decoration
  70. style 1
  71. backcolor 1 1 1 1
  72. background "ui/assets/hud/health.tga"
  73. ownerdraw CG_TEAM_COLORIZED
  74. }
  75.  
  76. itemDef {
  77. name "healthIndicatorCounter"
  78. rect 0 0 68 23
  79. visible 1
  80. textalign 0
  81. decoration
  82. textstyle 0
  83. forecolor 1 1 1 1
  84. textscale 0.65
  85. ownerdraw CG_PLAYER_HEALTH
  86. addColorRange -999 25 1 0 0 1
  87. addColorRange 26 100 1 0.8 0.2 1
  88. addColorRange 101 999 1 1 1 1
  89. }
  90. }
  91.  
  92. /* --- Armor indicator --- */
  93. menuDef {
  94. name "armorIndicator"
  95. fullScreen MENU_FALSE
  96. visible MENU_TRUE
  97. rect 304 404 110 32
  98. ownerdrawflag 0
  99. itemDef {
  100. name "armorIndicatorIcon"
  101. rect 0 0 32 32
  102. visible 1
  103. decoration
  104. style 1
  105. backcolor 1 1 1 1
  106. background "ui/assets/hud/armor.tga"
  107. ownerdraw CG_TEAM_COLORIZED
  108. }
  109.  
  110.  
  111.  
  112. itemDef {
  113. name "armorIndicatorCounter"
  114. rect 42 5 68 23
  115. visible 1
  116. textalign 0
  117. decoration
  118. textstyle 0
  119. forecolor 1 1 1 1
  120. textscale 0.65
  121. ownerdraw CG_PLAYER_ARMOR_VALUE
  122. addColorRange -999 25 1 0 0 1
  123. addColorRange 26 100 1 0.8 0.2 1
  124. addColorRange 101 999 1 1 1 1
  125. }
  126. }
  127.  
  128. /* --- graphical obits --- */
  129. menuDef {
  130. name "obits"
  131. fullScreen MENU_FALSE
  132. visible MENU_TRUE
  133. rect 282 0 76 15
  134.  
  135. itemDef {
  136. name "obituaries"
  137. rect 0 12 65 12
  138. visible 1
  139. textscale .22
  140. ownerdraw CG_PLAYER_OBIT
  141. }
  142. }
  143.  
  144.  
  145.  
  146. /* --- Timer --- */
  147.  
  148. menuDef {
  149. name "timer"
  150. fullScreen MENU_FALSE
  151. visible MENU_TRUE
  152. rect 291 57 58 19
  153. ownerdrawflag CG_SHOW_TOURNAMENT
  154. itemDef {
  155. name "timerIcon"
  156. rect 0 0 0 0
  157. visible 1
  158. decoration
  159. style 1
  160. backcolor 1 1 1 1
  161. background "icons/icon_time.tga"
  162. }
  163.  
  164. itemDef {
  165. name "timerCounter"
  166. rect 0 19 0 19
  167. visible 1
  168. textalign 0
  169. decoration
  170. textstyle 3
  171. forecolor 1 1 1 1
  172. textscale 0.54
  173. ownerdraw CG_LEVELTIMER
  174. }
  175. }
  176.  
  177. <br />
  178. <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 />
  179. <br />
  180. <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 />
  181.  
  182.  
  183.  
  184. /* --- rectangle box --- */
  185. menuDef {
  186. name "chatArea"
  187. fullScreen MENU_FALSE
  188. visible MENU_TRUE
  189. rect 0 438 220 42
  190.  
  191.  
  192. itemDef {
  193. name "boxBackground"
  194. rect 0 0 220 42
  195. visible 1
  196. style WINDOW_STYLE_FILLED
  197. ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
  198. backcolor 0 0 0 0
  199.  
  200. }
  201.  
  202. itemdef {
  203. name chatWindow
  204. ownerdraw CG_AREA_NEW_CHAT
  205. rect 0 -80 220 120
  206. visible 1
  207. decoration
  208. }
  209. }
  210.  
  211. /*
  212. COMPACT SCORE BOX
  213. better scorebox code by JOZ
  214. thanks, mate ;)
  215. */
  216.  
  217.  
  218. #define SCORES_1ST_POS 538 464
  219. #define SCORES_2ND_POS 590 464
  220.  
  221. //top
  222. menuDef {
  223. name "TopScoresBG"
  224. fullScreen MENU_FALSE
  225. visible MENU_TRUE
  226. rect SCORES_1ST_POS 50 16
  227. itemDef {
  228. name "SelfTLeft"
  229. rect 0 0 16 16
  230. visible 1
  231. ownerdraw CG_TEAM_COLORIZED
  232. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  233. decoration
  234. style 1
  235. background "ui/assets/hud/teamonl.tga"
  236. }
  237. itemDef {
  238. name "SelfTMid"
  239. rect 16 0 18 16
  240. visible 1
  241. ownerdraw CG_TEAM_COLORIZED
  242. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  243. decoration
  244. style 1
  245. background "ui/assets/hud/teamonm.tga"
  246. }
  247. itemDef {
  248. name "SelfTRight"
  249. rect 34 0 16 16
  250. visible 1
  251. ownerdraw CG_TEAM_COLORIZED
  252. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  253. decoration
  254. style 1
  255. background "ui/assets/hud/teamonr.tga"
  256. }
  257.  
  258.  
  259. itemDef {
  260. name "TLeft"
  261. rect 0 0 16 16
  262. visible 1
  263. backcolor 1 1 1 0.25
  264. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  265. decoration
  266. style 1
  267. background "ui/assets/hud/teamonl.tga"
  268. }
  269. itemDef {
  270. name "TMid"
  271. rect 16 0 18 16
  272. visible 1
  273. backcolor 1 1 1 0.25
  274. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  275. decoration
  276. style 1
  277. background "ui/assets/hud/teamonm.tga"
  278. }
  279. itemDef {
  280. name "TRight"
  281. rect 34 0 16 16
  282. visible 1
  283. backcolor 1 1 1 0.25
  284. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  285. decoration
  286. style 1
  287. background "ui/assets/hud/teamonr.tga"
  288. }
  289. }
  290.  
  291. //bottom
  292. menuDef {
  293. name "BottomScoresBG"
  294. fullScreen MENU_FALSE
  295. visible MENU_TRUE
  296. rect SCORES_2ND_POS 50 16
  297. itemDef {
  298. name "SelfTLeft"
  299. rect 0 0 16 16
  300. visible 1
  301. ownerdraw CG_TEAM_COLORIZED
  302. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  303. decoration
  304. style 1
  305. background "ui/assets/hud/teamonl.tga"
  306. }
  307. itemDef {
  308. name "SelfTMid"
  309. rect 16 0 18 16
  310. visible 1
  311. ownerdraw CG_TEAM_COLORIZED
  312. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  313. decoration
  314. style 1
  315. background "ui/assets/hud/teamonm.tga"
  316. }
  317. itemDef {
  318. name "SelfTRight"
  319. rect 34 0 16 16
  320. visible 1
  321. ownerdraw CG_TEAM_COLORIZED
  322. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  323. decoration
  324. style 1
  325. background "ui/assets/hud/teamonr.tga"
  326. }
  327.  
  328.  
  329. itemDef {
  330. name "TLeft"
  331. rect 0 0 16 16
  332. visible 1
  333. backcolor 1 1 1 0.25
  334. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  335. decoration
  336. style 1
  337. background "ui/assets/hud/teamonl.tga"
  338. }
  339. itemDef {
  340. name "TMid"
  341. rect 16 0 18 16
  342. visible 1
  343. backcolor 1 1 1 0.25
  344. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  345. decoration
  346. style 1
  347. background "ui/assets/hud/teamonm.tga"
  348. }
  349. itemDef {
  350. name "TRight"
  351. rect 34 0 16 16
  352. visible 1
  353. backcolor 1 1 1 0.25
  354. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  355. decoration
  356. style 1
  357. background "ui/assets/hud/teamonr.tga"
  358. }
  359. }
  360.  
  361. // RED TEAM SCORE BAR TOP
  362. menuDef {
  363. name "redTeamScores"
  364. fullScreen MENU_FALSE
  365. visible MENU_TRUE
  366. rect SCORES_1ST_POS 50 16
  367. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  368.  
  369. // red team score
  370. itemdef {
  371. name "blueTeamScore"
  372. ownerdraw CG_1STPLACE
  373. rect 28 12 35 9
  374. visible 1
  375. forecolor 1 1 1 0.8
  376. textscale .24
  377. textalign 2
  378. textstyle 2
  379. decoration
  380. ownerdrawflag CG_SHOW_ANYTEAMGAME
  381. }
  382.  
  383. //TDM marker
  384. itemDef {
  385. name "clanArena"
  386. rect -4 -4 23 23
  387. visible 1
  388. backcolor 1 1 1 1
  389. decoration
  390. style 1
  391. cvartest g_gametype
  392. showcvar { "3" }
  393. background "ui/assets/score/ca_arrow_red.tga"
  394. }
  395.  
  396. // clan arena count
  397. itemDef {
  398. name "clanArena"
  399. rect 2 2 21 11
  400. visible 1
  401. backcolor 1 1 1 1
  402. decoration
  403. style 1
  404. cvartest g_gametype
  405. showcvar { "4" ; "9" }
  406. background "ui/assets/score/ca_score_red.tga"
  407. }
  408. itemdef {
  409. name "redClanPlayers"
  410. cvartest g_gametype
  411. showcvar { "4" ; "9" }
  412. ownerdraw CG_RED_CLAN_PLYRS
  413. rect 14 11 136 40
  414. visible 1
  415. textscale .18
  416. forecolor 1 1 1 0.65
  417. decoration
  418. }
  419.  
  420. // ctf icons
  421. itemDef {
  422. name "f"
  423. rect 2 2 11 11
  424. visible 1
  425. bordercolor 1 1 1 1
  426. decoration
  427. style 3
  428. ownerdrawflag CG_SHOW_HARVESTER
  429. background "icons/skull_red.tga"
  430. }
  431. itemDef {
  432. name "redflag"
  433. rect 2 2 11 11
  434. visible 1
  435. decoration
  436. ownerdrawflag CG_SHOW_CTF
  437. ownerdraw CG_RED_FLAGSTATUS
  438. }
  439. itemDef {
  440. name "oneflagstatus"
  441. rect 2 2 11 11
  442. visible 1
  443. decoration
  444. ownerdraw CG_ONEFLAG_STATUS
  445. }
  446. }
  447.  
  448. // RED TEAM SCORE BAR BOTTOM
  449. menuDef {
  450. name "redTeamScores"
  451. fullScreen MENU_FALSE
  452. visible MENU_TRUE
  453. rect SCORES_2ND_POS 50 16
  454. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  455.  
  456. // red team score
  457. itemdef {
  458. name "blueTeamScore"
  459. ownerdraw CG_1STPLACE
  460. rect 28 12 35 9
  461. visible 1
  462. forecolor 1 1 1 0.8
  463. textscale .24
  464. textalign 2
  465. textstyle 2
  466. decoration
  467. ownerdrawflag CG_SHOW_ANYTEAMGAME
  468. }
  469.  
  470. //TDM marker
  471. itemDef {
  472. name "clanArena"
  473. rect -4 -4 23 23
  474. visible 1
  475. backcolor 1 1 1 1
  476. decoration
  477. style 1
  478. cvartest g_gametype
  479. showcvar { "3" }
  480. background "ui/assets/score/ca_arrow_red.tga"
  481. }
  482.  
  483. // clan arena count
  484. itemDef {
  485. name "clanArena"
  486. rect 2 2 21 11
  487. visible 1
  488. backcolor 1 1 1 1
  489. decoration
  490. style 1
  491. cvartest g_gametype
  492. showcvar { "4" ; "9" }
  493. background "ui/assets/score/ca_score_red.tga"
  494. }
  495. itemdef {
  496. name "redClanPlayers"
  497. cvartest g_gametype
  498. showcvar { "4" ; "9" }
  499. ownerdraw CG_RED_CLAN_PLYRS
  500. rect 14 11 136 40
  501. visible 1
  502. textscale .18
  503. forecolor 1 1 1 0.65
  504. decoration
  505. }
  506.  
  507. // ctf icons
  508. itemDef {
  509. name "f"
  510. rect 2 2 11 11
  511. visible 1
  512. bordercolor 1 1 1 1
  513. decoration
  514. style 3
  515. ownerdrawflag CG_SHOW_HARVESTER
  516. background "icons/skull_red.tga"
  517. }
  518. itemDef {
  519. name "redflag"
  520. rect 2 2 11 11
  521. visible 1
  522. decoration
  523. ownerdrawflag CG_SHOW_CTF
  524. ownerdraw CG_RED_FLAGSTATUS
  525. }
  526. itemDef {
  527. name "oneflagstatus"
  528. rect 2 2 11 11
  529. visible 1
  530. decoration
  531. ownerdraw CG_ONEFLAG_STATUS
  532. }
  533. }
  534.  
  535. // BLUE TEAM SCORE BAR TOP
  536. menuDef {
  537. name "blueTeamScores"
  538. fullScreen MENU_FALSE
  539. visible MENU_TRUE
  540. rect SCORES_1ST_POS 50 16
  541. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  542.  
  543. // blue team score
  544. itemdef {
  545. name "blueTeamScore"
  546. ownerdraw CG_2NDPLACE
  547. rect 28 12 35 9
  548. visible 1
  549. forecolor 1 1 1 0.8
  550. textscale .24
  551. textalign 2
  552. textstyle 2
  553. decoration
  554. ownerdrawflag CG_SHOW_ANYTEAMGAME
  555. }
  556.  
  557. //TDM marker
  558. itemDef {
  559. name "clanArena"
  560. rect -4 -4 23 23
  561. visible 1
  562. backcolor 1 1 1 1
  563. decoration
  564. style 1
  565. cvartest g_gametype
  566. showcvar { "3" }
  567. background "ui/assets/score/ca_arrow_blue.tga"
  568. }
  569. //clan arena count
  570. itemDef {
  571. name "clanArena"
  572. rect 2 2 21 11
  573. visible 1
  574. backcolor 1 1 1 1
  575. decoration
  576. style 1
  577. cvartest g_gametype
  578. showcvar { "4" ; "9" }
  579. background "ui/assets/score/ca_score_blu.tga"
  580. }
  581. itemdef {
  582. name "blueClanPlayers"
  583. cvartest g_gametype
  584. showcvar { "4" ; "9" }
  585. ownerdraw CG_BLUE_CLAN_PLYRS
  586. rect 14 11 136 40
  587. visible 1
  588. textscale .18
  589. forecolor 1 1 1 0.65
  590. decoration
  591. }
  592.  
  593. // ctf icons
  594. itemDef {
  595. name "f"
  596. rect 2 2 11 11
  597. visible 1
  598. bordercolor 1 1 1 .75
  599. decoration
  600. style 3
  601. ownerdrawflag CG_SHOW_HARVESTER
  602. background "icons/skull_blue.tga"
  603. }
  604. itemDef {
  605. name "blueflag"
  606. rect 2 2 11 11
  607. visible 1
  608. decoration
  609. ownerdrawflag CG_SHOW_CTF
  610. ownerdraw CG_BLUE_FLAGSTATUS
  611. }
  612. itemDef {
  613. name "oneflagstatus"
  614. rect 2 2 11 11
  615. visible 1
  616. decoration
  617. ownerdraw CG_ONEFLAG_STATUS
  618. }
  619.  
  620. }
  621.  
  622. // BLUE TEAM SCORE BAR BOTTOM
  623. menuDef {
  624. name "blueTeamScores"
  625. fullScreen MENU_FALSE
  626. visible MENU_TRUE
  627. rect SCORES_2ND_POS 50 16
  628. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  629.  
  630. // blue team score
  631. itemdef {
  632. name "blueTeamScore"
  633. ownerdraw CG_2NDPLACE
  634. rect 28 12 35 9
  635. visible 1
  636. forecolor 1 1 1 0.8
  637. textscale .24
  638. textalign 2
  639. textstyle 2
  640. decoration
  641. ownerdrawflag CG_SHOW_ANYTEAMGAME
  642.  
  643. }
  644.  
  645. //TDM marker
  646. itemDef {
  647. name "clanArena"
  648. rect -4 -4 23 23
  649. visible 1
  650. backcolor 1 1 1 1
  651. decoration
  652. style 1
  653. cvartest g_gametype
  654. showcvar { "3" }
  655. background "ui/assets/score/ca_arrow_blue.tga"
  656. }
  657. //clan arena count
  658. itemDef {
  659. name "clanArena"
  660. rect 2 2 21 11
  661. visible 1
  662. backcolor 1 1 1 1
  663. decoration
  664. style 1
  665. cvartest g_gametype
  666. showcvar { "4" ; "9" }
  667. background "ui/assets/score/ca_score_blu.tga"
  668. }
  669. itemdef {
  670. name "blueClanPlayers"
  671. cvartest g_gametype
  672. showcvar { "4" ; "9" }
  673. ownerdraw CG_BLUE_CLAN_PLYRS
  674. rect 14 11 136 40
  675. visible 1
  676. textscale .18
  677. forecolor 1 1 1 0.65
  678. decoration
  679. }
  680.  
  681. // ctf icons
  682. itemDef {
  683. name "f"
  684. rect 2 2 11 11
  685. visible 1
  686. bordercolor 1 1 1 .75
  687. decoration
  688. style 3
  689. ownerdrawflag CG_SHOW_HARVESTER
  690. background "icons/skull_blue.tga"
  691. }
  692. itemDef {
  693. name "blueflag"
  694. rect 2 2 11 11
  695. visible 1
  696. decoration
  697. ownerdrawflag CG_SHOW_CTF
  698. ownerdraw CG_BLUE_FLAGSTATUS
  699. }
  700. itemDef {
  701. name "oneflagstatus"
  702. rect 2 2 11 11
  703. visible 1
  704. decoration
  705. ownerdraw CG_ONEFLAG_STATUS
  706. }
  707.  
  708. }
  709.  
  710.  
  711. // SCORE - FIRST PLACE
  712. menuDef {
  713. name "1STPlace"
  714. fullScreen MENU_FALSE
  715. visible MENU_TRUE
  716. rect SCORES_1ST_POS 50 16
  717. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  718.  
  719. itemDef {
  720. name "1st place"
  721. visible 1
  722. rect -1597 13 1640 40
  723. textscale .26
  724. ownerdraw CG_1ST_PLACE_SCORE
  725. decoration
  726. }
  727. }
  728.  
  729. // SCORE - SECOND PLACE
  730. menuDef {
  731. name "Trailing"
  732. fullScreen MENU_FALSE
  733. visible MENU_TRUE
  734. rect SCORES_2ND_POS 50 16
  735. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  736.  
  737. itemDef {
  738. name "2nd place"
  739. visible 1
  740. rect -6597 13 6640 40
  741. textscale .26
  742. ownerdraw CG_2ND_PLACE_SCORE
  743. decoration
  744. }
  745. }
RAW Paste Data