Advertisement
Guest User

variableHUDv3 (QL BETA fix)

a guest
Oct 23rd, 2015
989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.69 KB | None | 0 0
  1. #include "ui/menudef.h"
  2.  
  3. //////////////////////////////////////////////////
  4. ///////// inspectre's HUD w/ Variables /// v3 ////
  5. //////////////////////////////////////////////////
  6.  
  7. // Thanks to ESR, QL Forums, visualhud.pk69.com, quakelivehud.blogspot.com, qlhud.net for information
  8. // refer to README.TXT for more information about this hud
  9. // use HUD_calculations.xlsx to easily determine new related values when changing sizes
  10.  
  11.  
  12. /* --- Variables ---*/
  13. // COPY + PASTE from spreadsheet
  14.  
  15. // TIMER
  16. #define TIMER_POS 320 40 // Timer location
  17. #define TIMER_SIZE 108 36 // Timer textbox size (change textscale)
  18. #define TIMER_TXT_SZ 1 // Timer text size
  19. #define TIMER_TXT_COL 1 1 1 1 // Timer text color
  20. #define TIMER_BG_POS -70 -37 // Timer Background position (relative to TIMER_POS)
  21. #define TIMER_BG_SIZE 140 38 // Timer Background size
  22. #define TIMER_BG_COL 0 0 0 0 // Timer background color
  23.  
  24. // SCORES
  25. #define SCORES_1ST_POS 600 436 // location of 1st place score
  26. #define SCORES_2ND_POS 600 456 // location of 2nd place score
  27. #define SCORES_SIZE 36 20 // Scorebox size (change textscale)
  28. #define SCORES_B_COL 0 0 1 0.8 // Background color for Blue team (team modes only)
  29. #define SCORES_R_COL 1 0 0 0.8 // Background color for Red team (team modes only)
  30. #define SCORES_ME_COL 0 0 0 0.8 // BG color for my score (non-team modes)
  31. #define SCORES_OPP_COL 0.4 0.4 0.4 0.8 // BG color for opp score (non-team modes)
  32. #define SC_BORDER1_POS 598.5 434.5 // 1st place border position
  33. #define SC_BORDER2_POS 598.5 454.5 // 2nd place border position
  34. #define SC_BORDER_SIZE 36 20
  35. #define SC_BORDER_SZ 1.5 // Score Border width
  36. #define SC_BORDER_COL 0.8 0.8 0.8 0.8 // Score Border Color
  37. #define SC_TXTBOX_POS 18 15.88 // Score textbox position (relative to SCORES_xxx_POS)
  38. #define SC_TXTBOX_SZ 0 0 // Score textbox size
  39. #define SC_TXT_COL 1 1 1 0.8 // Score text color (team modes only)
  40. #define SC_TXT_SIZE 0.3 // Score text size (all modes)
  41.  
  42. // CTF, CA, TDM Markers (next to scorebox)
  43. #define CTF_FLG_POS -24 0 // Flag status position (relative to SCORES_xxx_POS)
  44. #define CTF_FLG_SIZE 20 20 // Flag status size
  45. #define CA_ICON_POS -28.5 3 // Clan Arena Icon position (relative to SCORES_xxx_POS)
  46. #define CA_ICON_SIZE 24.5 14 // Clan Arena Icon size
  47. #define CA_TXT_POS -14.5 13.8892 // CA text location (relative to SCORES_xxx_POS)
  48. #define CA_TXT_SIZE 0 0 // CA text box size
  49. #define CA_COUNT_SZ 0.21 // CA text count size
  50. #define TDM_ICON_POS -20 0
  51. #define TDM_ICON_SIZE 20 20
  52.  
  53. // Health
  54. #define HP_POSITION 158 440 // Health indicator position
  55. #define HP_ICON_POS 0 0 // Health icon position (relative to HP_POS)
  56. #define HP_ICON_SIZE 0 0 // Health icon size
  57. #define HP_TXT_SZ 1 // Health text size
  58. #define HP_COL_RANGE1 -999 27 1 0 0 1 // Change text color based on hp value
  59. #define HP_COL_RANGE2 28 80 1 0.4 0.1 1
  60. #define HP_COL_RANGE3 81 100 1 0.8 0.2 1
  61. #define HP_COL_RANGE4 101 125 1 1 1 1
  62. #define HP_COL_RANGE5 126 150 0.65 0.98 1 1
  63. #define HP_COL_RANGE6 151 175 0.4 0.82 1 1
  64. #define HP_COL_RANGE7 176 999 0.15 0.66 1 1
  65.  
  66. // Armor
  67. #define ARM_POSITION 378 440 // Armor indicator position
  68. #define ARM_ICON_POS 0 0 // Armor icon position (relative to HP_POS)
  69. #define ARM_ICON_SIZE 0 0 // Armor icon size
  70. #define ARM_TXT_SZ 1 // Armor text size
  71. #define ARM_COL_RANGE1 -999 25 1 0 0 1 // Change text color based on armor value
  72. #define ARM_COL_RANGE2 26 80 1 0.8 0.2 1
  73. #define ARM_COL_RANGE3 81 100 1 0.8 0.2 1
  74. #define ARM_COL_RANGE4 101 125 1 1 1 1
  75. #define ARM_COL_RANGE5 126 150 0.65 0.98 1 1
  76. #define ARM_COL_RANGE6 151 175 0.4 0.82 1 1
  77. #define ARM_COL_RANGE7 176 999 0.15 0.66 1 1
  78.  
  79. // Ammo Indicator
  80. #define AMMO_POSITION 320 429 // Ammo indicator position
  81. #define AMMO_ICON_POS -12 0 // Ammo icon position (relative to AMMO_POSITION)
  82. #define AMMO_ICON_SIZE 24 24 // Ammo icon size
  83. #define AMMO_TXT_POS 0 25 // Ammo text position (relative to AMMO_POSITION)
  84. #define AMMO_TXT_SZ 0.5 // Ammo text size
  85. #define AMMO_COL_RANGE1 -999 5 1 0 0 1 // Change text color based on armor value
  86. #define AMMO_COL_RANGE2 6 100 1 1 1 1
  87. #define AMMO_COL_RANGE3 101 999 1 1 1 1
  88.  
  89. // Pickups, Powerups
  90. #define PU_QUAD_POS 566 214 // Powerup indicators starting position - secondary, tertiary, etc will stack vertically
  91. #define PU_QUAD_ICON_SZ 24 24 // Powerup icon size
  92. #define PU_QUAD_TXT_SZ 0.55 // Powerup countdown text size
  93. #define PU_CTF_FLG_POS 0 440 // Flag pickup icon position
  94. #define PU_CTF_FLG_SZ 36 36 // Flag pickup icon size
  95. #define PU_CTF_RUNE_POS 610 254
  96. #define PU_CTF_RUNE_SZ 24 24
  97. #define PU_CTF_USE_POS 122 448 // Medkit position
  98. #define PU_CTF_USE_SZ 24 24 // Medkit icon size
  99. #define PU_KEY_POS 8 448 // Key position (same place as PU_CTF_FLG_POS)
  100. #define PU_KEY_SIZE 24 24 // Key icon size
  101.  
  102. // Obits
  103. #define OBIT_POS 0 12 // Obit position
  104. #define OBIT_BOX_SIZE 65 12 // Obit box size
  105. #define OBIT_TXT_SIZE 0.22 // Obit text size
  106.  
  107. // Widescreen Scaling (0=stretched, 1=left, 2=center, 3=right)
  108. #define WS_SCOREBOX 3
  109. #define WS_HEALTH 2
  110. #define WS_ARMOR 2
  111. #define WS_AMMO 2
  112. #define WS_TIMER 2
  113. #define WS_PU_QUAD 3
  114. #define WS_PU_FLAG 1
  115. #define WS_PU_RUNE 3
  116. #define WS_PU_USEABLE 2 // Medkit
  117. #define WS_PU_KEY 1
  118. #define WS_OBIT 1
  119.  
  120.  
  121. /* --- CHAT WINDOW --- */
  122. menuDef {
  123. name "chatArea"
  124. fullScreen MENU_FALSE
  125. visible MENU_TRUE
  126. rect 0 269 640 160
  127. widescreen 1
  128.  
  129. itemDef {
  130. name "boxBackground"
  131. rect 0 0 640 160
  132. visible 1
  133. style WINDOW_STYLE_FILLED
  134. ownerdrawflag CG_SHOW_IF_CHAT_VISIBLE
  135. backcolor 0 0 0 0.75
  136. background "ui/assets/hud/chatm.tga"
  137. widescreen 0
  138. }
  139.  
  140. itemdef {
  141. name chatWindow
  142. ownerdraw CG_AREA_NEW_CHAT
  143. rect 3 1 634 154
  144. visible 1
  145. decoration
  146. }
  147. }
  148.  
  149. /* --- Timer --- */
  150.  
  151. menuDef {
  152. name "timer"
  153. fullScreen MENU_FALSE
  154. visible MENU_TRUE
  155. rect TIMER_POS TIMER_SIZE
  156. widescreen WS_TIMER
  157.  
  158. itemDef {
  159. name "timerBackground"
  160. rect TIMER_BG_POS TIMER_BG_SIZE
  161. visible 1
  162. decoration
  163. style WINDOW_STYLE_FILLED
  164. backcolor TIMER_BG_COL
  165. }
  166.  
  167. itemDef {
  168. name "timerIcon"
  169. rect 0 0 0 0
  170. visible 1
  171. decoration
  172. style 1
  173. backcolor 1 1 1 1
  174. background "icons/icon_time.tga"
  175. }
  176.  
  177. itemDef {
  178. name "timerCounter"
  179. ownerdraw CG_LEVELTIMER
  180. rect 0 0 TIMER_SIZE
  181. visible 1
  182. forecolor TIMER_TXT_COL
  183. textscale TIMER_TXT_SZ
  184. textalign ITEM_ALIGN_RIGHT
  185. textstyle 3
  186. align 1
  187. decoration
  188. }
  189. }
  190.  
  191. /* --- SCORE BOX --- */
  192.  
  193.  
  194. /* --- Team Game ScoreBox --- */
  195.  
  196. // RED TEAM SCORE BAR TOP
  197. menuDef {
  198. name "redTeamScores"
  199. fullScreen MENU_FALSE
  200. visible MENU_TRUE
  201. rect SCORES_1ST_POS SCORES_SIZE
  202. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  203. widescreen WS_SCOREBOX
  204. itemDef {
  205. name "redScoreBox"
  206. rect 0 0 SCORES_SIZE
  207. visible 1
  208. decoration
  209. style WINDOW_STYLE_FILLED
  210. backcolor SCORES_R_COL
  211. ownerdrawflag CG_SHOW_ANYTEAMGAME
  212. }
  213.  
  214.  
  215. // red team score
  216. itemdef {
  217. name "redTeamScore"
  218. ownerdraw CG_1STPLACE
  219. rect SC_TXTBOX_POS SC_TXTBOX_SZ
  220. visible 1
  221. forecolor SC_TXT_COL
  222. textscale SC_TXT_SIZE
  223. align 1
  224. textstyle 2
  225. decoration
  226. ownerdrawflag CG_SHOW_ANYTEAMGAME
  227. }
  228.  
  229. //TDM marker
  230. itemDef {
  231. name "clanArena"
  232. rect TDM_ICON_POS TDM_ICON_SIZE
  233. visible 1
  234. backcolor 1 1 1 1
  235. decoration
  236. style 1
  237. cvartest g_gametype
  238. showcvar { "3" }
  239. background "ui/assets/score/ca_arrow_red.tga"
  240. }
  241.  
  242. // clan arena count
  243. itemDef {
  244. name "clanArena"
  245. rect CA_ICON_POS CA_ICON_SIZE
  246. visible 1
  247. backcolor 1 1 1 1
  248. decoration
  249. style 1
  250. cvartest g_gametype
  251. showcvar { "4" ; "9" }
  252. background "ui/assets/score/ca_score_red.tga"
  253. }
  254. itemdef {
  255. name "redClanPlayers"
  256. cvartest g_gametype
  257. showcvar { "4" ; "9" }
  258. ownerdraw CG_RED_CLAN_PLYRS
  259. rect CA_TXT_POS CA_TXT_SIZE
  260. visible 1
  261. textscale CA_COUNT_SZ
  262. forecolor 1 1 1 0.65
  263. decoration
  264. }
  265.  
  266. // ctf icons
  267. itemDef {
  268. name "f"
  269. rect CTF_FLG_POS CTF_FLG_SIZE
  270. visible 1
  271. bordercolor 1 1 1 1
  272. decoration
  273. style 3
  274. ownerdrawflag CG_SHOW_HARVESTER
  275. background "icons/skull_red.tga"
  276. }
  277. itemDef {
  278. name "redflag"
  279. rect CTF_FLG_POS CTF_FLG_SIZE
  280. visible 1
  281. decoration
  282. ownerdrawflag CG_SHOW_CTF
  283. ownerdraw CG_RED_FLAGSTATUS
  284. }
  285. itemDef {
  286. name "oneflagstatus"
  287. rect CTF_FLG_POS CTF_FLG_SIZE
  288. visible 1
  289. decoration
  290. ownerdraw CG_ONEFLAG_STATUS
  291. }
  292. }
  293.  
  294. // RED TEAM SCORE BAR BOTTOM
  295. menuDef {
  296. name "redTeamScores"
  297. fullScreen MENU_FALSE
  298. visible MENU_TRUE
  299. rect SCORES_2ND_POS SCORES_SIZE
  300. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  301. widescreen WS_SCOREBOX
  302. itemDef {
  303. name "redScoreBox"
  304. rect 0 0 SCORES_SIZE
  305. visible 1
  306. decoration
  307. style WINDOW_STYLE_FILLED
  308. backcolor SCORES_R_COL
  309. ownerdrawflag CG_SHOW_ANYTEAMGAME
  310. }
  311.  
  312. // red team score
  313. itemdef {
  314. name "redTeamScore"
  315. ownerdraw CG_1STPLACE
  316. rect SC_TXTBOX_POS SC_TXTBOX_SZ
  317. visible 1
  318. forecolor SC_TXT_COL
  319. textscale SC_TXT_SIZE
  320. align 1
  321. textstyle 2
  322. decoration
  323. ownerdrawflag CG_SHOW_ANYTEAMGAME
  324. }
  325.  
  326. //TDM marker
  327. itemDef {
  328. name "clanArena"
  329. rect TDM_ICON_POS TDM_ICON_SIZE
  330. visible 1
  331. backcolor 1 1 1 1
  332. decoration
  333. style 1
  334. cvartest g_gametype
  335. showcvar { "3" }
  336. background "ui/assets/score/ca_arrow_red.tga"
  337. }
  338.  
  339. // clan arena count
  340. itemDef {
  341. name "clanArena"
  342. rect CA_ICON_POS CA_ICON_SIZE
  343. visible 1
  344. backcolor 1 1 1 1
  345. decoration
  346. style 1
  347. cvartest g_gametype
  348. showcvar { "4" ; "9" }
  349. background "ui/assets/score/ca_score_red.tga"
  350. }
  351. itemdef {
  352. name "redClanPlayers"
  353. cvartest g_gametype
  354. showcvar { "4" ; "9" }
  355. ownerdraw CG_RED_CLAN_PLYRS
  356. rect CA_TXT_POS CA_TXT_SIZE
  357. visible 1
  358. textscale CA_COUNT_SZ
  359. forecolor 1 1 1 0.65
  360. decoration
  361. }
  362.  
  363. // ctf icons
  364. itemDef {
  365. name "f"
  366. rect CTF_FLG_POS CTF_FLG_SIZE
  367. visible 1
  368. bordercolor 1 1 1 1
  369. decoration
  370. style 3
  371. ownerdrawflag CG_SHOW_HARVESTER
  372. background "icons/skull_red.tga"
  373. }
  374. itemDef {
  375. name "redflag"
  376. rect CTF_FLG_POS CTF_FLG_SIZE
  377. visible 1
  378. decoration
  379. ownerdrawflag CG_SHOW_CTF
  380. ownerdraw CG_RED_FLAGSTATUS
  381. }
  382. itemDef {
  383. name "oneflagstatus"
  384. rect CTF_FLG_POS CTF_FLG_SIZE
  385. visible 1
  386. decoration
  387. ownerdraw CG_ONEFLAG_STATUS
  388. }
  389. }
  390.  
  391. // BLUE TEAM SCORE BAR TOP
  392. menuDef {
  393. name "blueTeamScores"
  394. fullScreen MENU_FALSE
  395. visible MENU_TRUE
  396. rect SCORES_1ST_POS SCORES_SIZE
  397. ownerdrawflag CG_SHOW_IF_BLUE_IS_FIRST_PLACE
  398. widescreen WS_SCOREBOX
  399. itemDef {
  400. name "blueScoreBox"
  401. rect 0 0 SCORES_SIZE
  402. visible 1
  403. decoration
  404. style WINDOW_STYLE_FILLED
  405. backcolor SCORES_B_COL
  406. ownerdrawflag CG_SHOW_ANYTEAMGAME
  407. }
  408.  
  409. // blue team score
  410. itemdef {
  411. name "blueTeamScore"
  412. ownerdraw CG_2NDPLACE
  413. rect SC_TXTBOX_POS SC_TXTBOX_SZ
  414. visible 1
  415. forecolor SC_TXT_COL
  416. textscale SC_TXT_SIZE
  417. align 1
  418. textstyle 2
  419. decoration
  420. ownerdrawflag CG_SHOW_ANYTEAMGAME
  421. }
  422.  
  423. //TDM marker
  424. itemDef {
  425. name "clanArena"
  426. rect TDM_ICON_POS TDM_ICON_SIZE
  427. visible 1
  428. backcolor 1 1 1 1
  429. decoration
  430. style 1
  431. cvartest g_gametype
  432. showcvar { "3" }
  433. background "ui/assets/score/ca_arrow_blue.tga"
  434. }
  435. //clan arena count
  436. itemDef {
  437. name "clanArena"
  438. rect CA_ICON_POS CA_ICON_SIZE
  439. visible 1
  440. backcolor 1 1 1 1
  441. decoration
  442. style 1
  443. cvartest g_gametype
  444. showcvar { "4" ; "9" }
  445. background "ui/assets/score/ca_score_blu.tga"
  446. }
  447. itemdef {
  448. name "blueClanPlayers"
  449. cvartest g_gametype
  450. showcvar { "4" ; "9" }
  451. ownerdraw CG_BLUE_CLAN_PLYRS
  452. rect CA_TXT_POS CA_TXT_SIZE
  453. visible 1
  454. textscale CA_COUNT_SZ
  455. forecolor 1 1 1 0.65
  456. decoration
  457. }
  458.  
  459. // ctf icons
  460. itemDef {
  461. name "f"
  462. rect CTF_FLG_POS CTF_FLG_SIZE
  463. visible 1
  464. bordercolor 1 1 1 .75
  465. decoration
  466. style 3
  467. ownerdrawflag CG_SHOW_HARVESTER
  468. background "icons/skull_blue.tga"
  469. }
  470. itemDef {
  471. name "blueflag"
  472. rect CTF_FLG_POS CTF_FLG_SIZE
  473. visible 1
  474. decoration
  475. ownerdrawflag CG_SHOW_CTF
  476. ownerdraw CG_BLUE_FLAGSTATUS
  477. }
  478. itemDef {
  479. name "oneflagstatus"
  480. rect CTF_FLG_POS CTF_FLG_SIZE
  481. visible 1
  482. decoration
  483. ownerdraw CG_ONEFLAG_STATUS
  484. }
  485.  
  486. }
  487.  
  488. // BLUE TEAM SCORE BAR BOTTOM
  489. menuDef {
  490. name "blueTeamScores"
  491. fullScreen MENU_FALSE
  492. visible MENU_TRUE
  493. rect SCORES_2ND_POS SCORES_SIZE
  494. ownerdrawflag CG_SHOW_IF_RED_IS_FIRST_PLACE
  495. widescreen WS_SCOREBOX
  496. itemDef {
  497. name "blueScoreBox"
  498. rect 0 0 SCORES_SIZE
  499. visible 1
  500. decoration
  501. style WINDOW_STYLE_FILLED
  502. backcolor SCORES_B_COL
  503. ownerdrawflag CG_SHOW_ANYTEAMGAME
  504. }
  505.  
  506. // blue team score
  507. itemdef {
  508. name "blueTeamScore"
  509. ownerdraw CG_2NDPLACE
  510. rect SC_TXTBOX_POS SC_TXTBOX_SZ
  511. visible 1
  512. forecolor SC_TXT_COL
  513. textscale SC_TXT_SIZE
  514. align 1
  515. textstyle 2
  516. decoration
  517. ownerdrawflag CG_SHOW_ANYTEAMGAME
  518.  
  519. }
  520.  
  521. //TDM marker
  522. itemDef {
  523. name "clanArena"
  524. rect TDM_ICON_POS TDM_ICON_SIZE
  525. visible 1
  526. backcolor 1 1 1 1
  527. decoration
  528. style 1
  529. cvartest g_gametype
  530. showcvar { "3" }
  531. background "ui/assets/score/ca_arrow_blue.tga"
  532. }
  533. //clan arena count
  534. itemDef {
  535. name "clanArena"
  536. rect CA_ICON_POS CA_ICON_SIZE
  537. visible 1
  538. backcolor 1 1 1 1
  539. decoration
  540. style 1
  541. cvartest g_gametype
  542. showcvar { "4" ; "9" }
  543. background "ui/assets/score/ca_score_blu.tga"
  544. }
  545. itemdef {
  546. name "blueClanPlayers"
  547. cvartest g_gametype
  548. showcvar { "4" ; "9" }
  549. ownerdraw CG_BLUE_CLAN_PLYRS
  550. rect CA_TXT_POS CA_TXT_SIZE
  551. visible 1
  552. textscale CA_COUNT_SZ
  553. forecolor 1 1 1 0.65
  554. decoration
  555. }
  556.  
  557. // ctf icons
  558. itemDef {
  559. name "f"
  560. rect CTF_FLG_POS CTF_FLG_SIZE
  561. visible 1
  562. bordercolor 1 1 1 .75
  563. decoration
  564. style 3
  565. ownerdrawflag CG_SHOW_HARVESTER
  566. background "icons/skull_blue.tga"
  567. }
  568. itemDef {
  569. name "blueflag"
  570. rect CTF_FLG_POS CTF_FLG_SIZE
  571. visible 1
  572. decoration
  573. ownerdrawflag CG_SHOW_CTF
  574. ownerdraw CG_BLUE_FLAGSTATUS
  575. }
  576. itemDef {
  577. name "oneflagstatus"
  578. rect CTF_FLG_POS CTF_FLG_SIZE
  579. visible 1
  580. decoration
  581. ownerdraw CG_ONEFLAG_STATUS
  582. }
  583.  
  584. }
  585.  
  586. /* --- Duel/FFA ScoreBox --- */
  587.  
  588. // SCORE - FIRST PLACE
  589. menuDef {
  590. name "1STPlace"
  591. fullScreen MENU_FALSE
  592. visible MENU_TRUE
  593. rect SCORES_1ST_POS SCORES_SIZE
  594. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  595. widescreen WS_SCOREBOX
  596.  
  597. itemDef {
  598. name "1STPlaceME"
  599. rect 0 0 SCORES_SIZE
  600. visible 1
  601. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  602. decoration
  603. style WINDOW_STYLE_FILLED
  604. backcolor SCORES_ME_COL
  605. }
  606.  
  607. itemDef {
  608. name "1STPlaceOPP"
  609. rect 0 0 SCORES_SIZE
  610. visible 1
  611. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  612. decoration
  613. style WINDOW_STYLE_FILLED
  614. backcolor SCORES_OPP_COL
  615. }
  616.  
  617. itemDef {
  618. name "1st place"
  619. ownerdraw CG_1STPLACE
  620. rect SC_TXTBOX_POS SC_TXTBOX_SZ
  621. visible 1
  622. textscale SC_TXT_SIZE
  623. align 1
  624. decoration
  625. }
  626. }
  627.  
  628. // SCORE - SECOND PLACE
  629. menuDef {
  630. name "Trailing"
  631. fullScreen MENU_FALSE
  632. visible MENU_TRUE
  633. rect SCORES_2ND_POS SCORES_SIZE
  634. ownerdrawflag CG_SHOW_ANYNONTEAMGAME
  635. widescreen WS_SCOREBOX
  636.  
  637. itemDef {
  638. name "2ndPlaceME"
  639. rect 0 0 SCORES_SIZE
  640. visible 1
  641. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  642. decoration
  643. style WINDOW_STYLE_FILLED
  644. backcolor SCORES_ME_COL
  645. }
  646.  
  647. itemDef {
  648. name "2ndPlaceOPP"
  649. rect 0 0 SCORES_SIZE
  650. visible 1
  651. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  652. decoration
  653. style WINDOW_STYLE_FILLED
  654. backcolor SCORES_OPP_COL
  655. }
  656.  
  657. itemDef {
  658. name "2nd place"
  659. ownerdraw CG_2NDPLACE
  660. rect SC_TXTBOX_POS SC_TXTBOX_SZ
  661. visible 1
  662. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  663. textscale SC_TXT_SIZE
  664. align 1
  665. decoration
  666. }
  667.  
  668. itemDef {
  669. name "2nd place"
  670. ownerdraw CG_PLAYER_SCORE
  671. rect SC_TXTBOX_POS SC_TXTBOX_SZ
  672. visible 1
  673. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  674. textscale SC_TXT_SIZE
  675. align 1
  676. decoration
  677. }
  678. }
  679.  
  680. // Score - Border
  681.  
  682. menuDef {
  683. name "Score Border"
  684. fullScreen MENU_FALSE
  685. visible MENU_TRUE
  686. rect 0 0 0 0
  687. widescreen WS_SCOREBOX
  688.  
  689. itemDef {
  690. name "Border 1st"
  691. visible 1
  692. rect SC_BORDER1_POS SC_BORDER_SIZE
  693. border WINDOW_BORDER_FULL
  694. bordersize SC_BORDER_SZ
  695. bordercolor SC_BORDER_COL
  696. ownerdrawflag CG_SHOW_IF_PLYR_IS_FIRST_PLACE
  697. }
  698.  
  699. itemDef {
  700. name "Border 2nd"
  701. visible 1
  702. rect SC_BORDER2_POS SC_BORDER_SIZE
  703. border WINDOW_BORDER_FULL
  704. bordersize SC_BORDER_SZ
  705. bordercolor SC_BORDER_COL
  706. ownerdrawflag CG_SHOW_IF_PLYR_IS_NOT_FIRST_PLACE
  707. }
  708. }
  709.  
  710. /* --- Health indicator --- */
  711.  
  712. menuDef {
  713. name "healthIndicator"
  714. fullScreen MENU_FALSE
  715. visible MENU_TRUE
  716. rect HP_POSITION 104 36
  717. ownerdrawflag 0
  718. widescreen WS_HEALTH
  719.  
  720. itemDef {
  721. name "healthIndicatorIcon"
  722. rect HP_ICON_POS HP_ICON_SIZE
  723. visible 1
  724. decoration
  725. style 1
  726. backcolor 1 1 1 1
  727. background "ui/assets/hud/health.tga"
  728. ownerdraw CG_TEAM_COLORIZED
  729. }
  730.  
  731. itemDef {
  732. name "healthIndicatorCounter"
  733. rect 52 -12 104 36
  734. visible 1
  735. textalign 0
  736. decoration
  737. textstyle 3
  738. align 1
  739. forecolor 1 1 1 1
  740. textscale HP_TXT_SZ
  741. ownerdraw CG_PLAYER_HEALTH
  742. addColorRange HP_COL_RANGE1
  743. addColorRange HP_COL_RANGE2
  744. addColorRange HP_COL_RANGE3
  745. addColorRange HP_COL_RANGE4
  746. addColorRange HP_COL_RANGE5
  747. addColorRange HP_COL_RANGE6
  748. addColorRange HP_COL_RANGE7
  749. }
  750.  
  751. itemDef {
  752. name "HPBackground"
  753. rect 0 0 104 36
  754. visible 1
  755. decoration
  756. style WINDOW_STYLE_FILLED
  757. backcolor 0 0 0 0
  758. }
  759. }
  760.  
  761. /* --- graphical obits --- */
  762. menuDef {
  763. name "obits"
  764. fullScreen MENU_FALSE
  765. visible MENU_TRUE
  766. rect 0 0 68 15
  767. widescreen WS_OBIT
  768.  
  769. itemDef {
  770. name "obituaries"
  771. rect OBIT_POS OBIT_BOX_SIZE
  772. visible 1
  773. textscale OBIT_TXT_SIZE
  774. ownerdraw CG_PLAYER_OBIT
  775. }
  776. }
  777.  
  778.  
  779.  
  780. /* --- Armor indicator --- */
  781. menuDef {
  782. name "armorIndicator"
  783. fullScreen MENU_FALSE
  784. visible MENU_TRUE
  785. rect ARM_POSITION 104 36
  786. ownerdrawflag 0
  787. widescreen WS_ARMOR
  788. itemDef {
  789. name "armorIndicatorIcon"
  790. rect ARM_ICON_POS ARM_ICON_SIZE
  791. visible 1
  792. decoration
  793. style 1
  794. backcolor 1 1 1 1
  795. background "ui/assets/hud/armor.tga"
  796. ownerdraw CG_TEAM_COLORIZED
  797. }
  798.  
  799. itemDef {
  800. name "armorIndicatorCounter"
  801. rect 52 -12 104 36
  802. visible 1
  803. textalign 0
  804. decoration
  805. textstyle 3
  806. align 1
  807. forecolor 1 1 1 1
  808. textscale ARM_TXT_SZ
  809. ownerdraw CG_PLAYER_ARMOR_VALUE
  810. addColorRange ARM_COL_RANGE1
  811. addColorRange ARM_COL_RANGE2
  812. addColorRange ARM_COL_RANGE3
  813. addColorRange ARM_COL_RANGE4
  814. addColorRange ARM_COL_RANGE5
  815. addColorRange ARM_COL_RANGE6
  816. addColorRange ARM_COL_RANGE7
  817. }
  818.  
  819. itemDef {
  820. name "ARMBackground"
  821. rect 0 0 104 36
  822. visible 1
  823. decoration
  824. style WINDOW_STYLE_FILLED
  825. backcolor 0 0 0 0
  826. }
  827. }
  828.  
  829. /* --- Ammo indicator --- */
  830. menuDef {
  831. name "ammoIndicator"
  832. fullScreen MENU_FALSE
  833. visible MENU_TRUE
  834. rect AMMO_POSITION 52 46 // area
  835. ownerdrawflag 0
  836. widescreen WS_AMMO
  837. itemDef {
  838. name "ammoIndicatorIcon"
  839. rect AMMO_ICON_POS AMMO_ICON_SIZE
  840. visible 1
  841. decoration
  842. ownerdraw CG_PLAYER_AMMO_ICON
  843. }
  844.  
  845. itemDef {
  846. name "ammoIndicatorCounter"
  847. rect AMMO_TXT_POS 52 18
  848. visible 1
  849. textalign 0
  850. decoration
  851. textstyle 3
  852. align 1
  853. forecolor 1 1 1 1
  854. textscale AMMO_TXT_SZ
  855. ownerdraw CG_PLAYER_AMMO_VALUE
  856. addColorRange AMMO_COL_RANGE1
  857. addColorRange AMMO_COL_RANGE2
  858. addColorRange AMMO_COL_RANGE3
  859.  
  860. }
  861. }
  862.  
  863. /* --- Flag indicator --- */
  864.  
  865. //red player has blue flag
  866. menuDef {
  867. name "flagIndicator"
  868. fullScreen MENU_FALSE
  869. visible MENU_TRUE
  870. rect PU_CTF_FLG_POS 32 32
  871. ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_RED
  872. widescreen WS_PU_FLAG
  873.  
  874.  
  875. itemDef {
  876. name "flag"
  877. rect 0 0 PU_CTF_FLG_SZ
  878. visible 1
  879. decoration
  880. style WINDOW_STYLE_FILLED
  881. ownerdraw CG_PLAYER_HASFLAG
  882. }
  883. }
  884.  
  885. //blue player has red flag
  886. menuDef {
  887. name "flagIndicator"
  888. fullScreen MENU_FALSE
  889. visible MENU_TRUE
  890. rect PU_CTF_FLG_POS 32 32
  891. ownerdrawflag CG_SHOW_IF_PLYR_IS_ON_BLUE
  892. widescreen WS_PU_FLAG
  893.  
  894.  
  895. itemDef {
  896. name "flag"
  897. rect 0 0 PU_CTF_FLG_SZ
  898. visible 1
  899. decoration
  900. style WINDOW_STYLE_FILLED
  901. ownerdraw CG_PLAYER_HASFLAG
  902. }
  903. }
  904.  
  905. /* --- powerup indicator --- */
  906. menuDef {
  907. name "powerupIndicator"
  908. fullScreen MENU_FALSE
  909. visible MENU_TRUE
  910. rect PU_QUAD_POS 50 80
  911. widescreen WS_PU_QUAD
  912.  
  913. itemDef {
  914. name "powerupIndicatorArea"
  915. rect 0 0 PU_QUAD_ICON_SZ
  916. visible 1
  917. decoration
  918. textscale PU_QUAD_TXT_SZ // Obsolete?
  919. ownerdraw CG_AREA_POWERUP
  920. special 4
  921. align HUD_VERTICAL
  922. }
  923. }
  924.  
  925. /* --- CTF Powerup indicator --- */
  926. menuDef {
  927. name "CTFPowerupIndicator"
  928. fullScreen MENU_FALSE
  929. visible MENU_TRUE
  930. rect PU_CTF_RUNE_POS PU_CTF_RUNE_SZ
  931. widescreen WS_PU_RUNE
  932.  
  933. itemDef {
  934. name "CTFPOWERUP"
  935. rect 0 0 PU_CTF_RUNE_SZ
  936. visible 1
  937. decoration
  938. ownerdraw CG_CTF_POWERUP
  939. }
  940. }
  941.  
  942. /* --- Usable player item --- */
  943. menuDef {
  944. name "playerItem"
  945. fullScreen MENU_FALSE
  946. visible MENU_TRUE
  947. rect PU_CTF_USE_POS PU_CTF_USE_SZ
  948. widescreen WS_PU_USEABLE
  949.  
  950. itemDef {
  951. name "playerItemIcon"
  952. rect 0 0 PU_CTF_USE_SZ
  953. visible 1
  954. decoration
  955. ownerdraw CG_PLAYER_ITEM
  956. }
  957. }
  958.  
  959. /* --- Player Item Keys --- */
  960. // same location as Flag indicator ATM
  961.  
  962. menuDef {
  963. name "playerItemKeys"
  964. fullScreen MENU_FALSE
  965. visible MENU_TRUE
  966. rect PU_KEY_POS PU_KEY_SIZE
  967. widescreen WS_PU_KEY
  968.  
  969. itemDef {
  970. name "playerItemKeysIcon"
  971. rect 0 0 PU_KEY_SIZE
  972. visible 1
  973. decoration
  974. ownerdraw CG_PLAYER_HASKEY
  975. }
  976. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement