Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.71 KB | None | 0 0
  1. #include "ui/menudef.h"
  2.  
  3. // HawK__ Hud
  4.  
  5. // team menu
  6. //
  7. // defines from ui_shared.h
  8.  
  9. {
  10. assetGlobalDef {
  11. cursor "ui/assets/3_cursor2" // cursor
  12. gradientBar "ui/assets/gradientbar2.tga" // gradient bar
  13. fadeClamp 1.0 // sets the fadeup alpha
  14. fadeCycle 1 // how often fade happens in milliseconds
  15. fadeAmount 0.1 // amount to adjust alpha per cycle
  16.  
  17. shadowX 5 // x amount for shadow offset
  18. shadowY 5 // y amount for shadow offset
  19. shadowColor 0.1 0.1 0.1 0.25 // shadow color
  20.  
  21. font "fonts/font" 24 // font
  22. smallFont "fonts/smallfont" 16 // font
  23. bigFont "fonts/bigfont" 48 // font
  24.  
  25. }
  26.  
  27. // The values are like follows:
  28.  
  29. // rect horpos vertpos horsize vertsize
  30. // others r g b transparency
  31. // addColorRange lowvalue highvalue r g b transparency
  32.  
  33. // Notification AREA
  34.  
  35. menuDef {
  36. name "msgsArea"
  37. fullScreen MENU_FALSE
  38. visible MENU_TRUE
  39. rect 470 4 64 36
  40.  
  41. itemdef {
  42. name tourneyMsg
  43. rect 0 0 32 32
  44. style 1
  45. background "sprites/foe2.png"
  46. visible 1
  47. ownerdrawflag CG_SHOW_IF_NOTICE_PRESENT
  48. decoration
  49. backcolor 1 1 1 1.0
  50. }
  51.  
  52. itemdef {
  53. name gotMsg
  54. rect 34 0 32 32
  55. style 1
  56. background "sprites/balloon4.png"
  57. visible 1
  58. ownerdrawflag CG_SHOW_IF_MSG_PRESENT
  59. decoration
  60. backcolor 1 1 1 1.0
  61. }
  62. }
  63.  
  64. // * LOTS OF SETTINGS HERE OH YES BABY :( * //
  65.  
  66. // Everything is from the top left in a
  67. // 640x480 grid from there to the bottom right
  68.  
  69. menuDef {
  70. name "playervitals"
  71. fullScreen MENU_FALSE
  72. visible MENU_TRUE
  73. rect 0 0 640 480
  74.  
  75. // ** AMMO ** //
  76.  
  77. // Ammo icon
  78.  
  79. itemDef {
  80. name "ammoicon"
  81. rect 44 464 14 14
  82. visible 1
  83. decoration
  84. ownerdraw CG_PLAYER_AMMO_ICON2D
  85. }
  86.  
  87. // Ammo value
  88.  
  89. itemDef {
  90. name "ammovalue"
  91. rect 20 440 65 22
  92. visible 1
  93. textstyle 3
  94. textalign 2
  95. decoration
  96. textscale .7
  97. forecolor 1 1 1 1
  98. ownerdraw CG_PLAYER_AMMO_VALUE
  99. addColorRange -999 5 1 0 0 1
  100. }
  101.  
  102. // ** HEALTH ** //
  103.  
  104. // Health bar sliders
  105.  
  106. itemDef {
  107. name "healthbar-background"
  108. rect 194 460 124 21
  109. visible 1
  110. decoration
  111. ownerdraw CG_PLAYER_HEALTH
  112. addColorRange -999 40 1 0 0 1
  113. addColorRange 41 999 0 0 0 1
  114. style 1
  115. background "ui/assets/hud/h100.tga"
  116. }
  117.  
  118. itemDef {
  119. name "healthbar-fill"
  120. rect 194 460 124 21
  121. visible 1
  122. decoration
  123. ownerdraw CG_PLAYER_HEALTH_BAR_100
  124. style 1
  125. background "ui/assets/hud/h100.tga"
  126. }
  127.  
  128. itemDef {
  129. name "healthbar-blackborder"
  130. rect 190 456 130 29
  131. visible 1
  132. decoration
  133. backcolor 0 0 0 1
  134. style 1
  135. background "ui/assets/hud/h100line.tga"
  136. }
  137.  
  138. // Health icon
  139.  
  140. itemDef {
  141. name "healthiconshadow"
  142. backcolor 0 0 0 0.8
  143. // rect 296 444 22 22
  144. rect 300 440 16 16
  145. visible 1
  146. decoration
  147. style 1
  148. background "ui/assets/hud/health.tga"
  149. }
  150.  
  151. itemDef {
  152. name "healthicon"
  153. // rect 295 443 22 22
  154. rect 299 439 16 16
  155. ownerdraw CG_TEAM_COLORIZED
  156. visible 1
  157. decoration
  158. style 1
  159. background "ui/assets/hud/health.tga"
  160. }
  161.  
  162. // Health value
  163.  
  164. //**NEEDS GAME CODE FIX**
  165. //THIS TEXT SHOULD BE RIGHT-ALIGNED (currently centered)
  166. itemDef {
  167. name "healthvalue"
  168. // rect 210 450 65 22
  169. rect 225 438 65 22
  170. visible 1
  171. textalign 2
  172. decoration
  173. textstyle 3
  174. forecolor 1 1 1 1
  175. // textscale 1
  176. textscale 0.7
  177. ownerdraw CG_PLAYER_HEALTH
  178. addColorRange -999 39 1 0 0 1
  179. addColorRange 26 999 1 1 1 1
  180. }
  181.  
  182. // ** ARMOUR ** //
  183.  
  184. // Armour sliders
  185.  
  186. itemDef {
  187. name "armour-background"
  188. rect 325 460 124 21
  189. visible 1
  190. decoration
  191. backcolor 0 0 0 1
  192. style 1
  193. background "ui/assets/hud/a100.tga"
  194. }
  195.  
  196. itemDef {
  197. name "armour-fill"
  198. rect 326 460 124 20
  199. visible 1
  200. ownerdraw CG_PLAYER_ARMOR_BAR_100
  201. decoration
  202. style 1
  203. background "ui/assets/hud/a100.tga"
  204. }
  205.  
  206. itemDef {
  207. name "armour-blackborder"
  208. rect 322 456 130 28
  209. visible 1
  210. decoration
  211. backcolor 0 0 0 1
  212. style 1
  213. background "ui/assets/hud/a100line.tga"
  214. }
  215.  
  216. // Armour icon
  217.  
  218. itemDef {
  219. name "armouriconshadow"
  220. backcolor 0 0 0 0.8
  221. rect 325 440 18 16
  222. visible 1
  223. decoration
  224. style 1
  225. background "ui/assets/hud/armor.tga"
  226. }
  227.  
  228. itemDef {
  229. name "armouricon"
  230. rect 324 439 18 16
  231. ownerdraw CG_TEAM_COLORIZED
  232. visible 1
  233. decoration
  234. style 1
  235. background "ui/assets/hud/armor.tga"
  236. }
  237.  
  238. // Armour value
  239.  
  240. //**NEEDS GAME CODE FIX**
  241. //THIS TEXT SHOULD BE LEFT ALIGNED (currently centered)
  242. itemDef {
  243. name "armorvalue"
  244. rect 352 438 65 22
  245. visible 1
  246. textalign 2
  247. decoration
  248. textstyle 3
  249. forecolor 1 1 1 1
  250. textscale 0.7
  251. ownerdraw CG_PLAYER_ARMOR_VALUE
  252. addColorRange -999 0 1 1 1 0
  253. addColorRange -1 39 1 0 0 1
  254. addColorRange 26 999 1 1 1 1
  255. }
  256.  
  257. }
  258. // ** Top left score box ** //
  259.  
  260.  
  261. menuDef {
  262. name "ScoreFrame"
  263. fullScreen MENU_FALSE
  264. visible MENU_TRUE
  265. rect 608 358 32 256
  266. ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
  267.  
  268. //Score Frame BG, can be scaled wider if needed to make more room for names
  269. itemDef {
  270. name "scoreboxl"
  271. rect 0 0 32 64
  272. visible 1
  273. decoration
  274. backcolor 1 1 1 0.8
  275. style 1
  276. background "ui/assets/hud/scoreboxl.tga"
  277. }
  278.  
  279. //GAMETYPE ICON
  280. itemDef {
  281. name "gameType"
  282. rect 6 7 19 19
  283. style 0
  284. backcolor 1 1 1 1
  285. ownerdraw CG_GAME_TYPE_ICON
  286. visible 1
  287. decoration
  288. }
  289. //WIN VALUE
  290. itemDef {
  291. name "WinLimit"
  292. textalign 1
  293. rect 7 37 40 12
  294. visible 1
  295. decoration
  296. forecolor 0 0 0 1
  297. textscale .26
  298. ownerdraw CG_CAPFRAGLIMIT
  299. }
  300. }
  301.  
  302.  
  303. menuDef {
  304. name "Scoreboxes1"
  305. rect 0 18 640 480
  306. fullScreen MENU_FALSE
  307. visible MENU_TRUE
  308. ownerdrawflag CG_SHOW_ANYTEAMGAME
  309.  
  310. itemDef {
  311. rect 610 418 28 16
  312. visible 1
  313. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  314. backcolor 1 0 0 0.25
  315. style 1
  316. }
  317.  
  318. itemDef {
  319. rect 610 438 28 16
  320. visible 1
  321. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  322. backcolor 0 0 1 0.25
  323. style 1
  324. }
  325.  
  326.  
  327. itemDef {
  328. ownerdraw CG_RED_SCORE
  329. rect 602 411 32 20
  330. visible 1
  331. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  332. textscale 0.25
  333. textalign 2 //1
  334. decoration
  335. }
  336.  
  337. itemDef {
  338. ownerdraw CG_BLUE_SCORE
  339. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  340. rect 602 431 32 20
  341. visible 1
  342. textscale 0.25
  343. textalign 2
  344. decoration
  345. }
  346.  
  347. }
  348.  
  349.  
  350. menuDef {
  351. name "Scoreboxes2"
  352. rect 0 18 640 480
  353. fullScreen MENU_FALSE
  354. visible MENU_TRUE
  355. ownerdrawflag CG_SHOW_ANYTEAMGAME
  356.  
  357. itemDef {
  358. rect 610 418 28 16
  359. visible 1
  360. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  361. backcolor 0 0 1 0.25
  362. style 1
  363. }
  364.  
  365. itemDef {
  366. rect 610 438 28 16
  367. visible 1
  368. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  369. backcolor 1 0 0 0.25
  370. style 1
  371. }
  372.  
  373. itemDef {
  374. rect 602 431 32 20
  375. ownerdraw CG_RED_SCORE
  376. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  377. visible 1
  378. textscale 0.25
  379. textalign 2 //1
  380. decoration
  381. }
  382.  
  383. itemDef {
  384. rect 602 411 32 20
  385. ownerdraw CG_BLUE_SCORE
  386. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  387. visible 1
  388. textscale 0.25
  389. textalign 2 //1
  390. decoration
  391. }
  392.  
  393. }
  394.  
  395.  
  396. menuDef {
  397. name "FFaScoreboxes"
  398. rect 0 18 640 480
  399. fullScreen MENU_FALSE
  400. visible MENU_TRUE
  401. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  402.  
  403.  
  404. itemDef {
  405. rect 610 418 28 16
  406. visible 1
  407. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  408. backcolor 0 0 1 0.25
  409. style 1
  410. }
  411.  
  412. itemDef {
  413. rect 610 438 28 16
  414. visible 1
  415. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  416. backcolor 1 0 0 0.25
  417. style 1
  418. }
  419.  
  420.  
  421. itemDef {
  422. rect 610 418 28 16
  423. visible 1
  424. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  425. backcolor 1 0 0 0.25
  426. style 1
  427. }
  428.  
  429. itemDef {
  430. rect 610 438 28 16
  431. visible 1
  432. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  433. backcolor 0 0 1 0.25
  434. style 1
  435. }
  436.  
  437. itemDef {
  438. name "1stplace"
  439. ownerdraw CG_1STPLACE
  440. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  441. rect 617 431 30 20
  442. visible 1
  443. textscale .25
  444. decoration
  445. }
  446.  
  447. itemDef {
  448. name "2ndplace"
  449. ownerdraw CG_PLAYER_SCORE
  450. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  451. rect 611 431 30 20
  452. visible 1
  453. textscale .25
  454. decoration
  455. }
  456.  
  457.  
  458. itemDef {
  459. name "1stplace"
  460. ownerdraw CG_2NDPLACE
  461. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  462. rect 617 451 30 20
  463. visible 1
  464. textscale .25
  465. decoration
  466. }
  467.  
  468. itemDef {
  469. name "2ndplace"
  470. ownerdraw CG_PLAYER_SCORE
  471. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  472. rect 611 411 30 20
  473. visible 1
  474. textscale .25
  475. decoration
  476. }
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484. }
  485.  
  486. // _______________________________________________________________________ //
  487.  
  488.  
  489. // ** FLAG CARRIER ** //
  490.  
  491. menuDef {
  492. name "flagCarrier"
  493. fullScreen MENU_FALSE
  494. visible MENU_TRUE
  495. rect 0 0 640 480
  496.  
  497. // Pulsating flag carrier icon
  498.  
  499. itemDef {
  500. name "playerRect"
  501. rect 5 435 40 40
  502. style 3
  503. background "ui/assets/hud/flag"
  504. visible 1
  505. ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
  506. }
  507.  
  508. // Flag carrier flag model
  509.  
  510. itemDef {
  511. name "flagicon"
  512. rect 6 436 34 34
  513. visible 1
  514. decoration
  515. style 1
  516. ownerdraw CG_PLAYER_HASFLAG
  517. }
  518.  
  519. }
  520.  
  521. // ** TIMER ** //
  522.  
  523. // Should change places depending on solo/team gametype, to avoid the team overlay
  524.  
  525. menuDef {
  526. name "TimerMenu"
  527. fullScreen MENU_FALSE
  528. visible MENU_TRUE
  529.  
  530. itemDef {
  531. name "timerfg"
  532. decoration
  533. rect 270 370 127 45
  534. visible 1
  535. backcolor 0 0.5 1 0.4
  536. style 1
  537. }
  538.  
  539. itemDef {
  540. name "Timer"
  541. textalign 2
  542. style 0
  543. rect 275 410 50 12
  544. visible 1
  545. textstyle 3
  546. decoration
  547. forecolor 1 1 1 1
  548. textscale 1
  549. ownerdraw CG_LEVELTIMER
  550. }
  551. }
  552.  
  553. // RED TEAM BAR TOP
  554. menuDef {
  555. name "RedFrameTeam"
  556. fullScreen MENU_FALSE
  557. visible MENU_TRUE
  558. rect 5000 7 32 256
  559. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE// AND CG_SHOW_ANYNONTEAMGAME
  560. //red team flag alert - align to right
  561. itemDef {
  562. name "TeamRLeft"
  563. rect 31 0 128 16
  564. visible 1
  565. decoration
  566. backcolor 1 0 0 0.3
  567. style 1
  568. background "ui/assets/hud/rteambgl.tga"
  569. ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG
  570. }
  571. //red team flag alert - align to right
  572. itemDef {
  573. name "TeamRLeft"
  574. rect 51 0 128 16
  575. visible 1
  576. decoration
  577. backcolor 1 0 0 0.3
  578. style 1
  579. background "ui/assets/hud/rteambgr.tga"
  580. ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG
  581. }
  582. //red team info
  583.  
  584. //clan arena count
  585. itemDef {
  586. name "clanArena"
  587. rect 33 2 21 11
  588. visible 1
  589. backcolor 1 1 1 1
  590. decoration
  591. style 1
  592. ownerdrawflag CG_SHOW_CLAN_ARENA
  593. background "ui/assets/score/ca_score_red.tga"
  594. }
  595. itemdef {
  596. name "redClanPlayers"
  597. ownerdrawflag CG_SHOW_CLAN_ARENA
  598. ownerdraw CG_RED_CLAN_PLYRS
  599. rect 45 11 136 40
  600. visible 1
  601. textscale .18
  602. forecolor 1 1 1 0.65
  603. decoration
  604. }
  605. itemDef {
  606. name "f"
  607. rect 36 1 13 13
  608. visible 1
  609. bordercolor 1 1 1 1
  610. decoration
  611. style 3
  612. ownerdrawflag CG_SHOW_HARVESTER
  613. background "icons/skull_red.tga"
  614. }
  615. itemDef {
  616. name "f"
  617. rect 36 1 13 13
  618. visible 1
  619. decoration
  620. ownerdrawflag CG_SHOW_CTF
  621. ownerdraw CG_RED_FLAGSTATUS
  622. }
  623. }
  624. // RED TEAM BAR BOTTOM
  625. menuDef {
  626. name "RedFrameTeam"
  627. fullScreen MENU_FALSE
  628. visible MENU_TRUE
  629. rect 2 24 32 256
  630. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE// AND CG_SHOW_ANYNONTEAMGAME
  631. //red team flag alert - align to right
  632. itemDef {
  633. name "TeamRLeft"
  634. rect 31 0 128 16
  635. visible 1
  636. decoration
  637. backcolor 1 0 0 0.3
  638. style 1
  639. background "ui/assets/hud/rteambgl.tga"
  640. ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG
  641. }
  642. //red team flag alert - align to right
  643. itemDef {
  644. name "TeamRLeft"
  645. rect 51 0 128 16
  646. visible 1
  647. decoration
  648. backcolor 1 0 0 0.3
  649. style 1
  650. background "ui/assets/hud/rteambgr.tga"
  651. ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG
  652. }
  653. //red team info
  654.  
  655. //clan arena count
  656. itemDef {
  657. name "clanArena"
  658. rect 33 2 21 11
  659. visible 1
  660. backcolor 1 1 1 1
  661. decoration
  662. style 1
  663. ownerdrawflag CG_SHOW_CLAN_ARENA
  664. background "ui/assets/score/ca_score_red.tga"
  665. }
  666. itemdef {
  667. name "redClanPlayers"
  668. ownerdrawflag CG_SHOW_CLAN_ARENA
  669. ownerdraw CG_RED_CLAN_PLYRS
  670. rect 45 11 136 40
  671. visible 1
  672. textscale .18
  673. forecolor 1 1 1 0.65
  674. decoration
  675. }
  676. itemDef {
  677. name "f"
  678. rect 36 1 13 13
  679. visible 1
  680. bordercolor 1 1 1 1
  681. decoration
  682. style 3
  683. ownerdrawflag CG_SHOW_HARVESTER
  684. background "icons/skull_red.tga"
  685. }
  686. itemDef {
  687. name "f"
  688. rect 36 1 13 13
  689. visible 1
  690. decoration
  691. ownerdrawflag CG_SHOW_CTF
  692. ownerdraw CG_RED_FLAGSTATUS
  693. }
  694. }
  695. // BLUE TEAM BAR TOP
  696. menuDef {
  697. name "BlueFrameTeam"
  698. fullScreen MENU_FALSE
  699. visible MENU_TRUE
  700. rect 2 7 32 256
  701. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE// AND CG_SHOW_ANYNONTEAMGAME
  702. //blue team flag alert - align to left
  703. itemDef {
  704. name "TeamBLeft"
  705. rect 31 0 128 16
  706. visible 1
  707. decoration
  708. backcolor 0.25 0.25 1 0.3
  709. style 1
  710. background "ui/assets/hud/bteambgl.tga"
  711. ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG
  712. }
  713. //blue team flag alert - align to right
  714. itemDef {
  715. name "TeamBLeft"
  716. rect 51 0 128 16
  717. visible 1
  718. decoration
  719. backcolor 0.25 0.25 1 0.3
  720. style 1
  721. background "ui/assets/hud/bteambgr.tga"
  722. ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG
  723. }
  724. //blue team info
  725.  
  726. //clan arena count
  727. itemDef {
  728. name "clanArena"
  729. rect 33 2 21 11
  730. visible 1
  731. backcolor 1 1 1 1
  732. decoration
  733. style 1
  734. ownerdrawflag CG_SHOW_CLAN_ARENA
  735. background "ui/assets/score/ca_score_blu.tga"
  736. }
  737. itemdef {
  738. name "blueClanPlayers"
  739. ownerdrawflag CG_SHOW_CLAN_ARENA
  740. ownerdraw CG_BLUE_CLAN_PLYRS
  741. rect 45 11 136 40
  742. visible 1
  743. textscale .18
  744. forecolor 1 1 1 0.65
  745. decoration
  746. }
  747. itemDef {
  748. name "f"
  749. rect 36 1 13 13
  750. visible 1
  751. bordercolor 1 1 1 .75
  752. decoration
  753. style 3
  754. ownerdrawflag CG_SHOW_HARVESTER
  755. background "icons/skull_blue.tga"
  756. }
  757. itemDef {
  758. name "blueflag"
  759. rect 36 1 13 13
  760. visible 1
  761. decoration
  762. ownerdrawflag CG_SHOW_CTF
  763. ownerdraw CG_BLUE_FLAGSTATUS
  764. }
  765. itemDef {
  766. name "oneflagstatus"
  767. rect 36 1 13 13
  768. visible 1
  769. decoration
  770. ownerdraw CG_ONEFLAG_STATUS
  771. }
  772. }
  773. // BLUE TEAM BAR BOTTOM
  774. menuDef {
  775. name "BlueFrameTeam"
  776. fullScreen MENU_FALSE
  777. visible MENU_TRUE
  778. rect 2 24 32 256
  779. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE// AND CG_SHOW_ANYNONTEAMGAME
  780. //blue team flag alert - align to left
  781. itemDef {
  782. name "TeamBLeft"
  783. rect 31 0 128 16
  784. visible 1
  785. decoration
  786. backcolor 0.25 0.25 1 0.3
  787. style 1
  788. background "ui/assets/hud/bteambgl.tga"
  789. ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG
  790. }
  791. //blue team flag alert - align to right
  792. itemDef {
  793. name "TeamBLeft"
  794. rect 51 0 128 16
  795. visible 1
  796. decoration
  797. backcolor 0.25 0.25 1 0.3
  798. style 1
  799. background "ui/assets/hud/bteambgr.tga"
  800. ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG
  801. }
  802. //blue team info
  803.  
  804. //clan arena count
  805. itemDef {
  806. name "clanArena"
  807. rect 33 2 21 11
  808. visible 1
  809. backcolor 1 1 1 1
  810. decoration
  811. style 1
  812. ownerdrawflag CG_SHOW_CLAN_ARENA
  813. background "ui/assets/score/ca_score_blu.tga"
  814. }
  815. itemdef {
  816. name "blueClanPlayers"
  817. ownerdrawflag CG_SHOW_CLAN_ARENA
  818. ownerdraw CG_BLUE_CLAN_PLYRS
  819. rect 45 11 136 40
  820. visible 1
  821. textscale .18
  822. forecolor 1 1 1 0.65
  823. decoration
  824. }
  825. itemDef {
  826. name "f"
  827. rect 36 1 13 13
  828. visible 1
  829. bordercolor 1 1 1 .75
  830. decoration
  831. style 3
  832. ownerdrawflag CG_SHOW_HARVESTER
  833. background "icons/skull_blue.tga"
  834. }
  835. itemDef {
  836. name "blueflag"
  837. rect 36 1 13 13
  838. visible 1
  839. decoration
  840. ownerdrawflag CG_SHOW_CTF
  841. ownerdraw CG_BLUE_FLAGSTATUS
  842. }
  843. itemDef {
  844. name "oneflagstatus"
  845. rect 36 1 13 13
  846. visible 1
  847. decoration
  848. ownerdraw CG_ONEFLAG_STATUS
  849. }
  850. }
  851.  
  852. // DM/TOURNAMENT BAR
  853. menuDef {
  854. name "FFaScoreboxes"
  855. rect 0 18 640 480
  856. fullScreen MENU_FALSE
  857. visible MENU_TRUE
  858. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  859.  
  860.  
  861. itemDef {
  862. rect 610 418 28 16
  863. visible 1
  864. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  865. backcolor 0 0 1 0.25
  866. style 1
  867. }
  868.  
  869. itemDef {
  870. rect 610 438 28 16
  871. visible 1
  872. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  873. backcolor 1 0 0 0.25
  874. style 1
  875. }
  876.  
  877.  
  878. itemDef {
  879. rect 610 418 28 16
  880. visible 1
  881. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  882. backcolor 1 0 0 0.25
  883. style 1
  884. }
  885.  
  886. itemDef {
  887. rect 610 438 28 16
  888. visible 1
  889. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  890. backcolor 0 0 1 0.25
  891. style 1
  892. }
  893.  
  894. itemDef {
  895. name "1stplace"
  896. ownerdraw CG_1STPLACE
  897. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  898. rect 617 431 30 20
  899. visible 1
  900. textscale .25
  901. decoration
  902. }
  903.  
  904. itemDef {
  905. name "2ndplace"
  906. ownerdraw CG_PLAYER_SCORE
  907. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  908. rect 611 431 30 20
  909. visible 1
  910. textscale .25
  911. decoration
  912. }
  913.  
  914.  
  915. itemDef {
  916. name "1stplace"
  917. ownerdraw CG_2NDPLACE
  918. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  919. rect 617 451 30 20
  920. visible 1
  921. textscale .25
  922. decoration
  923. }
  924.  
  925. itemDef {
  926. name "2ndplace"
  927. ownerdraw CG_PLAYER_SCORE
  928. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  929. rect 611 411 30 20
  930. visible 1
  931. textscale .25
  932. decoration
  933. }
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941. }
  942. // example for PAT
  943. // this is the item def for the 1st place text
  944. menuDef {
  945. name "scores"
  946. fullScreen MENU_FALSE
  947. visible MENU_TRUE
  948. rect 40 0 120 40
  949. itemdef {
  950. name "1stplace"
  951. ownerdraw CG_1ST_PLACE_SCORE
  952. rect 0 19 136 40
  953. backcolor 1 1 1 1
  954. forecolor 1 1 1 1
  955. visible 0
  956. textscale .22
  957. decoration
  958. }
  959.  
  960. // example for PAT
  961. // this is the item def for the 2nd place text
  962.  
  963. itemdef {
  964. name "2ndplace"
  965. ownerdraw CG_2ND_PLACE_SCORE
  966. rect 0 36 136 40
  967. visible 0
  968. textscale .22
  969. decoration
  970. }
  971. }
  972. // you can use "ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE"
  973. // or "ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE" to toggle the
  974. // score highlight on / off for the first and second place score boxes
  975.  
  976. //*****Player Pickups*****//
  977. //powerup
  978. //FIX - THIS NUMBER IS HUGE NEEDS TO BE SMALLER, seeing weird vertical stretching as well
  979. menuDef {
  980. name "powerup"
  981. fullScreen MENU_FALSE
  982. visible MENU_TRUE
  983. rect 570 220 50 80
  984.  
  985. itemDef {
  986. name "powerupArea"
  987. rect 0 0 35 35
  988. visible 1
  989. decoration
  990. ownerdraw CG_AREA_POWERUP
  991. special 4 // spacing
  992. align HUD_VERTICAL
  993. }
  994. }
  995. //useable pickups
  996. menuDef {
  997. name "pickups"
  998. fullScreen MENU_FALSE
  999. visible MENU_TRUE
  1000. rect 520 452 385 32
  1001.  
  1002. itemDef {
  1003. name "playeritem"
  1004. rect 0 0 25 25
  1005. visible 1
  1006. decoration
  1007. ownerdraw CG_PLAYER_ITEM
  1008. }
  1009.  
  1010. itemDef {
  1011. name "CTFPOWERUP"
  1012. rect 90 0 25 25
  1013. visible 1
  1014. decoration
  1015. ownerdraw CG_CTF_POWERUP
  1016. //ownerdraw CG_PLAYER_ITEM
  1017. }
  1018.  
  1019. itemDef {
  1020. name "skulls"
  1021. rect 1 1 34 34
  1022. visible 1
  1023. decoration
  1024. textaligny 12
  1025. textalignx 0
  1026. textscale 0.333
  1027. textstyle 3
  1028. ownerdraw CG_HARVESTER_SKULLS
  1029. //ownerdraw CG_PLAYER_ITEM
  1030. }
  1031. }
  1032.  
  1033. // graphical obits
  1034. menuDef {
  1035. name "obit area"
  1036. fullScreen MENU_FALSE
  1037. visible MENU_TRUE
  1038. rect 10 62 65 12
  1039.  
  1040. itemdef {
  1041. name hudObit
  1042. ownerdraw CG_PLAYER_OBIT
  1043. rect 0 0 65 12
  1044. visible 1
  1045. decoration
  1046. textscale .22
  1047. }
  1048. }
  1049.  
  1050. // chat area
  1051. menuDef {
  1052. name "chat area"
  1053. fullScreen MENU_FALSE
  1054. visible MENU_TRUE
  1055. rect 0 0 32 256
  1056.  
  1057. //chatbgLeft
  1058. itemDef {
  1059. name "chatBgLeft"
  1060. rect 3 345 16 64
  1061. visible 1
  1062. ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
  1063. decoration
  1064. backcolor 0 0 0 0.5
  1065. style 1
  1066. background "ui/assets/hud/chatl.tga"
  1067. }
  1068. //chatbgMid
  1069. itemDef {
  1070. name "chatBgLeft"
  1071. rect 19 345 601 64
  1072. visible 1
  1073. ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
  1074. decoration
  1075. backcolor 0 0 0 0.5
  1076. style 1
  1077. background "ui/assets/hud/chatm.tga"
  1078. }
  1079. //chatbgRight
  1080. itemDef {
  1081. name "chatBgLeft"
  1082. rect 620 345 16 64
  1083. visible 1
  1084. ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
  1085. decoration
  1086. backcolor 0 0 0 0.5
  1087. style 1
  1088. background "ui/assets/hud/chatr.tga"
  1089. }
  1090. itemdef {
  1091. name "chatWindow"
  1092. ownerdraw CG_AREA_NEW_CHAT
  1093. rect 5 287 634 120
  1094. visible 1
  1095. decoration
  1096. }
  1097. }
  1098.  
  1099. // FLAG STATUS FOR TEAM
  1100.  
  1101. /*
  1102.  
  1103. menuDef {
  1104. name "teamframe"
  1105. fullScreen MENU_FALSE
  1106. visible MENU_TRUE
  1107. ownerdrawflag CG_SHOW_ANYTEAMGAME //CG_SHOW_CTF
  1108.  
  1109. itemDef {
  1110. name "redscore"
  1111. rect 568 394 30 52
  1112. visible 1
  1113. decoration
  1114. backcolor 1.0 0.0 0.0 0.6
  1115. style 1
  1116. textscale .4
  1117. textalign 0
  1118. forecolor 1.0 1.0 1.0 1.0
  1119. ownerdraw CG_RED_SCORE
  1120. }
  1121.  
  1122. itemDef {
  1123. name "redscorebottom"
  1124. rect 568 446 30 2
  1125. visible 1
  1126. decoration
  1127. backcolor 1.0 0.0 0.0 0.6
  1128. style 1
  1129. }
  1130.  
  1131. itemDef {
  1132. name "bluescore"
  1133. rect 606 394 30 52
  1134. visible 1
  1135. decoration
  1136. backcolor 0.0 0.0 1.0 0.6
  1137. style 1
  1138. textscale .4
  1139. textalign 0
  1140. forecolor 1.0 1.0 1.0 1.0
  1141. ownerdraw CG_BLUE_SCORE
  1142. }
  1143.  
  1144. itemDef {
  1145. name "bluescorebottom"
  1146. rect 606 446 30 2
  1147. visible 1
  1148. decoration
  1149. backcolor 0.0 0.0 1.0 0.6
  1150. style 1
  1151. }
  1152.  
  1153. itemdef {
  1154. name "scoregrad"
  1155. backcolor 0 0 0 0.5
  1156. rect 568 394 68 54
  1157. background "ui/assets/hud/chatm.tga"
  1158. style 1
  1159. visible 0
  1160. decoration
  1161. }
  1162.  
  1163. itemdef {
  1164. name "scoregrad"
  1165. forecolor 1 1 1 0.33
  1166. //rect 568 394 30 54
  1167. rect 568 394 68 54
  1168. background "ui/assets/verticalgradient.png"
  1169. style 3
  1170. visible 1
  1171. decoration
  1172. }
  1173.  
  1174. itemDef {
  1175. name "playerRect"
  1176. rect 564 390 38 38
  1177. style 3
  1178. //background "ui/assets/hud/flag.png"
  1179. background "gfx/2d/select.png"
  1180. visible 1
  1181. ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_RED
  1182. }
  1183.  
  1184. itemDef {
  1185. name "playerRect"
  1186. rect 602 390 38 38
  1187. style 3
  1188. //background "ui/assets/hud/flag.png"
  1189. background "gfx/2d/select.png"
  1190. visible 1
  1191. ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_BLUE
  1192. }
  1193.  
  1194. itemDef {
  1195. name "f"
  1196. rect 568 394 30 30
  1197. visible 1
  1198. decoration
  1199. ownerdraw CG_RED_FLAGSTATUS
  1200. ownerdrawflag CG_SHOW_CTF
  1201. }
  1202.  
  1203. itemDef {
  1204. name "f"
  1205. rect 606 394 30 30
  1206. visible 1
  1207. decoration
  1208. ownerdraw CG_BLUE_FLAGSTATUS
  1209. ownerdrawflag CG_SHOW_CTF
  1210. }
  1211.  
  1212. itemDef {
  1213. name "f"
  1214. rect 606 394 30 30
  1215. backcolor 1 1 1 1
  1216. style 1
  1217. visible 1
  1218. decoration
  1219. background "ui/assets/hud/tdm.png"
  1220. cvarTest "g_gametype"
  1221. showCvar { "3" }
  1222. }
  1223.  
  1224. itemDef {
  1225. name "f"
  1226. rect 568 394 30 30
  1227. backcolor 1 1 1 1
  1228. style 1
  1229. visible 1
  1230. decoration
  1231. background "ui/assets/hud/tdm.png"
  1232. cvarTest "g_gametype"
  1233. showCvar { "3" }
  1234. }
  1235.  
  1236. itemDef {
  1237. name "f"
  1238. rect 606 394 30 30
  1239. backcolor 1 1 1 1
  1240. style 1
  1241. visible 1
  1242. decoration
  1243. ownerdrawflag CG_SHOW_CLAN_ARENA
  1244. background "ui/assets/hud/ca.png"
  1245. }
  1246.  
  1247. itemDef {
  1248. name "f"
  1249. rect 568 394 30 30
  1250. backcolor 1 1 1 1
  1251. style 1
  1252. visible 1
  1253. decoration
  1254. ownerdrawflag CG_SHOW_CLAN_ARENA
  1255. background "ui/assets/hud/ca.png"
  1256. }
  1257.  
  1258. itemdef {
  1259. name "redClanPlayers"
  1260. ownerdrawflag CG_SHOW_CLAN_ARENA
  1261. ownerdraw CG_RED_CLAN_PLYRS
  1262. rect 585 416 30 30
  1263. textalign 2
  1264. visible 1
  1265. textscale .3
  1266. forecolor 1 1 1 0.65
  1267. decoration
  1268. }
  1269.  
  1270. itemdef {
  1271. name "redClanPlayers"
  1272. ownerdrawflag CG_SHOW_CLAN_ARENA
  1273. ownerdraw CG_BLUE_CLAN_PLYRS
  1274. rect 623 416 30 30
  1275. textalign 2
  1276. visible 1
  1277. textscale .3
  1278. forecolor 1 1 1 0.65
  1279. decoration
  1280. }
  1281.  
  1282. itemDef {
  1283. name "f"
  1284. rect 606 394 30 30
  1285. backcolor 1 1 1 1
  1286. style 1
  1287. visible 1
  1288. decoration
  1289. ownerdrawflag CG_SHOW_HARVESTER
  1290. background "icons/skull_blue.tga"
  1291. }
  1292.  
  1293. itemDef {
  1294. name "f"
  1295. rect 568 394 30 30
  1296. backcolor 1 1 1 1
  1297. style 1
  1298. visible 1
  1299. decoration
  1300. ownerdrawflag CG_SHOW_HARVESTER
  1301. background "icons/skull_red.tga"
  1302. }
  1303.  
  1304. itemDef {
  1305. name "f"
  1306. rect 606 394 30 30
  1307. backcolor 1 1 1 1
  1308. style 1
  1309. visible 1
  1310. decoration
  1311. ownerdrawflag CG_SHOW_ONEFLAG
  1312. ownerdraw CG_ONEFLAG_STATUS
  1313. }
  1314.  
  1315. itemDef {
  1316. name "f"
  1317. rect 568 394 30 30
  1318. backcolor 1 1 1 1
  1319. style 1
  1320. visible 1
  1321. decoration
  1322. ownerdrawflag CG_SHOW_ONEFLAG
  1323. ownerdraw CG_ONEFLAG_STATUS
  1324. }
  1325.  
  1326. itemDef {
  1327. name "f"
  1328. rect 606 394 30 30
  1329. backcolor 0 0 0 1
  1330. style 1
  1331. visible 1
  1332. decoration
  1333. ownerdraw CG_TEAM_COLORIZED
  1334. //ownerdrawflag CG_SHOW_OBELISK
  1335. background "icons/kamikaze.png"
  1336. cvarTest "g_gametype"
  1337. showCvar { "7" }
  1338. }
  1339.  
  1340. itemDef {
  1341. name "f"
  1342. rect 568 394 30 30
  1343. backcolor 0 0 0 1
  1344. style 1
  1345. visible 1
  1346. decoration
  1347. ownerdraw CG_TEAM_COLORIZED
  1348. //ownerdrawflag CG_SHOW_OBELISK
  1349. background "icons/kamikaze.png"
  1350. cvarTest "g_gametype"
  1351. showCvar { "7" }
  1352. }
  1353. }
  1354. */
  1355.  
  1356. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement