Advertisement
Guest User

comp_hud.menu

a guest
Jul 17th, 2013
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.79 KB | None | 0 0
  1. #include "ui/menudef.h"
  2.  
  3. // comp menu
  4. //
  5. // defines from ui_shared.h
  6.  
  7. {
  8. //=================================================================================
  9. assetGlobalDef {
  10. cursor "ui/assets/3_cursor2" // cursor
  11. gradientBar "ui/assets/gradientbar2.tga" // gradient bar
  12. fadeClamp 1.0 // sets the fadeup alpha
  13. fadeCycle 1 // how often fade happens in milliseconds
  14. fadeAmount 0.1 // amount to adjust alpha per cycle
  15. shadowX 5 // x amount for shadow offset
  16. shadowY 5 // y amount for shadow offset
  17. shadowColor 0.1 0.1 0.1 0.25 // shadow color
  18. font "fonts/font" 24 // font
  19. smallFont "fonts/smallfont" 16 // font
  20. bigFont "fonts/bigfont" 48 // font
  21. }
  22. //=================================================================================
  23. menuDef {
  24. name "TeamScoreboxes"
  25. rect 0 18 640 480
  26. fullScreen MENU_FALSE
  27. visible MENU_TRUE
  28. ownerdrawflag CG_SHOW_ANYTEAMGAME
  29.  
  30. itemDef {
  31. rect 610 418 28 16
  32. visible 1
  33. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  34. backcolor 1 0 0 0.5
  35. style 1
  36. }
  37.  
  38. itemDef {
  39. rect 610 438 28 16
  40. visible 1
  41. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  42. backcolor 0.2 0.35 1 0.5
  43. style 1
  44. }
  45.  
  46. itemDef {
  47. ownerdraw CG_RED_SCORE
  48. rect 624 431 32 20
  49. visible 1
  50. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  51. textscale 0.25
  52. align 1
  53. decoration
  54. }
  55.  
  56. itemDef {
  57. ownerdraw CG_BLUE_SCORE
  58. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  59. rect 624 451 32 20
  60. visible 1
  61. textscale 0.25
  62. align 1
  63. decoration
  64. }
  65.  
  66. }
  67. //=================================================================================
  68. menuDef {
  69. name "TeamScoreboxes2"
  70. rect 0 18 640 480
  71. fullScreen MENU_FALSE
  72. visible MENU_TRUE
  73. ownerdrawflag CG_SHOW_ANYTEAMGAME
  74.  
  75. itemDef {
  76. rect 610 418 28 16
  77. visible 1
  78. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  79. backcolor 0.2 0.35 1 0.5
  80. style 1
  81. }
  82.  
  83. itemDef {
  84. rect 610 438 28 16
  85. visible 1
  86. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  87. backcolor 1 0 0 0.5
  88. style 1
  89. }
  90.  
  91. itemDef {
  92. rect 624 451 32 20
  93. ownerdraw CG_RED_SCORE
  94. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  95. visible 1
  96. textscale 0.25
  97. align 1
  98. decoration
  99. }
  100.  
  101. itemDef {
  102. rect 624 431 32 20
  103. ownerdraw CG_BLUE_SCORE
  104. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  105. visible 1
  106. textscale 0.25
  107. align 1
  108. decoration
  109. }
  110.  
  111. }
  112. //=================================================================================
  113. menuDef {
  114. name "NonTeamScoreboxes"
  115. rect 0 18 640 480
  116. fullScreen MENU_FALSE
  117. visible MENU_TRUE
  118. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  119.  
  120. itemDef {
  121. rect 610 418 28 16
  122. visible 1
  123. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  124. backcolor 0.2 0.35 1 0.5
  125. style 1
  126. }
  127.  
  128. itemDef {
  129. rect 610 438 28 16
  130. visible 1
  131. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  132. backcolor 1 0 0 0.5
  133. style 1
  134. }
  135.  
  136. itemDef {
  137. rect 610 418 28 16
  138. visible 1
  139. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  140. backcolor 1 0 0 0.5
  141. style 1
  142. }
  143.  
  144. itemDef {
  145. rect 610 438 28 16
  146. visible 1
  147. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  148. backcolor 0.2 0.35 1 0.5
  149. style 1
  150. }
  151.  
  152. itemDef {
  153. name "OpponentInFirst"
  154. ownerdraw CG_1STPLACE
  155. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  156. rect 624 431 30 20
  157. visible 1
  158. textscale .25
  159. decoration
  160. align 1
  161. }
  162.  
  163. itemDef {
  164. name "OpponentTrailingMe"
  165. ownerdraw CG_2NDPLACE
  166. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  167. rect 624 451 30 20
  168. visible 1
  169. textscale .25
  170. decoration
  171. align 1
  172. }
  173.  
  174. itemDef {
  175. name "MyScoreWhenTrailing"
  176. ownerdraw CG_PLAYER_SCORE
  177. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  178. rect 624 451 30 20//611 431 30 20
  179. visible 1
  180. textscale .25
  181. decoration
  182. align 1
  183. }
  184.  
  185. itemDef {
  186. name "MyScoreWhenInFirst"
  187. ownerdraw CG_PLAYER_SCORE
  188. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  189. rect 624 431 30 20//611 411 30 20
  190. visible 1
  191. textscale .25
  192. decoration
  193. align 1
  194. }
  195. }
  196. //=================================================================================
  197. menuDef {
  198. name "AmmoMenu"
  199. fullScreen MENU_FALSE
  200. visible MENU_TRUE
  201. rect 106 488 99 36
  202.  
  203. itemDef {
  204. name "AmmoIcon"
  205. rect 8 -41 16 16
  206. visible 1
  207. decoration
  208. ownerdraw CG_PLAYER_AMMO_ICON2D
  209. }
  210.  
  211. itemDef {
  212. name "AmmoValueShadow"
  213. rect 27 -34 63 12
  214. visible 1
  215. textstyle 3
  216. decoration
  217. textscale .65
  218. forecolor 0 0 0 1
  219. ownerdraw CG_PLAYER_AMMO_VALUE
  220. }
  221.  
  222. itemDef {
  223. name "AmmoValue"
  224. rect 26 -35 63 12
  225. visible 1
  226. textstyle 3
  227. decoration
  228. textscale .65
  229. forecolor 1 1 1 1
  230. ownerdraw CG_PLAYER_AMMO_VALUE
  231. addColorRange -999 -1 1 1 1 1
  232. addColorRange 0 5 1 0 0 1
  233. }
  234. }
  235. //=================================================================================
  236. menuDef {
  237. name "HealthMenu"
  238. fullScreen MENU_FALSE
  239. visible MENU_TRUE
  240. rect 222 439 95 36
  241.  
  242. itemDef {
  243. name "HealthIconShadow"
  244. backcolor 0 0 0 0.8
  245. rect 23 7 18 18
  246. visible 1
  247. decoration
  248. style 1
  249. background "ui/assets/hud/health.tga"
  250. }
  251.  
  252. itemDef {
  253. name "HealthIcon"
  254. rect 22 6 18 18
  255. ownerdraw CG_TEAM_COLORIZED
  256. visible 1
  257. decoration
  258. style 1
  259. background "ui/assets/hud/health.tga"
  260. }
  261.  
  262. itemDef {
  263. name "HealthValueShadow"
  264. rect 67 12 63 22
  265. visible 1
  266. textalign 2
  267. decoration
  268. textstyle 3
  269. forecolor 0 0 0 1
  270. textscale 1
  271. ownerdraw CG_PLAYER_HEALTH
  272. }
  273.  
  274. itemDef {
  275. name "HealthValue"
  276. rect 65 10 63 22
  277. visible 1
  278. textalign 2
  279. decoration
  280. textstyle 3
  281. forecolor 1 1 1 1
  282. textscale 1
  283. ownerdraw CG_PLAYER_HEALTH
  284. addColorRange -999 25 1 0 0 1
  285. addColorRange 26 100 1 0.8 0.2 1
  286. addColorRange 101 999 1 1 1 1
  287. }
  288. }
  289. //=================================================================================
  290. menuDef {
  291. name "ArmorMenu"
  292. fullScreen MENU_FALSE
  293. visible MENU_TRUE
  294. rect 400 435 142 32
  295.  
  296. itemDef {
  297. name "ArmorIconShadow"
  298. backcolor 0 0 0 0.8
  299. rect 2 11 18 18
  300. visible 1
  301. decoration
  302. style 1
  303. background "ui/assets/hud/armor.tga"
  304. }
  305.  
  306. itemDef {
  307. name "ArmorIcon"
  308. ownerdraw CG_TEAM_COLORIZED
  309. rect 1 10 18 18
  310. visible 1
  311. decoration
  312. style 1
  313. background "ui/assets/hud/armor.tga"
  314. cvarTest "cg_armorTiered"
  315. hideCvar { "1" }
  316. }
  317.  
  318. itemDef {
  319. name "ArmorIcon"
  320. ownerdraw CG_ARMORTIERED_COLORIZED
  321. rect 1 10 18 18
  322. visible 1
  323. decoration
  324. style 1
  325. background "ui/assets/hud/armor.tga"
  326. cvarTest "cg_armorTiered"
  327. showCvar { "1" }
  328. }
  329.  
  330. itemDef {
  331. name "ArmorValueShadow"
  332. rect 45 16 63 22
  333. visible 1
  334. textalign 2
  335. decoration
  336. textstyle 3
  337. forecolor 0 0 0 1
  338. textscale 1
  339. ownerdraw CG_PLAYER_ARMOR_VALUE
  340. }
  341.  
  342. itemDef {
  343. name "ArmorValue"
  344. rect 43 14 63 22
  345. visible 1
  346. textalign 2
  347. decoration
  348. textstyle 3
  349. forecolor 1 1 1 1
  350. textscale 1
  351. ownerdraw CG_PLAYER_ARMOR_VALUE
  352. addColorRange -999 100 1 0.8 0.2 1
  353. addColorRange 101 999 1 1 1 1
  354. }
  355. }
  356. //=================================================================================
  357. menuDef {
  358. name "TimerMenu"
  359. fullScreen MENU_FALSE
  360. visible MENU_TRUE
  361.  
  362. itemDef {
  363. name "TeamTimer"
  364. textalign 2
  365. style 0
  366. rect 250 25 50 12
  367. visible 1
  368. textstyle 3
  369. decoration
  370. forecolor 1 1 1 1
  371. textscale .60
  372. ownerdraw CG_LEVELTIMER
  373. ownerdrawflag CG_SHOW_ANYTEAMGAME
  374. }
  375.  
  376. itemDef {
  377. name "NonTeamTimer"
  378. textalign 2
  379. style 0
  380. rect 295 25 50 12
  381. visible 1
  382. textstyle 3
  383. decoration
  384. forecolor 1 1 1 1
  385. textscale .60
  386. ownerdraw CG_LEVELTIMER
  387. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  388. }
  389.  
  390. itemDef {
  391. name "CARoundTimer"
  392. textalign 2
  393. style 0
  394. rect 278 45 50 12
  395. visible 1
  396. textstyle 3
  397. decoration
  398. forecolor 1 0 0 1
  399. textscale .30
  400. ownerdraw CG_ROUNDTIMER
  401. }
  402. }
  403. //=================================================================================
  404. menuDef {
  405. name "BlueCAFrame"
  406. fullScreen MENU_FALSE
  407. visible MENU_TRUE
  408. rect 551 436 32 256
  409. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  410.  
  411. itemDef {
  412. name "BlueCAPlayerIcon"
  413. rect 33 2 21 12
  414. visible 1
  415. backcolor 1 1 1 1
  416. decoration
  417. style 1
  418. ownerdrawflag CG_SHOW_PLAYERS_REMAINING
  419. background "ui/assets/score/ca_score_blu.tga"
  420. cvarTest "cg_gametype"
  421. hideCvar { "12" }
  422. }
  423.  
  424. itemdef {
  425. name "BlueCAPlayers"
  426. ownerdrawflag CG_SHOW_PLAYERS_REMAINING
  427. ownerdraw CG_BLUE_CLAN_PLYRS
  428. rect 45 11 136 40
  429. visible 1
  430. textscale .18
  431. forecolor 1 1 1 0.65
  432. decoration
  433. cvarTest "cg_gametype"
  434. hideCvar { "12" }
  435. }
  436. }
  437. //=================================================================================
  438. menuDef {
  439. name "BlueDOMFrame"
  440. fullScreen MENU_FALSE
  441. visible MENU_TRUE
  442. rect 551 436 32 256
  443. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  444.  
  445. itemDef {
  446. name "domination"
  447. rect 33 2 21 11
  448. visible 1
  449. backcolor 1 1 1 1
  450. decoration
  451. style 1
  452. ownerdrawflag CG_SHOW_DOMINATION
  453. background "ui/assets/score/dom_score_blu.tga"
  454. }
  455. itemdef {
  456. name "blueOwnedFlags"
  457. ownerdrawflag CG_SHOW_DOMINATION
  458. ownerdraw CG_BLUE_OWNED_FLAGS
  459. rect 45 11 136 40
  460. visible 1
  461. textscale .18
  462. forecolor 1 1 1 0.65
  463. decoration
  464. }
  465. }
  466. //=================================================================================
  467. menuDef {
  468. name "RedCAFrame"
  469. fullScreen MENU_FALSE
  470. visible MENU_TRUE
  471. rect 551 456 32 256
  472. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  473.  
  474. itemDef {
  475. name "RedCAPlayerIcon"
  476. rect 33 2 21 12
  477. visible 1
  478. backcolor 1 1 1 1
  479. decoration
  480. style 1
  481. ownerdrawflag CG_SHOW_PLAYERS_REMAINING
  482. background "ui/assets/score/ca_score_red.tga"
  483. cvarTest "cg_gametype"
  484. hideCvar { "12" }
  485. }
  486.  
  487. itemdef {
  488. name "RedCAPlayers"
  489. ownerdrawflag CG_SHOW_PLAYERS_REMAINING
  490. ownerdraw CG_RED_CLAN_PLYRS
  491. rect 45 11 136 40
  492. visible 1
  493. textscale .18
  494. forecolor 1 1 1 0.65
  495. decoration
  496. cvarTest "cg_gametype"
  497. hideCvar { "12" }
  498. }
  499. }
  500. //=================================================================================
  501. menuDef {
  502. name "RedDOMFrame"
  503. fullScreen MENU_FALSE
  504. visible MENU_TRUE
  505. rect 551 456 32 256
  506. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  507.  
  508. itemDef {
  509. name "domination"
  510. rect 33 2 21 12
  511. visible 1
  512. backcolor 1 1 1 1
  513. decoration
  514. style 1
  515. ownerdrawflag CG_SHOW_DOMINATION
  516. background "ui/assets/score/dom_score_red.tga"
  517. }
  518.  
  519. itemdef {
  520. name "redOwnedFlags"
  521. ownerdrawflag CG_SHOW_DOMINATION
  522. ownerdraw CG_RED_OWNED_FLAGS
  523. rect 45 11 136 40
  524. visible 1
  525. textscale .18
  526. forecolor 1 1 1 0.65
  527. decoration
  528. }
  529. }
  530. //=================================================================================
  531. menuDef {
  532. name "BlueCAFrame"
  533. fullScreen MENU_FALSE
  534. visible MENU_TRUE
  535. rect 551 456 32 256
  536. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  537.  
  538. itemDef {
  539. name "BlueCAPlayerIcon"
  540. rect 33 2 21 12
  541. visible 1
  542. backcolor 1 1 1 1
  543. decoration
  544. style 1
  545. ownerdrawflag CG_SHOW_PLAYERS_REMAINING
  546. background "ui/assets/score/ca_score_blu.tga"
  547. cvarTest "cg_gametype"
  548. hideCvar { "12" }
  549. }
  550.  
  551. itemdef {
  552. name "BlueCAPlayers"
  553. ownerdrawflag CG_SHOW_PLAYERS_REMAINING
  554. ownerdraw CG_BLUE_CLAN_PLYRS
  555. rect 45 11 136 40
  556. visible 1
  557. textscale .18
  558. forecolor 1 1 1 0.65
  559. decoration
  560. cvarTest "cg_gametype"
  561. hideCvar { "12" }
  562. }
  563. }
  564. //=================================================================================
  565. menuDef {
  566. name "BlueDOMFrame"
  567. fullScreen MENU_FALSE
  568. visible MENU_TRUE
  569. rect 551 456 32 256
  570. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  571.  
  572. itemDef {
  573. name "BlueCAPlayerIcon"
  574. rect 33 2 21 12
  575. visible 1
  576. backcolor 1 1 1 1
  577. decoration
  578. style 1
  579. ownerdrawflag CG_SHOW_DOMINATION
  580. background "ui/assets/score/dom_score_blu.tga"
  581. }
  582.  
  583. itemdef {
  584. name "BlueCAPlayers"
  585. ownerdrawflag CG_SHOW_DOMINATION
  586. ownerdraw CG_BLUE_OWNED_FLAGS
  587. rect 45 11 136 40
  588. visible 1
  589. textscale .18
  590. forecolor 1 1 1 0.65
  591. decoration
  592. }
  593. }
  594. //=================================================================================
  595. menuDef {
  596. name "RedCAFrame"
  597. fullScreen MENU_FALSE
  598. visible MENU_TRUE
  599. rect 551 436 32 256
  600. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  601.  
  602. itemDef {
  603. name "RedCAPlayerIcon"
  604. rect 33 2 21 12
  605. visible 1
  606. backcolor 1 1 1 1
  607. decoration
  608. style 1
  609. ownerdrawflag CG_SHOW_PLAYERS_REMAINING
  610. background "ui/assets/score/ca_score_red.tga"
  611. cvarTest "cg_gametype"
  612. hideCvar { "12" }
  613. }
  614.  
  615. itemdef {
  616. name "RedCAPlayers"
  617. ownerdrawflag CG_SHOW_PLAYERS_REMAINING
  618. ownerdraw CG_RED_CLAN_PLYRS
  619. rect 45 11 136 40
  620. visible 1
  621. textscale .18
  622. forecolor 1 1 1 0.65
  623. decoration
  624. cvarTest "cg_gametype"
  625. hideCvar { "12" }
  626. }
  627. }
  628. //=================================================================================
  629. menuDef {
  630. name "RedDOMFrame"
  631. fullScreen MENU_FALSE
  632. visible MENU_TRUE
  633. rect 551 436 32 256
  634. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  635. itemDef {
  636. name "domination"
  637. rect 33 2 21 11
  638. visible 1
  639. backcolor 1 1 1 1
  640. decoration
  641. style 1
  642. ownerdrawflag CG_SHOW_DOMINATION
  643. background "ui/assets/score/dom_score_red.tga"
  644. }
  645. itemdef {
  646. name "redOwnedFlags"
  647. ownerdrawflag CG_SHOW_DOMINATION
  648. ownerdraw CG_RED_OWNED_FLAGS
  649. rect 45 11 136 40
  650. visible 1
  651. textscale .18
  652. forecolor 1 1 1 0.65
  653. decoration
  654. }
  655. }
  656. //=================================================================================
  657. menuDef {
  658. name "RRFrame"
  659. fullScreen MENU_FALSE
  660. visible MENU_TRUE
  661. rect 551 436 32 256
  662.  
  663. itemDef {
  664. name "TeamRRIcon"
  665. rect 33 2 21 12
  666. visible 1
  667. textscale .18
  668. backcolor 1 1 1 1
  669. decoration
  670. style 1
  671. background "ui/assets/score/rr_remaining_team.tga"
  672. cvarTest "cg_gametype"
  673. showCvar { "12" }
  674. }
  675.  
  676. itemDef {
  677. name "TeamRRPlayers"
  678. rect 45 11 136 40
  679. ownerdraw CG_TEAM_PLYR_COUNT
  680. visible 1
  681. textscale .18
  682. forecolor 1 1 1 0.65
  683. decoration
  684. style 1
  685. cvarTest "cg_gametype"
  686. showCvar { "12" }
  687. }
  688. }
  689.  
  690. menuDef {
  691. name "RRFrame"
  692. fullScreen MENU_FALSE
  693. visible MENU_TRUE
  694. rect 551 456 32 256
  695.  
  696. itemdef {
  697. name "EnemyRRIcon"
  698. rect 33 2 21 12
  699. visible 1
  700. textscale .18
  701. backcolor 1 1 1 1
  702. decoration
  703. style 1
  704. background "ui/assets/score/rr_remaining_enemy.tga"
  705. cvarTest "cg_gametype"
  706. showCvar { "12" }
  707. }
  708.  
  709. itemdef {
  710. name "EnemyRRPlayers"
  711. rect 45 11 136 40
  712. ownerdraw CG_ENEMY_PLYR_COUNT
  713. visible 1
  714. textscale .18
  715. forecolor 1 1 1 0.65
  716. decoration
  717. style 1
  718. cvarTest "cg_gametype"
  719. showCvar { "12" }
  720. }
  721. }
  722. //=================================================================================
  723. menuDef {
  724. name "FlagStatusMenu"
  725. rect 580 434 60 60
  726. fullScreen MENU_FALSE
  727. visible MENU_TRUE
  728. ownerdrawflag CG_SHOW_CTF
  729.  
  730. itemDef {
  731. name "RedFlag"
  732. rect 7 2 20 16
  733. visible 1
  734. decoration
  735. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  736. ownerdraw CG_RED_FLAGSTATUS
  737. }
  738.  
  739. itemDef {
  740. name "BlueFlag"
  741. rect 7 22 20 16
  742. visible 1
  743. decoration
  744. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  745. ownerdraw CG_BLUE_FLAGSTATUS
  746. }
  747. }
  748. //=================================================================================
  749. menuDef {
  750. name "FlagStatusMenu2"
  751. rect 580 434 60 60
  752. fullScreen MENU_FALSE
  753. visible MENU_TRUE
  754. ownerdrawflag CG_SHOW_CTF
  755.  
  756. itemDef {
  757. name "RedFlag2"
  758. rect 7 22 20 16
  759. visible 1
  760. decoration
  761. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  762. ownerdraw CG_RED_FLAGSTATUS
  763. }
  764.  
  765. itemDef {
  766. name "BlueFlag2"
  767. rect 7 2 20 16
  768. visible 1
  769. decoration
  770. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  771. ownerdraw CG_BLUE_FLAGSTATUS
  772. }
  773. }
  774. //=================================================================================
  775. menuDef {
  776. name "ScoresFrame"
  777. rect 580 434 60 60
  778. fullScreen MENU_FALSE
  779. visible MENU_TRUE
  780.  
  781. itemDef {
  782. name "oneflagstatus"
  783. rect 0 10 28 20
  784. visible 1
  785. decoration
  786. ownerdraw CG_ONEFLAG_STATUS
  787. }
  788.  
  789. itemDef {
  790. name "harvesterRed"
  791. rect 8 0 20 20
  792. visible 1
  793. bordercolor 1 1 1 1
  794. decoration
  795. style 3
  796. ownerdrawflag CG_SHOW_HARVESTER
  797. background "icons/skull_red.png"
  798. }
  799.  
  800. itemDef {
  801. name "harvesterBlue"
  802. rect 8 20 20 20
  803. visible 1
  804. bordercolor 1 1 1 .75
  805. decoration
  806. style 3
  807. ownerdrawflag CG_SHOW_HARVESTER
  808. background "icons/skull_blue.png"
  809. }
  810. }
  811. //=================================================================================
  812. menuDef {
  813. name "RaceHUD"
  814. fullScreen MENU_FALSE
  815. visible MENU_TRUE
  816. rect 269 25 115 25
  817.  
  818. itemDef {
  819. name "raceBackground1"
  820. rect 0 0 8 64
  821. visible 1
  822. decoration
  823. backcolor 1 1 1 0.5
  824. style 1
  825. background "ui/assets/hud/scoreboxl2.tga"
  826. cvarTest "cg_gametype"
  827. showCvar { "2" }
  828. }
  829.  
  830. itemDef {
  831. name "raceBackground2"
  832. rect 8 0 100 64
  833. visible 1
  834. decoration
  835. backcolor 1 1 1 0.5
  836. style 1
  837. background "ui/assets/hud/scoreboxm.tga"
  838. cvarTest "cg_gametype"
  839. showCvar { "2" }
  840. }
  841.  
  842. itemDef {
  843. name "raceBackground3"
  844. rect 108 0 8 64
  845. visible 1
  846. decoration
  847. backcolor 1 1 1 0.5
  848. style 1
  849. background "ui/assets/hud/scoreboxr.tga"
  850. cvarTest "cg_gametype"
  851. showCvar { "2" }
  852. }
  853.  
  854. itemDef {
  855. name "raceStatus"
  856. rect 58 22 110 15
  857. visible 1
  858. decoration
  859. align 1
  860. textscale 0.25
  861. ownerdraw CG_RACE_STATUS
  862. cvarTest "cg_gametype"
  863. showCvar { "2" }
  864. }
  865.  
  866. itemDef {
  867. name "raceTimes"
  868. rect 25 34 110 15
  869. visible 1
  870. decoration
  871. align 0
  872. textscale 0.25
  873. ownerdraw CG_RACE_TIMES
  874. cvarTest "cg_gametype"
  875. showCvar { "2" }
  876. }
  877. }
  878. //=================================================================================
  879. menuDef {
  880. name "PickupsMenu"
  881. fullScreen MENU_FALSE
  882. visible MENU_TRUE
  883. rect 5 435 385 32
  884.  
  885. itemDef {
  886. name "playeritem"
  887. rect 0 0 16 16
  888. visible 1
  889. decoration
  890. ownerdraw CG_PLAYER_ITEM
  891. }
  892.  
  893. itemDef {
  894. name "CTFPOWERUP"
  895. rect 0 20 16 16
  896. visible 1
  897. decoration
  898. ownerdraw CG_CTF_POWERUP
  899. }
  900. }
  901. //=================================================================================
  902. menuDef {
  903. name "PlayerHasFlagMenu"
  904. fullScreen MENU_FALSE
  905. visible MENU_TRUE
  906. rect 48 426 385 42
  907.  
  908. itemDef {
  909. name "PlayerHasFlagBackgroundLeft"
  910. rect 0 0 6 74
  911. visible 1
  912. decoration
  913. forecolor 1 1 1 0.6
  914. style 1
  915. background "ui/assets/hud/scoreboxl2a.tga"
  916. ownerdraw CG_TEAM_COLORIZED
  917. ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
  918. }
  919.  
  920. itemDef {
  921. name "PlayerHasFlagBackgroundMiddle"
  922. rect 6 0 32 74
  923. visible 1
  924. decoration
  925. forecolor 1 1 1 0.6
  926. style 1
  927. background "ui/assets/hud/scoreboxm2.tga"
  928. ownerdraw CG_TEAM_COLORIZED
  929. ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
  930. }
  931.  
  932. itemDef {
  933. name "PlayerHasFlagBackgroundRight"
  934. rect 38 0 6 74
  935. visible 1
  936. decoration
  937. forecolor 1 1 1 0.6
  938. style 1
  939. background "ui/assets/hud/scoreboxr2.tga"
  940. ownerdraw CG_TEAM_COLORIZED
  941. ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
  942. }
  943.  
  944. itemDef {
  945. name "Flag"
  946. rect 1 6 40 40
  947. visible 1
  948. decoration
  949. style 1
  950. ownerdraw CG_PLAYER_HASFLAG
  951. }
  952.  
  953. itemDef {
  954. name "Skulls"
  955. rect 3 11 34 34
  956. visible 1
  957. decoration
  958. textaligny 12
  959. textalignx 0
  960. textscale 0.333
  961. textstyle 3
  962. ownerdraw CG_HARVESTER_SKULLS
  963. }
  964. }
  965. //=================================================================================
  966. menuDef {
  967. name "Obituaries"
  968. fullScreen MENU_FALSE
  969. visible MENU_TRUE
  970. rect 3 16 65 12
  971.  
  972. itemdef {
  973. name hudObit
  974. ownerdraw CG_PLAYER_OBIT
  975. rect 0 0 65 12
  976. visible 1
  977. decoration
  978. textscale .3
  979. cvarTest "cg_gametype"
  980. hideCvar { "2" ; "12" }
  981. }
  982. }
  983. //=================================================================================
  984. menuDef {
  985. name "NonTeamScoreBoardBorders"
  986. rect -2 16 0 0
  987. fullScreen MENU_FALSE
  988. visible MENU_TRUE
  989. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  990.  
  991. itemDef {
  992. name "Border1"
  993. visible 1
  994. rect 608 416 32 20
  995. border WINDOW_BORDER_FULL
  996. bordersize 2
  997. bordercolor 0.8 0.8 0.3 1
  998. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  999. }
  1000.  
  1001. itemDef {
  1002. name "Border2"
  1003. visible 1
  1004. rect 608 436 32 20
  1005. border WINDOW_BORDER_FULL
  1006. bordersize 2
  1007. bordercolor 0.8 0.8 0.3 1
  1008. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  1009. }
  1010. }
  1011. //=================================================================================
  1012. menuDef {
  1013. name "TeamScoreBoardBorders"
  1014. rect -2 16 0 0
  1015. fullScreen MENU_FALSE
  1016. visible MENU_TRUE
  1017. ownerdrawflag CG_SHOW_ANYTEAMGAME
  1018.  
  1019. itemDef {
  1020. name "Border1"
  1021. visible 1
  1022. rect 608 416 32 20
  1023. border WINDOW_BORDER_FULL
  1024. bordersize 2
  1025. bordercolor 0.8 0.8 0.3 1
  1026. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  1027. }
  1028.  
  1029. itemDef {
  1030. name "Border2"
  1031. visible 1
  1032. rect 608 436 32 20
  1033. border WINDOW_BORDER_FULL
  1034. bordersize 2
  1035. bordercolor 0.8 0.8 0.3 1
  1036. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  1037. }
  1038. }
  1039. //=================================================================================
  1040. menuDef {
  1041. name "ChatAreaMenu"
  1042. fullScreen MENU_FALSE
  1043. visible MENU_TRUE
  1044. rect 0 0 32 256
  1045.  
  1046. itemDef {
  1047. name "ChatBackgroundLeft"
  1048. rect 3 345 16 64
  1049. visible 1
  1050. ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
  1051. decoration
  1052. backcolor 0 0 0 0.5
  1053. style 1
  1054. background "ui/assets/hud/chatl.tga"
  1055. }
  1056.  
  1057. itemDef {
  1058. name "ChatBackgroundMiddle"
  1059. rect 19 345 561 64
  1060. visible 1
  1061. ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
  1062. decoration
  1063. backcolor 0 0 0 0.5
  1064. style 1
  1065. background "ui/assets/hud/chatm.tga"
  1066. }
  1067.  
  1068. itemDef {
  1069. name "ChatBackgroundRight"
  1070. rect 580 345 16 64
  1071. visible 1
  1072. ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
  1073. decoration
  1074. backcolor 0 0 0 0.5
  1075. style 1
  1076. background "ui/assets/hud/chatr.tga"
  1077. }
  1078.  
  1079. itemdef {
  1080. name chatWindow
  1081. ownerdraw CG_AREA_NEW_CHAT
  1082. textscale 0.22
  1083. rect 5 287 634 120
  1084. visible 1
  1085. decoration
  1086. }
  1087. }
  1088. //=================================================================================
  1089. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement