Advertisement
emsixteen

EmSixTeen

Feb 18th, 2010
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.60 KB | None | 0 0
  1. /*
  2. EmSixTeen's Custom HUD - 14th August 2009
  3.  
  4. Completely re-written to be easier to read, understand and edit.
  5.  
  6. Newest version always @ http://sites.google.com/site/emsixteen/
  7. http://qlhud.core.ws/user/EmSixTeen/
  8.  
  9. rect horpos vertpos horsize vertsize
  10. others r g b transparency
  11. addColorRange lowvalue highvalue r g b transparency
  12. textstyle 1 = blinking, 2 = without shadow, 3 = with shadow, 6 = double shadow
  13.  
  14. Proper guides:
  15. http://rfactory.org/hud.html
  16. http://quakelivehud.blogspot.com
  17.  
  18. Props to Borgondio, injx, Rroff, RAZ3R, focus team, anyone else I've noseyed at/talked to, and whoever uses this..
  19.  
  20. Please credit me in the file if you edit the shit out of this :)
  21. */
  22.  
  23. #include "ui/menudef.h"
  24.  
  25. /*
  26. Contents: #SHORTCUT
  27. Vitals section #P1
  28. Health #H1
  29. Armour #A1
  30. Ammo #A2
  31. Speedometer #UPS
  32. Flag #FLA
  33. Timer #TIM
  34. Obituaries #DIE
  35. Scores section #SCO
  36. Red Team scores #RED
  37. Blue Team scores #BLU
  38. CA players (R) #CAR
  39. CA players (B) #CAB
  40. Awards #AWA
  41. Powerups #POW
  42. Chat #CHA
  43. */
  44.  
  45. // Using #define is like using a shortcut, and if you edit it here, it'll change wherever you use it
  46.  
  47. #define DEFAULTS_ITEM decoration visible 1
  48. #define DEFAULTS_MENU visible 1
  49.  
  50. #define vitalsBIG 1
  51. #define vitalsSMALL 0.4
  52.  
  53. #define COLOUR_RED 1 0 0
  54. #define COLOUR_BLUE 0 0 1
  55. #define COLOUR_TEAM 0.4 0.4 0.4
  56. #define COLOUR_ENEMY 0 1 0
  57.  
  58. #define COLOUR_CRITICAL 1 0 0 // Red
  59. #define COLOUR_LOW 0.8 0.5 0 // Gold
  60. #define COLOUR_HEALTHY 1 1 1 // White
  61. #define COLOUR_STACKED 0.37 0.8 1 // Light blue
  62.  
  63. #define LEFTALIGN textalign ITEM_ALIGN_LEFT
  64. #define CENTERALIGN textalign ITEM_ALIGN_CENTER
  65. #define RIGHTALIGN textalign ITEM_ALIGN_RIGHT
  66.  
  67. #define NORMALTEXT textstyle 0
  68. #define DROPSHADOWTEXT textstyle 3
  69. #define HEAVYSHADOWTEXT textstyle 6
  70.  
  71. // ********** PLAYER VITALS: #P1 //
  72.  
  73. menuDef {
  74. DEFAULTS_MENU
  75. rect 0 0 640 480
  76.  
  77. // ********** HEALTH: #H1 //
  78.  
  79. // Health icon
  80.  
  81. itemDef {
  82. DEFAULTS_ITEM
  83. rect 296 444 22 22
  84. backcolor 0 0 0 0.8
  85. style 1
  86. background "ui/assets/hud/health.tga"
  87. }
  88.  
  89. itemDef {
  90. DEFAULTS_ITEM
  91. rect 295 443 22 22
  92. ownerdraw CG_TEAM_COLORIZED
  93. style 1
  94. background "ui/assets/hud/health.tga"
  95. }
  96.  
  97. // Health value
  98.  
  99. // Should be right aligned, but game code needs fixed
  100. itemDef {
  101. DEFAULTS_ITEM
  102. rect 210 450 63 22
  103. ownerdraw CG_PLAYER_HEALTH
  104. HEAVYSHADOWTEXT
  105. RIGHTALIGN
  106. textscale vitalsBIG
  107. forecolor COLOUR_STACKED 1 // COLOUR_STACKED when >150
  108. addColorRange -999 30 COLOUR_CRITICAL 1 // COLOUR_CRITICAL from -999 to 30 (30 = max quad PJ dmg)
  109. addColorRange 31 80 COLOUR_LOW 1 // COLOUR_LOW from 31 to 80 (80 = rg dmg)
  110. addColorRange 81 150 COLOUR_HEALTHY 1 // COLOUR_HEALTHY from 81 to 150
  111. }
  112.  
  113. // ********** ARMOUR: #A1 //
  114.  
  115. // Armour icon
  116.  
  117. itemDef {
  118. DEFAULTS_ITEM
  119. rect 324 444 24 22
  120. backcolor 0 0 0 0.8
  121. style 1
  122. background "ui/assets/hud/armor.tga"
  123. }
  124.  
  125. itemDef {
  126. DEFAULTS_ITEM
  127. rect 323 443 24 22
  128. ownerdraw CG_TEAM_COLORIZED
  129. style 1
  130. background "ui/assets/hud/armor.tga"
  131. }
  132.  
  133. // Armour value
  134.  
  135. // Should be left aligned, but game code needs fixed
  136. itemDef {
  137. DEFAULTS_ITEM
  138. rect 370 450 63 22
  139. ownerdraw CG_PLAYER_ARMOR_VALUE
  140. HEAVYSHADOWTEXT
  141. LEFTALIGN
  142. textscale 1
  143. forecolor COLOUR_STACKED 1 // COLOUR_STACKED when >150
  144. addColorRange -999 0 1 1 1 0 // Hidden when 0 or less
  145. addColorRange 1 30 COLOUR_CRITICAL 1 // COLOUR_CRITICAL from 1 to 30
  146. addColorRange 31 80 COLOUR_LOW 1 // COLOUR_LOW from 31 to 80
  147. addColorRange 81 150 COLOUR_HEALTHY 1 // COLOUR_HEALTHY from 81 to 150
  148. }
  149.  
  150. // ********** AMMO: #A2 //
  151.  
  152. itemDef {
  153. name "Ammo icon"
  154. DEFAULTS_ITEM
  155. rect 314 380 12 12
  156. ownerdraw CG_PLAYER_AMMO_ICON2D // CG_PLAYER_AMMO_ICON for 3D icon
  157. }
  158.  
  159. itemDef {
  160. name "Ammo value"
  161. DEFAULTS_ITEM
  162. rect 290 400 62 12
  163. DROPSHADOWTEXT
  164. CENTERALIGN
  165. textscale vitalsSMALL
  166. forecolor COLOUR_HEALTHY 1
  167. ownerdraw CG_PLAYER_AMMO_VALUE
  168. addColorRange -999 5 COLOUR_CRITICAL 1 // COLOUR_CRITICAL when 5 ammo or lower
  169. }
  170.  
  171. // ********** UPS METER: #UPS //
  172.  
  173. itemDef {
  174. name "UPS meter"
  175. DEFAULTS_ITEM
  176. DROPSHADOWTEXT
  177. textalign ITEM_ALIGN_RIGHT
  178. rect 605 473 20 10
  179. forecolor 1 1 1 0.4
  180. textscale 0.25
  181. ownerdraw CG_SPEEDOMETER
  182. }
  183. }
  184.  
  185. // ********** FLAG: #FLA //
  186.  
  187. menuDef {
  188. DEFAULTS_MENU
  189. rect 0 0 640 480
  190.  
  191. itemDef {
  192. name "Pulsating flag carrier icon"
  193. DEFAULTS_ITEM
  194. rect 295 348 50 71
  195. style 3
  196. background "ui/assets/hud/flag"
  197. ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
  198. }
  199.  
  200. itemDef {
  201. name "Flag carrier flag model"
  202. DEFAULTS_ITEM
  203. rect 309 354 22 22
  204. style 1
  205. ownerdraw CG_PLAYER_HASFLAG2D
  206. }
  207.  
  208. }
  209.  
  210. // ********** TIMER: #TIM //
  211.  
  212. menuDef {
  213. DEFAULTS_MENU
  214.  
  215. itemDef {
  216. name "Team game clock"
  217. DEFAULTS_ITEM
  218. RIGHTALIGN
  219. style 0
  220. rect 560 135 80 50
  221. DROPSHADOWTEXT
  222. forecolor 1 1 1 1
  223. textscale .65
  224. ownerdraw CG_LEVELTIMER
  225. ownerdrawflag CG_SHOW_ANYTEAMGAME
  226. }
  227.  
  228. itemDef {
  229. name "Solo game clock"
  230. DEFAULTS_ITEM
  231. RIGHTALIGN
  232. style 0
  233. rect 295 25 50 15
  234. DROPSHADOWTEXT
  235. forecolor 1 1 1 1
  236. textscale .65
  237. ownerdraw CG_LEVELTIMER
  238. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  239. }
  240.  
  241. }
  242.  
  243. // ********** OBITUARIES: #DIE //
  244.  
  245. menuDef {
  246. DEFAULTS_MENU
  247. rect 6 15 160 32
  248.  
  249. itemDef {
  250. DEFAULTS_ITEM
  251. ownerdraw CG_PLAYER_OBIT
  252. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  253. rect 35 0 160 32
  254. textscale .3
  255. DROPSHADOWTEXT
  256. }
  257.  
  258. itemDef {
  259. DEFAULTS_ITEM
  260. ownerdraw CG_PLAYER_OBIT
  261. ownerdrawflag CG_SHOW_CLAN_ARENA
  262. rect 45 0 160 32
  263. textscale .3
  264. DROPSHADOWTEXT
  265. }
  266.  
  267. itemDef {
  268. DEFAULTS_ITEM
  269. ownerdraw CG_PLAYER_OBIT
  270. ownerdrawFlag CG_SHOW_CTF
  271. rect 71 0 160 32
  272. textscale 0.3
  273. DROPSHADOWTEXT
  274. }
  275.  
  276. itemDef {
  277. DEFAULTS_ITEM
  278. ownerdraw CG_PLAYER_OBIT
  279. cvarTest "g_gametype"
  280. showCvar { "3" }
  281. rect 45 0 160 32
  282. textscale 0.3
  283. DROPSHADOWTEXT
  284. }
  285.  
  286. }
  287.  
  288. // ********** SCORES: #SCO //
  289.  
  290. // Duel and FFA scores: #DUE
  291.  
  292. menuDef {
  293. DEFAULTS_MENU
  294. rect 0 0 60 60
  295. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  296.  
  297. itemDef {
  298. name "Your score"
  299. DEFAULTS_ITEM
  300. ownerdraw CG_PLAYER_SCORE
  301. ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  302. rect 4 -4 32 20
  303. textscale .3
  304. DROPSHADOWTEXT
  305. }
  306.  
  307. itemDef {
  308. name "2nd place score"
  309. DEFAULTS_ITEM
  310. ownerdraw CG_BLUE_SCORE
  311. ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  312. rect -6 16 32 20
  313. textscale .3
  314. DROPSHADOWTEXT
  315. }
  316.  
  317. itemDef {
  318. name "Your score box colour"
  319. DEFAULTS_ITEM
  320. rect 0 0 32 20
  321. backcolor COLOUR_TEAM 0.2
  322. style WINDOW_STYLE_FILLED
  323. ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  324. }
  325.  
  326. itemDef {
  327. name "2nd place score box colour"
  328. DEFAULTS_ITEM
  329. rect 0 20 32 20
  330. backcolor COLOUR_ENEMY 0.2
  331. style WINDOW_STYLE_FILLED
  332. ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  333. }
  334.  
  335. itemDef {
  336. name "1st place score"
  337. DEFAULTS_ITEM
  338. ownerdraw CG_RED_SCORE //higher
  339. ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  340. rect -6 -4 32 20
  341. textscale .3
  342. DROPSHADOWTEXT
  343. }
  344.  
  345. itemDef {
  346. name "Your score"
  347. DEFAULTS_ITEM
  348. ownerdraw CG_PLAYER_SCORE
  349. ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  350. rect 4 16 32 20
  351. textscale .3
  352. DROPSHADOWTEXT
  353. }
  354.  
  355. itemDef {
  356. name "1st place score box colour"
  357. DEFAULTS_ITEM
  358. rect 0 0 32 20
  359. backcolor COLOUR_ENEMY 0.2
  360. style WINDOW_STYLE_FILLED
  361. ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  362. }
  363.  
  364. itemDef {
  365. name "Your score box colour"
  366. DEFAULTS_ITEM
  367. rect 0 20 32 20
  368. backcolor COLOUR_TEAM 0.2
  369. style WINDOW_STYLE_FILLED
  370. ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  371. }
  372.  
  373. }
  374.  
  375. // Team scores (Red Team): #RED
  376.  
  377. menuDef {
  378. DEFAULTS_MENU
  379. rect 0 0 60 60
  380. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
  381.  
  382. itemDef {
  383. DEFAULTS_ITEM
  384. rect 0 0 44 20
  385. ownerdrawFlag CG_SHOW_ANYTEAMGAME
  386. backcolor COLOUR_RED 0.2
  387. style WINDOW_STYLE_FILLED
  388. }
  389.  
  390. itemDef {
  391. DEFAULTS_ITEM
  392. rect 0 20 44 20
  393. ownerdrawFlag CG_SHOW_ANYTEAMGAME
  394. backcolor COLOUR_ENEMY 0.2
  395. style WINDOW_STYLE_FILLED
  396. }
  397.  
  398. itemDef {
  399. DEFAULTS_ITEM
  400. rect 45 0 24 20
  401. ownerdrawFlag CG_SHOW_CTF
  402. ownerdraw CG_RED_FLAGSTATUS
  403. }
  404.  
  405. itemDef {
  406. DEFAULTS_ITEM
  407. rect 45 20 24 20
  408. ownerdrawFlag CG_SHOW_CTF
  409. ownerdraw CG_BLUE_FLAGSTATUS
  410. }
  411.  
  412.  
  413. itemDef {
  414. DEFAULTS_ITEM
  415. ownerdraw CG_RED_SCORE
  416. ownerdrawFlag CG_SHOW_ANYTEAMGAME
  417. rect 10 -4 32 20
  418. textscale 0.3
  419. RIGHTALIGN
  420. DROPSHADOWTEXT
  421. }
  422.  
  423. itemDef {
  424. DEFAULTS_ITEM
  425. ownerdraw CG_BLUE_SCORE
  426. ownerdrawFlag CG_SHOW_ANYTEAMGAME
  427. rect 10 16 32 20
  428. textscale 0.3
  429. RIGHTALIGN
  430. DROPSHADOWTEXT
  431. }
  432. }
  433.  
  434. // Team scores (Blue Team): #BLUE
  435.  
  436. menuDef {
  437. DEFAULTS_MENU
  438. rect 0 0 60 60
  439. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
  440.  
  441. itemDef {
  442. DEFAULTS_ITEM
  443. rect 0 0 44 20
  444. ownerdrawFlag CG_SHOW_ANYTEAMGAME
  445. backcolor COLOUR_BLUE 0.2
  446. style WINDOW_STYLE_FILLED
  447. }
  448.  
  449. itemDef {
  450. DEFAULTS_ITEM
  451. rect 0 20 44 20
  452. ownerdrawFlag CG_SHOW_ANYTEAMGAME
  453. backcolor COLOUR_ENEMY 0.2
  454. style WINDOW_STYLE_FILLED
  455. }
  456.  
  457. itemDef {
  458. DEFAULTS_ITEM
  459. rect 45 0 24 20
  460. ownerdrawFlag CG_SHOW_CTF
  461. ownerdraw CG_BLUE_FLAGSTATUS
  462. }
  463.  
  464. itemDef {
  465. DEFAULTS_ITEM
  466. rect 45 20 24 20
  467. ownerdrawFlag CG_SHOW_CTF
  468. ownerdraw CG_RED_FLAGSTATUS
  469. }
  470.  
  471.  
  472. itemDef {
  473. DEFAULTS_ITEM
  474. ownerdraw CG_BLUE_SCORE
  475. ownerdrawFlag CG_SHOW_ANYTEAMGAME
  476. rect 10 -4 32 20
  477. textscale 0.3
  478. RIGHTALIGN
  479. DROPSHADOWTEXT
  480. }
  481.  
  482. itemDef {
  483. DEFAULTS_ITEM
  484. ownerdraw CG_RED_SCORE
  485. ownerdrawFlag CG_SHOW_ANYTEAMGAME
  486. rect 10 16 32 20
  487. textscale 0.3
  488. RIGHTALIGN
  489. DROPSHADOWTEXT
  490. }
  491.  
  492. }
  493.  
  494. // CA Players left (Red Team): #CAR
  495.  
  496. menuDef {
  497. DEFAULTS_MENU
  498. rect 0 40 60 60
  499. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
  500.  
  501. itemDef {
  502. DEFAULTS_ITEM
  503. rect 8 0 36 16
  504. backcolor COLOUR_RED 0.15
  505. ownerdrawFlag CG_SHOW_CLAN_ARENA
  506. style WINDOW_STYLE_FILLED
  507. }
  508.  
  509. itemDef {
  510. DEFAULTS_ITEM
  511. rect 8 16 36 16
  512. backcolor COLOUR_ENEMY 0.15
  513. ownerdrawFlag CG_SHOW_CLAN_ARENA
  514. style WINDOW_STYLE_FILLED
  515. }
  516.  
  517. itemDef {
  518. DEFAULTS_ITEM
  519. rect 0 0 16 16
  520. style WINDOW_STYLE_SHADER
  521. ownerdrawFlag CG_SHOW_CLAN_ARENA
  522. background "models/players/xaero/icon_red.png"
  523. }
  524.  
  525. itemDef {
  526. DEFAULTS_ITEM
  527. rect 0 16 16 16
  528. style WINDOW_STYLE_SHADER
  529. ownerdrawFlag CG_SHOW_CLAN_ARENA
  530. background "models/players/keel/icon_sport.png"
  531. }
  532.  
  533. itemDef {
  534. DEFAULTS_ITEM
  535. ownerdrawFlag CG_SHOW_CLAN_ARENA
  536. ownerdraw CG_RED_CLAN_PLYRS
  537. rect 31 13 32 16
  538. RIGHTALIGN
  539. textscale .24
  540. DROPSHADOWTEXT
  541. }
  542.  
  543. itemDef {
  544. DEFAULTS_ITEM
  545. ownerdrawFlag CG_SHOW_CLAN_ARENA
  546. ownerdraw CG_BLUE_CLAN_PLYRS
  547. rect 31 29 136 40
  548. RIGHTALIGN
  549. textscale .24
  550. DROPSHADOWTEXT
  551. }
  552.  
  553. }
  554.  
  555. // CA Players left (Blue Team): #CAB
  556.  
  557. menuDef {
  558. DEFAULTS_MENU
  559. rect 0 40 60 60
  560. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
  561.  
  562. itemDef {
  563. DEFAULTS_ITEM
  564. rect 8 0 36 16
  565. backcolor COLOUR_BLUE 0.15
  566. ownerdrawFlag CG_SHOW_CLAN_ARENA
  567. style WINDOW_STYLE_FILLED
  568. }
  569.  
  570. itemDef {
  571. DEFAULTS_ITEM
  572. rect 8 16 36 16
  573. backcolor COLOUR_ENEMY 0.15
  574. ownerdrawFlag CG_SHOW_CLAN_ARENA
  575. style WINDOW_STYLE_FILLED
  576. }
  577.  
  578. itemDef {
  579. DEFAULTS_ITEM
  580. rect 0 0 16 16
  581. style WINDOW_STYLE_SHADER
  582. ownerdrawFlag CG_SHOW_CLAN_ARENA
  583. background "models/players/xaero/icon_blue.png"
  584. }
  585.  
  586. itemDef {
  587. DEFAULTS_ITEM
  588. rect 0 16 16 16
  589. style WINDOW_STYLE_SHADER
  590. ownerdrawFlag CG_SHOW_CLAN_ARENA
  591. background "models/players/keel/icon_sport.png"
  592. }
  593.  
  594. itemDef {
  595. DEFAULTS_ITEM
  596. ownerdrawFlag CG_SHOW_CLAN_ARENA
  597. ownerdraw CG_BLUE_CLAN_PLYRS
  598. rect 22 13 32 16
  599. RIGHTALIGN
  600. textscale .26
  601. DROPSHADOWTEXT
  602. }
  603.  
  604. itemDef {
  605. DEFAULTS_ITEM
  606. ownerdrawFlag CG_SHOW_CLAN_ARENA
  607. ownerdraw CG_RED_CLAN_PLYRS
  608. rect 22 29 136 40
  609. RIGHTALIGN
  610. textscale .26
  611. DROPSHADOWTEXT
  612. }
  613.  
  614. }
  615.  
  616. // ********** AWARDS: #AWA //
  617.  
  618. menuDef {
  619. DEFAULTS_MENU
  620. rect 3 440 200 30
  621.  
  622. itemDef {
  623. DEFAULTS_ITEM
  624. ownerdraw CG_ACCURACY
  625. ownerdrawFlag CG_SHOW_CLAN_ARENA
  626. rect 5 0 20 20
  627. background "ui/assets/medal_accuracy.tga"
  628. forecolor 1 1 1 1
  629. visible MENU_TRUE
  630. textscale 0
  631. }
  632.  
  633. itemDef {
  634. DEFAULTS_ITEM
  635. name "medal_accuracy"
  636. ownerdraw CG_ACCURACY
  637. ownerdrawFlag CG_SHOW_CLAN_ARENA
  638. rect 0 40 0 0
  639. forecolor 1 1 1 1
  640. visible MENU_TRUE
  641. textscale 0.22
  642. }
  643.  
  644. itemDef {
  645. DEFAULTS_ITEM
  646. name "medal_accuracy"
  647. ownerdraw CG_ACCURACY
  648. cvarTest "g_gametype"
  649. showCvar { "0" }
  650. rect 5 0 20 20
  651. background "ui/assets/medal_accuracy.tga"
  652. forecolor 1 1 1 1
  653. visible MENU_TRUE
  654. textscale 0
  655. }
  656.  
  657. itemDef {
  658. DEFAULTS_ITEM
  659. name "medal_accuracy"
  660. ownerdraw CG_ACCURACY
  661. cvarTest "g_gametype"
  662. showCvar { "0" }
  663. rect 0 40 0 0
  664. forecolor 1 1 1 1
  665. visible MENU_TRUE
  666. textscale 0.22
  667. }
  668.  
  669. itemDef {
  670. DEFAULTS_ITEM
  671. name "medal_captures"
  672. ownerdraw CG_CAPTURES
  673. ownerdrawflag CG_SHOW_CTF
  674. rect 5 0 20 20
  675. background "ui/assets/medal_capture.tga"
  676. forecolor 1 1 1 1
  677. textscale 0
  678. }
  679.  
  680. itemDef {
  681. DEFAULTS_ITEM
  682. name "medal_captures"
  683. ownerdraw CG_CAPTURES
  684. ownerdrawflag CG_SHOW_CTF
  685. rect 7 40 0 0
  686. forecolor 1 1 1 1
  687. visible MENU_TRUE
  688. textscale 0.22
  689. }
  690.  
  691. itemDef {
  692. DEFAULTS_ITEM
  693. name "medal_assists"
  694. ownerdraw CG_ASSISTS
  695. ownerdrawflag CG_SHOW_CTF
  696. rect 30 0 20 20
  697. background "ui/assets/medal_assist.tga"
  698. forecolor 1 1 1 1
  699. textscale 0
  700. }
  701.  
  702. itemDef {
  703. DEFAULTS_ITEM
  704. name "medal_assists"
  705. ownerdraw CG_ASSISTS
  706. ownerdrawflag CG_SHOW_CTF
  707. rect 35 40 0 0
  708. forecolor 1 1 1 1
  709. textscale 0.22
  710. }
  711.  
  712.  
  713. itemDef {
  714. DEFAULTS_ITEM
  715. name "medal_captures"
  716. ownerdraw CG_DEFEND
  717. ownerdrawflag CG_SHOW_CTF
  718. rect 58 40 0 0
  719. forecolor 1 1 1 1
  720. visible MENU_TRUE
  721. textscale 0.22
  722. }
  723.  
  724. itemDef {
  725. DEFAULTS_ITEM
  726. name "medal_captures"
  727. ownerdraw CG_DEFEND
  728. ownerdrawflag CG_SHOW_CTF
  729. rect 55 0 20 20
  730. background "ui/assets/medal_defend.tga"
  731. forecolor 1 1 1 1
  732. textscale 0
  733. }
  734.  
  735. }
  736.  
  737. // ********** POWERUPS: #POW //
  738.  
  739. // PowerUps (default)
  740.  
  741. menuDef {
  742. DEFAULTS_MENU
  743. rect 556 178 74 156
  744.  
  745. itemDef {
  746. DEFAULTS_ITEM
  747. rect 0 0 39 26
  748. textscale 0.73
  749. textstyle ITEM_TEXTSTYLE_SHADOWEDMORE
  750. //textalign ITEM_ALIGN_RIGHT
  751. ownerdraw CG_AREA_POWERUP
  752. special 0 // spacing
  753. align HUD_VERTICAL
  754. }
  755. }
  756.  
  757. // Pickups and holdables
  758.  
  759. menuDef {
  760. DEFAULTS_MENU
  761. rect 0 40 80 25
  762.  
  763. itemDef {
  764. DEFAULTS_ITEM
  765. rect 23 0 22 22
  766. ownerdraw CG_PLAYER_ITEM
  767. }
  768.  
  769. itemDef {
  770. DEFAULTS_ITEM
  771. rect 0 0 22 22
  772. ownerdraw CG_CTF_POWERUP
  773. }
  774. }
  775.  
  776. // ********** CHAT: #CHA //
  777.  
  778. menuDef {
  779. DEFAULTS_MENU
  780. rect 0 0 32 256
  781.  
  782. itemdef {
  783. DEFAULTS_ITEM
  784. ownerdraw CG_AREA_NEW_CHAT
  785. rect 5 287 634 120
  786. }
  787. }
  788.  
  789.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement