Guest User

Untitled

a guest
Feb 12th, 2015
251
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "ui/menudef.h"
  2.  
  3.  
  4. /* --- rectangle box --- */
  5. menuDef {
  6. name "box"
  7. fullScreen MENU_FALSE
  8. visible MENU_TRUE
  9. rect 424 138 106 43
  10.  
  11.  
  12. itemDef {
  13. name "boxBackground"
  14. rect 0 0 106 43
  15. visible 1
  16. style WINDOW_STYLE_FILLED
  17.  
  18. backcolor 0 0.6 0.8 0.41
  19.  
  20. }
  21.  
  22. }
  23.  
  24. /* --- Timer --- */
  25.  
  26. menuDef {
  27. name "timer"
  28. fullScreen MENU_FALSE
  29. visible MENU_TRUE
  30. rect 428 144 93 31
  31. ownerdrawflag 0
  32. itemDef {
  33. name "timerIcon"
  34. rect 0 0 0 0
  35. visible 1
  36. decoration
  37. style 1
  38. backcolor 1 1 1 1
  39. background "icons/icon_time.tga"
  40. }
  41.  
  42. itemDef {
  43. name "timerCounter"
  44. rect 0 31 93 31
  45. visible 1
  46. textalign 0
  47. decoration
  48. textstyle 3
  49. forecolor 1 1 1 1
  50. textscale 0.86
  51. ownerdraw CG_LEVELTIMER
  52. }
  53. }
  54.  
  55. /* --- Health indicator --- */
  56.  
  57. menuDef {
  58. name "healthIndicator"
  59. fullScreen MENU_FALSE
  60. visible MENU_TRUE
  61. rect 205 435 104 36
  62. ownerdrawflag 0
  63.  
  64. itemDef {
  65. name "healthIndicatorIcon"
  66. rect 0 0 0 0
  67. visible 1
  68. decoration
  69. style 1
  70. backcolor 1 1 1 1
  71. background "ui/assets/hud/health.tga"
  72. ownerdraw CG_TEAM_COLORIZED
  73. }
  74.  
  75. itemDef {
  76. name "healthIndicatorCounter"
  77. rect 0 0 104 36
  78. visible 1
  79. textalign 0
  80. decoration
  81. textstyle 3
  82. forecolor 1 1 1 1
  83. textscale 1
  84. ownerdraw CG_PLAYER_HEALTH
  85. addColorRange -999 25 1 0 0 1
  86. addColorRange 26 100 1 0.8 0.2 1
  87. addColorRange 101 999 0 0.6 0.8 1
  88. }
  89. }
  90.  
  91. /* --- Armor indicator --- */
  92. menuDef {
  93. name "armorIndicator"
  94. fullScreen MENU_FALSE
  95. visible MENU_TRUE
  96. rect 330 435 104 36
  97. ownerdrawflag 0
  98. itemDef {
  99. name "armorIndicatorIcon"
  100. rect 0 0 0 0
  101. visible 1
  102. decoration
  103. style 1
  104. backcolor 1 1 1 1
  105. background "ui/assets/hud/armor.tga"
  106. ownerdraw CG_TEAM_COLORIZED
  107. }
  108.  
  109.  
  110.  
  111. itemDef {
  112. name "armorIndicatorCounter"
  113. rect 0 0 104 36
  114. visible 1
  115. textalign 0
  116. decoration
  117. textstyle 3
  118. forecolor 1 1 1 1
  119. textscale 1
  120. ownerdraw CG_PLAYER_ARMOR_VALUE
  121. addColorRange -999 25 1 0 0 1
  122. addColorRange 26 149 1 0.8 0.2 1
  123. addColorRange 150 999 0 0.6 0.8 1
  124. }
  125. }
  126.  
  127. /* --- Ammo indicator --- */
  128. menuDef {
  129. name "ammoIndicator"
  130. fullScreen MENU_FALSE
  131. visible MENU_TRUE
  132. rect 280 360 85 22 // area
  133. ownerdrawflag 0
  134. itemDef {
  135. name "ammoIndicatorIcon"
  136. rect 0 0 22 22
  137. visible 1
  138. decoration
  139. ownerdraw CG_PLAYER_AMMO_ICON
  140. }
  141.  
  142. itemDef {
  143. name "ammoIndicatorCounter"
  144. rect 32 2 53 18
  145. visible 1
  146. textalign 0
  147. decoration
  148. textstyle 3
  149. forecolor 1 1 1 1
  150. textscale 0.51
  151. ownerdraw CG_PLAYER_AMMO_VALUE
  152.  
  153. addColorRange -999 5 1 0 0 1
  154. addColorRange 6 100 1 1 1 1
  155. addColorRange 101 999 1 1 1 1
  156.  
  157. }
  158. }
  159.  
  160. /* --- powerup indicator --- */
  161. menuDef {
  162. name "powerupIndicator"
  163. fullScreen MENU_FALSE
  164. visible MENU_TRUE
  165. rect 293 144 61 28
  166.  
  167. itemDef {
  168. name "powerupIndicatorArea"
  169. rect 0 0 24 24
  170. visible 1
  171. decoration
  172. textscale 0.55
  173. forecolor 1 1 1 1
  174. textstyle 3
  175. ownerdraw CG_AREA_POWERUP
  176. special 38
  177. align HUD_HORIZONTAL
  178. }
  179. }
  180.  
  181. /* --- TOP LEFT SCORE BOX --- */
  182. menuDef {
  183. name "ScoreFrame"
  184. fullScreen MENU_FALSE
  185. visible MENU_TRUE
  186. rect 16 19 32 256
  187. //Score Frame BG, can be scaled wider if needed to make more room for names
  188. itemDef {
  189. name "scoreboxl"
  190. rect -1.5 -5.5 8 63
  191. visible 1
  192. decoration
  193. backcolor 1 1 1 0.57
  194. style 1
  195. background "ui/assets/hud/scoreboxl2.tga"
  196. }
  197. itemDef {
  198. name "scorebox2"
  199. rect 6.5 -5.5 167 63
  200. visible 1
  201. decoration
  202. backcolor 1 1 1 0.57
  203. style 1
  204. background "ui/assets/hud/scoreboxm.tga"
  205. }
  206. itemDef {
  207. name "scorebox3"
  208. rect 173.5 -5.5 8 63
  209. visible 1
  210. decoration
  211. backcolor 1 1 1 0.57
  212. style 1
  213. background "ui/assets/hud/scoreboxr.tga"
  214. }
  215. //GAMETYPE ICON
  216. itemDef {
  217. name "scorebox2a"
  218. rect 0.5 -2 28 36
  219. visible 1
  220. decoration
  221. backcolor 1 1 1 1
  222. style 1
  223. background "ui/assets/score/btn.tga"
  224. }
  225. itemDef {
  226. name "gameType"
  227. rect 6 3 18 18
  228. style 0
  229. backcolor 1 1 1 1
  230. ownerdraw CG_GAME_TYPE_ICON
  231. visible 1
  232. decoration
  233. }
  234. //WIN VALUE
  235. itemDef {
  236. name "WinLimit"
  237. textalign 1
  238. rect 7 33 40 12
  239. visible 1
  240. decoration
  241. forecolor 1 1 1 0.6
  242. textscale .24
  243. ownerdraw CG_CAPFRAGLIMIT
  244. }
  245. }
  246.  
  247. // RED TEAM BAR TOP
  248. menuDef {
  249. name "RedFrameTeam"
  250. fullScreen MENU_FALSE
  251. visible MENU_TRUE
  252. rect 16 19 32 256
  253. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE// AND CG_SHOW_ANYNONTEAMGAME
  254.  
  255. //red team flag alert - top left
  256. itemDef {
  257. name "TeamRLeft"
  258. rect 30 2 128 15
  259. visible 1
  260. decoration
  261. backcolor 1 0 0 0.3
  262. style 1
  263. background "ui/assets/hud/rteambgl.tga"
  264. ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG
  265. }
  266. //red team flag alert - bottom right
  267. itemDef {
  268. name "TeamRLeft"
  269. rect 50 2 128 15
  270. visible 1
  271. decoration
  272. backcolor 1 0 0 0.3
  273. style 1
  274. background "ui/assets/hud/rteambgr.tga"
  275. ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG
  276. }
  277.  
  278. //clan arena count
  279. itemDef {
  280. name "clanArena"
  281. rect 32 4 21 11
  282. visible 1
  283. backcolor 1 1 1 1
  284. decoration
  285. style 1
  286. cvartest g_gametype
  287. showcvar { 3,4 }
  288. background "ui/assets/score/ca_score_red.tga"
  289. }
  290. itemdef {
  291. name "redClanPlayers"
  292. // ownerdrawflag CG_SHOW_CLAN_ARENA
  293. ownerdraw CG_RED_CLAN_PLYRS
  294. rect 44 13 136 40
  295. visible 1
  296. textscale .18
  297. forecolor 1 1 1 0.65
  298. decoration
  299. }
  300. itemDef {
  301. name "f"
  302. rect 36 3 13 13
  303. visible 1
  304. bordercolor 1 1 1 1
  305. decoration
  306. style 3
  307. ownerdrawflag CG_SHOW_HARVESTER
  308. background "icons/skull_red.tga"
  309. }
  310. itemDef {
  311. name "f"
  312. rect 36 3 13 13
  313. visible 1
  314. decoration
  315. ownerdrawflag CG_SHOW_CTF
  316. ownerdraw CG_RED_FLAGSTATUS
  317. }
  318. }
  319.  
  320. // RED TEAM BAR BOTTOM
  321. menuDef {
  322. name "RedFrameTeam"
  323. fullScreen MENU_FALSE
  324. visible MENU_TRUE
  325. rect 16 35 32 256
  326. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE// AND CG_SHOW_ANYNONTEAMGAME
  327.  
  328. //red team flag alert - top left
  329. itemDef {
  330. name "TeamRLeft"
  331. rect 30 2 128 15
  332. visible 1
  333. decoration
  334. backcolor 1 0 0 0.3
  335. style 1
  336. background "ui/assets/hud/rteambgl.tga"
  337. ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG
  338. }
  339. //red team flag alert - bottom right
  340. itemDef {
  341. name "TeamRLeft"
  342. rect 50 2 128 15
  343. visible 1
  344. decoration
  345. backcolor 1 0 0 0.3
  346. style 1
  347. background "ui/assets/hud/rteambgr.tga"
  348. ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG
  349. }
  350.  
  351. //clan arena count
  352. itemDef {
  353. name "clanArena"
  354. rect 32 4 21 11
  355. visible 1
  356. backcolor 1 1 1 1
  357. decoration
  358. style 1
  359. cvartest g_gametype
  360. showcvar { 3,4 }
  361. background "ui/assets/score/ca_score_red.tga"
  362. }
  363. itemdef {
  364. name "redClanPlayers"
  365. // ownerdrawflag CG_SHOW_CLAN_ARENA
  366. ownerdraw CG_RED_CLAN_PLYRS
  367. rect 44 13 136 40
  368. visible 1
  369. textscale .18
  370. forecolor 1 1 1 0.65
  371. decoration
  372. }
  373. itemDef {
  374. name "f"
  375. rect 36 3 13 13
  376. visible 1
  377. bordercolor 1 1 1 1
  378. decoration
  379. style 3
  380. ownerdrawflag CG_SHOW_HARVESTER
  381. background "icons/skull_red.tga"
  382. }
  383. itemDef {
  384. name "f"
  385. rect 36 3 13 13
  386. visible 1
  387. decoration
  388. ownerdrawflag CG_SHOW_CTF
  389. ownerdraw CG_RED_FLAGSTATUS
  390. }
  391. }
  392. // BLUE TEAM BAR TOP
  393. menuDef {
  394. name "BlueFrameTeam"
  395. fullScreen MENU_FALSE
  396. visible MENU_TRUE
  397. rect 16 19 32 256
  398. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE// AND CG_SHOW_ANYNONTEAMGAME
  399.  
  400. //blue team flag alert - top left
  401. itemDef {
  402. name "TeamRLeft"
  403. rect 30 2 128 15
  404. visible 1
  405. decoration
  406. backcolor 1 0 0 0.3
  407. style 1
  408. background "ui/assets/hud/bteambgl.tga"
  409. ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG
  410. }
  411. //blue team flag alert - bottom right
  412. itemDef {
  413. name "TeamRLeft"
  414. rect 50 2 128 15
  415. visible 1
  416. decoration
  417. backcolor 1 0 0 0.3
  418. style 1
  419. background "ui/assets/hud/bteambgr.tga"
  420. ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG
  421. }
  422.  
  423. //clan arena count
  424. itemDef {
  425. name "clanArena"
  426. rect 32 4 21 11
  427. visible 1
  428. backcolor 1 1 1 1
  429. decoration
  430. style 1
  431. cvartest g_gametype
  432. showcvar { 3,4 }
  433. background "ui/assets/score/ca_score_blu.tga"
  434. }
  435. itemdef {
  436. name "blueClanPlayers"
  437. ownerdrawflag CG_SHOW_CLAN_ARENA
  438. ownerdraw CG_BLUE_CLAN_PLYRS
  439. rect 44 13 136 40
  440. visible 1
  441. textscale .18
  442. forecolor 1 1 1 0.65
  443. decoration
  444. }
  445. itemDef {
  446. name "f"
  447. rect 36 3 13 13
  448. visible 1
  449. bordercolor 1 1 1 .75
  450. decoration
  451. style 3
  452. ownerdrawflag CG_SHOW_HARVESTER
  453. background "icons/skull_blue.tga"
  454. }
  455. itemDef {
  456. name "blueflag"
  457. rect 36 3 13 13
  458. visible 1
  459. decoration
  460. ownerdrawflag CG_SHOW_CTF
  461. ownerdraw CG_BLUE_FLAGSTATUS
  462. }
  463. itemDef {
  464. name "oneflagstatus"
  465. rect 36 3 13 13
  466. visible 1
  467. decoration
  468. ownerdraw CG_ONEFLAG_STATUS
  469. }
  470. }
  471. // BLUE TEAM BAR BOTTOM
  472. menuDef {
  473. name "BlueFrameTeam"
  474. fullScreen MENU_FALSE
  475. visible MENU_TRUE
  476. rect 16 35 32 256
  477. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE// AND CG_SHOW_ANYNONTEAMGAME
  478.  
  479. //red team flag alert - align to right
  480. itemDef {
  481. name "TeamRLeft"
  482. rect 30 2 128 15
  483. visible 1
  484. decoration
  485. backcolor 1 0 0 0.3
  486. style 1
  487. background "ui/assets/hud/bteambgl.tga"
  488. ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG
  489. }
  490. //red team flag alert - align to right
  491. itemDef {
  492. name "TeamRLeft"
  493. rect 50 2 128 15
  494. visible 1
  495. decoration
  496. backcolor 1 0 0 0.3
  497. style 1
  498. background "ui/assets/hud/bteambgr.tga"
  499. ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG
  500. }
  501.  
  502. //clan arena count
  503. itemDef {
  504. name "clanArena"
  505. rect 32 4 21 11
  506. visible 1
  507. backcolor 1 1 1 1
  508. decoration
  509. style 1
  510. cvartest g_gametype
  511. showcvar { 3,4 }
  512. background "ui/assets/score/ca_score_blu.tga"
  513. }
  514. itemdef {
  515. name "blueClanPlayers"
  516. ownerdrawflag CG_SHOW_CLAN_ARENA
  517. ownerdraw CG_BLUE_CLAN_PLYRS
  518. rect 44 13 136 40
  519. visible 1
  520. textscale .18
  521. forecolor 1 1 1 0.65
  522. decoration
  523. }
  524. itemDef {
  525. name "f"
  526. rect 36 3 13 13
  527. visible 1
  528. bordercolor 1 1 1 .75
  529. decoration
  530. style 3
  531. ownerdrawflag CG_SHOW_HARVESTER
  532. background "icons/skull_blue.tga"
  533. }
  534. itemDef {
  535. name "blueflag"
  536. rect 36 3 13 13
  537. visible 1
  538. decoration
  539. ownerdrawflag CG_SHOW_CTF
  540. ownerdraw CG_BLUE_FLAGSTATUS
  541. }
  542. itemDef {
  543. name "oneflagstatus"
  544. rect 36 3 13 13
  545. visible 1
  546. decoration
  547. ownerdraw CG_ONEFLAG_STATUS
  548. }
  549. }
  550.  
  551. // DM/TOURNAMENT BAR
  552. menuDef {
  553. name "SelfFrameHighlights"
  554. fullScreen MENU_FALSE
  555. visible MENU_TRUE
  556. rect 16 19 32 256
  557.  
  558. //self top highlight
  559. itemDef {
  560. name "SelfTLeft"
  561. rect 30 2 16 16
  562. visible 1
  563. decoration
  564. ownerdraw CG_TEAM_COLORIZED
  565. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  566. style 1
  567. background "ui/assets/hud/teamonl.tga"
  568. }
  569. itemDef {
  570. name "SelfTMid"
  571. rect 46 2 116 16
  572. visible 1
  573. decoration
  574. ownerdraw CG_TEAM_COLORIZED
  575. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  576. style 1
  577. background "ui/assets/hud/teamonm.tga"
  578. }
  579. itemDef {
  580. name "SelfTLeft"
  581. rect 162 2 16 16
  582. visible 1
  583. decoration
  584. ownerdraw CG_TEAM_COLORIZED
  585. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  586. style 1
  587. background "ui/assets/hud/teamonr.tga"
  588. }
  589. //self bottom highlight
  590. itemDef {
  591. name "SelfBLeft"
  592. rect 30 18 16 16
  593. visible 1
  594. decoration
  595. ownerdraw CG_TEAM_COLORIZED
  596. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  597. style 1
  598. background "ui/assets/hud/teamonl.tga"
  599. }
  600. itemDef {
  601. name "SelfBMid"
  602. rect 46 18 116 16
  603. visible 1
  604. decoration
  605. ownerdraw CG_TEAM_COLORIZED
  606. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  607. style 1
  608. background "ui/assets/hud/teamonm.tga"
  609. }
  610. itemDef {
  611. name "SelfBLeft"
  612. rect 162 18 16 16
  613. visible 1
  614. decoration
  615. ownerdraw CG_TEAM_COLORIZED
  616. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  617. style 1
  618. background "ui/assets/hud/teamonr.tga"
  619. }
  620. }
  621.  
  622. // this is the item def for the 1st place text
  623. menuDef {
  624. name "scores"
  625. fullScreen MENU_FALSE
  626. visible MENU_TRUE
  627. rect 16 19 120 40
  628.  
  629. itemdef {
  630. name "1stplace"
  631. ownerdraw CG_1ST_PLACE_SCORE
  632. rect 38 14 136 40
  633. visible 1
  634. textscale .22
  635. decoration
  636. }
  637.  
  638. // this is the item def for the 2nd place text
  639. itemdef {
  640. name "2ndplace"
  641. ownerdraw CG_2ND_PLACE_SCORE
  642. rect 38 30 136 40
  643. visible 1
  644. textscale .22
  645. decoration
  646. }
  647. }
  648.  
  649. /* --- Usable player item --- */
  650. menuDef {
  651. name "playerItem"
  652. fullScreen MENU_FALSE
  653. visible MENU_TRUE
  654. rect 427 195 24 24
  655.  
  656. itemDef {
  657. name "playerItemIcon"
  658. rect 0 0 24 24
  659. visible 1
  660. decoration
  661. ownerdraw CG_PLAYER_ITEM
  662. }
  663. }
  664.  
  665.  
  666.  
  667. /* --- CTF Powerup indicator --- */
  668. //useable pickups
  669. menuDef {
  670. name "CTFPowerupIndicator"
  671. fullScreen MENU_FALSE
  672. visible MENU_TRUE
  673. rect 462 195 24 24
  674.  
  675. itemDef {
  676. name "CTFPOWERUP"
  677. rect 0 0 24 24
  678. visible 1
  679. decoration
  680. ownerdraw CG_CTF_POWERUP
  681. }
  682. }
  683.  
  684. /* --- graphical obits --- */
  685. menuDef {
  686. name "obits"
  687. fullScreen MENU_FALSE
  688. visible MENU_TRUE
  689. rect 16 78 76 15
  690.  
  691. itemDef {
  692. name "obituaries"
  693. rect 0 12 65 12
  694. visible 1
  695. textscale .22
  696. ownerdraw CG_PLAYER_OBIT
  697. }
  698. }
  699.  
  700.  
  701.  
  702. /* --- Flag indicator --- */
  703.  
  704. //red player has blue flag
  705. menuDef {
  706. name "flagIndicator"
  707. fullScreen MENU_FALSE
  708. visible MENU_TRUE
  709. rect 305 95 40 40
  710. ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_RED
  711.  
  712. itemDef {
  713. name "playerRect"
  714. rect 0 0 40 40
  715. visible 1
  716. style 3
  717. background "ui/assets/hud/flag"
  718. ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
  719. }
  720.  
  721. itemDef {
  722. name "flag"
  723. rect 4 4 33 33
  724. visible 1
  725. decoration
  726. style 1
  727. ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
  728. backcolor 0.2 0.35 1 0.9
  729. background "ui/assets/statusbar/flag_in_base"
  730. }
  731. }
  732.  
  733. //blue player has red flag
  734. menuDef {
  735. name "flagIndicator"
  736. fullScreen MENU_FALSE
  737. visible MENU_TRUE
  738. rect 305 95 40 40
  739. ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_BLUE
  740.  
  741. itemDef {
  742. name "playerRect"
  743. rect 0 0 40 40
  744. visible 1
  745. style 3
  746. background "ui/assets/hud/flag"
  747. ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
  748. }
  749.  
  750. itemDef {
  751. name "flag"
  752. rect 4 4 33 33
  753. visible 1
  754. decoration
  755. style 1
  756. ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
  757. backcolor 1 0 0 0.9
  758. background "ui/assets/statusbar/flag_in_base"
  759. }
  760. }
  761.  
  762.  
  763. /* --- rectangle box --- */
  764. menuDef {
  765. name "chatArea"
  766. fullScreen MENU_FALSE
  767. visible MENU_TRUE
  768. rect 3 343 240 60
  769.  
  770.  
  771. itemDef {
  772. name "boxBackground"
  773. rect 0 0 240 60
  774. visible 1
  775. style WINDOW_STYLE_FILLED
  776. ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
  777. backcolor 0 0 0 0.75
  778. background "ui/assets/hud/chatm.tga"
  779. }
  780.  
  781. itemdef {
  782. name chatWindow
  783. ownerdraw CG_AREA_NEW_CHAT
  784. rect 3 -65 234 120
  785. visible 1
  786. decoration
  787. }
  788. }
RAW Paste Data