siege_team.menu 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. //------------------------------------------------------------------------------------------------
  2. // SIEGE_TEAM - player chooses team and then from here they choose base class.
  3. //
  4. // ui_team 1 = RED
  5. // ui_team 2 = BLUE
  6. // ui_team 3 = SPECTATOR
  7. //
  8. //------------------------------------------------------------------------------------------------
  9. {
  10. menuDef
  11. {
  12. name "ingame_siegeteam"
  13. visible 0
  14. fullscreen 0
  15. outOfBoundsClick // this closes the window if it gets a click out of the rectangle
  16. rect 95 34 460 435
  17. focusColor 1 1 1 1 // Focus color for text and items
  18. style 1
  19. border 1
  20. descX 320
  21. descY 440
  22. descScale 0.7
  23. descColor .79 .64 .22 .7 // Focus color for text and items
  24. descAlignment ITEM_ALIGN_CENTER
  25. onOpen
  26. {
  27. uiScript update ui_GetName
  28. uiScript updateForceStatus
  29. hide nextbutton
  30. hide glow
  31. setitemcolor team1_button forecolor .670 .670 .929 1
  32. setitemcolor team2_button forecolor .670 .670 .929 1
  33. }
  34. onClose
  35. {
  36. // uiScript update ui_SetName
  37. // uiScript updateForceStatus
  38. }
  39. // Overall window backdrop
  40. itemDef
  41. {
  42. name background_pic
  43. group none
  44. style WINDOW_STYLE_SHADER
  45. rect 0 0 460 435
  46. background "gfx/menus/menu_box_ingame"
  47. forecolor 1 1 1 1
  48. visible 1
  49. decoration
  50. }
  51. //----------------------------------------
  52. //
  53. // TITLE BAR
  54. //
  55. //----------------------------------------
  56. itemDef
  57. {
  58. name siegeclassconfigtitle
  59. style WINDOW_STYLE_SHADER
  60. background "gfx/menus/menu_blendbox"
  61. text "TEAM CHOICE"
  62. rect 20 5 420 28
  63. textalign ITEM_ALIGN_CENTER
  64. textalignx 210
  65. textaligny 2
  66. outlinecolor 1 .5 .5 .5
  67. backcolor 0 0 0 0
  68. font 3
  69. textscale 0.9
  70. forecolor 1 1 1 1
  71. border 0
  72. bordercolor 0 0 0 0
  73. visible 1
  74. }
  75. //----------------------------------------
  76. //
  77. // TEAM SYMBOLS
  78. //
  79. //----------------------------------------
  80. itemDef
  81. {
  82. name team1_impsymbol
  83. group team1_symbol
  84. style WINDOW_STYLE_SHADER
  85. background "gfx/2d/mp_imp_symbol"
  86. cvarTest cg_siegeTeam1Name
  87. showCVar { "Imperial" }
  88. rect 102 87 256 256
  89. forecolor 1 1 1 .3
  90. visible 1
  91. decoration
  92. }
  93. itemDef
  94. {
  95. name team1_rebelsymbol
  96. group team1_symbol
  97. style WINDOW_STYLE_SHADER
  98. background "gfx/2d/mp_rebel_symbol"
  99. cvarTest cg_siegeTeam1Name
  100. showCVar { "Rebel" }
  101. rect 102 87 256 256
  102. forecolor 1 1 1 .3
  103. visible 1
  104. decoration
  105. }
  106. itemDef
  107. {
  108. name team2_impsymbol
  109. group team2_symbol
  110. style WINDOW_STYLE_SHADER
  111. background "gfx/2d/mp_imp_symbol"
  112. cvarTest cg_siegeTeam2Name
  113. showCVar { "Imperial" }
  114. rect 102 87 256 256
  115. forecolor 1 1 1 .3
  116. visible 0
  117. decoration
  118. }
  119. itemDef
  120. {
  121. name team2_rebelsymbol
  122. group team2_symbol
  123. style WINDOW_STYLE_SHADER
  124. background "gfx/2d/mp_rebel_symbol"
  125. cvarTest cg_siegeTeam2Name
  126. showCVar { "Rebel" }
  127. rect 102 87 256 256
  128. forecolor 1 1 1 .3
  129. visible 0
  130. decoration
  131. }
  132. //----------------------------------------
  133. //
  134. // NAME ENTRY FIELD
  135. //
  136. //----------------------------------------
  137. itemDef
  138. {
  139. name namefield
  140. type ITEM_TYPE_EDITFIELD
  141. style 0
  142. text @MENUS_NAME
  143. cvar ui_Name
  144. maxchars 26
  145. rect 80 80 300 20
  146. textalign ITEM_ALIGN_LEFT
  147. textalignx 0
  148. textaligny -4
  149. font 0
  150. textscale 1
  151. forecolor .670 .670 .929 1
  152. outlinecolor 1 .5 .5 .5
  153. backcolor 0 0 0 0
  154. border 0
  155. bordercolor 0 0 0 0
  156. descText @MENUS_ENTER_YOUR_NAME_HERE
  157. visible 1
  158. mouseEnter
  159. {
  160. show namefield_glow
  161. }
  162. mouseExit
  163. {
  164. hide namefield_glow
  165. }
  166. }
  167. // The high light
  168. itemDef
  169. {
  170. name namefield_glow
  171. group glow
  172. style WINDOW_STYLE_SHADER
  173. rect 10 80 400 20
  174. background "gfx/menus/menu_blendbox"
  175. forecolor 1 1 1 1
  176. visible 0
  177. decoration
  178. }
  179. //----------------------------------------
  180. // TEAM1 BUTTON
  181. //----------------------------------------
  182. itemDef
  183. {
  184. name team1_button
  185. type ITEM_TYPE_BUTTON
  186. cvar cg_siegeTeam1Name
  187. rect 165 150 130 16
  188. textalign ITEM_ALIGN_CENTER
  189. textalignx 65
  190. textaligny -4
  191. outlinecolor 1 .5 .5 .5
  192. backcolor 0 0 0 0
  193. font 2
  194. textscale 0.9
  195. forecolor .670 .670 .929 1
  196. border 0
  197. bordercolor 0 0 0 0
  198. descText "Join this team."
  199. visible 1
  200. mouseEnter
  201. {
  202. show team1_glow
  203. }
  204. mouseExit
  205. {
  206. hide team1_glow
  207. }
  208. action
  209. {
  210. play "sound/interface/button1.wav"
  211. hide team2_symbol
  212. show team1_symbol
  213. exec "cmd team r"
  214. setcvar ui_team 1
  215. uiscript updatesiegeclasscnt 1
  216. uiscript updatesiegecvars
  217. // show nextbutton
  218. // setitemcolor team1_button forecolor 1 1 .807 1
  219. // setitemcolor team2_button forecolor .670 .670 .929 1
  220. uiScript setsiegeclass
  221. close all
  222. open ingame_siegeclass
  223. }
  224. }
  225. // The high light
  226. itemDef
  227. {
  228. name team1_glow
  229. group glow
  230. style WINDOW_STYLE_SHADER
  231. rect 165 145 130 26
  232. background "gfx/menus/menu_blendbox"
  233. forecolor 1 1 1 1
  234. visible 0
  235. decoration
  236. }
  237. //----------------------------------------
  238. // TEAM2 BUTTON
  239. //----------------------------------------
  240. itemDef
  241. {
  242. name team2_button
  243. type ITEM_TYPE_BUTTON
  244. cvar cg_siegeTeam2Name
  245. rect 165 200 130 16
  246. textalign ITEM_ALIGN_CENTER
  247. textalignx 65
  248. textaligny -4
  249. outlinecolor 1 .5 .5 .5
  250. backcolor 0 0 0 0
  251. font 2
  252. textscale 0.9
  253. forecolor .670 .670 .929 1
  254. border 0
  255. bordercolor 0 0 0 0
  256. descText "Join this team."
  257. visible 1
  258. action
  259. {
  260. play "sound/interface/button1.wav"
  261. hide team1_symbol
  262. show team2_symbol
  263. exec "cmd team b"
  264. setcvar ui_team 2
  265. uiscript updatesiegeclasscnt 2
  266. uiscript updatesiegecvars
  267. // show nextbutton
  268. // setitemcolor team1_button forecolor .670 .670 .929 1
  269. // setitemcolor team2_button forecolor 1 1 .807 1
  270. uiScript setsiegeclass
  271. close all
  272. open ingame_siegeclass
  273. }
  274. mouseEnter
  275. {
  276. show team2_glow
  277. }
  278. mouseExit
  279. {
  280. hide team2_glow
  281. }
  282. }
  283. // The high light
  284. itemDef
  285. {
  286. name team2_glow
  287. group glow
  288. style WINDOW_STYLE_SHADER
  289. rect 165 195 130 26
  290. background "gfx/menus/menu_blendbox"
  291. forecolor 1 1 1 1
  292. visible 0
  293. decoration
  294. }
  295. //----------------------------------------
  296. // AUTOTEAM BUTTON
  297. //----------------------------------------
  298. itemDef
  299. {
  300. name autoteam
  301. text @MENUS_AUTO_TEAM
  302. type 1
  303. style 2
  304. rect 165 250 130 16
  305. textalign ITEM_ALIGN_CENTER
  306. textalignx 65
  307. textaligny -4
  308. outlinecolor 1 .5 .5 .5
  309. backcolor 0 0 0 0
  310. font 2
  311. textscale 0.9
  312. forecolor .670 .670 .929 1
  313. descText "Let server automatically decide the team."
  314. visible 1
  315. action
  316. {
  317. play "sound/interface/button1.wav"
  318. exec "cmd team free"
  319. uiScript closeingame
  320. }
  321. mouseEnter
  322. {
  323. show autoteam_glow
  324. }
  325. mouseExit
  326. {
  327. hide autoteam_glow
  328. }
  329. }
  330. // The high light
  331. itemDef
  332. {
  333. name autoteam_glow
  334. group glow
  335. style WINDOW_STYLE_SHADER
  336. rect 165 245 130 26
  337. background "gfx/menus/menu_blendbox"
  338. forecolor 1 1 1 1
  339. visible 0
  340. decoration
  341. }
  342. //----------------------------------------
  343. // SPECTATOR BUTTON
  344. //----------------------------------------
  345. itemDef
  346. {
  347. name spectate
  348. text @MENUS_SPECTATE
  349. type 1
  350. style 2
  351. rect 165 300 130 16
  352. textalign ITEM_ALIGN_CENTER
  353. textalignx 65
  354. textaligny -4
  355. font 2
  356. textscale .9
  357. forecolor .670 .670 .929 1
  358. visible 1
  359. descText "Watch the game."
  360. action
  361. {
  362. play "sound/interface/button1.wav"
  363. exec "cmd team s"
  364. uiScript closeingame
  365. }
  366. mouseEnter
  367. {
  368. show spectate_glow
  369. }
  370. mouseExit
  371. {
  372. hide spectate_glow
  373. }
  374. }
  375. // The high light
  376. itemDef
  377. {
  378. name spectate_glow
  379. group glow
  380. style WINDOW_STYLE_SHADER
  381. rect 165 295 130 26
  382. background "gfx/menus/menu_blendbox"
  383. forecolor 1 1 1 1
  384. visible 0
  385. decoration
  386. }
  387. //----------------------------------------
  388. // NEXT BUTTON
  389. //----------------------------------------
  390. /* itemDef
  391. {
  392. name nextbutton
  393. group playerapply
  394. text @MENUS_NEXT
  395. type ITEM_TYPE_BUTTON
  396. style WINDOW_STYLE_EMPTY
  397. rect 10 370 440 16
  398. textalign ITEM_ALIGN_CENTER
  399. textalignx 220
  400. textaligny -4
  401. font 2
  402. textscale .9
  403. forecolor .79 .64 .22 1
  404. descText "Select a class on the chosen team."
  405. visible 0
  406. action
  407. {
  408. play "sound/interface/button1.wav"
  409. uiScript setsiegeclass
  410. close all
  411. open ingame_siegeclass
  412. }
  413. mouseEnter
  414. {
  415. show next_glow
  416. }
  417. mouseExit
  418. {
  419. hide next_glow
  420. }
  421. }
  422. // The high light
  423. itemDef
  424. {
  425. name next_glow
  426. group glow
  427. style WINDOW_STYLE_SHADER
  428. rect 10 365 440 26
  429. background "gfx/menus/menu_blendbox"
  430. forecolor 1 1 1 1
  431. visible 0
  432. decoration
  433. }
  434. } */
  435. }