ingame_callvote.menu 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. \\ CALL VOTE MENU \\
  2. {
  3. menuDef
  4. {
  5. name "ingame_callvote"
  6. visible 0
  7. fullscreen 0
  8. outOfBoundsClick // this closes the window if it gets a click out of the rectangle
  9. rect 270 40 360 216
  10. focusColor 1 1 1 1 // Focus color for text and items
  11. style 1
  12. border 1
  13. descX 450
  14. descY 210
  15. descScale 1
  16. descColor 1 .682 0 .8 // Focus color for text and items
  17. descAlignment ITEM_ALIGN_CENTER
  18. onopen
  19. {
  20. uiscript clearmouseover map ;
  21. uiscript clearmouseover type ;
  22. uiscript clearmouseover kick ;
  23. hide doneButton ;
  24. hide grpcallVote ;
  25. show misc ;
  26. uiScript loadArenas ;
  27. setitemcolor grpbutton forecolor 1 .682 0 1 ;
  28. setitemcolor miscbutton forecolor 1 1 1 1 ;
  29. uiscript resetmaplist ;
  30. }
  31. // Overall window backdrop
  32. itemDef
  33. {
  34. name background_pic
  35. group none
  36. style WINDOW_STYLE_SHADER
  37. rect 0 0 360 210
  38. background "gfx/menus/menu_box_ingame"
  39. forecolor 1 1 1 1
  40. visible 1
  41. decoration
  42. }
  43. itemDef
  44. {
  45. name playerconfigtitle
  46. style WINDOW_STYLE_SHADER
  47. background "gfx/menus/menu_blendbox"
  48. text @MENUS_CALL_FOR_VOTES
  49. rect 10 5 340 15
  50. textalign ITEM_ALIGN_CENTER
  51. textalignx 170
  52. textaligny -2
  53. outlinecolor 1 .5 .5 .5
  54. backcolor 0 0 0 0
  55. font 3
  56. textscale 0.8
  57. forecolor .549 .854 1 1
  58. border 0
  59. bordercolor 0 0 0 0
  60. visible 1
  61. }
  62. /* itemDef
  63. {
  64. name setup_background
  65. style WINDOW_STYLE_SHADER
  66. rect 112 35 245 135
  67. background "gfx/menus/menu_box1" // Frame
  68. forecolor 1 1 1 1
  69. visible 1
  70. decoration
  71. }
  72. */
  73. itemDef
  74. {
  75. name setup_background2
  76. group none
  77. style WINDOW_STYLE_FILLED
  78. rect 120 35 235 135
  79. backcolor 0 0 .6 .5
  80. forecolor 1 1 1 1
  81. border 1
  82. bordercolor 0 0 .6 1
  83. visible 1
  84. decoration
  85. }
  86. // DONE GLOW, used for several buttons
  87. itemDef
  88. {
  89. name doneButton
  90. group none
  91. style WINDOW_STYLE_SHADER
  92. rect 140 186 80 30
  93. background "gfx/menus/menu_buttonback" // Frame around button
  94. forecolor 1 1 1 1
  95. decoration
  96. visible 0
  97. }
  98. // BUTTONS //
  99. itemDef
  100. {
  101. name misc_glow
  102. group glows
  103. style WINDOW_STYLE_SHADER
  104. rect 0 35 120 30
  105. background "gfx/menus/menu_blendbox2" // Frame around button
  106. forecolor 1 1 1 1
  107. visible 0
  108. decoration
  109. }
  110. itemDef
  111. {
  112. name miscbutton
  113. group grpbutton
  114. text @MENUS_GENERAL
  115. descText @MENUS_ADJUST_GAME_OPTIONS
  116. type ITEM_TYPE_BUTTON
  117. style WINDOW_STYLE_EMPTY
  118. rect 10 35 103 30
  119. font 3
  120. textscale 0.9
  121. textalignx 100
  122. textaligny 5
  123. textstyle 3
  124. textalign ITEM_ALIGN_RIGHT
  125. forecolor 1 .682 0 1
  126. visible 1
  127. action
  128. {
  129. play "sound/interface/button1.wav" ;
  130. hide grpCallVote ;
  131. show misc ;
  132. setitemcolor grpbutton forecolor 1 .682 0 1 ;
  133. setitemcolor miscbutton forecolor 1 1 1 1 ;
  134. }
  135. mouseEnter
  136. {
  137. show misc_glow
  138. }
  139. mouseExit
  140. {
  141. hide misc_glow
  142. }
  143. }
  144. itemDef
  145. {
  146. name gametype_glow
  147. group glows
  148. style WINDOW_STYLE_SHADER
  149. rect 0 65 120 30
  150. background "gfx/menus/menu_blendbox2" // Frame around button
  151. forecolor 1 1 1 1
  152. visible 0
  153. decoration
  154. }
  155. itemDef
  156. {
  157. name gametypebutton
  158. group grpbutton
  159. text @MENUS_GAMETYPE
  160. descText @MENUS_START_A_DIFFERENT_TYPE
  161. type ITEM_TYPE_BUTTON
  162. style WINDOW_STYLE_EMPTY
  163. rect 10 65 103 30
  164. font 3
  165. textscale 0.9
  166. textalignx 100
  167. textaligny 5
  168. textstyle 3
  169. textalign ITEM_ALIGN_RIGHT
  170. forecolor 1 .682 0 1
  171. visible 1
  172. action
  173. {
  174. play "sound/interface/button1.wav" ;
  175. hide grpCallVote ;
  176. show type ;
  177. setitemcolor grpbutton forecolor 1 .682 0 1 ;
  178. setitemcolor gametypebutton forecolor 1 1 1 1 ;
  179. }
  180. forecolor .615 .615 .956 1
  181. mouseEnter
  182. {
  183. show gametype_glow
  184. }
  185. mouseExit
  186. {
  187. hide gametype_glow
  188. }
  189. }
  190. itemDef
  191. {
  192. name changemap_glow
  193. group glows
  194. style WINDOW_STYLE_SHADER
  195. rect 0 95 120 30
  196. background "gfx/menus/menu_blendbox2" // Frame around button
  197. forecolor 1 1 1 1
  198. visible 0
  199. decoration
  200. }
  201. itemDef
  202. {
  203. name changemapbutton
  204. text @MENUS_MAP
  205. descText @MENUS_CHANGE_TO_A_NEW_MAP
  206. group grpbutton
  207. type ITEM_TYPE_BUTTON
  208. style WINDOW_STYLE_EMPTY
  209. rect 10 95 103 30
  210. font 3
  211. textscale 0.9
  212. textalignx 100
  213. textaligny 5
  214. textstyle 3
  215. textalign ITEM_ALIGN_RIGHT
  216. forecolor 1 .682 0 1
  217. visible 1
  218. action
  219. {
  220. play "sound/interface/button1.wav" ;
  221. hide grpCallVote ;
  222. show maplist ;
  223. show map ;
  224. setitemcolor grpbutton forecolor 1 .682 0 1 ;
  225. setitemcolor changemapbutton forecolor 1 1 1 1 ;
  226. }
  227. mouseEnter
  228. {
  229. show changemap_glow
  230. }
  231. mouseExit
  232. {
  233. hide changemap_glow
  234. }
  235. }
  236. itemDef
  237. {
  238. name kick_glow
  239. group glows
  240. style WINDOW_STYLE_SHADER
  241. rect 0 125 120 30
  242. background "gfx/menus/menu_blendbox2" // Frame around button
  243. forecolor 1 1 1 1
  244. visible 0
  245. decoration
  246. }
  247. itemDef
  248. {
  249. name kickbutton
  250. group grpbutton
  251. text @MENUS_KICK
  252. descText @MENUS_BANISH_A_PLAYER_FROM
  253. type ITEM_TYPE_BUTTON
  254. style WINDOW_STYLE_EMPTY
  255. rect 10 125 103 30
  256. font 3
  257. textscale 0.9
  258. textalignx 100
  259. textaligny 5
  260. textstyle 3
  261. textalign ITEM_ALIGN_RIGHT
  262. forecolor 1 .682 0 1
  263. visible 1
  264. action
  265. {
  266. play "sound/interface/button1.wav" ;
  267. hide grpCallVote ;
  268. show kick ;
  269. setitemcolor grpbutton forecolor 1 .682 0 1 ;
  270. setitemcolor kickbutton forecolor 1 1 1 1 ;
  271. }
  272. mouseEnter
  273. {
  274. show kick_glow
  275. }
  276. mouseExit
  277. {
  278. hide kick_glow
  279. }
  280. }
  281. //----------------------------------
  282. // MISC VOTE PANEL
  283. //----------------------------------
  284. itemDef
  285. {
  286. name misc
  287. text @MENUS_RESTART_MAP
  288. descText @MENUS_BEGIN_VOTE_TO_RESTART
  289. group grpCallVote
  290. rect 112 35 245 30
  291. type 1
  292. textalign ITEM_ALIGN_CENTER
  293. textalignx 122
  294. textaligny 2
  295. font 2
  296. textscale 1
  297. forecolor 1 .682 0 1
  298. visible 0
  299. action
  300. {
  301. play "sound/interface/button1.wav" ;
  302. exec "cmd callvote map_restart" ;
  303. uiScript closeingame
  304. }
  305. }
  306. itemDef
  307. {
  308. name misc
  309. group grpCallVote
  310. text @MENUS_NEXT_MAP
  311. descText @MENUS_BEGIN_VOTE_TO_CYCLE_TO
  312. rect 112 65 245 30
  313. type 1
  314. textalign ITEM_ALIGN_CENTER
  315. textalignx 122
  316. textaligny 2
  317. font 2
  318. textscale 1
  319. forecolor 1 .682 0 1
  320. visible 0
  321. action
  322. {
  323. play "sound/interface/button1.wav" ;
  324. exec "cmd callvote nextmap" ;
  325. uiScript closeingame
  326. }
  327. }
  328. itemDef
  329. {
  330. name misc
  331. group grpCallVote
  332. text @MENUS_WARMUP
  333. descText @MENUS_BEGIN_VOTE_TO_DO_A_WARMUP
  334. rect 112 95 245 30
  335. type 1
  336. textalign ITEM_ALIGN_CENTER
  337. textalignx 122
  338. textaligny 2
  339. font 2
  340. textscale 1
  341. forecolor 1 .682 0 1
  342. visible 0
  343. action
  344. {
  345. play "sound/interface/button1.wav" ;
  346. exec "cmd callvote g_doWarmup 1" ;
  347. uiScript closeingame
  348. }
  349. }
  350. //----------------------------------
  351. // GAMETYPE VOTE PANEL
  352. //----------------------------------
  353. itemDef
  354. {
  355. name type
  356. group grpCallVote
  357. text @MENUS_GAME_TYPE
  358. descText @MENUS_SELECT_A_NEW_GAME_TYPE
  359. style 0
  360. ownerdraw UI_NETGAMETYPE
  361. rect 120 65 230 30
  362. textalign ITEM_ALIGN_RIGHT
  363. textalignx 50
  364. textaligny 2
  365. font 2
  366. textscale 1
  367. forecolor 1 .682 0 1
  368. visible 0
  369. }
  370. itemDef
  371. {
  372. name type
  373. group grpCallVote
  374. text @MENUS_OKAY
  375. descText @MENUS_BEGIN_VOTE_FOR_THIS_GAME
  376. type 1
  377. style WINDOW_STYLE_FILLED
  378. rect 140 186 80 30
  379. textalign ITEM_ALIGN_CENTER
  380. textalignx 40
  381. textaligny 0
  382. font 3
  383. textscale 1
  384. forecolor 1 .682 0 1
  385. visible 1
  386. action
  387. {
  388. play "sound/interface/button1.wav" ;
  389. uiScript voteGame ;
  390. uiScript closeingame
  391. }
  392. mouseEnter
  393. {
  394. show doneButton
  395. }
  396. mouseExit
  397. {
  398. hide doneButton
  399. }
  400. }
  401. //----------------------------------
  402. // MAP VOTE PANEL
  403. //----------------------------------
  404. itemDef
  405. {
  406. name map
  407. group grpCallVote
  408. text @MENUS_NEW_MAP
  409. ownerdraw UI_ALLMAPS_SELECTION
  410. rect 120 35 230 20
  411. textalign 0
  412. textalignx 5
  413. textaligny -2
  414. font 2
  415. textscale .8
  416. forecolor .549 .854 1 1
  417. decoration
  418. visible 0
  419. action
  420. {
  421. play "sound/interface/button1.wav" ;
  422. }
  423. }
  424. itemDef
  425. {
  426. name maplist
  427. group grpCallVote
  428. descText @MENUS_SELECT_DESIRED_MAP
  429. rect 120 55 230 108
  430. type ITEM_TYPE_LISTBOX
  431. style WINDOW_STYLE_FILLED
  432. elementwidth 120
  433. elementheight 15
  434. elementtype LISTBOX_TEXT
  435. feeder FEEDER_ALLMAPS
  436. border 1
  437. bordercolor 1 .682 0 .8
  438. backcolor 0 0 .5 .25
  439. outlinecolor .1 .1 .7 .5
  440. visible 0
  441. font 2
  442. textaligny 12
  443. textscale .8
  444. forecolor .615 .615 .956 1
  445. mouseEnter
  446. {
  447. fadein message_arena ;
  448. setitemcolor map bordercolor .7 0 0 1
  449. }
  450. mouseExit
  451. {
  452. fadeout message_arena ;
  453. setitemcolor map bordercolor .5 .5 .5 .5
  454. }
  455. action
  456. {
  457. play "sound/interface/button1.wav" ;
  458. }
  459. }
  460. itemDef
  461. {
  462. name map
  463. text @MENUS_OKAY
  464. descText @MENUS_BEGIN_VOTE_TO_SWITCH
  465. type 1
  466. group grpCallVote
  467. style WINDOW_STYLE_FILLED
  468. rect 140 186 80 30
  469. textalign ITEM_ALIGN_CENTER
  470. textalignx 40
  471. textaligny 0
  472. font 3
  473. textscale 1
  474. forecolor 1 .682 0 1
  475. visible 1
  476. action
  477. {
  478. play "sound/interface/button1.wav" ;
  479. uiScript voteMap ;
  480. uiScript closeingame
  481. }
  482. mouseEnter
  483. {
  484. show doneButton
  485. }
  486. mouseExit
  487. {
  488. hide doneButton
  489. }
  490. }
  491. //----------------------------------
  492. // KICK VOTE PANEL
  493. //----------------------------------
  494. itemDef
  495. {
  496. name kick
  497. group grpCallVote
  498. text @MENUS_KICK_PLAYER
  499. rect 120 35 230 20
  500. textalign 0
  501. textalignx 5
  502. textaligny -2
  503. font 2
  504. textscale .8
  505. forecolor .549 .854 1 1
  506. visible 0
  507. decoration
  508. action
  509. {
  510. play "sound/interface/button1.wav" ;
  511. }
  512. }
  513. itemDef
  514. {
  515. name kick
  516. group grpCallVote
  517. descText @MENUS_SELECT_PLAYER_TO_KICK
  518. rect 120 55 230 108
  519. style WINDOW_STYLE_FILLED
  520. type ITEM_TYPE_LISTBOX
  521. elementwidth 120
  522. elementheight 15
  523. elementtype LISTBOX_TEXT
  524. feeder FEEDER_PLAYER_LIST
  525. border 1
  526. bordercolor 1 .682 0 .8
  527. backcolor 0 0 .5 .25
  528. outlinecolor .1 .1 .7 .5
  529. font 2
  530. textaligny 12
  531. textscale .8
  532. forecolor .615 .615 .956 1
  533. visible 0
  534. mouseEnter
  535. {
  536. fadein message_arena ;
  537. setitemcolor kick bordercolor .7 0 0 1
  538. }
  539. mouseExit
  540. {
  541. fadeout message_arena ;
  542. setitemcolor kick bordercolor .5 .5 .5 1
  543. }
  544. action
  545. {
  546. play "sound/interface/button1.wav" ;
  547. }
  548. }
  549. itemDef
  550. {
  551. name kick
  552. text @MENUS_OKAY
  553. descText @MENUS_BEGIN_VOTE_TO_BANISH
  554. type 1
  555. group grpCallVote
  556. style WINDOW_STYLE_FILLED
  557. rect 140 186 80 30
  558. textalign ITEM_ALIGN_CENTER
  559. textalignx 40
  560. textaligny 0
  561. font 3
  562. textscale 1
  563. forecolor 1 .682 0 1
  564. visible 1
  565. action
  566. {
  567. play "sound/interface/button1.wav" ;
  568. uiScript voteKick ;
  569. uiScript closeingame
  570. }
  571. mouseEnter
  572. {
  573. show doneButton
  574. }
  575. mouseExit
  576. {
  577. hide doneButton
  578. }
  579. }
  580. }
  581. }