siege_class.menu 105 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417
  1. //--------------------------------------------------------------------------------------------
  2. // uberScreen
  3. //
  4. // cvars used (at least some of them
  5. // siege_mapgraphic - the name of the graphic of the map of the level.
  6. // currentObjButton - the menu item name of currently active objective button
  7. //
  8. // team1_icon - read in from siege file, the graphic of team1
  9. // team2_icon - read in from siege file, the graphic of team2
  10. //
  11. //--------------------------------------------------------------------------------------------
  12. {
  13. menuDef
  14. {
  15. name "ingame_siegeclass"
  16. fullScreen 1
  17. visible 0
  18. outOfBoundsClick
  19. rect 0 0 640 480
  20. focusColor 1 1 1 1
  21. style 1
  22. descX 480
  23. descY 444
  24. descScale 1
  25. descColor 1 .682 0 .8
  26. descAlignment ITEM_ALIGN_CENTER
  27. backColor .05 .07 .09 1
  28. disablecolor 1 1 1 1
  29. onClose
  30. {
  31. hide minidesc
  32. hide obj_longdesc
  33. hide objective_pic
  34. hide siegeclassconfigtitle
  35. }
  36. onOpen
  37. {
  38. setcvar currentObjButton "null"
  39. exec "siegeCompleteCvarUpdate"
  40. setitembackground mappic "*siege_mapgraphic"
  41. // set tm_icon fields to the proper mapicon graphic
  42. uiscript updatesiegeobjgraphics
  43. setitembackground team1_symbol "*team1_icon"
  44. setitembackground team2_symbol "*team2_icon"
  45. setitembackground team1_button "*team1_icon"
  46. setitembackground team2_button "*team2_icon"
  47. // Enable team buttons, in case they'd been shut off
  48. disable team_button 0
  49. disable autoteam 0
  50. disable team1_button 0
  51. disable team2_button 0
  52. // and reset colors
  53. setitemcolor team1_button backcolor .8 .48 0 1
  54. setitemcolor team2_button backcolor .8 .48 0 1
  55. setitemcolor team1name forecolor .8 .48 0 1
  56. setitemcolor team2name forecolor .8 .48 0 1
  57. setitemcolor team1_count forecolor .8 .48 0 1
  58. setitemcolor team2_count forecolor .8 .48 0 1
  59. setitemcolor siegeclassconfigtitle forecolor 1 .68 0 1
  60. //
  61. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  62. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  63. setitemcolor team1obj_buttons forecolor 1 1 1 1
  64. setitemcolor team2obj_buttons forecolor 1 1 1 1
  65. disable team1obj_buttons 0
  66. disable team2obj_buttons 0
  67. hide grey_button
  68. hide class_portrait
  69. hide itemdescription
  70. // Show first objective
  71. show obj_minidesc
  72. show obj_longdesc
  73. show objective_pic
  74. // change color and stext of mini desc
  75. setitemtext obj_minidesc @MENUS_OBJECTIVE_1
  76. //change text of long desc
  77. setitemtext obj_longdesc "*team1_objective1_longdesc"
  78. // change objective pic
  79. setitembackground objective_pic "*team1_objective1_gfx"
  80. // Show new map icon
  81. setitembackground tm1_icon1 "*team1_objective1_mapicon"
  82. // Reset all buttons to their normal colors
  83. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  84. setitemcolor team1obj_buttons backcolor .7 0 0 1
  85. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  86. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  87. setitemcolor mapicons bordercolor 0 0 0 0
  88. // Disable current button and give it a border
  89. setitemcolor team1obj1_button bordercolor 1 1 1 1
  90. setitemcolor team1obj1_button backcolor 1 0 0 1
  91. // Set the map icon picture to the updated graphic
  92. uiscript setsiegeobjbuttons tm1_icon1 team1_objective1_mapicon team1_objective1_litmapicon
  93. uiscript setteamclassicons
  94. }
  95. onESC
  96. {
  97. hide stats
  98. hide forcepowerlevel
  99. hide minidesc
  100. hide fulldesc
  101. hide objective_pic
  102. disable team_button 0
  103. close all;
  104. }
  105. //------------------------------------------------------------
  106. // Window backdrop
  107. //------------------------------------------------------------
  108. itemDef
  109. {
  110. name background_pic
  111. group none
  112. style WINDOW_STYLE_SHADER
  113. rect 0 0 640 480
  114. background "gfx/menus/menu_box_ingame"
  115. forecolor 1 1 1 1
  116. visible 0
  117. decoration
  118. }
  119. // Title of objective section
  120. itemDef
  121. {
  122. name objectivetitle
  123. style WINDOW_STYLE_FILLED
  124. backcolor .05 .13 .25 1
  125. text @MENUS_MISSION_OBJECTIVES
  126. rect 7 7 308 20
  127. textalign ITEM_ALIGN_CENTER
  128. textalignx 160
  129. textaligny -1
  130. font 3
  131. textscale 0.9
  132. forecolor 1 .68 0 1
  133. visible 1
  134. decoration
  135. }
  136. // Border around the objective half of the screen
  137. itemDef
  138. {
  139. name border
  140. group none
  141. type ITEM_TYPE_TEXT
  142. rect 5 5 310 370
  143. // forecolor 1 1 1 .6
  144. visible 1
  145. border 1
  146. bordercolor 1 1 1 1
  147. decoration
  148. }
  149. itemDef
  150. {
  151. name mapname
  152. group time
  153. style WINDOW_STYLE_EMPTY
  154. // text @MENUS_MISSION
  155. cvar siege_missionname
  156. maxChars 0
  157. rect 70 28 180 18
  158. textalign ITEM_ALIGN_CENTER
  159. textalignx 90
  160. font 3
  161. textscale .7
  162. forecolor 1 1 1 1
  163. visible 1
  164. decoration
  165. }
  166. //------------------------------------------------------------
  167. // Map picture
  168. //------------------------------------------------------------
  169. itemDef
  170. {
  171. name mappic
  172. group none
  173. style WINDOW_STYLE_SHADER
  174. rect 70 46 180 320
  175. forecolor 1 1 1 1
  176. visible 1
  177. border 1
  178. bordercolor .38 .51 .59 1
  179. decoration
  180. background "*siege_mapgraphic"
  181. }
  182. //----------------------------------------------------------------------------------------------
  183. // TEAM SYMBOLS
  184. //----------------------------------------------------------------------------------------------
  185. itemDef
  186. {
  187. name team1_symbol
  188. style WINDOW_STYLE_SHADER
  189. rect 12 60 45 45
  190. forecolor 1 0 0 1
  191. visible 1
  192. decoration
  193. }
  194. itemDef
  195. {
  196. name team2_symbol
  197. style WINDOW_STYLE_SHADER
  198. rect 265 60 45 45
  199. forecolor 0 0 1 1
  200. visible 1
  201. decoration
  202. }
  203. //-------------------------------------------
  204. // TEAM1 - OBJECTIVE BUTTON 1
  205. //-------------------------------------------
  206. itemDef
  207. {
  208. name team1obj1_button
  209. group team1obj_buttons
  210. rect 22 120 24 24
  211. type ITEM_TYPE_BUTTON
  212. style WINDOW_STYLE_FILLED
  213. text @MENUS_1
  214. font 2
  215. textscale .8
  216. textstyle 0
  217. textalign ITEM_ALIGN_CENTER
  218. textalignx 12
  219. textaligny -1
  220. backcolor 1 0 0 1
  221. forecolor .75 .75 .75 1
  222. visible 1
  223. border 1
  224. bordercolor 0 0 0 0
  225. mouseEnter
  226. {
  227. setitemcolor team1obj1_button forecolor 1 1 1 1
  228. setitemcolor team1obj1_button backcolor 1 0 0 1
  229. }
  230. mouseExit
  231. {
  232. setitemcolor team1obj1_button forecolor .75 .75 .75 1
  233. setitemcolor team1obj1_button backcolor .7 0 0 1
  234. }
  235. action
  236. {
  237. // Because open and close menu hide these
  238. show obj_minidesc
  239. show obj_longdesc
  240. show objective_pic
  241. // change text of mini desc
  242. setitemtext obj_minidesc @MENUS_OBJECTIVE_1
  243. //change text of long desc
  244. setitemtext obj_longdesc "*team1_objective1_longdesc"
  245. // change pic to match objective
  246. setitembackground objective_pic "*team1_objective1_gfx"
  247. // Reset all buttons to their normal colors
  248. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  249. setitemcolor team1obj_buttons backcolor .7 0 0 1
  250. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  251. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  252. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  253. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  254. // Disable current button and give it a border
  255. setcvar currentObjButton "team1obj1_button"
  256. setitemcolor team1obj1_button bordercolor 1 1 1 1
  257. setitemcolor team1obj1_button backcolor 1 0 0 1
  258. // Completed text
  259. hide completed_text
  260. show text_tm1_obj1
  261. // Reset old map icon to old background and enable old obj button
  262. // Set new map icon to hilite background and disable new obj button
  263. uiscript setsiegeobjbuttons tm1_icon1 team1_objective1_mapicon team1_objective1_litmapicon
  264. }
  265. }
  266. //----------------------------------------------------------------------------------------------
  267. // TEAM1 - OBJECTIVE BUTTON 2
  268. //----------------------------------------------------------------------------------------------
  269. itemDef
  270. {
  271. name team1obj2_button
  272. group team1obj_buttons
  273. rect 22 150 24 24
  274. type ITEM_TYPE_BUTTON
  275. style WINDOW_STYLE_FILLED
  276. text @MENUS_2
  277. font 2
  278. textscale .8
  279. textstyle 0
  280. textalign ITEM_ALIGN_CENTER
  281. textalignx 12
  282. textaligny -1
  283. backcolor .7 0 0 1
  284. forecolor .75 .75 .75 1
  285. visible 1
  286. border 1
  287. bordercolor 0 0 0 1
  288. cvartest "team1_objective2_inuse"
  289. showcvar
  290. {
  291. "1"; "2"
  292. }
  293. mouseEnter
  294. {
  295. setitemcolor team1obj2_button forecolor 1 1 1 1
  296. setitemcolor team1obj2_button backcolor 1 0 0 1
  297. }
  298. mouseExit
  299. {
  300. setitemcolor team1obj2_button forecolor .75 .75 .75 1
  301. setitemcolor team1obj2_button backcolor .7 0 0 1
  302. }
  303. action
  304. {
  305. // Because open and close menu hide these
  306. show obj_minidesc
  307. show obj_longdesc
  308. show objective_pic
  309. // change color and text of mini desc
  310. setitemtext obj_minidesc @MENUS_OBJECTIVE_2
  311. //change text of long desc
  312. setitemtext obj_longdesc "*team1_objective2_longdesc"
  313. // change pic to match objective
  314. setitembackground objective_pic "*team1_objective2_gfx"
  315. // Reset all buttons to their normal colors
  316. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  317. setitemcolor team1obj_buttons backcolor .7 0 0 1
  318. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  319. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  320. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  321. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  322. // Disable current button
  323. setcvar currentObjButton "team1obj2_button"
  324. setitemcolor team1obj2_button bordercolor 1 1 1 1
  325. setitemcolor team1obj2_button backcolor 1 0 0 1
  326. // Completed text
  327. hide completed_text
  328. show text_tm1_obj2
  329. // Reset old map icon to old background and enable old obj button
  330. // Set new map icon to hilite background and disable new obj button
  331. uiscript setsiegeobjbuttons tm1_icon2 team1_objective2_mapicon team1_objective2_litmapicon
  332. }
  333. }
  334. itemDef
  335. {
  336. name team1obj3_button
  337. group team1obj_buttons
  338. rect 22 180 24 24
  339. type ITEM_TYPE_BUTTON
  340. style WINDOW_STYLE_FILLED
  341. text @MENUS_3
  342. font 2
  343. textscale .8
  344. textstyle 0
  345. textalign ITEM_ALIGN_CENTER
  346. textalignx 12
  347. textaligny -1
  348. backcolor .7 0 0 1
  349. forecolor .75 .75 .75 1
  350. visible 1
  351. border 1
  352. bordercolor 0 0 0 1
  353. cvartest "team1_objective3_inuse"
  354. showcvar
  355. {
  356. "1"; "2"
  357. }
  358. mouseEnter
  359. {
  360. setitemcolor team1obj3_button forecolor 1 1 1 1
  361. setitemcolor team1obj3_button backcolor 1 0 0 1
  362. }
  363. mouseExit
  364. {
  365. setitemcolor team1obj3_button forecolor .75 .75 .75 1
  366. setitemcolor team1obj3_button backcolor .7 0 0 1
  367. }
  368. action
  369. {
  370. // Because open and close menu hide these
  371. show obj_minidesc
  372. show obj_longdesc
  373. show objective_pic
  374. // change color and stext of mini desc
  375. setitemtext obj_minidesc @MENUS_OBJECTIVE_3
  376. //change text of long desc
  377. setitemtext obj_longdesc "*team1_objective3_longdesc"
  378. // change pic to match objective
  379. setitembackground objective_pic "*team1_objective3_gfx"
  380. // Reset all buttons to their normal colors
  381. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  382. setitemcolor team1obj_buttons backcolor .7 0 0 1
  383. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  384. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  385. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  386. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  387. // Disable current button
  388. setcvar currentObjButton "team1obj3_button"
  389. setitemcolor team1obj3_button bordercolor 1 1 1 1
  390. setitemcolor team1obj3_button backcolor 1 0 0 1
  391. // Completed text
  392. hide completed_text
  393. show text_tm1_obj3
  394. // Reset old map icon to old background and enable old obj button
  395. // Set new map icon to hilite background and disable new obj button
  396. uiscript setsiegeobjbuttons tm1_icon3 team1_objective3_mapicon team1_objective3_litmapicon
  397. }
  398. }
  399. itemDef
  400. {
  401. name team1obj4_button
  402. group team1obj_buttons
  403. rect 22 210 24 24
  404. type ITEM_TYPE_BUTTON
  405. style WINDOW_STYLE_FILLED
  406. text @MENUS_4
  407. font 2
  408. textscale .8
  409. textstyle 0
  410. textalign ITEM_ALIGN_CENTER
  411. textalignx 12
  412. textaligny -1
  413. backcolor .7 0 0 1
  414. forecolor .75 .75 .75 1
  415. visible 1
  416. border 1
  417. bordercolor 0 0 0 1
  418. cvartest "team1_objective4_inuse"
  419. showcvar
  420. {
  421. "1"; "2"
  422. }
  423. mouseEnter
  424. {
  425. setitemcolor team1obj4_button forecolor 1 1 1 1
  426. setitemcolor team1obj4_button backcolor 1 0 0 1
  427. }
  428. mouseExit
  429. {
  430. setitemcolor team1obj4_button forecolor .75 .75 .75 1
  431. setitemcolor team1obj4_button backcolor .7 0 0 1
  432. }
  433. action
  434. {
  435. // Because open and close menu hide these
  436. show obj_minidesc
  437. show obj_longdesc
  438. show objective_pic
  439. // change color and stext of mini desc
  440. setitemtext obj_minidesc @MENUS_OBJECTIVE_4
  441. //change text of long desc
  442. setitemtext obj_longdesc "*team1_objective4_longdesc"
  443. // change pic to match objective
  444. setitembackground objective_pic "*team1_objective4_gfx"
  445. // Reset all buttons to their normal colors
  446. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  447. setitemcolor team1obj_buttons backcolor .7 0 0 1
  448. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  449. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  450. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  451. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  452. // Disable current button
  453. setcvar currentObjButton "team1obj4_button"
  454. setitemcolor team1obj4_button bordercolor 1 1 1 1
  455. setitemcolor team1obj4_button backcolor 1 0 0 1
  456. // Completed text
  457. hide completed_text
  458. show text_tm1_obj4
  459. // Reset old map icon to old background and enable old obj button
  460. // Set new map icon to hilite background and disable new obj button
  461. uiscript setsiegeobjbuttons tm1_icon4 team1_objective4_mapicon team1_objective4_litmapicon
  462. }
  463. }
  464. itemDef
  465. {
  466. name team1obj5_button
  467. group team1obj_buttons
  468. rect 22 240 24 24
  469. type ITEM_TYPE_BUTTON
  470. style WINDOW_STYLE_FILLED
  471. text @MENUS_5
  472. font 2
  473. textscale .8
  474. textstyle 0
  475. textalign ITEM_ALIGN_CENTER
  476. textalignx 12
  477. textaligny -1
  478. backcolor .7 0 0 1
  479. forecolor .75 .75 .75 1
  480. visible 1
  481. border 1
  482. bordercolor 0 0 0 1
  483. cvartest "team1_objective5_inuse"
  484. showcvar
  485. {
  486. "1"; "2"
  487. }
  488. mouseEnter
  489. {
  490. setitemcolor team1obj5_button forecolor 1 1 1 1
  491. setitemcolor team1obj5_button backcolor 1 0 0 1
  492. }
  493. mouseExit
  494. {
  495. setitemcolor team1obj5_button forecolor .75 .75 .75 1
  496. setitemcolor team1obj5_button backcolor .7 0 0 1
  497. }
  498. action
  499. {
  500. // Because open and close menu hide these
  501. show obj_minidesc
  502. show obj_longdesc
  503. show objective_pic
  504. // change color and stext of mini desc
  505. setitemtext obj_minidesc @MENUS_OBJECTIVE_5
  506. //change text of long desc
  507. setitemtext obj_longdesc "*team1_objective5_longdesc"
  508. // change pic to match objective
  509. setitembackground objective_pic "*team1_objective5_gfx"
  510. // Reset all buttons to their normal colors
  511. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  512. setitemcolor team1obj_buttons backcolor .7 0 0 1
  513. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  514. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  515. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  516. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  517. // Disable current button
  518. setcvar currentObjButton "team1obj5_button"
  519. setitemcolor team1obj5_button bordercolor 1 1 1 1
  520. setitemcolor team1obj5_button backcolor 1 0 0 1
  521. // Completed text
  522. hide completed_text
  523. show text_tm1_obj5
  524. // Reset old map icon to old background and enable old obj button
  525. // Set new map icon to hilite background and disable new obj button
  526. uiscript setsiegeobjbuttons tm1_icon5 team1_objective5_mapicon team1_objective5_litmapicon
  527. }
  528. }
  529. itemDef
  530. {
  531. name team1obj6_button
  532. group team1obj_buttons
  533. rect 22 270 24 24
  534. type ITEM_TYPE_BUTTON
  535. style WINDOW_STYLE_FILLED
  536. text @MENUS_6
  537. font 2
  538. textscale .8
  539. textstyle 0
  540. textalign ITEM_ALIGN_CENTER
  541. textalignx 12
  542. textaligny -1
  543. backcolor .7 0 0 1
  544. forecolor .75 .75 .75 1
  545. visible 1
  546. border 1
  547. bordercolor 0 0 0 1
  548. cvartest "team1_objective6_inuse"
  549. showcvar
  550. {
  551. "1"; "2"
  552. }
  553. mouseEnter
  554. {
  555. setitemcolor team1obj6_button forecolor 1 1 1 1
  556. setitemcolor team1obj6_button backcolor 1 0 0 1
  557. }
  558. mouseExit
  559. {
  560. setitemcolor team1obj6_button forecolor .75 .75 .75 1
  561. setitemcolor team1obj6_button backcolor .7 0 0 1
  562. }
  563. action
  564. {
  565. // Because open and close menu hide these
  566. show obj_minidesc
  567. show obj_longdesc
  568. show objective_pic
  569. // change color and stext of mini desc
  570. setitemtext obj_minidesc @MENUS_OBJECTIVE_6
  571. //change text of long desc
  572. setitemtext obj_longdesc "*team1_objective6_longdesc"
  573. // change pic to match objective
  574. setitembackground objective_pic "*team1_objective6_gfx"
  575. // Reset all buttons to their normal colors
  576. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  577. setitemcolor team1obj_buttons backcolor .7 0 0 1
  578. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  579. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  580. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  581. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  582. // Disable current button
  583. setcvar currentObjButton "team1obj6_button"
  584. setitemcolor team1obj6_button bordercolor 1 1 1 1
  585. setitemcolor team1obj6_button backcolor 1 0 0 1
  586. // Completed text
  587. hide completed_text
  588. show text_tm1_obj6
  589. // Reset old map icon to old background and enable old obj button
  590. // Set new map icon to hilite background and disable new obj button
  591. uiscript setsiegeobjbuttons tm1_icon6 team1_objective6_mapicon team1_objective6_litmapicon
  592. }
  593. }
  594. itemDef
  595. {
  596. name team1obj7_button
  597. group team1obj_buttons
  598. rect 22 300 24 24
  599. type ITEM_TYPE_BUTTON
  600. style WINDOW_STYLE_FILLED
  601. text @MENUS_7
  602. font 2
  603. textscale .8
  604. textstyle 0
  605. textalign ITEM_ALIGN_CENTER
  606. textalignx 12
  607. textaligny -1
  608. backcolor .7 0 0 1
  609. forecolor .75 .75 .75 1
  610. visible 1
  611. border 1
  612. bordercolor 0 0 0 1
  613. cvartest "team1_objective7_inuse"
  614. showcvar
  615. {
  616. "1"; "2"
  617. }
  618. mouseEnter
  619. {
  620. setitemcolor team1obj7_button forecolor 1 1 1 1
  621. setitemcolor team1obj7_button backcolor 1 0 0 1
  622. }
  623. mouseExit
  624. {
  625. setitemcolor team1obj7_button forecolor .75 .75 .75 1
  626. setitemcolor team1obj7_button backcolor .7 0 0 1
  627. }
  628. action
  629. {
  630. // Because open and close menu hide these
  631. show obj_minidesc
  632. show obj_longdesc
  633. show objective_pic
  634. // change color and stext of mini desc
  635. setitemtext obj_minidesc @MENUS_OBJECTIVE_7
  636. //change text of long desc
  637. setitemtext obj_longdesc "*team1_objective7_longdesc"
  638. // change pic to match objective
  639. setitembackground objective_pic "*team1_objective7_gfx"
  640. // Reset all buttons to their normal colors
  641. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  642. setitemcolor team1obj_buttons backcolor .7 0 0 1
  643. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  644. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  645. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  646. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  647. // Disable current button
  648. setcvar currentObjButton "team1obj7_button"
  649. setitemcolor team1obj7_button bordercolor 1 1 1 1
  650. setitemcolor team1obj7_button backcolor 1 0 0 1
  651. // Completed text
  652. hide completed_text
  653. show text_tm1_obj7
  654. // Reset old map icon to old background and enable old obj button
  655. // Set new map icon to hilite background and disable new obj button
  656. uiscript setsiegeobjbuttons tm1_icon7 team1_objective7_mapicon team1_objective7_litmapicon
  657. }
  658. }
  659. itemDef
  660. {
  661. name team1obj8_button
  662. group team1obj_buttons
  663. rect 22 330 24 24
  664. type ITEM_TYPE_BUTTON
  665. style WINDOW_STYLE_FILLED
  666. text @MENUS_8
  667. font 2
  668. textscale .8
  669. textstyle 0
  670. textalign ITEM_ALIGN_CENTER
  671. textalignx 12
  672. textaligny -1
  673. backcolor .7 0 0 1
  674. forecolor .75 .75 .75 1
  675. visible 1
  676. border 1
  677. bordercolor 0 0 0 1
  678. cvartest "team1_objective8_inuse"
  679. showcvar
  680. {
  681. "1"; "2"
  682. }
  683. mouseEnter
  684. {
  685. setitemcolor team1obj8_button forecolor 1 1 1 1
  686. setitemcolor team1obj8_button backcolor 1 0 0 1
  687. }
  688. mouseExit
  689. {
  690. setitemcolor team1obj8_button forecolor .75 .75 .75 1
  691. setitemcolor team1obj8_button backcolor .7 0 0 1
  692. }
  693. action
  694. {
  695. // Because open and close menu hide these
  696. show obj_minidesc
  697. show obj_longdesc
  698. show objective_pic
  699. // change color and stext of mini desc
  700. setitemtext obj_minidesc @MENUS_OBJECTIVE_8
  701. //change text of long desc
  702. setitemtext obj_longdesc "*team1_objective8_longdesc"
  703. // change pic to match objective
  704. setitembackground objective_pic "*team1_objective8_gfx"
  705. // Reset all buttons to their normal colors
  706. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  707. setitemcolor team1obj_buttons backcolor .7 0 0 1
  708. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  709. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  710. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  711. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  712. // Disable current button
  713. setcvar currentObjButton "team1obj8_button"
  714. setitemcolor team1obj8_button bordercolor 1 1 1 1
  715. setitemcolor team1obj8_button backcolor 1 0 0 1
  716. // Completed text
  717. hide completed_text
  718. show text_tm1_obj8
  719. // Reset old map icon to old background and enable old obj button
  720. // Set new map icon to hilite background and disable new obj button
  721. uiscript setsiegeobjbuttons tm1_icon8 team1_objective8_mapicon team1_objective8_litmapicon
  722. }
  723. }
  724. //----------------------------------------------------------------------------------------------
  725. // TEAM1 - MET OBJECTIVES BUTTONS
  726. //----------------------------------------------------------------------------------------------
  727. itemDef
  728. {
  729. name team1_met_obj1
  730. group none
  731. style WINDOW_STYLE_SHADER
  732. rect 22 120 24 24
  733. forecolor 1 1 1 1
  734. visible 1
  735. border 1
  736. bordercolor 1 1 1 1
  737. background "gfx/menus/x"
  738. visible 1
  739. cvartest "team1_objective1"
  740. decoration
  741. showcvar
  742. {
  743. "1"
  744. }
  745. }
  746. itemDef
  747. {
  748. name team1_met_obj2
  749. group none
  750. style WINDOW_STYLE_SHADER
  751. rect 22 150 24 24
  752. forecolor 1 1 1 1
  753. visible 1
  754. border 1
  755. bordercolor 1 1 1 1
  756. background "gfx/menus/x"
  757. visible 1
  758. cvartest "team1_objective2"
  759. decoration
  760. showcvar
  761. {
  762. "1"
  763. }
  764. }
  765. itemDef
  766. {
  767. name team1_met_obj3
  768. group none
  769. style WINDOW_STYLE_SHADER
  770. rect 22 180 24 24
  771. forecolor 1 1 1 1
  772. visible 1
  773. border 1
  774. bordercolor 1 1 1 1
  775. background "gfx/menus/x"
  776. visible 1
  777. cvartest "team1_objective3"
  778. decoration
  779. showcvar
  780. {
  781. "1"
  782. }
  783. }
  784. itemDef
  785. {
  786. name team1_met_obj4
  787. group none
  788. style WINDOW_STYLE_SHADER
  789. rect 22 210 24 24
  790. forecolor 1 1 1 1
  791. visible 1
  792. border 1
  793. bordercolor 1 1 1 1
  794. background "gfx/menus/x"
  795. visible 1
  796. cvartest "team1_objective4"
  797. decoration
  798. showcvar
  799. {
  800. "1"
  801. }
  802. }
  803. itemDef
  804. {
  805. name team1_met_obj5
  806. group none
  807. style WINDOW_STYLE_SHADER
  808. rect 22 240 24 24
  809. forecolor 1 1 1 1
  810. visible 1
  811. border 1
  812. bordercolor 1 1 1 1
  813. background "gfx/menus/x"
  814. visible 1
  815. cvartest "team1_objective5"
  816. decoration
  817. showcvar
  818. {
  819. "1"
  820. }
  821. }
  822. itemDef
  823. {
  824. name team1_met_obj6
  825. group none
  826. style WINDOW_STYLE_SHADER
  827. rect 22 270 24 24
  828. forecolor 1 1 1 1
  829. visible 1
  830. border 1
  831. bordercolor 1 1 1 1
  832. background "gfx/menus/x"
  833. visible 1
  834. cvartest "team1_objective6"
  835. decoration
  836. showcvar
  837. {
  838. "1"
  839. }
  840. }
  841. itemDef
  842. {
  843. name team1_met_obj7
  844. group none
  845. style WINDOW_STYLE_SHADER
  846. rect 22 300 24 24
  847. forecolor 1 1 1 1
  848. visible 1
  849. border 1
  850. bordercolor 1 1 1 1
  851. background "gfx/menus/x"
  852. visible 1
  853. cvartest "team1_objective7"
  854. decoration
  855. showcvar
  856. {
  857. "1"
  858. }
  859. }
  860. itemDef
  861. {
  862. name team1_met_obj8
  863. group none
  864. style WINDOW_STYLE_SHADER
  865. rect 22 330 24 24
  866. forecolor 1 1 1 1
  867. visible 1
  868. border 1
  869. bordercolor 1 1 1 1
  870. background "gfx/menus/x"
  871. visible 1
  872. cvartest "team1_objective8"
  873. decoration
  874. showcvar
  875. {
  876. "1"
  877. }
  878. }
  879. //----------------------------------------------------------------------------------------------
  880. // TEAM2 - PRIMARY OBJECTIVE BUTTON
  881. //----------------------------------------------------------------------------------------------
  882. itemDef
  883. {
  884. name team2obj1_button
  885. group team2obj_buttons
  886. rect 273 120 24 24
  887. type ITEM_TYPE_BUTTON
  888. style WINDOW_STYLE_FILLED
  889. text @MENUS_1
  890. font 2
  891. textscale .8
  892. textstyle 0
  893. textalign ITEM_ALIGN_CENTER
  894. textalignx 12
  895. textaligny -1
  896. backcolor 0 0 1 1
  897. forecolor 1 1 1 1
  898. visible 1
  899. border 1
  900. bordercolor 0 0 0 0
  901. mouseEnter
  902. {
  903. setitemcolor team2obj1_button forecolor 1 1 1 1
  904. setitemcolor team2obj1_button backcolor 0 0 1 1
  905. }
  906. mouseExit
  907. {
  908. setitemcolor team2obj1_button forecolor .75 .75 .75 1
  909. setitemcolor team2obj1_button backcolor 0 0 .7 1
  910. }
  911. action
  912. {
  913. // Because open and close menu hide these
  914. show obj_minidesc
  915. show obj_longdesc
  916. show objective_pic
  917. // change color and stext of mini desc
  918. setitemtext obj_minidesc @MENUS_OBJECTIVE_1
  919. //change text of long desc
  920. setitemtext obj_longdesc "*team2_objective1_longdesc"
  921. // change pic to match objective
  922. setitembackground objective_pic "*team2_objective1_gfx"
  923. // Reset all buttons to their normal colors
  924. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  925. setitemcolor team1obj_buttons backcolor .7 0 0 1
  926. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  927. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  928. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  929. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  930. // Disable current button
  931. setcvar currentObjButton "team2obj1_button"
  932. setitemcolor team2obj1_button bordercolor 1 1 1 1
  933. setitemcolor team2obj1_button backcolor 0 0 1 1
  934. // Completed text
  935. hide completed_text
  936. show text_tm2_obj1
  937. // Reset old map icon to old background and enable old obj button
  938. // Set new map icon to hilite background and disable new obj button
  939. uiscript setsiegeobjbuttons tm2_icon1 team2_objective1_mapicon team2_objective1_litmapicon
  940. }
  941. }
  942. //----------------------------------------------------------------------------------------------
  943. // TEAM2 - SECONDARY OBJECTIVE BUTTONS
  944. //----------------------------------------------------------------------------------------------
  945. itemDef
  946. {
  947. name team2obj2_button
  948. group team2obj_buttons
  949. rect 273 150 24 24
  950. type ITEM_TYPE_BUTTON
  951. style WINDOW_STYLE_FILLED
  952. text @MENUS_2
  953. font 2
  954. textscale .8
  955. textstyle 0
  956. textalign ITEM_ALIGN_CENTER
  957. textalignx 12
  958. textaligny -1
  959. backcolor 0 0 1 1
  960. forecolor 1 1 1 1
  961. visible 1
  962. border 1
  963. bordercolor 0 0 0 0
  964. cvartest "team2_objective2_inuse"
  965. showcvar
  966. {
  967. "1"; "2"
  968. }
  969. mouseEnter
  970. {
  971. setitemcolor team2obj2_button forecolor 1 1 1 1
  972. setitemcolor team2obj2_button backcolor 0 0 1 1
  973. }
  974. mouseExit
  975. {
  976. setitemcolor team2obj2_button forecolor .75 .75 .75 1
  977. setitemcolor team2obj2_button backcolor 0 0 .7 1
  978. }
  979. action
  980. {
  981. // Because open and close menu hide these
  982. show obj_minidesc
  983. show obj_longdesc
  984. show objective_pic
  985. // change color and stext of mini desc
  986. setitemtext obj_minidesc @MENUS_OBJECTIVE_2
  987. //change text of long desc
  988. setitemtext obj_longdesc "*team2_objective2_longdesc"
  989. // change pic to match objective
  990. setitembackground objective_pic "*team2_objective2_gfx"
  991. // Reset all buttons to their normal colors
  992. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  993. setitemcolor team1obj_buttons backcolor .7 0 0 1
  994. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  995. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  996. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  997. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  998. // Disable current button
  999. setcvar currentObjButton "team2obj2_button"
  1000. setitemcolor team2obj2_button bordercolor 1 1 1 1
  1001. setitemcolor team2obj2_button backcolor 0 0 1 1
  1002. // Completed text
  1003. hide completed_text
  1004. show text_tm2_obj2
  1005. // Reset old map icon to old background and enable old obj button
  1006. // Set new map icon to hilite background and disable new obj button
  1007. uiscript setsiegeobjbuttons tm2_icon2 team2_objective2_mapicon team2_objective2_litmapicon
  1008. }
  1009. }
  1010. itemDef
  1011. {
  1012. name team2obj3_button
  1013. group team2obj_buttons
  1014. rect 273 180 24 24
  1015. type ITEM_TYPE_BUTTON
  1016. style WINDOW_STYLE_FILLED
  1017. text @MENUS_3
  1018. font 2
  1019. textscale .8
  1020. textstyle 0
  1021. textalign ITEM_ALIGN_CENTER
  1022. textalignx 12
  1023. textaligny -1
  1024. backcolor 0 0 1 1
  1025. forecolor 1 1 1 1
  1026. visible 1
  1027. border 1
  1028. bordercolor 0 0 0 0
  1029. cvartest "team2_objective3_inuse"
  1030. showcvar
  1031. {
  1032. "1"; "2"
  1033. }
  1034. mouseEnter
  1035. {
  1036. setitemcolor team2obj3_button forecolor 1 1 1 1
  1037. setitemcolor team2obj3_button backcolor 0 0 1 1
  1038. }
  1039. mouseExit
  1040. {
  1041. setitemcolor team2obj3_button forecolor .75 .75 .75 1
  1042. setitemcolor team2obj3_button backcolor 0 0 .7 1
  1043. }
  1044. action
  1045. {
  1046. // Because open and close menu hide these
  1047. show obj_minidesc
  1048. show obj_longdesc
  1049. show objective_pic
  1050. // change color and stext of mini desc
  1051. setitemtext obj_minidesc @MENUS_OBJECTIVE_3
  1052. //change text of long desc
  1053. setitemtext obj_longdesc "*team2_objective3_longdesc"
  1054. // change pic to match objective
  1055. setitembackground objective_pic "*team2_objective3_gfx"
  1056. // Reset all buttons to their normal colors
  1057. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  1058. setitemcolor team1obj_buttons backcolor .7 0 0 1
  1059. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  1060. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  1061. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  1062. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  1063. // Disable current button
  1064. setcvar currentObjButton "team2obj3_button"
  1065. setitemcolor team2obj3_button bordercolor 1 1 1 1
  1066. setitemcolor team2obj3_button backcolor 0 0 1 1
  1067. // Completed text
  1068. hide completed_text
  1069. show text_tm2_obj3
  1070. // Reset old map icon to old background and enable old obj button
  1071. // Set new map icon to hilite background and disable new obj button
  1072. uiscript setsiegeobjbuttons tm2_icon3 team2_objective3_mapicon team2_objective3_litmapicon
  1073. }
  1074. }
  1075. itemDef
  1076. {
  1077. name team2obj4_button
  1078. group team2obj_buttons
  1079. rect 273 210 24 24
  1080. type ITEM_TYPE_BUTTON
  1081. style WINDOW_STYLE_FILLED
  1082. text @MENUS_4
  1083. font 2
  1084. textscale .8
  1085. textstyle 0
  1086. textalign ITEM_ALIGN_CENTER
  1087. textalignx 12
  1088. textaligny -1
  1089. backcolor 0 0 1 1
  1090. forecolor 1 1 1 1
  1091. visible 1
  1092. border 1
  1093. bordercolor 0 0 0 0
  1094. cvartest "team2_objective4_inuse"
  1095. showcvar
  1096. {
  1097. "1"; "2"
  1098. }
  1099. mouseEnter
  1100. {
  1101. setitemcolor team2obj4_button forecolor 1 1 1 1
  1102. setitemcolor team2obj4_button backcolor 0 0 1 1
  1103. }
  1104. mouseExit
  1105. {
  1106. setitemcolor team2obj4_button forecolor .75 .75 .75 1
  1107. setitemcolor team2obj4_button backcolor 0 0 .7 1
  1108. }
  1109. action
  1110. {
  1111. // Because open and close menu hide these
  1112. show obj_minidesc
  1113. show obj_longdesc
  1114. show objective_pic
  1115. // change color and text of mini desc
  1116. setitemtext obj_minidesc @MENUS_OBJECTIVE_4
  1117. //change text of long desc
  1118. setitemtext obj_longdesc "*team2_objective4_longdesc"
  1119. // change pic to match objective
  1120. setitembackground objective_pic "*team2_objective4_gfx"
  1121. // Reset all buttons to their normal colors
  1122. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  1123. setitemcolor team1obj_buttons backcolor .7 0 0 1
  1124. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  1125. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  1126. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  1127. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  1128. // Disable current button
  1129. setcvar currentObjButton "team2obj4_button"
  1130. setitemcolor team2obj4_button bordercolor 1 1 1 1
  1131. setitemcolor team2obj4_button backcolor 0 0 1 1
  1132. // Completed text
  1133. hide completed_text
  1134. show text_tm2_obj4
  1135. // Reset old map icon to old background and enable old obj button
  1136. // Set new map icon to hilite background and disable new obj button
  1137. uiscript setsiegeobjbuttons tm2_icon4 team2_objective4_mapicon team2_objective4_litmapicon
  1138. }
  1139. }
  1140. itemDef
  1141. {
  1142. name team2obj5_button
  1143. group team2obj_buttons
  1144. rect 273 240 24 24
  1145. type ITEM_TYPE_BUTTON
  1146. style WINDOW_STYLE_FILLED
  1147. text @MENUS_5
  1148. font 2
  1149. textscale .8
  1150. textstyle 0
  1151. textalign ITEM_ALIGN_CENTER
  1152. textalignx 12
  1153. textaligny -1
  1154. backcolor 0 0 1 1
  1155. forecolor 1 1 1 1
  1156. visible 1
  1157. border 1
  1158. bordercolor 0 0 0 0
  1159. cvartest "team2_objective5_inuse"
  1160. showcvar
  1161. {
  1162. "1"; "2"
  1163. }
  1164. mouseEnter
  1165. {
  1166. setitemcolor team2obj5_button forecolor 1 1 1 1
  1167. setitemcolor team2obj5_button backcolor 0 0 1 1
  1168. }
  1169. mouseExit
  1170. {
  1171. setitemcolor team2obj5_button forecolor .75 .75 .75 1
  1172. setitemcolor team2obj5_button backcolor 0 0 .7 1
  1173. }
  1174. action
  1175. {
  1176. // Because open and close menu hide these
  1177. show obj_minidesc
  1178. show obj_longdesc
  1179. show objective_pic
  1180. // change color and text of mini desc
  1181. setitemtext obj_minidesc @MENUS_OBJECTIVE_5
  1182. //change text of long desc
  1183. setitemtext obj_longdesc "*team2_objective5_longdesc"
  1184. // change pic to match objective
  1185. setitembackground objective_pic "*team2_objective5_gfx"
  1186. // Reset all buttons to their normal colors
  1187. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  1188. setitemcolor team1obj_buttons backcolor .7 0 0 1
  1189. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  1190. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  1191. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  1192. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  1193. // Disable current button
  1194. setcvar currentObjButton "team2obj5_button"
  1195. setitemcolor team2obj5_button bordercolor 1 1 1 1
  1196. setitemcolor team2obj5_button backcolor 0 0 1 1
  1197. // Completed text
  1198. hide completed_text
  1199. show text_tm2_obj5
  1200. // Reset old map icon to old background and enable old obj button
  1201. // Set new map icon to hilite background and disable new obj button
  1202. uiscript setsiegeobjbuttons tm2_icon5 team2_objective5_mapicon team2_objective5_litmapicon
  1203. }
  1204. }
  1205. itemDef
  1206. {
  1207. name team2obj6_button
  1208. group team2obj_buttons
  1209. rect 273 270 24 24
  1210. type ITEM_TYPE_BUTTON
  1211. style WINDOW_STYLE_FILLED
  1212. text @MENUS_6
  1213. font 2
  1214. textscale .8
  1215. textstyle 0
  1216. textalign ITEM_ALIGN_CENTER
  1217. textalignx 12
  1218. textaligny -1
  1219. backcolor 0 0 1 1
  1220. forecolor 1 1 1 1
  1221. visible 1
  1222. border 1
  1223. bordercolor 0 0 0 0
  1224. cvartest "team2_objective6_inuse"
  1225. showcvar
  1226. {
  1227. "1"; "2"
  1228. }
  1229. mouseEnter
  1230. {
  1231. setitemcolor team2obj6_button forecolor 1 1 1 1
  1232. setitemcolor team2obj6_button backcolor 0 0 1 1
  1233. }
  1234. mouseExit
  1235. {
  1236. setitemcolor team2obj6_button forecolor .75 .75 .75 1
  1237. setitemcolor team2obj6_button backcolor 0 0 .7 1
  1238. }
  1239. action
  1240. {
  1241. // Because open and close menu hide these
  1242. show obj_minidesc
  1243. show obj_longdesc
  1244. show objective_pic
  1245. // change color and text of mini desc
  1246. setitemtext obj_minidesc @MENUS_OBJECTIVE_6
  1247. //change text of long desc
  1248. setitemtext obj_longdesc "*team2_objective6_longdesc"
  1249. // change pic to match objective
  1250. setitembackground objective_pic "*team2_objective6_gfx"
  1251. // Reset all buttons to their normal colors
  1252. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  1253. setitemcolor team1obj_buttons backcolor .7 0 0 1
  1254. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  1255. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  1256. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  1257. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  1258. // Disable current button
  1259. setcvar currentObjButton "team2obj6_button"
  1260. setitemcolor team2obj6_button bordercolor 1 1 1 1
  1261. setitemcolor team2obj6_button backcolor 0 0 1 1
  1262. // Completed text
  1263. hide completed_text
  1264. show text_tm2_obj6
  1265. // Reset old map icon to old background and enable old obj button
  1266. // Set new map icon to hilite background and disable new obj button
  1267. uiscript setsiegeobjbuttons tm2_icon6 team2_objective6_mapicon team2_objective6_litmapicon
  1268. }
  1269. }
  1270. itemDef
  1271. {
  1272. name team2obj7_button
  1273. group team2obj_buttons
  1274. rect 273 300 24 24
  1275. type ITEM_TYPE_BUTTON
  1276. style WINDOW_STYLE_FILLED
  1277. text @MENUS_7
  1278. font 2
  1279. textscale .8
  1280. textstyle 0
  1281. textalign ITEM_ALIGN_CENTER
  1282. textalignx 12
  1283. textaligny -1
  1284. backcolor 0 0 1 1
  1285. forecolor 1 1 1 1
  1286. visible 1
  1287. border 1
  1288. bordercolor 0 0 0 0
  1289. cvartest "team2_objective7_inuse"
  1290. showcvar
  1291. {
  1292. "1"; "2"
  1293. }
  1294. mouseEnter
  1295. {
  1296. setitemcolor team2obj7_button forecolor 1 1 1 1
  1297. setitemcolor team2obj7_button backcolor 0 0 1 1
  1298. }
  1299. mouseExit
  1300. {
  1301. setitemcolor team2obj7_button forecolor .75 .75 .75 1
  1302. setitemcolor team2obj7_button backcolor 0 0 .7 1
  1303. }
  1304. action
  1305. {
  1306. // Because open and close menu hide these
  1307. show obj_minidesc
  1308. show obj_longdesc
  1309. show objective_pic
  1310. // change color and text of mini desc
  1311. setitemtext obj_minidesc @MENUS_OBJECTIVE_7
  1312. //change text of long desc
  1313. setitemtext obj_longdesc "*team2_objective7_longdesc"
  1314. // change pic to match objective
  1315. setitembackground objective_pic "*team2_objective7_gfx"
  1316. // Reset all buttons to their normal colors
  1317. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  1318. setitemcolor team1obj_buttons backcolor .7 0 0 1
  1319. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  1320. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  1321. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  1322. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  1323. // Disable current button
  1324. setcvar currentObjButton "team2obj7_button"
  1325. setitemcolor team2obj7_button bordercolor 1 1 1 1
  1326. setitemcolor team2obj7_button backcolor 0 0 1 1
  1327. // Completed text
  1328. hide completed_text
  1329. show text_tm2_obj7
  1330. // Reset old map icon to old background and enable old obj button
  1331. // Set new map icon to hilite background and disable new obj button
  1332. uiscript setsiegeobjbuttons tm2_icon7 team2_objective7_mapicon team2_objective7_litmapicon
  1333. }
  1334. }
  1335. itemDef
  1336. {
  1337. name team2obj8_button
  1338. group team2obj_buttons
  1339. rect 273 330 24 24
  1340. type ITEM_TYPE_BUTTON
  1341. style WINDOW_STYLE_FILLED
  1342. text @MENUS_8
  1343. font 2
  1344. textscale .8
  1345. textstyle 0
  1346. textalign ITEM_ALIGN_CENTER
  1347. textalignx 12
  1348. textaligny -1
  1349. backcolor 0 0 1 1
  1350. forecolor 1 1 1 1
  1351. visible 1
  1352. border 1
  1353. bordercolor 0 0 0 0
  1354. cvartest "team2_objective8_inuse"
  1355. showcvar
  1356. {
  1357. "1"; "2"
  1358. }
  1359. mouseEnter
  1360. {
  1361. setitemcolor team2obj8_button forecolor 1 1 1 1
  1362. setitemcolor team2obj8_button backcolor 0 0 1 1
  1363. }
  1364. mouseExit
  1365. {
  1366. setitemcolor team2obj8_button forecolor .75 .75 .75 1
  1367. setitemcolor team2obj8_button backcolor 0 0 .7 1
  1368. }
  1369. action
  1370. {
  1371. // Because open and close menu hide these
  1372. show obj_minidesc
  1373. show obj_longdesc
  1374. show objective_pic
  1375. // change color and text of mini desc
  1376. setitemtext obj_minidesc @MENUS_OBJECTIVE_8
  1377. //change text of long desc
  1378. setitemtext obj_longdesc "*team2_objective8_longdesc"
  1379. // change pic to match objective
  1380. setitembackground objective_pic "*team2_objective8_gfx"
  1381. // Reset all buttons to their normal colors
  1382. setitemcolor team1obj_buttons forecolor .75 .75 .75 1
  1383. setitemcolor team1obj_buttons backcolor .7 0 0 1
  1384. setitemcolor team2obj_buttons forecolor .75 .75 .75 1
  1385. setitemcolor team2obj_buttons backcolor 0 0 .7 1
  1386. setitemcolor team1obj_buttons bordercolor 0 0 0 0
  1387. setitemcolor team2obj_buttons bordercolor 0 0 0 0
  1388. // Disable current button
  1389. setcvar currentObjButton "team2obj8_button"
  1390. setitemcolor team2obj8_button bordercolor 1 1 1 1
  1391. setitemcolor team2obj8_button backcolor 0 0 1 1
  1392. // Completed text
  1393. hide completed_text
  1394. show text_tm2_obj8
  1395. // Reset old map icon to old background and enable old obj button
  1396. // Set new map icon to hilite background and disable new obj button
  1397. uiscript setsiegeobjbuttons tm2_icon8 team2_objective8_mapicon team2_objective8_litmapicon
  1398. }
  1399. }
  1400. //----------------------------------------------------------------------------------------------
  1401. // TEAM2 - MET OBJECTIVES
  1402. //----------------------------------------------------------------------------------------------
  1403. itemDef
  1404. {
  1405. name team2_met_obj1
  1406. group none
  1407. style WINDOW_STYLE_SHADER
  1408. rect 273 120 24 24
  1409. forecolor 1 1 1 1
  1410. visible 1
  1411. border 1
  1412. bordercolor 1 1 1 1
  1413. background "gfx/menus/x"
  1414. visible 1
  1415. cvartest "team1_objective1"
  1416. decoration
  1417. showcvar
  1418. {
  1419. "1"
  1420. }
  1421. }
  1422. itemDef
  1423. {
  1424. name team2_met_obj2
  1425. group none
  1426. style WINDOW_STYLE_SHADER
  1427. rect 273 150 24 24
  1428. forecolor 1 1 1 1
  1429. visible 1
  1430. border 1
  1431. bordercolor 1 1 1 1
  1432. background "gfx/menus/x"
  1433. visible 1
  1434. cvartest "team1_objective2"
  1435. decoration
  1436. showcvar
  1437. {
  1438. "1"
  1439. }
  1440. }
  1441. itemDef
  1442. {
  1443. name team2_met_obj3
  1444. group none
  1445. style WINDOW_STYLE_SHADER
  1446. rect 273 180 24 24
  1447. forecolor 1 1 1 1
  1448. visible 1
  1449. border 1
  1450. bordercolor 1 1 1 1
  1451. background "gfx/menus/x"
  1452. visible 1
  1453. cvartest "team1_objective3"
  1454. decoration
  1455. showcvar
  1456. {
  1457. "1"
  1458. }
  1459. }
  1460. itemDef
  1461. {
  1462. name team2_met_obj4
  1463. group none
  1464. style WINDOW_STYLE_SHADER
  1465. rect 273 210 24 24
  1466. forecolor 1 1 1 1
  1467. visible 1
  1468. border 1
  1469. bordercolor 1 1 1 1
  1470. background "gfx/menus/x"
  1471. visible 1
  1472. cvartest "team1_objective4"
  1473. decoration
  1474. showcvar
  1475. {
  1476. "1"
  1477. }
  1478. }
  1479. itemDef
  1480. {
  1481. name team2_met_obj5
  1482. group none
  1483. style WINDOW_STYLE_SHADER
  1484. rect 273 240 24 24
  1485. forecolor 1 1 1 1
  1486. visible 1
  1487. border 1
  1488. bordercolor 1 1 1 1
  1489. background "gfx/menus/x"
  1490. visible 1
  1491. cvartest "team1_objective5"
  1492. decoration
  1493. showcvar
  1494. {
  1495. "1"
  1496. }
  1497. }
  1498. itemDef
  1499. {
  1500. name team2_met_obj6
  1501. group none
  1502. style WINDOW_STYLE_SHADER
  1503. rect 273 270 24 24
  1504. forecolor 1 1 1 1
  1505. visible 1
  1506. border 1
  1507. bordercolor 1 1 1 1
  1508. background "gfx/menus/x"
  1509. visible 1
  1510. cvartest "team1_objective6"
  1511. decoration
  1512. showcvar
  1513. {
  1514. "1"
  1515. }
  1516. }
  1517. itemDef
  1518. {
  1519. name team2_met_obj7
  1520. group none
  1521. style WINDOW_STYLE_SHADER
  1522. rect 273 300 24 24
  1523. forecolor 1 1 1 1
  1524. visible 1
  1525. border 1
  1526. bordercolor 1 1 1 1
  1527. background "gfx/menus/x"
  1528. visible 1
  1529. cvartest "team1_objective7"
  1530. decoration
  1531. showcvar
  1532. {
  1533. "1"
  1534. }
  1535. }
  1536. itemDef
  1537. {
  1538. name team2_met_obj8
  1539. group none
  1540. style WINDOW_STYLE_SHADER
  1541. rect 273 330 24 24
  1542. forecolor 1 1 1 1
  1543. visible 1
  1544. border 1
  1545. bordercolor 1 1 1 1
  1546. background "gfx/menus/x"
  1547. visible 1
  1548. cvartest "team1_objective8"
  1549. decoration
  1550. showcvar
  1551. {
  1552. "1"
  1553. }
  1554. }
  1555. //----------------------------------------------------------------------------------------------
  1556. // TEAM1 MAP ICONS - position for these is set in the on open of the menu
  1557. //----------------------------------------------------------------------------------------------
  1558. itemDef
  1559. {
  1560. name tm1_icon1
  1561. group mapicons
  1562. style WINDOW_STYLE_SHADER
  1563. background "gfx/2d/select"
  1564. forecolor 1 1 1 1
  1565. visible 1
  1566. decoration
  1567. cvartest "team1_objective1_inuse"
  1568. hidecvar
  1569. {
  1570. "0"
  1571. }
  1572. }
  1573. itemDef
  1574. {
  1575. name tm1_icon2
  1576. group mapicons
  1577. style WINDOW_STYLE_SHADER
  1578. background "gfx/2d/select"
  1579. forecolor 1 1 1 1
  1580. visible 1
  1581. decoration
  1582. cvartest "team1_objective2_inuse"
  1583. hidecvar
  1584. {
  1585. "0"
  1586. }
  1587. }
  1588. itemDef
  1589. {
  1590. name tm1_icon3
  1591. group mapicons
  1592. style WINDOW_STYLE_SHADER
  1593. background "gfx/2d/select"
  1594. forecolor 1 1 1 1
  1595. visible 1
  1596. decoration
  1597. cvartest "team1_objective3_inuse"
  1598. hidecvar
  1599. {
  1600. "0"
  1601. }
  1602. }
  1603. itemDef
  1604. {
  1605. name tm1_icon4
  1606. group mapicons
  1607. style WINDOW_STYLE_SHADER
  1608. background "gfx/2d/select"
  1609. forecolor 1 1 1 1
  1610. visible 1
  1611. decoration
  1612. cvartest "team1_objective4_inuse"
  1613. hidecvar
  1614. {
  1615. "0"
  1616. }
  1617. }
  1618. itemDef
  1619. {
  1620. name tm1_icon5
  1621. group mapicons
  1622. style WINDOW_STYLE_SHADER
  1623. background "gfx/2d/select"
  1624. forecolor 1 1 1 1
  1625. visible 1
  1626. decoration
  1627. cvartest "team1_objective5_inuse"
  1628. hidecvar
  1629. {
  1630. "0"
  1631. }
  1632. }
  1633. itemDef
  1634. {
  1635. name tm1_icon6
  1636. group mapicons
  1637. style WINDOW_STYLE_SHADER
  1638. background "gfx/2d/select"
  1639. forecolor 1 1 1 1
  1640. visible 1
  1641. decoration
  1642. cvartest "team1_objective6_inuse"
  1643. hidecvar
  1644. {
  1645. "0"
  1646. }
  1647. }
  1648. itemDef
  1649. {
  1650. name tm1_icon7
  1651. group mapicons
  1652. style WINDOW_STYLE_SHADER
  1653. background "gfx/2d/select"
  1654. forecolor 1 1 1 1
  1655. visible 1
  1656. decoration
  1657. cvartest "team1_objective7_inuse"
  1658. hidecvar
  1659. {
  1660. "0"
  1661. }
  1662. }
  1663. itemDef
  1664. {
  1665. name tm1_icon8
  1666. group mapicons
  1667. style WINDOW_STYLE_SHADER
  1668. background "gfx/2d/select"
  1669. forecolor 1 1 1 1
  1670. visible 1
  1671. decoration
  1672. cvartest "team1_objective8_inuse"
  1673. hidecvar
  1674. {
  1675. "0"
  1676. }
  1677. }
  1678. //----------------------------------------------------------------------------------------------
  1679. // TEAM2 MAP ICONS - position for these is set in the on open of the menu
  1680. //----------------------------------------------------------------------------------------------
  1681. itemDef
  1682. {
  1683. name tm2_icon1
  1684. group mapicons
  1685. style WINDOW_STYLE_SHADER
  1686. background "gfx/2d/select"
  1687. forecolor 1 1 1 1
  1688. visible 1
  1689. decoration
  1690. cvartest "team2_objective1_inuse"
  1691. hidecvar
  1692. {
  1693. "0"
  1694. }
  1695. }
  1696. itemDef
  1697. {
  1698. name tm2_icon2
  1699. group mapicons
  1700. style WINDOW_STYLE_SHADER
  1701. background "gfx/2d/select"
  1702. forecolor 1 1 1 1
  1703. visible 1
  1704. decoration
  1705. cvartest "team2_objective2_inuse"
  1706. hidecvar
  1707. {
  1708. "0"
  1709. }
  1710. }
  1711. itemDef
  1712. {
  1713. name tm2_icon3
  1714. group mapicons
  1715. style WINDOW_STYLE_SHADER
  1716. background "gfx/2d/select"
  1717. forecolor 1 1 1 1
  1718. visible 1
  1719. decoration
  1720. cvartest "team2_objective3_inuse"
  1721. hidecvar
  1722. {
  1723. "0"
  1724. }
  1725. }
  1726. itemDef
  1727. {
  1728. name tm2_icon4
  1729. group mapicons
  1730. //rectcvar "siege_objective3_mappos"
  1731. style WINDOW_STYLE_SHADER
  1732. background "gfx/2d/select"
  1733. forecolor 1 1 1 1
  1734. visible 1
  1735. decoration
  1736. cvartest "team2_objective4_inuse"
  1737. hidecvar
  1738. {
  1739. "0"
  1740. }
  1741. }
  1742. itemDef
  1743. {
  1744. name tm2_icon5
  1745. group mapicons
  1746. style WINDOW_STYLE_SHADER
  1747. background "gfx/2d/select"
  1748. forecolor 1 1 1 1
  1749. visible 1
  1750. decoration
  1751. cvartest "team2_objective5_inuse"
  1752. hidecvar
  1753. {
  1754. "0"
  1755. }
  1756. }
  1757. itemDef
  1758. {
  1759. name tm2_icon6
  1760. group mapicons
  1761. style WINDOW_STYLE_SHADER
  1762. background "gfx/2d/select"
  1763. forecolor 1 1 1 1
  1764. visible 1
  1765. decoration
  1766. cvartest "team2_objective6_inuse"
  1767. hidecvar
  1768. {
  1769. "0"
  1770. }
  1771. }
  1772. itemDef
  1773. {
  1774. name tm2_icon7
  1775. group mapicons
  1776. style WINDOW_STYLE_SHADER
  1777. background "gfx/2d/select"
  1778. forecolor 1 1 1 1
  1779. visible 1
  1780. decoration
  1781. cvartest "team2_objective7_inuse"
  1782. hidecvar
  1783. {
  1784. "0"
  1785. }
  1786. }
  1787. itemDef
  1788. {
  1789. name tm2_icon8
  1790. group mapicons
  1791. style WINDOW_STYLE_SHADER
  1792. background "gfx/2d/select"
  1793. forecolor 1 1 1 1
  1794. visible 1
  1795. decoration
  1796. cvartest "team2_objective8_inuse"
  1797. hidecvar
  1798. {
  1799. "0"
  1800. }
  1801. }
  1802. //----------------------------------------------------------------------------------------------
  1803. // TEAM1 - MET OBJECTIVES MAP ICONS
  1804. //----------------------------------------------------------------------------------------------
  1805. itemDef
  1806. {
  1807. name team1_met_map1
  1808. group none
  1809. style WINDOW_STYLE_SHADER
  1810. rectcvar team1_objective1_mappos
  1811. forecolor 1 1 1 1
  1812. visible 1
  1813. background "*team1_objective1_donemapicon"
  1814. visible 1
  1815. cvartest "team1_objective1"
  1816. decoration
  1817. showcvar
  1818. {
  1819. "1"
  1820. }
  1821. }
  1822. itemDef
  1823. {
  1824. name team1_met_map2
  1825. group none
  1826. style WINDOW_STYLE_SHADER
  1827. rectcvar team1_objective2_mappos
  1828. forecolor 1 1 1 1
  1829. visible 1
  1830. background "*team1_objective2_donemapicon"
  1831. visible 1
  1832. cvartest "team1_objective2"
  1833. decoration
  1834. showcvar
  1835. {
  1836. "1"
  1837. }
  1838. }
  1839. itemDef
  1840. {
  1841. name team1_met_map3
  1842. group none
  1843. style WINDOW_STYLE_SHADER
  1844. rectcvar team1_objective3_mappos
  1845. forecolor 1 1 1 1
  1846. visible 1
  1847. background "*team1_objective3_donemapicon"
  1848. visible 1
  1849. cvartest "team1_objective3"
  1850. decoration
  1851. showcvar
  1852. {
  1853. "1"
  1854. }
  1855. }
  1856. itemDef
  1857. {
  1858. name team1_met_map4
  1859. group none
  1860. style WINDOW_STYLE_SHADER
  1861. rectcvar team1_objective4_mappos
  1862. forecolor 1 1 1 1
  1863. visible 1
  1864. background "*team1_objective4_donemapicon"
  1865. visible 1
  1866. cvartest "team1_objective4"
  1867. decoration
  1868. showcvar
  1869. {
  1870. "1"
  1871. }
  1872. }
  1873. itemDef
  1874. {
  1875. name team1_met_map5
  1876. group none
  1877. style WINDOW_STYLE_SHADER
  1878. rectcvar team1_objective5_mappos
  1879. forecolor 1 1 1 1
  1880. visible 1
  1881. background "*team1_objective5_donemapicon"
  1882. visible 1
  1883. cvartest "team1_objective5"
  1884. decoration
  1885. showcvar
  1886. {
  1887. "1"
  1888. }
  1889. }
  1890. itemDef
  1891. {
  1892. name team1_met_map6
  1893. group none
  1894. style WINDOW_STYLE_SHADER
  1895. rectcvar team1_objective6_mappos
  1896. forecolor 1 1 1 1
  1897. visible 1
  1898. background "*team1_objective6_donemapicon"
  1899. visible 1
  1900. cvartest "team1_objective6"
  1901. decoration
  1902. showcvar
  1903. {
  1904. "1"
  1905. }
  1906. }
  1907. itemDef
  1908. {
  1909. name team1_met_map7
  1910. group none
  1911. style WINDOW_STYLE_SHADER
  1912. rectcvar team1_objective7_mappos
  1913. forecolor 1 1 1 1
  1914. visible 1
  1915. background "*team1_objective7_donemapicon"
  1916. visible 1
  1917. cvartest "team1_objective7"
  1918. decoration
  1919. showcvar
  1920. {
  1921. "1"
  1922. }
  1923. }
  1924. itemDef
  1925. {
  1926. name team1_met_map8
  1927. group none
  1928. style WINDOW_STYLE_SHADER
  1929. rectcvar team1_objective8_mappos
  1930. forecolor 1 1 1 1
  1931. visible 1
  1932. background "*team1_objective8_donemapicon"
  1933. visible 1
  1934. cvartest "team1_objective8"
  1935. decoration
  1936. showcvar
  1937. {
  1938. "1"
  1939. }
  1940. }
  1941. //----------------------------------------------------------------------------------------------
  1942. // TEAM2 - MET OBJECTIVES MAP ICONS
  1943. //----------------------------------------------------------------------------------------------
  1944. itemDef
  1945. {
  1946. name team2_met_map1
  1947. group none
  1948. style WINDOW_STYLE_SHADER
  1949. rectcvar team2_objective1_mappos
  1950. forecolor 1 1 1 1
  1951. visible 1
  1952. background "*team2_objective1_donemapicon"
  1953. visible 1
  1954. decoration
  1955. cvartest "team1_objective1"
  1956. showcvar
  1957. {
  1958. "1"
  1959. }
  1960. }
  1961. itemDef
  1962. {
  1963. name team2_met_map2
  1964. group none
  1965. style WINDOW_STYLE_SHADER
  1966. rectcvar team2_objective2_mappos
  1967. forecolor 1 1 1 1
  1968. visible 1
  1969. background "*team2_objective2_donemapicon"
  1970. visible 1
  1971. cvartest "team1_objective2"
  1972. decoration
  1973. showcvar
  1974. {
  1975. "1"
  1976. }
  1977. }
  1978. itemDef
  1979. {
  1980. name team2_met_map3
  1981. group none
  1982. style WINDOW_STYLE_SHADER
  1983. rectcvar team2_objective3_mappos
  1984. forecolor 1 1 1 1
  1985. visible 1
  1986. background "*team2_objective3_donemapicon"
  1987. visible 1
  1988. cvartest "team1_objective3"
  1989. decoration
  1990. showcvar
  1991. {
  1992. "1"
  1993. }
  1994. }
  1995. itemDef
  1996. {
  1997. name team2_met_map4
  1998. group none
  1999. style WINDOW_STYLE_SHADER
  2000. rectcvar team2_objective4_mappos
  2001. forecolor 1 1 1 1
  2002. visible 1
  2003. background "*team2_objective4_donemapicon"
  2004. visible 1
  2005. cvartest "team1_objective4"
  2006. decoration
  2007. showcvar
  2008. {
  2009. "1"
  2010. }
  2011. }
  2012. itemDef
  2013. {
  2014. name team2_met_map5
  2015. group none
  2016. style WINDOW_STYLE_SHADER
  2017. rectcvar team2_objective5_mappos
  2018. forecolor 1 1 1 1
  2019. visible 1
  2020. background "*team2_objective5_donemapicon"
  2021. visible 1
  2022. cvartest "team1_objective5"
  2023. decoration
  2024. showcvar
  2025. {
  2026. "1"
  2027. }
  2028. }
  2029. itemDef
  2030. {
  2031. name team2_met_map6
  2032. group none
  2033. style WINDOW_STYLE_SHADER
  2034. rectcvar team2_objective6_mappos
  2035. forecolor 1 1 1 1
  2036. visible 1
  2037. background "*team2_objective6_donemapicon"
  2038. visible 1
  2039. cvartest "team1_objective6"
  2040. decoration
  2041. showcvar
  2042. {
  2043. "1"
  2044. }
  2045. }
  2046. itemDef
  2047. {
  2048. name team2_met_map7
  2049. group none
  2050. style WINDOW_STYLE_SHADER
  2051. rectcvar team2_objective7_mappos
  2052. forecolor 1 1 1 1
  2053. visible 1
  2054. background "*team2_objective7_donemapicon"
  2055. visible 1
  2056. cvartest "team1_objective7"
  2057. decoration
  2058. showcvar
  2059. {
  2060. "1"
  2061. }
  2062. }
  2063. itemDef
  2064. {
  2065. name team2_met_map8
  2066. group none
  2067. style WINDOW_STYLE_SHADER
  2068. rectcvar team2_objective8_mappos
  2069. forecolor 1 1 1 1
  2070. visible 1
  2071. background "*team2_objective8_donemapicon"
  2072. visible 1
  2073. cvartest "team1_objective8"
  2074. decoration
  2075. showcvar
  2076. {
  2077. "1"
  2078. }
  2079. }
  2080. //-------------------------------------------
  2081. // OBJECTIVE MINI-DESCRIPTIONS
  2082. //-------------------------------------------
  2083. itemDef
  2084. {
  2085. name obj_minidesc
  2086. rect 7 378 308 20
  2087. style WINDOW_STYLE_FILLED
  2088. backcolor .05 .13 .25 1
  2089. text @MENUS_PRIMARY_OBJECTIVES
  2090. font 2
  2091. textscale .7
  2092. textalign ITEM_ALIGN_RIGHT
  2093. textalignx 300
  2094. forecolor 1 .68 0 1
  2095. visible 0
  2096. decoration
  2097. }
  2098. //-------------------------------------------
  2099. // OBJECTIVE LONG DESCRIPTION
  2100. //-------------------------------------------
  2101. itemDef
  2102. {
  2103. name obj_longdesc
  2104. rect 16 403 270 76
  2105. type ITEM_TYPE_TEXT
  2106. font 4
  2107. textscale .8
  2108. textalign ITEM_ALIGN_LEFT
  2109. forecolor 1 1 1 1
  2110. visible 1
  2111. autowrapped
  2112. decoration
  2113. }
  2114. //-------------------------------------------
  2115. // OBJECTIVE PICTURE
  2116. //-------------------------------------------
  2117. itemDef
  2118. {
  2119. name objective_pic
  2120. rect 208 398 107 78
  2121. style WINDOW_STYLE_SHADER
  2122. background "gfx/2d/select"
  2123. forecolor 1 1 1 1
  2124. visible 1
  2125. decoration
  2126. }
  2127. //-------------------------------------------
  2128. // COMPLETED TEXT
  2129. //-------------------------------------------
  2130. itemDef
  2131. {
  2132. name text_tm1_obj1
  2133. group completed_text
  2134. rect 210 427 107 78
  2135. type ITEM_TYPE_TEXT
  2136. text @MENUS_OBJECTIVE_COMPLETED
  2137. textalign ITEM_ALIGN_CENTER
  2138. font 2
  2139. textscale .7
  2140. textalignx 53
  2141. textaligny 0
  2142. forecolor 1 1 1 1
  2143. visible 0
  2144. decoration
  2145. cvartest "team1_objective1"
  2146. showcvar
  2147. {
  2148. "1"
  2149. }
  2150. }
  2151. itemDef
  2152. {
  2153. name text_tm1_obj2
  2154. group completed_text
  2155. rect 210 427 107 78
  2156. type ITEM_TYPE_TEXT
  2157. text @MENUS_OBJECTIVE_COMPLETED
  2158. textalign ITEM_ALIGN_CENTER
  2159. font 2
  2160. textscale .7
  2161. textalignx 53
  2162. textaligny 0
  2163. forecolor 1 1 1 1
  2164. visible 0
  2165. decoration
  2166. cvartest "team1_objective2"
  2167. showcvar
  2168. {
  2169. "1"
  2170. }
  2171. }
  2172. itemDef
  2173. {
  2174. name text_tm1_obj3
  2175. group completed_text
  2176. rect 210 427 107 78
  2177. type ITEM_TYPE_TEXT
  2178. text @MENUS_OBJECTIVE_COMPLETED
  2179. textalign ITEM_ALIGN_CENTER
  2180. font 2
  2181. textscale .7
  2182. textalignx 53
  2183. textaligny 0
  2184. forecolor 1 1 1 1
  2185. visible 0
  2186. decoration
  2187. cvartest "team1_objective3"
  2188. showcvar
  2189. {
  2190. "1"
  2191. }
  2192. }
  2193. itemDef
  2194. {
  2195. name text_tm1_obj4
  2196. group completed_text
  2197. rect 210 427 107 78
  2198. type ITEM_TYPE_TEXT
  2199. text @MENUS_OBJECTIVE_COMPLETED
  2200. textalign ITEM_ALIGN_CENTER
  2201. font 2
  2202. textscale .7
  2203. textalignx 53
  2204. textaligny 0
  2205. forecolor 1 1 1 1
  2206. visible 0
  2207. decoration
  2208. cvartest "team1_objective4"
  2209. showcvar
  2210. {
  2211. "1"
  2212. }
  2213. }
  2214. itemDef
  2215. {
  2216. name text_tm1_obj5
  2217. group completed_text
  2218. rect 210 427 107 78
  2219. type ITEM_TYPE_TEXT
  2220. text @MENUS_OBJECTIVE_COMPLETED
  2221. textalign ITEM_ALIGN_CENTER
  2222. font 2
  2223. textscale .7
  2224. textalignx 53
  2225. textaligny 0
  2226. forecolor 1 1 1 1
  2227. visible 0
  2228. decoration
  2229. cvartest "team1_objective5"
  2230. showcvar
  2231. {
  2232. "1"
  2233. }
  2234. }
  2235. itemDef
  2236. {
  2237. name text_tm1_obj6
  2238. group completed_text
  2239. rect 210 427 107 78
  2240. type ITEM_TYPE_TEXT
  2241. text @MENUS_OBJECTIVE_COMPLETED
  2242. textalign ITEM_ALIGN_CENTER
  2243. font 2
  2244. textscale .7
  2245. textalignx 53
  2246. textaligny 0
  2247. forecolor 1 1 1 1
  2248. visible 0
  2249. decoration
  2250. cvartest "team1_objective6"
  2251. showcvar
  2252. {
  2253. "1"
  2254. }
  2255. }
  2256. itemDef
  2257. {
  2258. name text_tm1_obj7
  2259. group completed_text
  2260. rect 210 427 107 78
  2261. type ITEM_TYPE_TEXT
  2262. text @MENUS_OBJECTIVE_COMPLETED
  2263. textalign ITEM_ALIGN_CENTER
  2264. font 2
  2265. textscale .7
  2266. textalignx 53
  2267. textaligny 0
  2268. forecolor 1 1 1 1
  2269. visible 0
  2270. decoration
  2271. cvartest "team1_objective7"
  2272. showcvar
  2273. {
  2274. "1"
  2275. }
  2276. }
  2277. itemDef
  2278. {
  2279. name text_tm1_obj8
  2280. group completed_text
  2281. rect 210 427 107 78
  2282. type ITEM_TYPE_TEXT
  2283. text @MENUS_OBJECTIVE_COMPLETED
  2284. textalign ITEM_ALIGN_CENTER
  2285. font 2
  2286. textscale .7
  2287. textalignx 53
  2288. textaligny 0
  2289. forecolor 1 1 1 1
  2290. visible 0
  2291. decoration
  2292. cvartest "team1_objective8"
  2293. showcvar
  2294. {
  2295. "1"
  2296. }
  2297. }
  2298. itemDef
  2299. {
  2300. name text_tm2_obj1
  2301. group completed_text
  2302. rect 210 427 107 78
  2303. type ITEM_TYPE_TEXT
  2304. text @MENUS_OBJECTIVE_COMPLETED
  2305. textalign ITEM_ALIGN_CENTER
  2306. font 2
  2307. textscale .7
  2308. textalignx 53
  2309. textaligny 0
  2310. forecolor 1 1 1 1
  2311. visible 0
  2312. decoration
  2313. cvartest "team2_objective1"
  2314. showcvar
  2315. {
  2316. "1"
  2317. }
  2318. }
  2319. itemDef
  2320. {
  2321. name text_tm2_obj2
  2322. group completed_text
  2323. rect 210 427 107 78
  2324. type ITEM_TYPE_TEXT
  2325. text @MENUS_OBJECTIVE_COMPLETED
  2326. textalign ITEM_ALIGN_CENTER
  2327. font 2
  2328. textscale .7
  2329. textalignx 53
  2330. textaligny 0
  2331. forecolor 1 1 1 1
  2332. visible 0
  2333. decoration
  2334. cvartest "team2_objective2"
  2335. showcvar
  2336. {
  2337. "1"
  2338. }
  2339. }
  2340. itemDef
  2341. {
  2342. name text_tm2_obj3
  2343. group completed_text
  2344. rect 210 427 107 78
  2345. type ITEM_TYPE_TEXT
  2346. text @MENUS_OBJECTIVE_COMPLETED
  2347. textalign ITEM_ALIGN_CENTER
  2348. font 2
  2349. textscale .7
  2350. textalignx 53
  2351. textaligny 0
  2352. forecolor 1 1 1 1
  2353. visible 0
  2354. decoration
  2355. cvartest "team2_objective3"
  2356. showcvar
  2357. {
  2358. "1"
  2359. }
  2360. }
  2361. itemDef
  2362. {
  2363. name text_tm2_obj4
  2364. group completed_text
  2365. rect 210 427 107 78
  2366. type ITEM_TYPE_TEXT
  2367. text @MENUS_OBJECTIVE_COMPLETED
  2368. textalign ITEM_ALIGN_CENTER
  2369. font 2
  2370. textscale .7
  2371. textalignx 53
  2372. textaligny 0
  2373. forecolor 1 1 1 1
  2374. visible 0
  2375. decoration
  2376. cvartest "team2_objective4"
  2377. showcvar
  2378. {
  2379. "1"
  2380. }
  2381. }
  2382. itemDef
  2383. {
  2384. name text_tm2_obj5
  2385. group completed_text
  2386. rect 210 427 107 78
  2387. type ITEM_TYPE_TEXT
  2388. text @MENUS_OBJECTIVE_COMPLETED
  2389. textalign ITEM_ALIGN_CENTER
  2390. font 2
  2391. textscale .7
  2392. textalignx 53
  2393. textaligny 0
  2394. forecolor 1 1 1 1
  2395. visible 0
  2396. decoration
  2397. cvartest "team2_objective5"
  2398. showcvar
  2399. {
  2400. "1"
  2401. }
  2402. }
  2403. itemDef
  2404. {
  2405. name text_tm2_obj6
  2406. group completed_text
  2407. rect 210 427 107 78
  2408. type ITEM_TYPE_TEXT
  2409. text @MENUS_OBJECTIVE_COMPLETED
  2410. textalign ITEM_ALIGN_CENTER
  2411. font 2
  2412. textscale .7
  2413. textalignx 53
  2414. textaligny 0
  2415. forecolor 1 1 1 1
  2416. visible 0
  2417. decoration
  2418. cvartest "team2_objective6"
  2419. showcvar
  2420. {
  2421. "1"
  2422. }
  2423. }
  2424. itemDef
  2425. {
  2426. name text_tm2_obj7
  2427. group completed_text
  2428. rect 210 427 107 78
  2429. type ITEM_TYPE_TEXT
  2430. text @MENUS_OBJECTIVE_COMPLETED
  2431. textalign ITEM_ALIGN_CENTER
  2432. font 2
  2433. textscale .7
  2434. textalignx 53
  2435. textaligny 0
  2436. forecolor 1 1 1 1
  2437. visible 0
  2438. decoration
  2439. cvartest "team2_objective7"
  2440. showcvar
  2441. {
  2442. "1"
  2443. }
  2444. }
  2445. itemDef
  2446. {
  2447. name text_tm2_obj8
  2448. group completed_text
  2449. rect 210 427 107 78
  2450. type ITEM_TYPE_TEXT
  2451. text @MENUS_OBJECTIVE_COMPLETED
  2452. textalign ITEM_ALIGN_CENTER
  2453. font 2
  2454. textscale .7
  2455. textalignx 53
  2456. textaligny 0
  2457. forecolor 1 1 1 1
  2458. visible 0
  2459. decoration
  2460. cvartest "team2_objective8"
  2461. showcvar
  2462. {
  2463. "1"
  2464. }
  2465. }
  2466. // Border around the objective text and pic (lower left section of screen)
  2467. itemDef
  2468. {
  2469. name objtext_border
  2470. group none
  2471. type ITEM_TYPE_TEXT
  2472. rect 5 378 310 98
  2473. visible 1
  2474. border 1
  2475. bordercolor 1 1 1 1
  2476. decoration
  2477. }
  2478. //----------------------------------------------------------------------------------------------
  2479. // MAP TIME SECTION
  2480. //----------------------------------------------------------------------------------------------
  2481. // Border
  2482. itemDef
  2483. {
  2484. name border
  2485. group none
  2486. type ITEM_TYPE_TEXT
  2487. rect 317 5 317 20
  2488. forecolor 1 1 1 .6
  2489. visible 1
  2490. border 1
  2491. bordercolor 1 1 1 1
  2492. decoration
  2493. }
  2494. itemDef
  2495. {
  2496. name playername
  2497. group time
  2498. type ITEM_TYPE_EDITFIELD
  2499. rect 325 6 120 18
  2500. text @MENUS_NAME_TITLE
  2501. cvar name
  2502. textalign ITEM_ALIGN_LEFT
  2503. textalignx 0
  2504. font 4
  2505. textscale 1
  2506. forecolor 1 .68 0 1
  2507. visible 1
  2508. }
  2509. itemDef
  2510. {
  2511. name playerteam
  2512. group time
  2513. type ITEM_TYPE_MULTI
  2514. style WINDOW_STYLE_EMPTY
  2515. rect 500 6 120 18
  2516. text @MENUS_TEAM
  2517. cvar ui_team
  2518. cvarStrList
  2519. {
  2520. @MENUS_SPECTATOR 0
  2521. "*cg_siegeTeam1Name" 1
  2522. "*cg_siegeTeam2Name" 2
  2523. @MENUS_SPECTATOR 3
  2524. }
  2525. textalign ITEM_ALIGN_LEFT
  2526. textalignx 0
  2527. font 4
  2528. textscale 1
  2529. forecolor 1 1 1 1
  2530. visible 1
  2531. decoration
  2532. }
  2533. //----------------------------------------------------------------------------------------------
  2534. // TEAM SELECTION
  2535. //----------------------------------------------------------------------------------------------
  2536. // join a team text
  2537. itemDef
  2538. {
  2539. name joinateam
  2540. rect 318 27 316 20
  2541. style WINDOW_STYLE_FILLED
  2542. backcolor .05 .13 .25 1
  2543. text @MENUS_JOIN_A_TEAM
  2544. font 3
  2545. textscale .7
  2546. textalign ITEM_ALIGN_LEFT
  2547. textalignx 6
  2548. textaligny 2
  2549. forecolor 1 .68 0 1
  2550. visible 1
  2551. decoration
  2552. }
  2553. // Border
  2554. itemDef
  2555. {
  2556. name teamborder
  2557. group none
  2558. type ITEM_TYPE_TEXT
  2559. rect 317 26 317 103
  2560. forecolor 1 1 1 .6
  2561. visible 1
  2562. border 1
  2563. bordercolor 1 1 1 1
  2564. decoration
  2565. }
  2566. //----------------------------------------
  2567. // TEAM SYMBOLS AND COUNTS PER TEAM
  2568. //----------------------------------------
  2569. itemDef
  2570. {
  2571. name team1name
  2572. group none
  2573. rect 355 47 45 45
  2574. cvar cg_siegeTeam1Name
  2575. textalign ITEM_ALIGN_CENTER
  2576. textalignx 23
  2577. font 4
  2578. textscale 1
  2579. forecolor .8 .48 0 1
  2580. visible 1
  2581. decoration
  2582. }
  2583. itemDef
  2584. {
  2585. name team1_button
  2586. group team_button
  2587. rect 355 66 45 45
  2588. type ITEM_TYPE_BUTTON
  2589. style WINDOW_STYLE_FILLED
  2590. descText @MENUS_JOIN_TEAM_DESC
  2591. backcolor .8 .48 0 1
  2592. visible 1
  2593. mouseEnter
  2594. {
  2595. setitemcolor team1_button backcolor 1 .68 0 1
  2596. setitemcolor team1_count forecolor 1 .68 0 1
  2597. setitemcolor team1name forecolor 1 .68 0 1
  2598. }
  2599. mouseExit
  2600. {
  2601. setitemcolor team1_button backcolor .8 .48 0 1
  2602. setitemcolor team1_count forecolor .8 .48 0 1
  2603. setitemcolor team1name forecolor .8 .48 0 1
  2604. }
  2605. // If you change this script, be sure to change onteam1
  2606. action
  2607. {
  2608. // show the class stuff, cause this uses class
  2609. show class_button
  2610. show class_count
  2611. show classdescription
  2612. play "sound/interface/button1.wav"
  2613. setcvar ui_holdteam 1
  2614. uiscript updatesiegeclasscnt 1
  2615. uiscript updatesiegecvars
  2616. // Darken the other team buttons
  2617. setitemcolor team_button backcolor .8 .48 0 1
  2618. setitemcolor team_count forecolor .8 .48 0 1
  2619. setitemcolor team2name forecolor .8 .48 0 1
  2620. setitemcolor autoteam bordercolor 0 0 0 0
  2621. // turn on the other team buttons for input
  2622. disable team_button 0
  2623. disable autoteam 0
  2624. // turn on class buttons
  2625. disable class_button 0
  2626. // highlight this team button
  2627. setitemcolor team1_button backcolor 1 1 1 1
  2628. setitemcolor team1_count forecolor 1 1 1 1
  2629. setitemcolor team1name forecolor 1 1 1 1
  2630. // no more input for this guy
  2631. disable team1_button 1
  2632. show grey_button
  2633. setitemcolor class_button forecolor .5 .5 .5 1
  2634. setitemtext class1_count "*ui_tm1_c0_cnt"
  2635. setitemtext class2_count "*ui_tm1_c1_cnt"
  2636. setitemtext class3_count "*ui_tm1_c2_cnt"
  2637. setitemtext class4_count "*ui_tm1_c3_cnt"
  2638. setitemtext class5_count "*ui_tm1_c4_cnt"
  2639. setitemtext class6_count "*ui_tm1_c5_cnt"
  2640. hide class_portrait
  2641. show siegeclassconfigtitle
  2642. uiscript resetsiegelistboxes
  2643. uiscript resetitemdescription
  2644. hide feeders
  2645. hide forcepowerlevel
  2646. hide stats
  2647. hide classdescription
  2648. setitemcolor class_count forecolor .5 .5 .5 1
  2649. hide itemdescription
  2650. }
  2651. }
  2652. itemDef
  2653. {
  2654. name team1_count
  2655. group team_count
  2656. type ITEM_TYPE_TEXT
  2657. rect 355 111 60 18
  2658. cvar ui_tm1_cnt
  2659. textalign ITEM_ALIGN_CENTER
  2660. textalignx 24
  2661. font 4
  2662. textscale 1
  2663. forecolor .8 .48 0 1
  2664. visible 1
  2665. decoration
  2666. }
  2667. // This item is here just to have a script for C to run if the menu is opened by
  2668. // a player who is already on a team
  2669. itemDef
  2670. {
  2671. name onteam1
  2672. group none
  2673. rect 455 47 45 45
  2674. textalign ITEM_ALIGN_CENTER
  2675. textalignx 23
  2676. forecolor .8 .48 0 1
  2677. visible 0
  2678. decoration
  2679. action
  2680. {
  2681. // show the class stuff, cause this uses class
  2682. show class_button
  2683. show class_count
  2684. show classdescription
  2685. // setitemcolorcvar feeders bordercolor "team1_coloron"
  2686. // setitemcolorcvar siegeclassconfigtitle forecolor "team1_coloron"
  2687. play "sound/interface/button1.wav"
  2688. setcvar ui_holdteam 1
  2689. uiscript updatesiegeclasscnt 1
  2690. uiscript updatesiegecvars
  2691. // Darken the other team buttons
  2692. setitemcolor team_button backcolor .8 .48 0 1
  2693. setitemcolor team_count forecolor .8 .48 0 1
  2694. setitemcolor team2name forecolor .8 .48 0 1
  2695. setitemcolor autoteam bordercolor 0 0 0 0
  2696. // turn on the other team buttons for input
  2697. disable team_button 0
  2698. disable autoteam 0
  2699. // turn on class buttons
  2700. disable class_button 0
  2701. // highlight this team button
  2702. setitemcolor team1_button backcolor 1 1 1 1
  2703. setitemcolor team1_count forecolor 1 1 1 1
  2704. setitemcolor team1name forecolor 1 1 1 1
  2705. // no more input for this guy
  2706. disable team1_button 1
  2707. show grey_button
  2708. setitemcolor class_button forecolor .5 .5 .5 1
  2709. setitemtext class1_count "*ui_tm1_c0_cnt"
  2710. setitemtext class2_count "*ui_tm1_c1_cnt"
  2711. setitemtext class3_count "*ui_tm1_c2_cnt"
  2712. setitemtext class4_count "*ui_tm1_c3_cnt"
  2713. setitemtext class5_count "*ui_tm1_c4_cnt"
  2714. setitemtext class6_count "*ui_tm1_c5_cnt"
  2715. hide class_portrait
  2716. show siegeclassconfigtitle
  2717. uiscript resetsiegelistboxes
  2718. uiscript resetitemdescription
  2719. hide feeders
  2720. hide forcepowerlevel
  2721. hide stats
  2722. hide classdescription
  2723. setitemcolor class_count forecolor .5 .5 .5 1
  2724. hide itemdescription
  2725. }
  2726. }
  2727. itemDef
  2728. {
  2729. name team2name
  2730. group none
  2731. rect 455 47 45 45
  2732. cvar cg_siegeTeam2Name
  2733. textalign ITEM_ALIGN_CENTER
  2734. textalignx 23
  2735. font 4
  2736. textscale 1
  2737. forecolor .8 .48 0 1
  2738. visible 1
  2739. decoration
  2740. }
  2741. itemDef
  2742. {
  2743. name team2_button
  2744. group team_button
  2745. rect 455 67 45 45
  2746. type ITEM_TYPE_BUTTON
  2747. style WINDOW_STYLE_FILLED
  2748. descText @MENUS_JOIN_TEAM_DESC
  2749. backcolor .8 .48 0 1
  2750. visible 1
  2751. mouseEnter
  2752. {
  2753. setitemcolor team2_button backcolor 1 .68 0 1
  2754. setitemcolor team2_count forecolor 1 .68 0 1
  2755. setitemcolor team2name forecolor 1 .68 0 1
  2756. }
  2757. mouseExit
  2758. {
  2759. setitemcolor team2_button backcolor .8 .48 0 1
  2760. setitemcolor team2_count forecolor .8 .48 0 1
  2761. setitemcolor team2name forecolor .8 .48 0 1
  2762. }
  2763. // If you change this script, be sure to change onteam2
  2764. action
  2765. {
  2766. // show the class stuff, cause this uses class
  2767. show class_button
  2768. show class_count
  2769. show classdescription
  2770. play "sound/interface/button1.wav"
  2771. setcvar ui_holdteam 2
  2772. uiscript updatesiegeclasscnt 2
  2773. uiscript updatesiegecvars
  2774. // Darken the other team buttons
  2775. setitemcolor team_button backcolor .8 .48 0 1
  2776. setitemcolor team_count forecolor .8 .48 0 1
  2777. setitemcolor team1name forecolor .8 .48 0 1
  2778. setitemcolor autoteam bordercolor 0 0 0 0
  2779. // turn on the other team buttons for input
  2780. disable team_button 0
  2781. disable autoteam 0
  2782. // turn on class buttons
  2783. disable class_button 0
  2784. // highlight this team button
  2785. setitemcolor team2_button backcolor 1 1 1 1
  2786. setitemcolor team2_count forecolor 1 1 1 1
  2787. setitemcolor team2name forecolor 1 1 1 1
  2788. // no more input for this guy
  2789. disable team2_button 1
  2790. show grey_button
  2791. setitemcolor class_button forecolor .5 .5 .5 1
  2792. setitemtext class1_count "*ui_tm2_c0_cnt"
  2793. setitemtext class2_count "*ui_tm2_c1_cnt"
  2794. setitemtext class3_count "*ui_tm2_c2_cnt"
  2795. setitemtext class4_count "*ui_tm2_c3_cnt"
  2796. setitemtext class5_count "*ui_tm2_c4_cnt"
  2797. setitemtext class6_count "*ui_tm2_c5_cnt"
  2798. hide class_portrait
  2799. show siegeclassconfigtitle
  2800. uiscript resetsiegelistboxes
  2801. uiscript resetitemdescription
  2802. hide feeders
  2803. hide forcepowerlevel
  2804. hide stats
  2805. hide classdescription
  2806. setitemcolor class_count forecolor .5 .5 .5 1
  2807. hide itemdescription
  2808. }
  2809. }
  2810. itemDef
  2811. {
  2812. name team2_count
  2813. group team_count
  2814. type ITEM_TYPE_TEXT
  2815. rect 455 111 60 18
  2816. cvar ui_tm2_cnt
  2817. textalign ITEM_ALIGN_CENTER
  2818. textalignx 24
  2819. font 4
  2820. textscale 1
  2821. forecolor .8 .48 0 1
  2822. visible 1
  2823. decoration
  2824. }
  2825. // This item is here just to have a script for C to run if the menu is opened by
  2826. // a player who is already on a team
  2827. itemDef
  2828. {
  2829. name onteam2
  2830. group none
  2831. rect 455 47 45 45
  2832. textalign ITEM_ALIGN_CENTER
  2833. textalignx 23
  2834. forecolor .8 .48 0 1
  2835. visible 0
  2836. decoration
  2837. action
  2838. {
  2839. // show the class stuff, cause this uses class
  2840. show class_button
  2841. show class_count
  2842. show classdescription
  2843. play "sound/interface/button1.wav"
  2844. setcvar ui_holdteam 2
  2845. uiscript updatesiegeclasscnt 2
  2846. uiscript updatesiegecvars
  2847. // Darken the other team buttons
  2848. setitemcolor team_button backcolor .8 .48 0 1
  2849. setitemcolor team_count forecolor .8 .48 0 1
  2850. setitemcolor team1name forecolor .8 .48 0 1
  2851. setitemcolor autoteam bordercolor 0 0 0 0
  2852. // turn on the other team buttons for input
  2853. disable team_button 0
  2854. disable autoteam 0
  2855. // turn on class buttons
  2856. disable class_button 0
  2857. // highlight this team button
  2858. setitemcolor team2_button backcolor 1 1 1 1
  2859. setitemcolor team2_count forecolor 1 1 1 1
  2860. setitemcolor team2name forecolor 1 1 1 1
  2861. // no more input for this guy
  2862. disable team2_button 1
  2863. show grey_button
  2864. setitemcolor class_button forecolor .5 .5 .5 1
  2865. setitemtext class1_count "*ui_tm2_c0_cnt"
  2866. setitemtext class2_count "*ui_tm2_c1_cnt"
  2867. setitemtext class3_count "*ui_tm2_c2_cnt"
  2868. setitemtext class4_count "*ui_tm2_c3_cnt"
  2869. setitemtext class5_count "*ui_tm2_c4_cnt"
  2870. setitemtext class6_count "*ui_tm2_c5_cnt"
  2871. hide class_portrait
  2872. show siegeclassconfigtitle
  2873. uiscript resetsiegelistboxes
  2874. uiscript resetitemdescription
  2875. hide feeders
  2876. hide forcepowerlevel
  2877. hide stats
  2878. hide classdescription
  2879. setitemcolor class_count forecolor .5 .5 .5 1
  2880. hide itemdescription
  2881. }
  2882. }
  2883. itemDef
  2884. {
  2885. name team3name
  2886. group none
  2887. rect 556 69 32 20
  2888. text @MENUS_SPECTATOR
  2889. textalign ITEM_ALIGN_CENTER
  2890. textalignx 16
  2891. font 4
  2892. textscale 1
  2893. forecolor .8 .48 0 1
  2894. visible 1
  2895. decoration
  2896. }
  2897. itemDef
  2898. {
  2899. name spectator_symbol
  2900. group none
  2901. rect 556 45 32 32
  2902. type ITEM_TYPE_BUTTON
  2903. style WINDOW_STYLE_FILLED
  2904. descText @MENUS_WATCH_DESC
  2905. backcolor .5 .5 .5 1
  2906. visible 1
  2907. background "gfx/2d/mp_spec_symbol"
  2908. mouseEnter
  2909. {
  2910. setitemcolor spectator_symbol backcolor 1 1 1 1
  2911. setitemcolor team3name forecolor 1 .68 0 1
  2912. }
  2913. mouseExit
  2914. {
  2915. setitemcolor spectator_symbol backcolor .5 .5 .5 1
  2916. setitemcolor team3name forecolor .8 .48 0 1
  2917. }
  2918. action
  2919. {
  2920. play "sound/interface/button1.wav"
  2921. setcvar ui_holdteam 3
  2922. exec "cmd team s"
  2923. uiScript closeingame
  2924. }
  2925. }
  2926. //----------------------------------------
  2927. // AUTOTEAM BUTTON
  2928. //----------------------------------------
  2929. itemDef
  2930. {
  2931. name autoteam_symbol
  2932. type ITEM_TYPE_BUTTON
  2933. style WINDOW_STYLE_FILLED
  2934. descText @MENUS_AUTO_JOIN_DESC
  2935. rect 556 85 32 32
  2936. backcolor .5 .5 .5 1
  2937. visible 1
  2938. background "gfx/2d/mp_autoteam_symbol"
  2939. mouseEnter
  2940. {
  2941. setitemcolor autoteam_symbol backcolor 1 1 1 1
  2942. setitemcolor autoteamname forecolor 1 .68 0 1
  2943. }
  2944. mouseExit
  2945. {
  2946. setitemcolor autoteam_symbol backcolor .5 .5 .5 1
  2947. setitemcolor autoteamname forecolor .8 .48 0 1
  2948. }
  2949. action
  2950. {
  2951. // hide the class stuff, cause this doesn't use class
  2952. hide class_button
  2953. hide class_count
  2954. hide feeders
  2955. hide stats
  2956. hide classdescription
  2957. setitemcolor siegeclassconfigtitle forecolor 1 1 1 1
  2958. play "sound/interface/button1.wav"
  2959. exec "cmd team free"
  2960. uiScript closeingame
  2961. }
  2962. }
  2963. itemDef
  2964. {
  2965. name autoteamname
  2966. group none
  2967. rect 556 109 32 20
  2968. text @MENUS_CAP_AUTO_JOIN
  2969. textalign ITEM_ALIGN_CENTER
  2970. textalignx 16
  2971. font 4
  2972. textscale 1
  2973. forecolor .8 .48 0 1
  2974. visible 1
  2975. decoration
  2976. }
  2977. //----------------------------------------------------------------------------------------------
  2978. // CLASS SELECTION
  2979. //----------------------------------------------------------------------------------------------
  2980. // join a team text
  2981. itemDef
  2982. {
  2983. name siegeclassconfigtitle
  2984. rect 318 130 316 20
  2985. style WINDOW_STYLE_FILLED
  2986. backcolor .05 .13 .25 1
  2987. text @MENUS_CHOOSE_CLASS
  2988. font 3
  2989. textscale .7
  2990. textalign ITEM_ALIGN_LEFT
  2991. textalignx 6
  2992. textaligny 2
  2993. forecolor 1 .68 0 1
  2994. visible 0
  2995. decoration
  2996. }
  2997. // Border around the objective half of the screen
  2998. itemDef
  2999. {
  3000. name border
  3001. group none
  3002. type ITEM_TYPE_TEXT
  3003. rect 317 130 317 331
  3004. forecolor 1 1 1 .6
  3005. visible 1
  3006. border 1
  3007. bordercolor 1 1 1 1
  3008. decoration
  3009. }
  3010. //----------------------------------------------------------------------------------------------
  3011. // CLASS 1 - INFANTRY
  3012. //----------------------------------------------------------------------------------------------
  3013. itemDef
  3014. {
  3015. name class1_desc
  3016. group class_count
  3017. type ITEM_TYPE_TEXT
  3018. rect 328 154 45 18
  3019. text @MENUS_SIEGE_ASSAULT
  3020. textalign ITEM_ALIGN_CENTER
  3021. textalignx 22
  3022. font 4
  3023. textscale .5
  3024. forecolor .5 .5 .5 1
  3025. visible 1
  3026. decoration
  3027. }
  3028. itemDef
  3029. {
  3030. name class1_button
  3031. group class_button
  3032. type ITEM_TYPE_BUTTON
  3033. style WINDOW_STYLE_SHADER
  3034. background "gfx/mp/c_icon_infantry"
  3035. rect 328 165 45 45
  3036. forecolor .5 .5 .5 1
  3037. visible 1
  3038. descText @MENUS_CLASS_CHOICE_DESC
  3039. cvartest "ui_infantry_cnt"
  3040. disablecvar { "0" }
  3041. mouseEnter
  3042. {
  3043. setitemcolor class1_button forecolor 1 1 1 1
  3044. setitemcolor class1_count forecolor 1 1 1 1
  3045. setitemcolor class1_desc forecolor 1 1 1 1
  3046. }
  3047. mouseExit
  3048. {
  3049. setitemcolor class1_button forecolor .5 .5 .5 1
  3050. setitemcolor class1_count forecolor .5 .5 .5 1
  3051. setitemcolor class1_desc forecolor .5 .5 .5 1
  3052. }
  3053. action
  3054. {
  3055. play "sound/interface/button1.wav"
  3056. setcvar ui_siege_class 0
  3057. uiscript updatesiegecvars
  3058. // Turn other buttons on
  3059. setitemcolor class_button forecolor .5 .5 .5 1
  3060. disable class_button 0
  3061. setitemcolor class_count forecolor .5 .5 .5 1
  3062. // High light this button and disable it
  3063. setitemcolor class1_button forecolor 1 1 1 1
  3064. setitemcolor class1_count forecolor 1 1 1 1
  3065. setitemcolor class1_desc forecolor 1 1 1 1
  3066. disable class1_button 1
  3067. // setitemtext description "*ui_classdesc"
  3068. show class_portrait
  3069. setitembackground class_portrait "*ui_classportrait"
  3070. setitemrect class_portrait 328 162 45 45
  3071. uiscript resetsiegelistboxes
  3072. uiscript resetitemdescription
  3073. show description
  3074. hide itemdescription
  3075. setitemcolor stats forecolor 1 1 1 1
  3076. show feeders
  3077. show stats
  3078. show forcepowerlevel
  3079. }
  3080. }
  3081. itemDef
  3082. {
  3083. name class1_count
  3084. group class_count
  3085. type ITEM_TYPE_TEXT
  3086. rect 328 207 45 18
  3087. textalign ITEM_ALIGN_CENTER
  3088. textalignx 23
  3089. font 4
  3090. textscale 1
  3091. forecolor .5 .5 .5 1
  3092. visible 1
  3093. decoration
  3094. }
  3095. itemDef
  3096. {
  3097. name class1_greybutton
  3098. group grey_button
  3099. style WINDOW_STYLE_FILLED
  3100. rect 328 165 45 45
  3101. forecolor .5 .5 .5 .6
  3102. backcolor .5 .5 .5 .6
  3103. visible 1
  3104. cvartest "ui_infantry_cnt"
  3105. showcvar { "0" }
  3106. decoration
  3107. }
  3108. //----------------------------------------------------------------------------------------------
  3109. // CLASS 2
  3110. //----------------------------------------------------------------------------------------------
  3111. itemDef
  3112. {
  3113. name class2_desc
  3114. group class_count
  3115. type ITEM_TYPE_TEXT
  3116. rect 379 154 45 18
  3117. text @MENUS_SIEGE_HEAVY_WEAPS
  3118. textalign ITEM_ALIGN_CENTER
  3119. textalignx 20
  3120. font 4
  3121. textscale .5
  3122. forecolor .5 .5 .5 1
  3123. visible 1
  3124. decoration
  3125. }
  3126. itemDef
  3127. {
  3128. name class2_button
  3129. group class_button
  3130. type ITEM_TYPE_BUTTON
  3131. style WINDOW_STYLE_SHADER
  3132. background "gfx/mp/c_icon_heavy_weapons"
  3133. rect 379 165 45 45
  3134. forecolor .5 .5 .5 1
  3135. visible 1
  3136. descText @MENUS_CLASS_CHOICE_DESC
  3137. cvartest "ui_heavy_cnt"
  3138. disablecvar { "0" }
  3139. mouseEnter
  3140. {
  3141. setitemcolor class2_button forecolor 1 1 1 1
  3142. setitemcolor class2_count forecolor 1 1 1 1
  3143. setitemcolor class2_desc forecolor 1 1 1 1
  3144. }
  3145. mouseExit
  3146. {
  3147. setitemcolor class2_button forecolor .5 .5 .5 1
  3148. setitemcolor class2_count forecolor .5 .5 .5 1
  3149. setitemcolor class2_desc forecolor .5 .5 .5 1
  3150. }
  3151. action
  3152. {
  3153. play "sound/interface/button1.wav"
  3154. setcvar ui_siege_class 5
  3155. uiscript updatesiegecvars
  3156. // Turn other buttons on
  3157. setitemcolor class_button forecolor .5 .5 .5 1
  3158. disable class_button 0
  3159. setitemcolor class_count forecolor .5 .5 .5 1
  3160. // High light this button and disable it
  3161. setitemcolor class2_button forecolor 1 1 1 1
  3162. setitemcolor class2_count forecolor 1 1 1 1
  3163. setitemcolor class2_desc forecolor 1 1 1 1
  3164. disable class2_button 1
  3165. // setitemtext description "*ui_classdesc"
  3166. show class_portrait
  3167. setitembackground class_portrait "*ui_classportrait"
  3168. setitemrect class_portrait 379 162 45 45
  3169. uiscript resetsiegelistboxes
  3170. uiscript resetitemdescription
  3171. show description
  3172. hide itemdescription
  3173. setitemcolor stats forecolor 1 1 1 1
  3174. show feeders
  3175. show stats
  3176. show forcepowerlevel
  3177. }
  3178. }
  3179. itemDef
  3180. {
  3181. name class2_count
  3182. group class_count
  3183. type ITEM_TYPE_TEXT
  3184. rect 379 207 45 18
  3185. textalign ITEM_ALIGN_CENTER
  3186. textalignx 23
  3187. font 4
  3188. textscale 1
  3189. forecolor .5 .5 .5 1
  3190. visible 1
  3191. decoration
  3192. }
  3193. itemDef
  3194. {
  3195. name class2_greybutton
  3196. group grey_button
  3197. style WINDOW_STYLE_FILLED
  3198. rect 379 165 45 45
  3199. forecolor .5 .5 .5 .6
  3200. backcolor .5 .5 .5 .6
  3201. visible 1
  3202. cvartest "ui_heavy_cnt"
  3203. showcvar { "0" }
  3204. decoration
  3205. }
  3206. //----------------------------------------------------------------------------------------------
  3207. // CLASS 3
  3208. //----------------------------------------------------------------------------------------------
  3209. itemDef
  3210. {
  3211. name class3_desc
  3212. group class_count
  3213. type ITEM_TYPE_TEXT
  3214. rect 430 154 45 18
  3215. text @MENUS_SIEGE_DEMOLITIONS
  3216. textalign ITEM_ALIGN_CENTER
  3217. textalignx 19
  3218. font 4
  3219. textscale .5
  3220. forecolor .5 .5 .5 1
  3221. visible 1
  3222. decoration
  3223. }
  3224. // The actual button
  3225. itemDef
  3226. {
  3227. name class3_button
  3228. group class_button
  3229. type ITEM_TYPE_BUTTON
  3230. style WINDOW_STYLE_SHADER
  3231. background "gfx/mp/c_icon_demolitionist"
  3232. rect 430 165 45 45
  3233. forecolor .5 .5 .5 1
  3234. visible 1
  3235. descText @MENUS_CLASS_CHOICE_DESC
  3236. cvartest "ui_demo_cnt"
  3237. disablecvar { "0" }
  3238. mouseEnter
  3239. {
  3240. setitemcolor class3_button forecolor 1 1 1 1
  3241. setitemcolor class3_count forecolor 1 1 1 1
  3242. setitemcolor class3_desc forecolor 1 1 1 1
  3243. }
  3244. mouseExit
  3245. {
  3246. setitemcolor class3_button forecolor .5 .5 .5 1
  3247. setitemcolor class3_count forecolor .5 .5 .5 1
  3248. setitemcolor class3_desc forecolor .5 .5 .5 1
  3249. }
  3250. action
  3251. {
  3252. play "sound/interface/button1.wav"
  3253. setcvar ui_siege_class 4
  3254. uiscript updatesiegecvars
  3255. // Turn other buttons on
  3256. setitemcolor class_button forecolor .5 .5 .5 1
  3257. disable class_button 0
  3258. setitemcolor class_count forecolor .5 .5 .5 1
  3259. // High light this button and disable it
  3260. setitemcolor class3_button forecolor 1 1 1 1
  3261. setitemcolor class3_count forecolor 1 1 1 1
  3262. setitemcolor class3_desc forecolor 1 1 1 1
  3263. disable class3_button 1
  3264. // setitemtext description "*ui_classdesc"
  3265. show class_portrait
  3266. setitembackground class_portrait "*ui_classportrait"
  3267. setitemrect class_portrait 430 162 45 45
  3268. uiscript resetsiegelistboxes
  3269. uiscript resetitemdescription
  3270. show description
  3271. hide itemdescription
  3272. setitemcolor stats forecolor 1 1 1 1
  3273. show feeders
  3274. show stats
  3275. show forcepowerlevel
  3276. }
  3277. }
  3278. itemDef
  3279. {
  3280. name class3_count
  3281. group class_count
  3282. type ITEM_TYPE_TEXT
  3283. rect 430 207 45 18
  3284. textalign ITEM_ALIGN_CENTER
  3285. textalignx 23
  3286. font 4
  3287. textscale 1
  3288. forecolor .5 .5 .5 1
  3289. visible 1
  3290. decoration
  3291. }
  3292. itemDef
  3293. {
  3294. name class3_greybutton
  3295. group grey_button
  3296. style WINDOW_STYLE_FILLED
  3297. rect 430 165 45 45
  3298. forecolor .5 .5 .5 .6
  3299. backcolor .5 .5 .5 .6
  3300. visible 1
  3301. cvartest "ui_demo_cnt"
  3302. showcvar { "0" }
  3303. decoration
  3304. }
  3305. //----------------------------------------------------------------------------------------------
  3306. // CLASS 4
  3307. //----------------------------------------------------------------------------------------------
  3308. itemDef
  3309. {
  3310. name class4_desc
  3311. group class_count
  3312. type ITEM_TYPE_TEXT
  3313. rect 481 154 45 18
  3314. text @MENUS_SIEGE_SCOUT
  3315. textalign ITEM_ALIGN_CENTER
  3316. textalignx 21
  3317. font 4
  3318. textscale .5
  3319. forecolor .5 .5 .5 1
  3320. visible 1
  3321. decoration
  3322. }
  3323. // The actual button
  3324. itemDef
  3325. {
  3326. name class4_button
  3327. group class_button
  3328. type ITEM_TYPE_BUTTON
  3329. style WINDOW_STYLE_SHADER
  3330. background "gfx/mp/c_icon_vanguard"
  3331. rect 481 165 45 45
  3332. forecolor .5 .5 .5 1
  3333. visible 1
  3334. descText @MENUS_CLASS_CHOICE_DESC
  3335. cvartest "ui_vanguard_cnt"
  3336. disablecvar { "0" }
  3337. mouseEnter
  3338. {
  3339. setitemcolor class4_button forecolor 1 1 1 1
  3340. setitemcolor class4_count forecolor 1 1 1 1
  3341. setitemcolor class4_desc forecolor 1 1 1 1
  3342. }
  3343. mouseExit
  3344. {
  3345. setitemcolor class4_button forecolor .5 .5 .5 1
  3346. setitemcolor class4_count forecolor .5 .5 .5 1
  3347. setitemcolor class4_desc forecolor .5 .5 .5 1
  3348. }
  3349. action
  3350. {
  3351. play "sound/interface/button1.wav"
  3352. setcvar ui_siege_class 1
  3353. uiscript updatesiegecvars
  3354. // Turn other buttons on
  3355. setitemcolor class_button forecolor .5 .5 .5 1
  3356. disable class_button 0
  3357. setitemcolor class_count forecolor .5 .5 .5 1
  3358. // High light this button and disable it
  3359. setitemcolor class4_button forecolor 1 1 1 1
  3360. setitemcolor class4_count forecolor 1 1 1 1
  3361. setitemcolor class4_desc forecolor 1 1 1 1
  3362. disable class4_button 1
  3363. // setitemtext description "*ui_classdesc"
  3364. show class_portrait
  3365. setitembackground class_portrait "*ui_classportrait"
  3366. setitemrect class_portrait 481 162 45 45
  3367. uiscript resetsiegelistboxes
  3368. uiscript resetitemdescription
  3369. show description
  3370. hide itemdescription
  3371. setitemcolor stats forecolor 1 1 1 1
  3372. show feeders
  3373. show stats
  3374. show forcepowerlevel
  3375. }
  3376. }
  3377. itemDef
  3378. {
  3379. name class4_count
  3380. group class_count
  3381. type ITEM_TYPE_TEXT
  3382. rect 481 207 60 18
  3383. textalign ITEM_ALIGN_CENTER
  3384. textalignx 24
  3385. font 4
  3386. textscale 1
  3387. forecolor .5 .5 .5 1
  3388. visible 1
  3389. decoration
  3390. }
  3391. itemDef
  3392. {
  3393. name class4_greybutton
  3394. group grey_button
  3395. style WINDOW_STYLE_FILLED
  3396. rect 481 165 45 45
  3397. forecolor .5 .5 .5 .6
  3398. backcolor .5 .5 .5 .6
  3399. visible 1
  3400. cvartest "ui_vanguard_cnt"
  3401. showcvar { "0" }
  3402. decoration
  3403. }
  3404. //----------------------------------------------------------------------------------------------
  3405. // CLASS 5
  3406. //----------------------------------------------------------------------------------------------
  3407. itemDef
  3408. {
  3409. name class5_desc
  3410. group class_count
  3411. type ITEM_TYPE_TEXT
  3412. rect 532 154 45 18
  3413. text @MENUS_SIEGE_TECH
  3414. textalign ITEM_ALIGN_CENTER
  3415. textalignx 21
  3416. font 4
  3417. textscale .5
  3418. forecolor .5 .5 .5 1
  3419. visible 1
  3420. decoration
  3421. }
  3422. // The actual button
  3423. itemDef
  3424. {
  3425. name class5_button
  3426. group class_button
  3427. type ITEM_TYPE_BUTTON
  3428. style WINDOW_STYLE_SHADER
  3429. background "gfx/mp/c_icon_support"
  3430. rect 532 165 45 45
  3431. forecolor .5 .5 .5 1
  3432. visible 1
  3433. descText @MENUS_CLASS_CHOICE_DESC
  3434. cvartest "ui_support_cnt"
  3435. disablecvar { "0" }
  3436. mouseEnter
  3437. {
  3438. setitemcolor class5_button forecolor 1 1 1 1
  3439. setitemcolor class5_count forecolor 1 1 1 1
  3440. setitemcolor class5_desc forecolor 1 1 1 1
  3441. }
  3442. mouseExit
  3443. {
  3444. setitemcolor class5_button forecolor .5 .5 .5 1
  3445. setitemcolor class5_count forecolor .5 .5 .5 1
  3446. setitemcolor class5_desc forecolor .5 .5 .5 1
  3447. }
  3448. action
  3449. {
  3450. play "sound/interface/button1.wav"
  3451. setcvar ui_siege_class 2
  3452. uiscript updatesiegecvars
  3453. // Turn other buttons on
  3454. setitemcolor class_button forecolor .5 .5 .5 1
  3455. disable class_button 0
  3456. setitemcolor class_count forecolor .5 .5 .5 1
  3457. // High light this button and disable it
  3458. setitemcolor class5_button forecolor 1 1 1 1
  3459. setitemcolor class5_count forecolor 1 1 1 1
  3460. setitemcolor class5_desc forecolor 1 1 1 1
  3461. disable class5_button 1
  3462. // setitemtext description "*ui_classdesc"
  3463. show class_portrait
  3464. setitembackground class_portrait "*ui_classportrait"
  3465. setitemrect class_portrait 532 162 45 45
  3466. uiscript resetsiegelistboxes
  3467. uiscript resetitemdescription
  3468. show description
  3469. hide itemdescription
  3470. setitemcolor stats forecolor 1 1 1 1
  3471. show feeders
  3472. show stats
  3473. show forcepowerlevel
  3474. }
  3475. }
  3476. itemDef
  3477. {
  3478. name class5_count
  3479. group class_count
  3480. type ITEM_TYPE_TEXT
  3481. rect 532 207 60 18
  3482. textalign ITEM_ALIGN_CENTER
  3483. textalignx 23
  3484. font 4
  3485. textscale 1
  3486. forecolor .5 .5 .5 1
  3487. visible 1
  3488. decoration
  3489. }
  3490. itemDef
  3491. {
  3492. name class5_greybutton
  3493. group grey_button
  3494. style WINDOW_STYLE_FILLED
  3495. rect 532 165 45 45
  3496. forecolor .5 .5 .5 .6
  3497. backcolor .5 .5 .5 .6
  3498. visible 1
  3499. cvartest "ui_support_cnt"
  3500. showcvar { "0" }
  3501. decoration
  3502. }
  3503. //--------------------------------------------------
  3504. // CLASS 6
  3505. //--------------------------------------------------
  3506. itemDef
  3507. {
  3508. name class6_desc
  3509. group class_count
  3510. type ITEM_TYPE_TEXT
  3511. rect 583 154 45 18
  3512. text @MENUS_SIEGE_JEDI
  3513. textalign ITEM_ALIGN_CENTER
  3514. textalignx 21
  3515. font 4
  3516. textscale .5
  3517. forecolor .5 .5 .5 1
  3518. visible 1
  3519. decoration
  3520. }
  3521. // The actual button
  3522. itemDef
  3523. {
  3524. name class6_button
  3525. group class_button
  3526. type ITEM_TYPE_BUTTON
  3527. style WINDOW_STYLE_SHADER
  3528. background "gfx/mp/c_icon_jedi_general"
  3529. rect 583 165 45 45
  3530. forecolor .5 .5 .5 1
  3531. visible 1
  3532. descText @MENUS_CLASS_CHOICE_DESC
  3533. cvartest "ui_jedi_cnt"
  3534. disablecvar { "0" }
  3535. mouseEnter
  3536. {
  3537. setitemcolor class6_button forecolor 1 1 1 1
  3538. setitemcolor class6_count forecolor 1 1 1 1
  3539. setitemcolor class6_desc forecolor 1 1 1 1
  3540. }
  3541. mouseExit
  3542. {
  3543. setitemcolor class6_button forecolor .5 .5 .5 1
  3544. setitemcolor class6_count forecolor .5 .5 .5 1
  3545. setitemcolor class6_desc forecolor .5 .5 .5 1
  3546. }
  3547. action
  3548. {
  3549. play "sound/interface/button1.wav"
  3550. setcvar ui_siege_class 3
  3551. uiscript updatesiegecvars
  3552. // Turn other buttons on
  3553. setitemcolor class_button forecolor .5 .5 .5 1
  3554. disable class_button 0
  3555. setitemcolor class_count forecolor .5 .5 .5 1
  3556. // High light this button and disable it
  3557. setitemcolor class6_button forecolor 1 1 1 1
  3558. setitemcolor class6_count forecolor 1 1 1 1
  3559. setitemcolor class6_desc forecolor 1 1 1 1
  3560. disable class6_button 1
  3561. // setitemtext description "*ui_classdesc"
  3562. show class_portrait
  3563. setitembackground class_portrait "*ui_classportrait"
  3564. setitemrect class_portrait 583 162 45 45
  3565. uiscript resetsiegelistboxes
  3566. uiscript resetitemdescription
  3567. show description
  3568. hide itemdescription
  3569. setitemcolor stats forecolor 1 1 1 1
  3570. show feeders
  3571. show stats
  3572. show forcepowerlevel
  3573. }
  3574. }
  3575. itemDef
  3576. {
  3577. name class6_count
  3578. group class_count
  3579. type ITEM_TYPE_TEXT
  3580. rect 583 207 60 18
  3581. textalign ITEM_ALIGN_CENTER
  3582. textalignx 23
  3583. font 4
  3584. textscale 1
  3585. forecolor .5 .5 .5 1
  3586. visible 1
  3587. decoration
  3588. }
  3589. itemDef
  3590. {
  3591. name class6_greybutton
  3592. group grey_button
  3593. style WINDOW_STYLE_FILLED
  3594. rect 583 165 45 45
  3595. forecolor .5 .5 .5 .6
  3596. backcolor .5 .5 .5 .6
  3597. visible 1
  3598. cvartest "ui_jedi_cnt"
  3599. showcvar { "0" }
  3600. decoration
  3601. }
  3602. //--------------------------------------------------
  3603. // CLASS PORTRAIT - this gets its background value from ui_classportrait
  3604. //--------------------------------------------------
  3605. itemDef
  3606. {
  3607. name class_portrait
  3608. style WINDOW_STYLE_FILLED
  3609. rect 526 176 45 45
  3610. backcolor 1 1 1 1
  3611. visible 0
  3612. decoration
  3613. }
  3614. //-----------------------------------------------
  3615. //
  3616. // DISPLAY HEALTH, SHIELD, SPEED
  3617. //
  3618. //-----------------------------------------------
  3619. itemDef
  3620. {
  3621. name health_disp
  3622. group stats
  3623. rect 328 230 110 20
  3624. type ITEM_TYPE_EDITFIELD
  3625. text @SIEGE_HEALTH
  3626. cvar "ui_class_health"
  3627. textalign ITEM_ALIGN_LEFT
  3628. textalignx 0
  3629. textaligny 0
  3630. font 4
  3631. textscale .7
  3632. visible 0
  3633. forecolor .5 .5 .5 1
  3634. decoration
  3635. }
  3636. itemDef
  3637. {
  3638. name armor_disp
  3639. group stats
  3640. rect 438 230 100 20
  3641. type ITEM_TYPE_EDITFIELD
  3642. text @SIEGE_SHIELDS
  3643. cvar "ui_class_armor"
  3644. textalign ITEM_ALIGN_LEFT
  3645. textalignx 0
  3646. textaligny 0
  3647. font 4
  3648. textscale .7
  3649. forecolor .5 .5 .5 1
  3650. visible 0
  3651. decoration
  3652. }
  3653. itemDef
  3654. {
  3655. name speed_disp
  3656. group stats
  3657. rect 548 230 100 20
  3658. type ITEM_TYPE_EDITFIELD
  3659. text @SIEGE_SPEED
  3660. cvar "ui_class_speed"
  3661. textalign ITEM_ALIGN_LEFT
  3662. textalignx 0
  3663. textaligny 0
  3664. font 4
  3665. textscale .7
  3666. visible 0
  3667. forecolor .5 .5 .5 1
  3668. decoration
  3669. }
  3670. //--------------------------------------------------
  3671. // BASE CLASS WEAPONS FEEDER
  3672. //--------------------------------------------------
  3673. itemDef
  3674. {
  3675. name base_class_weapons_feed
  3676. group feeders
  3677. type ITEM_TYPE_LISTBOX
  3678. desctext @MENUS_CLASS_WEAPONS
  3679. style WINDOW_STYLE_FILLED
  3680. elementwidth 34
  3681. elementheight 34
  3682. elementtype LISTBOX_IMAGE
  3683. feeder FEEDER_SIEGE_CLASS_WEAPONS
  3684. rect 326 246 148 52
  3685. horizontalscroll
  3686. backcolor 0 0 0 0
  3687. border 1
  3688. bordercolor 1 1 1 1
  3689. forecolor 1 1 1 1
  3690. visible 1
  3691. textscale 0.7
  3692. action
  3693. {
  3694. hide description
  3695. show itemdescription
  3696. uiscript updatesiegeweapondesc
  3697. uiscript resetitemdescription
  3698. }
  3699. }
  3700. //--------------------------------------------------
  3701. // BASE CLASS INVENTORY FEEDER
  3702. //--------------------------------------------------
  3703. itemDef
  3704. {
  3705. name base_class_inventory_feed
  3706. group feeders
  3707. desctext @MENUS_CLASS_INVENTORY
  3708. type ITEM_TYPE_LISTBOX
  3709. style WINDOW_STYLE_FILLED
  3710. elementwidth 34
  3711. elementheight 34
  3712. elementtype LISTBOX_IMAGE
  3713. feeder FEEDER_SIEGE_CLASS_INVENTORY
  3714. rect 479 246 148 52
  3715. horizontalscroll
  3716. backcolor 0 0 0 0
  3717. border 1
  3718. bordercolor 1 1 1 1
  3719. forecolor 1 1 1 1
  3720. visible 1
  3721. textscale 0.7
  3722. action
  3723. {
  3724. hide description
  3725. show itemdescription
  3726. uiscript updatesiegeinventorydesc
  3727. uiscript resetitemdescription
  3728. }
  3729. }
  3730. //--------------------------------------------------
  3731. // BASE CLASS FORCE POWER FEEDER
  3732. //--------------------------------------------------
  3733. itemDef
  3734. {
  3735. name base_class_force_feed
  3736. group feeders
  3737. type ITEM_TYPE_LISTBOX
  3738. desctext @MENUS_CLASS_FORCEPOWERS
  3739. style WINDOW_STYLE_FILLED
  3740. elementwidth 34
  3741. elementheight 34
  3742. elementtype LISTBOX_IMAGE
  3743. feeder FEEDER_SIEGE_CLASS_FORCE
  3744. rect 320 299 311 52
  3745. horizontalscroll
  3746. backcolor 0 0 0 0
  3747. border 1
  3748. bordercolor 1 1 1 1
  3749. forecolor 1 1 1 1
  3750. visible 1
  3751. textscale 0.7
  3752. action
  3753. {
  3754. hide description
  3755. show itemdescription
  3756. uiscript updatesiegeforcedesc
  3757. uiscript resetitemdescription
  3758. }
  3759. }
  3760. itemDef
  3761. {
  3762. name description
  3763. group classdescription
  3764. rect 327 356 300 85
  3765. type ITEM_TYPE_TEXTSCROLL
  3766. text " "
  3767. cvar ui_classdesc
  3768. font 4
  3769. textscale 1
  3770. textalign ITEM_ALIGN_LEFT
  3771. forecolor 1 1 1 1
  3772. visible 0
  3773. lineHeight 13
  3774. }
  3775. itemDef
  3776. {
  3777. name slot0
  3778. group forcepowerlevel
  3779. rect 350 322 300 80
  3780. type ITEM_TYPE_TEXT
  3781. font 4
  3782. textscale .5
  3783. textalign ITEM_ALIGN_LEFT
  3784. forecolor 1 1 1 1
  3785. visible 0
  3786. cvar ui_class_powerlevelslot0
  3787. cvartest ui_class_powerlevelslot0
  3788. hidecvar
  3789. {
  3790. "0"
  3791. }
  3792. }
  3793. itemDef
  3794. {
  3795. name slot1
  3796. group forcepowerlevel
  3797. rect 384 322 300 80
  3798. type ITEM_TYPE_TEXT
  3799. cvar ui_itemforceinvdesc
  3800. font 4
  3801. textscale .5
  3802. textalign ITEM_ALIGN_LEFT
  3803. forecolor 1 1 1 1
  3804. visible 0
  3805. cvar ui_class_powerlevelslot1
  3806. cvartest ui_class_powerlevelslot1
  3807. hidecvar
  3808. {
  3809. "0"
  3810. }
  3811. }
  3812. itemDef
  3813. {
  3814. name slot2
  3815. group forcepowerlevel
  3816. rect 418 322 300 80
  3817. type ITEM_TYPE_TEXT
  3818. cvar ui_itemforceinvdesc
  3819. font 4
  3820. textscale .5
  3821. textalign ITEM_ALIGN_LEFT
  3822. forecolor 1 1 1 1
  3823. visible 0
  3824. cvar ui_class_powerlevelslot2
  3825. cvartest ui_class_powerlevelslot2
  3826. hidecvar
  3827. {
  3828. "0"
  3829. }
  3830. }
  3831. itemDef
  3832. {
  3833. name slot3
  3834. group forcepowerlevel
  3835. rect 452 322 300 80
  3836. type ITEM_TYPE_TEXT
  3837. cvar ui_itemforceinvdesc
  3838. font 4
  3839. textscale .5
  3840. textalign ITEM_ALIGN_LEFT
  3841. forecolor 1 1 1 1
  3842. visible 0
  3843. cvar ui_class_powerlevelslot3
  3844. cvartest ui_class_powerlevelslot3
  3845. hidecvar
  3846. {
  3847. "0"
  3848. }
  3849. }
  3850. itemDef
  3851. {
  3852. name slot4
  3853. group forcepowerlevel
  3854. rect 486 322 300 80
  3855. type ITEM_TYPE_TEXT
  3856. cvar ui_itemforceinvdesc
  3857. font 4
  3858. textscale .5
  3859. textalign ITEM_ALIGN_LEFT
  3860. forecolor 1 1 1 1
  3861. visible 0
  3862. cvar ui_class_powerlevelslot4
  3863. cvartest ui_class_powerlevelslot4
  3864. hidecvar
  3865. {
  3866. "0"
  3867. }
  3868. }
  3869. itemDef
  3870. {
  3871. name slot5
  3872. group forcepowerlevel
  3873. rect 520 322 300 80
  3874. type ITEM_TYPE_TEXT
  3875. cvar ui_itemforceinvdesc
  3876. font 4
  3877. textscale .5
  3878. textalign ITEM_ALIGN_LEFT
  3879. forecolor 1 1 1 1
  3880. visible 0
  3881. cvar ui_class_powerlevelslot5
  3882. cvartest ui_class_powerlevelslot5
  3883. hidecvar
  3884. {
  3885. "0"
  3886. }
  3887. }
  3888. itemDef
  3889. {
  3890. name slot6
  3891. group forcepowerlevel
  3892. rect 554 322 300 80
  3893. type ITEM_TYPE_TEXT
  3894. cvar ui_itemforceinvdesc
  3895. font 4
  3896. textscale .5
  3897. textalign ITEM_ALIGN_LEFT
  3898. forecolor 1 1 1 1
  3899. visible 1
  3900. cvar ui_class_powerlevelslot6
  3901. cvartest ui_class_powerlevelslot6
  3902. hidecvar
  3903. {
  3904. "0"
  3905. }
  3906. }
  3907. itemDef
  3908. {
  3909. name slot7
  3910. group forcepowerlevel
  3911. rect 588 322 300 80
  3912. type ITEM_TYPE_TEXT
  3913. cvar ui_itemforceinvdesc
  3914. font 4
  3915. textscale .5
  3916. textalign ITEM_ALIGN_LEFT
  3917. forecolor 1 1 1 1
  3918. visible 1
  3919. cvar ui_class_powerlevelslot7
  3920. cvartest ui_class_powerlevelslot7
  3921. hidecvar
  3922. {
  3923. "0"
  3924. }
  3925. }
  3926. itemDef
  3927. {
  3928. name slot8
  3929. group forcepowerlevel
  3930. rect 620 322 300 80
  3931. type ITEM_TYPE_TEXT
  3932. cvar ui_itemforceinvdesc
  3933. font 4
  3934. textscale .5
  3935. textalign ITEM_ALIGN_LEFT
  3936. forecolor 1 1 1 1
  3937. visible 1
  3938. cvar ui_class_powerlevelslot8
  3939. cvartest ui_class_powerlevelslot8
  3940. hidecvar
  3941. {
  3942. "0"
  3943. }
  3944. }
  3945. itemDef
  3946. {
  3947. name itemdescription
  3948. group itemdescription
  3949. rect 327 356 300 85
  3950. type ITEM_TYPE_TEXTSCROLL
  3951. text " "
  3952. cvar ui_itemforceinvdesc
  3953. font 4
  3954. textscale 1
  3955. textalign ITEM_ALIGN_LEFT
  3956. forecolor 1 1 1 1
  3957. visible 0
  3958. lineHeight 13
  3959. }
  3960. //-----------------------------------------------
  3961. // CANCEL BUTTON
  3962. //-----------------------------------------------
  3963. itemDef
  3964. {
  3965. name cancel
  3966. text @MENUS_CANCEL
  3967. type 1
  3968. textscale .8
  3969. group grpControlbutton
  3970. type ITEM_TYPE_BUTTON
  3971. rect 325 460 150 26
  3972. textalign ITEM_ALIGN_CENTER
  3973. textalignx 75
  3974. forecolor 1 .682 0 1
  3975. backcolor .37 .1 .1 1
  3976. visible 1
  3977. descText @MENUS_CANCEL_DESC
  3978. action
  3979. {
  3980. play "sound/interface/button1.wav"
  3981. hide stats
  3982. hide forcepowerlevel
  3983. close all
  3984. }
  3985. }
  3986. //-----------------------------------------------
  3987. // OKAY BUTTON
  3988. //-----------------------------------------------
  3989. itemDef
  3990. {
  3991. name okay
  3992. text @MENUS_OKAY
  3993. type 1
  3994. textscale .8
  3995. group grpControlbutton
  3996. type ITEM_TYPE_BUTTON
  3997. rect 480 460 150 26
  3998. textalign ITEM_ALIGN_CENTER
  3999. textalignx 75
  4000. forecolor 1 .682 0 1
  4001. backcolor .37 .1 .1 1
  4002. visible 1
  4003. descText @MENUS_JOIN_GAME
  4004. action
  4005. {
  4006. play "sound/interface/button1.wav"
  4007. uiScript setsiegeclassandteam
  4008. hide stats
  4009. hide forcepowerlevel
  4010. uiScript closeingame
  4011. }
  4012. }
  4013. }
  4014. }