Guest User

poo

a guest
Feb 2nd, 2014
511
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "ui/menudef.h"
  2.  
  3. // team menu
  4. //
  5. // defines from ui_shared.h
  6.  
  7. {
  8. assetGlobalDef {
  9. cursor "ui/assets/3_cursor2" // cursor
  10. gradientBar "ui/assets/gradientbar2.tga" // gradient bar
  11. fadeClamp 1.0 // sets the fadeup alpha
  12. fadeCycle 1 // how often fade happens in milliseconds
  13. fadeAmount 0.1 // amount to adjust alpha per cycle
  14.  
  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.  
  19. font "fonts/font" 20 // font 24
  20. smallFont "fonts/smallfont" 20 // font 16
  21. bigFont "fonts/bigfont" 48 // font 48
  22. }
  23.  
  24. //*****PLAYER HEALTH*****//
  25.  
  26. menuDef {
  27. name "Player"
  28. fullScreen MENU_FALSE
  29. visible MENU_TRUE
  30. rect 130 433 95 36
  31.  
  32. itemDef {
  33. name "health"
  34. rect 145 3 22 22
  35. ownerdraw CG_TEAM_COLORIZED
  36. visible 0
  37. decoration
  38. style 1
  39. }
  40.  
  41. itemDef {
  42. name "healthok2"
  43. rect 64 10 63 22
  44. visible 1
  45. textalign 2
  46. decoration
  47. textstyle 3
  48. forecolor 0 0 0 1
  49. textscale .7
  50. ownerdraw CG_PLAYER_HEALTH
  51. }
  52. itemDef {
  53. name "healthok2"
  54. rect 66 10 63 22
  55. visible 1
  56. textalign 2
  57. decoration
  58. textstyle 3
  59. forecolor 0 0 0 1
  60. textscale .7
  61. ownerdraw CG_PLAYER_HEALTH
  62. }
  63. itemDef {
  64. name "healthok2"
  65. rect 65 11 63 22
  66. visible 1
  67. textalign 2
  68. decoration
  69. textstyle 3
  70. forecolor 0 0 0 1
  71. textscale .7
  72. ownerdraw CG_PLAYER_HEALTH
  73. }
  74. itemDef {
  75. name "healthok2"
  76. rect 65 9 63 22
  77. visible 1
  78. textalign 2
  79. decoration
  80. textstyle 3
  81. forecolor 0 0 0 1
  82. textscale .7
  83. ownerdraw CG_PLAYER_HEALTH
  84. }
  85.  
  86. itemDef {
  87. name "healthok"
  88. rect 65 10 63 22
  89. visible 1
  90. textalign 2
  91. decoration
  92. textstyle 3
  93. forecolor 1 1 1 1
  94. textscale .7
  95. ownerdraw CG_PLAYER_HEALTH
  96. addColorRange -999 25 1 0 0 1
  97. addColorRange 26 100 1 1 0 1
  98. addColorRange 101 999 0 1 0 1
  99. }
  100. }
  101.  
  102. //*****PLAYER ARMOR*****//
  103.  
  104. menuDef {
  105. name "Armor"
  106. fullScreen MENU_FALSE
  107. visible MENU_TRUE
  108. rect 373 429 95 32
  109.  
  110. itemDef {
  111. name "armor"
  112. backcolor 0.0 0.0 0.0 0.8
  113. ownerdraw CG_TEAM_COLORIZED
  114. rect -38 6 24 24
  115. visible 0
  116. decoration
  117. style 1
  118. }
  119.  
  120. itemDef {
  121. name "armor2"
  122. rect 11 14 63 22
  123. visible 1
  124. textalign 2
  125. decoration
  126. textstyle 3
  127. forecolor 0 0 0 1
  128. textscale .7
  129. ownerdraw CG_PLAYER_ARMOR_VALUE
  130. addColorRange -99 0 1 1 1 0
  131. }
  132. itemDef {
  133. name "armor2"
  134. rect 9 14 63 22
  135. visible 1
  136. textalign 2
  137. decoration
  138. textstyle 3
  139. forecolor 0 0 0 1
  140. textscale .7
  141. ownerdraw CG_PLAYER_ARMOR_VALUE
  142. addColorRange -99 0 1 1 1 0
  143. }
  144. itemDef {
  145. name "armor2"
  146. rect 10 15 63 22
  147. visible 1
  148. textalign 2
  149. decoration
  150. textstyle 3
  151. forecolor 0 0 0 1
  152. textscale .7
  153. ownerdraw CG_PLAYER_ARMOR_VALUE
  154. addColorRange -99 0 1 1 1 0
  155. }
  156. itemDef {
  157. name "armor2"
  158. rect 10 13 63 22
  159. visible 1
  160. textalign 2
  161. decoration
  162. textstyle 3
  163. forecolor 0 0 0 1
  164. textscale .7
  165. ownerdraw CG_PLAYER_ARMOR_VALUE
  166. addColorRange -99 0 1 1 1 0
  167. }
  168.  
  169.  
  170. itemDef {
  171. name "armor2"
  172. rect 10 14 63 22
  173. visible 1
  174. textalign 2
  175. decoration
  176. textstyle 3
  177. forecolor 1 1 1 1
  178. textscale .7
  179. ownerdraw CG_PLAYER_ARMOR_VALUE
  180. addColorRange -999 0 1 0 0 0
  181. addColorRange 1 100 1 1 0 1
  182. addColorRange 101 999 0 1 0 1
  183. }
  184. }
  185.  
  186. //*****CLAN ARENA*****//
  187.  
  188. menuDef {
  189. name "caFrame"
  190. fullScreen MENU_FALSE
  191. visible MENU_TRUE
  192. rect 710 411 64 48
  193. ownerdrawflag CG_SHOW_CLAN_ARENA
  194.  
  195. //*****CLAN ARENA STILL ALIVE COUNT*****//
  196.  
  197. itemDef {
  198. name "playersleftBackground"
  199. decoration
  200. rect -250 35 102 18
  201. visible 1
  202. backcolor 0.8 0.8 0.8 0.2
  203. style 2
  204. }
  205.  
  206. itemDef {
  207. name "redClanPlayers"
  208. decoration
  209. ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_BLUE
  210. ownerdraw CG_RED_CLAN_PLYRS
  211. rect -178 50 136 40
  212. visible 1
  213. textalign ITEM_ALIGN_RIGHT
  214. textscale .3
  215. //forecolor 1 0.1 0.1 0.9
  216. forecolor 1 0.1 0.1 0.9
  217. }
  218.  
  219. itemDef {
  220. name "blueClanPlayers"
  221. decoration
  222. ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_BLUE
  223. ownerdraw CG_BLUE_CLAN_PLYRS
  224. rect -230 50 32 16
  225. visible 1
  226. textalign ITEM_ALIGN_RIGHT
  227. textscale .3
  228. forecolor 1 1 1 0.7
  229. }
  230.  
  231. itemDef {
  232. name "redClanPlayers"
  233. decoration
  234. ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_RED
  235. ownerdraw CG_RED_CLAN_PLYRS
  236. rect -230 50 32 16
  237. visible 1
  238. textalign ITEM_ALIGN_RIGHT
  239. textscale .3
  240. forecolor 1 1 1 0.7
  241. }
  242.  
  243. itemDef {
  244. name "blueClanPlayers"
  245. decoration
  246. ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_RED
  247. ownerdraw CG_BLUE_CLAN_PLYRS
  248. rect -178 50 136 40
  249. visible 1
  250. textalign ITEM_ALIGN_RIGHT
  251. textscale .3
  252. forecolor 1 0.1 0.1 0.9
  253. }
  254.  
  255. itemDef {
  256. name "ca_vs"
  257. rect -190 49 136 40
  258. visible 1
  259. textalign 2
  260. textscale .3
  261. forecolor 1 1 1 0.7
  262. decoration
  263. text vs
  264. }
  265. }
  266.  
  267. //*****SCORES *****//
  268.  
  269.  
  270. menuDef {
  271. visible 1
  272. rect 580 387 60 60
  273. ownerdrawFlag CG_SHOW_ANYNONTEAMGAME
  274.  
  275. itemDef {
  276. decoration visible 1
  277. ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  278. rect -8 24 34 22
  279. backcolor 0 0 1 0.35
  280. style WINDOW_STYLE_FILLED
  281. }
  282.  
  283. itemDef {
  284. decoration visible 1
  285. ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  286. rect 26 24 34 22
  287. backcolor 0 1 0 0.20
  288. style WINDOW_STYLE_FILLED
  289. }
  290.  
  291. itemDef {
  292. decoration visible 1
  293. ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  294. rect -8 24 34 22
  295. backcolor 0 1 0 0.20
  296. style WINDOW_STYLE_FILLED
  297. }
  298.  
  299. itemDef {
  300. decoration visible 1
  301. ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  302. rect 26 24 34 22
  303. backcolor 0 0 1 0.35
  304. style WINDOW_STYLE_FILLED
  305. }
  306.  
  307. itemDef {
  308. decoration visible 1
  309. ownerdraw CG_RED_SCORE
  310. ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  311. rect 10 40 32 22
  312. textscale .25
  313. align 1
  314. textstyle ITEM_TEXTSTYLE_SHADOWED
  315. }
  316.  
  317. itemDef {
  318. decoration visible 1
  319. ownerdraw CG_BLUE_SCORE
  320. ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  321. rect 44 40 32 22
  322. textscale .25
  323. align 1
  324. textstyle ITEM_TEXTSTYLE_SHADOWED
  325. }
  326.  
  327. itemDef {
  328. decoration visible 1
  329. ownerdraw CG_RED_SCORE
  330. ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  331. rect 10 40 32 22
  332. textscale .25
  333. align 1
  334. textstyle ITEM_TEXTSTYLE_SHADOWED
  335. }
  336.  
  337. itemDef {
  338. decoration visible 1
  339. ownerdraw CG_PLAYER_SCORE
  340. ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  341. rect 28 18 32 22
  342. textscale .25
  343. textalign ITEM_ALIGN_CENTER
  344. textstyle ITEM_TEXTSTYLE_SHADOWED
  345. }
  346.  
  347. itemDef {
  348. decoration visible 1
  349. rect -10 22 34 22
  350. border WINDOW_BORDER_FULL
  351. bordersize 2
  352. bordercolor 1 1 .8 1
  353. ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  354. }
  355.  
  356. itemDef {
  357. decoration visible 1
  358. rect -9 23 34 22
  359. border WINDOW_BORDER_FULL
  360. bordersize 1
  361. bordercolor .9 .8 .1 1
  362. ownerdrawFlag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  363. }
  364.  
  365. itemDef {
  366. decoration visible 1
  367. rect 24 22 34 22
  368. border WINDOW_BORDER_FULL
  369. bordersize 2
  370. bordercolor 1 1 .8 1
  371. ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  372. }
  373.  
  374. itemDef {
  375. decoration visible 1
  376. rect 25 23 34 22
  377. border WINDOW_BORDER_FULL
  378. bordersize 1
  379. bordercolor .9 .8 .1 1
  380. ownerdrawFlag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  381. }
  382. }
  383.  
  384. menuDef {
  385. visible 1
  386. rect 580 387 60 60
  387. ownerdrawFlag CG_SHOW_ANYTEAMGAME
  388.  
  389. itemDef {
  390. decoration visible 1
  391. rect -8 24 34 22
  392. backcolor 1 0 0 0.35
  393. style WINDOW_STYLE_FILLED
  394. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
  395. }
  396.  
  397. itemDef {
  398. decoration visible 1
  399. rect 26 24 34 22
  400. backcolor 0 0 1 0.35
  401. style WINDOW_STYLE_FILLED
  402. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
  403. }
  404.  
  405. itemDef {
  406. decoration visible 1
  407. ownerdraw CG_RED_SCORE
  408. rect 10 40 32 22
  409. textscale 0.25
  410. align 1
  411. textstyle ITEM_TEXTSTYLE_SHADOWED
  412. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
  413. }
  414.  
  415. itemDef {
  416. decoration visible 1
  417. ownerdraw CG_BLUE_SCORE
  418. rect 44 40 32 22
  419. textscale 0.25
  420. align 1
  421. textstyle ITEM_TEXTSTYLE_SHADOWED
  422. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
  423. }
  424.  
  425. itemDef {
  426. decoration visible 1
  427. rect -10 22 34 22
  428. border WINDOW_BORDER_FULL
  429. bordersize 2
  430. bordercolor 1 1 .8 1
  431. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
  432. }
  433.  
  434. itemDef {
  435. decoration visible 1
  436. rect -9 23 34 22
  437. border WINDOW_BORDER_FULL
  438. bordersize 1
  439. bordercolor .9 .8 .1 1
  440. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
  441. }
  442.  
  443. itemDef {
  444. decoration visible 1
  445. rect -8 2 34 22
  446. ownerdraw CG_RED_FLAGSTATUS
  447. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
  448. }
  449.  
  450. itemDef {
  451. decoration visible 1
  452. rect 26 2 34 22
  453. ownerdraw CG_BLUE_FLAGSTATUS
  454. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_RED
  455. }
  456. }
  457.  
  458. menuDef {
  459. visible 1
  460. rect 580 387 60 60
  461. ownerdrawFlag CG_SHOW_ANYTEAMGAME
  462.  
  463. itemDef {
  464. decoration visible 1
  465. rect -8 24 34 22
  466. backcolor 1 0 0 0.35
  467. style WINDOW_STYLE_FILLED
  468. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
  469. }
  470.  
  471. itemDef {
  472. decoration visible 1
  473. rect 26 24 34 22
  474. backcolor 0 0 1 0.35
  475. style WINDOW_STYLE_FILLED
  476. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
  477. }
  478.  
  479. itemDef {
  480. decoration visible 1
  481. ownerdraw CG_RED_SCORE
  482. rect 10 40 32 22
  483. textscale 0.25
  484. align 1
  485. textstyle ITEM_TEXTSTYLE_SHADOWED
  486. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
  487. }
  488.  
  489. itemDef {
  490. decoration visible 1
  491. ownerdraw CG_BLUE_SCORE
  492. rect 44 40 32 22
  493. textscale 0.25
  494. align 1
  495. textstyle ITEM_TEXTSTYLE_SHADOWED
  496. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
  497. }
  498.  
  499. itemDef {
  500. decoration visible 1
  501. rect 24 22 34 22
  502. border WINDOW_BORDER_FULL
  503. bordersize 2
  504. bordercolor 1 1 .8 1
  505. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
  506. }
  507.  
  508. itemDef {
  509. decoration visible 1
  510. rect 25 23 34 22
  511. border WINDOW_BORDER_FULL
  512. bordersize 1
  513. bordercolor .9 .8 .1 1
  514. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
  515. }
  516.  
  517. itemDef {
  518. decoration visible 1
  519. rect -8 2 34 22
  520. ownerdraw CG_RED_FLAGSTATUS
  521. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
  522. }
  523.  
  524. itemDef {
  525. decoration visible 1
  526. rect 26 2 34 22
  527. ownerdraw CG_BLUE_FLAGSTATUS
  528. ownerdrawFlag CG_SHOW_IF_PLYR_IS_ON_BLUE
  529. }
  530. }
  531.  
  532. //*****CTF FLAG STATUS*****//
  533.  
  534. menuDef {
  535. name "ctfFlags"
  536. rect 580 378 60 60
  537. fullScreen MENU_FALSE
  538. visible MENU_TRUE
  539. ownerdrawflag CG_SHOW_CTF
  540.  
  541. //*****FLAG STATUS ICON*****//
  542.  
  543. itemDef {
  544. name "redflag"
  545. decoration
  546. rect -13 34 22 18
  547. visible 1
  548. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  549. ownerdraw CG_RED_FLAGSTATUS
  550. }
  551.  
  552. itemDef {
  553. name "blueflag"
  554. decoration
  555. rect 38 34 22 18
  556. visible 1
  557. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  558. ownerdraw CG_BLUE_FLAGSTATUS
  559. }
  560.  
  561. itemDef {
  562. name "redflag"
  563. decoration
  564. rect 38 34 22 18
  565. visible 1
  566. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  567. ownerdraw CG_RED_FLAGSTATUS
  568. }
  569.  
  570. itemDef {
  571. name "blueflag"
  572. decoration
  573. rect -13 34 22 18
  574. visible 1
  575. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  576. ownerdraw CG_BLUE_FLAGSTATUS
  577. }
  578. }
  579.  
  580. //*****PLAYER PICKUPS*****//
  581.  
  582. //*****POWERUP*****//
  583. //quad, bs, regen ...
  584.  
  585. menuDef {
  586. name "powerup"
  587. fullScreen MENU_FALSE
  588. visible MENU_TRUE
  589. rect 565 330 74 156
  590.  
  591. itemDef {
  592. name "powerupArea"
  593. decoration
  594. rect 0 0 35 35
  595. visible 1
  596. textscale 0.55
  597. textstyle 3
  598. ownerdraw CG_AREA_POWERUP
  599. special 0 // spacing
  600. align HUD_VERTICAL
  601. }
  602. }
  603.  
  604. //*****USEABLE PICKUP*****//
  605. //tele, injection thingy, suicide thingy etc.
  606.  
  607. menuDef {
  608. name "pickups"
  609. fullScreen MENU_FALSE
  610. visible MENU_TRUE
  611. rect 20 445 32 64
  612.  
  613. itemDef {
  614. name "playeritem"
  615. decoration
  616. rect 440 4 25 25
  617. visible 1
  618. ownerdraw CG_PLAYER_ITEM
  619. }
  620.  
  621. itemDef {
  622. name "CTFPOWERUP"
  623. decoration
  624. rect 475 4 25 25
  625. visible 1
  626. ownerdraw CG_CTF_POWERUP
  627. }
  628. }
  629.  
  630. //*****PLAYER HAS ENEMY FLAG ICON*****//
  631.  
  632. menuDef {
  633. name "playerHasFlag"
  634. fullScreen MENU_FALSE
  635. visible MENU_TRUE
  636. rect 400 340 48 48
  637.  
  638. itemDef {
  639. name "flag"
  640. decoration
  641. rect 70 96 35 35
  642. visible 1
  643. style 1
  644. ownerdraw CG_PLAYER_HASFLAG
  645. }
  646. }
  647.  
  648. //*****KILL/DEATH MESSAGES*****//
  649.  
  650. menuDef {
  651. name "obit area"
  652. fullScreen MENU_FALSE
  653. visible MENU_TRUE
  654. rect 2 425 65 12
  655.  
  656. itemDef {
  657. decoration
  658. name "hudObit"
  659. ownerdraw CG_PLAYER_OBIT
  660. rect 0 0 65 12
  661. visible 1
  662. textscale .25
  663. }
  664. }
  665.  
  666.  
  667. //*****CHAT AREA*****//
  668.  
  669. menuDef {
  670. name "chat area"
  671. fullScreen MENU_FALSE
  672. visible MENU_TRUE
  673. rect -4 40 32 256
  674.  
  675. itemdef {
  676. name "chatWindow"
  677. decoration
  678. ownerdraw CG_AREA_NEW_CHAT
  679. rect 5 300 600 100
  680. visible 1
  681. }
  682. }
  683.  
  684. //*****GAME TIME*****//
  685.  
  686. menuDef {
  687. name "TimerMenu"
  688. fullScreen MENU_FALSE
  689. visible MENU_TRUE
  690.  
  691. itemDef {
  692. name "timerfg"
  693. decoration
  694. rect 260 431 120 42
  695. visible 1
  696. backcolor 0 0.5 1 0.4
  697. style 1
  698. }
  699.  
  700. itemDef {
  701. name "TeamTimer"
  702. textalign 2
  703. style 0
  704. rect 266 467 50 12
  705. visible 1
  706. textstyle 6
  707. decoration
  708. forecolor 1 1 1 1
  709. textscale .9
  710. ownerdraw CG_LEVELTIMER
  711. }
  712.  
  713. itemDef {
  714. name "CARoundTimer"
  715. textalign 2
  716. style 0
  717. rect 258 45 50 12
  718. visible 1
  719. textstyle 3
  720. decoration
  721. forecolor 1 0 0 1
  722. textscale .3
  723. ownerdraw CG_ROUNDTIMER
  724. ownerdrawflag CG_SHOW_CLAN_ARENA
  725. }
  726. }
  727.  
  728.  
  729. //*****CUSTOM CROSSHAIR (1680x1050)*****//
  730.  
  731.  
  732. menuDef {
  733. fullScreen MENU_FALSE
  734. visible MENU_TRUE
  735. rect 320 240 32 32
  736.  
  737. itemDef {
  738. name "Vertical-Top"
  739. rect -0.75 -4.2 1.5 8.2
  740. decoration
  741. visible 1
  742. style 1
  743. backcolor 0 0 0 1
  744. cvarTest "cg_drawcrosshair"
  745. showCvar { "22" }
  746. }
  747.  
  748. itemDef {
  749. name "Horizontal-Left"
  750. rect -3.6 -1 7.1 2
  751. style 1
  752. decoration
  753. visible 1
  754. backcolor 0 0 0 1
  755. cvarTest "cg_drawcrosshair"
  756. showCvar { "22" }
  757. }
  758.  
  759. itemDef {
  760. name "Vertical-Top"
  761. rect -0.5 -3.7 1 7.4
  762. decoration
  763. visible 1
  764. style 1
  765. backcolor 1 1 1 1
  766. cvarTest "cg_drawcrosshair"
  767. showCvar { "22" }
  768. }
  769.  
  770. itemDef {
  771. name "Horizontal-Left"
  772. rect -3.2 -0.5 6.4 1
  773. style 1
  774. decoration
  775. visible 1
  776. backcolor 1 1 1 1
  777. cvarTest "cg_drawcrosshair"
  778. showCvar { "22" }
  779. }
  780. }
RAW Paste Data