1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174 |
- //------------------------------------------------------------------------------------------------
- // PLAYER SETUP MENU - ingame_player
- //
- // Choose player skin, name
- // Choose light saber
- // Allocate force powers
- //
- // g_gametypes
- // "Free For All" 0
- // "Duel" 3
- // "Power Duel" 4
- // "Team FFA" 6
- // "Siege" 7
- // "Capture the Flag" 8
- //
- // ui_net_gametype
- // 0 = FFA
- // 1 = DUEL
- // 2 = POWER DUEL
- // 3 = TEAM FFA
- // 4 = SIEGE
- // 5 = CTF
- //------------------------------------------------------------------------------------------------
- {
- menuDef
- {
- name "ingame_player"
- visible 0
- fullscreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 20 25 600 440
- focusColor 1 1 1 1 // Focus color for text and items
- style 1
- border 1
- descX 320
- descY 428
- descScale 1
- descColor 1 .682 0 .8
- descAlignment ITEM_ALIGN_CENTER
- onOpen
- {
- uiScript update "ui_GetName"
- uiScript updateForceStatus
- hide highlights
- }
- onClose
- {
- uiScript update "ui_SetName"
- uiScript updateForceStatus
- hide highlights
- }
- //------------------------------------------------------------------------------------------------
- // Overall window backdrop
- //------------------------------------------------------------------------------------------------
- itemDef
- {
- name background_pic
- group none
- style WINDOW_STYLE_SHADER
- rect 0 0 600 440
- background "gfx/menus/menu_box_ingame"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- // Button background at bottom of screen
- itemDef
- {
- name background
- group none
- style WINDOW_STYLE_FILLED
- rect 0 420 600 20
- backcolor .298 .305 .690 1
- forecolor .549 .854 1 1
- visible 1
- decoration
- }
-
- //------------------------------------------------------------------------------------------------
- // Player Configuration
- //------------------------------------------------------------------------------------------------
- // Player Configuration title
- itemDef
- {
- name playerconfigtitle_glow
- group none
- style WINDOW_STYLE_SHADER
- background "gfx/menus/menu_buttonback" // Frame around button
- rect 20 3 560 30
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name playerconfigtitle
- style WINDOW_STYLE_EMPTY
- text @MENUS_PLAYER_CONFIGURATION
- rect 20 5 560 28
- textalign ITEM_ALIGN_CENTER
- textalignx 280
- textaligny 2
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- font 3
- textscale 1
- forecolor .549 .854 1 1
- border 0
- bordercolor 0 0 0 0
- visible 1
- }
- //------------------------------------------------------------------------------------------------
- // Name entry field
- //------------------------------------------------------------------------------------------------
- itemDef
- {
- name nameglow
- group mods
- style WINDOW_STYLE_SHADER
- rect 25 31 300 24
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- visible 0
- decoration
- }
-
- itemDef
- {
- name namefield
- type ITEM_TYPE_EDITFIELD
- style 0
- text @MENUS_NAME1
- cvar "ui_Name"
- maxchars 26
- rect 20 33 300 20
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny -5
- font 2
- textscale 1
- forecolor 1 .682 0 1
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- border 0
- bordercolor 0 0 0 0
- descText @MENUS_ENTER_YOUR_NAME_HERE
- visible 1
- action
- {
- play "sound/interface/button1"
- }
- mouseenter
- {
- show nameglow
- }
- mouseexit
- {
- hide nameglow
- }
- }
- //------------------------------------------------------------------------------------------------
- // Player Model label
- //------------------------------------------------------------------------------------------------
- // Box around character models
- itemDef
- {
- name background
- group none
- style WINDOW_STYLE_EMPTY
- rect 15 65 570 230
- border 1
- bordercolor .298 .305 .690 1
- bordersize 2
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- // Title box for character models
- itemDef
- {
- name background
- group none
- style WINDOW_STYLE_FILLED
- rect 17 57 570 20
- backcolor .298 .305 .690 1
- forecolor .549 .854 1 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name modeltitle
- style 0
- text @MENUS_CHARACTER_MODEL
- rect 3 52 570 0
- textalign ITEM_ALIGN_CENTER
- textalignx 285
- // textaligny 12
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- // font 4
- // textscale 1
- font 2
- textscale 1
- forecolor .549 .854 1 1
- border 0
- bordercolor 0 0 0 0
- visible 1
- action
- {
- play "sound/interface/button1"
- }
- }
- //------------------------------------------------------------------------------------------------
- // Skin/Team Color Chooser
- //------------------------------------------------------------------------------------------------
- itemDef
- {
- name setcolor
- style 0
- text @MENUS_TEAM_COLOR
- ownerdraw UI_SKIN_COLOR
- rect 50 78 160 20
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny -5
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- font 2
- textscale .8
- forecolor 1 .682 0 1
- border 0
- bordercolor 0 0 0 0
- descText @MENUS_CHOOSE_THE_COLOR_FOR
- cvarTest "ui_about_gametype"
- hideCvar
- {
- "6" ;
- "7" ;
- "8" ;
- "9"
- }
- visible 1
- action
- {
- play "sound/interface/button1"
- }
- }
- // Skin/Team Color Chooser
- itemDef
- {
- name setcolor
- style 0
- text @MENUS_TEAM_COLOR
- ownerdraw UI_SKIN_COLOR
- rect 50 78 160 20
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny -5
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- font 2
- textscale .8
- forecolor 0.7 0.7 0.7 1
- border 0
- bordercolor 0 0 0 0
- descText @MENUS_CHOOSE_THE_COLOR_FOR
- cvarTest "ui_about_gametype"
- showCvar
- {
- "6" ;
- "7" ;
- "8" ;
- "9"
- }
- visible 1
- decoration
- action
- {
- play "sound/interface/button1"
- }
- }
- //------------------------------------------------------------------------------------------------
- // Scroll box with portraits.
- //------------------------------------------------------------------------------------------------
- itemDef
- {
- name headlist
- // rect 20 90 388 82
- rect 20 90 404 194
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_FILLED
- elementwidth 64
- elementheight 64
- elementtype LISTBOX_IMAGE
- feeder FEEDER_Q3HEADS
- // horizontalscroll
- backcolor 0 0 0 1
- border 1
- bordercolor 1 .682 0 1
- forecolor 1 1 1 1
- descText @MENUS_CHOOSE_THE_MODEL_FOR
- visible 1
- textscale 0.7
- action
- {
- play "sound/interface/button1"
- }
- mouseenter
- {
- setitemcolor headlist bordercolor 1 0 0 1
- }
- mouseexit
- {
- setitemcolor headlist bordercolor 1 .682 0 .7
- }
- }
- //------------------------------------------------------------------------------------------------
- // Custom skin
- //------------------------------------------------------------------------------------------------
- itemDef
- {
- name customtitle
- style 0
- text @MENUS_CUSTOM
- rect 425 130 150 26
- textalign ITEM_ALIGN_CENTER
- textalignx 75
- textaligny -3
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- font 2
- textscale 1
- forecolor .549 .854 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name custom
- group none
- background "gfx/mp/custom_mp_default"
- descText @MENUS_CUSTOMPLAYER_DESC
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_SHADER
- rect 465 160 75 75
- font 3
- textscale 1
- textaligny -1
- textalign ITEM_ALIGN_CENTER
- textstyle 3
- forecolor .5 .5 .5 1
- visible 1
- mouseEnter
- {
- setitemcolor custom forecolor 1 1 1 1
- }
- mouseExit
- {
- setitemcolor custom forecolor .5 .5 .5 1
- }
- action
- {
- play "sound/interface/button1.wav"
- uiScript updateForceStatus
- close ingame_player
- open ingame_player2
- }
- }
- //------------------------------------------------------------------------------------------------
- // Saber Setup
- //------------------------------------------------------------------------------------------------
- // Box for force powers
- itemDef
- {
- name background
- group none
- style WINDOW_STYLE_EMPTY
- rect 15 299 410 100
- border 1
- bordercolor .298 .305 .690 1
- bordersize 2
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- // Title box for force powers
- itemDef
- {
- name background
- group none
- style WINDOW_STYLE_FILLED
- rect 17 300 410 18
- backcolor .298 .305 .690 1
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- // Box for saber setup
- itemDef
- {
- name background
- group none
- style WINDOW_STYLE_EMPTY
- rect 430 299 155 100
- border 1
- bordercolor .298 .305 .690 1
- bordersize 2
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- // Title box for saber setup
- itemDef
- {
- name background
- group none
- style WINDOW_STYLE_FILLED
- rect 432 300 155 18
- backcolor .298 .305 .690 1
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name sabertitle
- style 0
- text @MENUS_SABER_TITLE
- rect 430 297 150 26
- textalign ITEM_ALIGN_CENTER
- textalignx 75
- textaligny -3
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- font 2
- textscale 1
- forecolor .549 .854 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name saber
- group none
- background "gfx/menus/saberonly"
- descText @MENUS_SABER_TITLE_DESC
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_SHADER
- rect 465 322 75 75
- font 3
- textscale 1
- textalignx 65
- textaligny -1
- textalign ITEM_ALIGN_CENTER
- textstyle 3
- forecolor .5 .5 .5 1
- visible 1
- mouseEnter
- {
- setitemcolor saber forecolor 1 1 1 1
- }
- mouseExit
- {
- setitemcolor saber forecolor .5 .5 .5 1
- }
- action
- {
- play "sound/interface/button1.wav"
- close ingame_player
- open ingame_saber
- }
- }
- //------------------------------------------------------------------------------------------------
- // FORCE POWER INFO (If normal server)
- //------------------------------------------------------------------------------------------------
- // The Force title
- itemDef
- {
- name forcetitle
- group yesforce
- style 0
- text @MENUS_THE_FORCE
- rect 220 298 0 0
- textalign ITEM_ALIGN_CENTER
- textalignx 0
- textaligny -4
- outlinecolor 1 .5 .5 .5
- font 2
- textscale 1
- forecolor .549 .854 1 1
- visible 1
- cvarTest "ui_about_gametype"
- hideCvar
- {
- "1" ;
- "2"
- }
- decoration
- }
- // Force Rank display
- itemDef
- {
- name rankdisplay
- group "yesforce"
- style 0
- text @MENUS_FORCE_MASTERY
- ownerdraw UI_FORCE_RANK
- rect 20 320 175 16
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny 0
- font 4
- textscale 1
- forecolor 1 .682 0 .8
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- visible 1
- decoration
- cvarTest "ui_about_gametype"
- hideCvar
- {
- "1" ;
- "2"
- }
- }
- // Force Side Chooser
- itemDef
- {
- name setside
- group "yesforce"
- style 0
- text @MENUS_FORCE_SIDE
- ownerdraw UI_FORCE_SIDE
- rect 20 340 175 16
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- textaligny 0
- font 4
- textscale 1
- forecolor 1 .682 0 .8
- visible 1
- cvarTest "ui_about_gametype"
- hideCvar
- {
- "1" ;
- "2"
- }
- decoration
- action
- {
- play "sound/interface/button1"
- }
- }
- // Force pointsdisplay
- itemDef
- {
- name setpoints
- group "yesforce"
- style 0
- text @MENUS_POINTS_REMAINING
- ownerdraw UI_FORCE_POINTS
- rect 20 360 175 16
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- textaligny 0
- font 4
- textscale 1
- forecolor 1 .682 0 .8
- visible 1
- cvarTest "ui_about_gametype"
- hideCvar
- {
- "1" ;
- "2"
- }
- decoration
- }
- // Jedi/Non-Jedi Chooser
- itemDef
- {
- name jedinonjedi
- group jedinonjedi
- style 0
- text @MENUS_JEDI_NONJEDI
- ownerdraw UI_JEDI_NONJEDI
- rect 183 370 105 32
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- textaligny 0
- font 4
- textscale 1
- forecolor 1 1 1 1
- border 0
- bordercolor 0 0 0 0
- descText @MENUS_CHOOSE_JEDI_NONJEDI
- visible 1
- action
- {
- uiScript updateForceStatus
- }
- }
- //------------------------------------------------------------------------------------------------
- // Configure force button
- //------------------------------------------------------------------------------------------------
- itemDef
- {
- name configforcebutton
- group "yesforce"
- type 1
- style WINDOW_STYLE_SHADER
- background "gfx/menus/configforce"
- rect 275 320 75 75
- textalign ITEM_ALIGN_CENTER
- textalignx 97
- textaligny 2
- font 2
- textscale 1
- forecolor .5 .5 .5 1
- descText @MENUS_SET_UP_THE_FORCE_ABILITIES
- visible 1
- cvarTest "ui_about_gametype"
- hideCvar
- {
- "1" ;
- "2"
- }
- action
- {
- play "sound/interface/button1"
- close ingame_player
- open ingame_playerforce
- hide highlights
- }
- mouseEnter
- {
- setitemcolor configforcebutton forecolor 1 1 1 1
- }
- mouseExit
- {
- setitemcolor configforcebutton forecolor .5 .5 .5 1
- }
- }
- //----------------------------------------
- // DISABLED FORCE POWER (If g_forcepowerdisable)
- //----------------------------------------
- // The Force title
- itemDef
- {
- name forcetitle
- group noforce
- style 0
- text @MENUS_NOFORCE_DISABLED_0
- rect 220 298 0 0
- textalign ITEM_ALIGN_CENTER
- textalignx 0
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- textaligny -4
- font 2
- textscale 1
- forecolor 1 1 1 1
- visible 1
- cvarTest "ui_about_gametype"
- hideCvar
- {
- "1" ;
- "2"
- }
- decoration
- }
- itemDef
- {
- name text2
- group "noforce"
- style 0
- text @MENUS_NOFORCE_DISABLED_1
- rect 20 320 400 20
- textalign ITEM_ALIGN_CENTER
- textalignx 200
- textaligny 0
- font 4
- textscale 1
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- forecolor 1 .682 0 .8
- visible 1
- cvarTest "ui_about_gametype"
- hideCvar
- {
- "1" ;
- "2"
- }
- decoration
- }
- //------------------------------------------------------------------------------------------------
- // HOLOCRON INFO
- //------------------------------------------------------------------------------------------------
- // The Force title
- itemDef
- {
- name forcetitle
- group none
- style 0
- text @MENUS_NOFORCE_HOLO_0
- rect 220 298 0 0
- textalign ITEM_ALIGN_CENTER
- textalignx 0
- backcolor 0 0 0 0
- textaligny -4
- font 2
- textscale 1
- forecolor 1 1 1 1
- cvarTest "ui_about_gametype"
- showCvar
- {
- "1"
- }
- visible 1
- decoration
- }
- itemDef
- {
- name text1
- group none
- style 0
- text @MENUS_NOFORCE_HOLO_1
- rect 20 330 400 20
- textalign ITEM_ALIGN_CENTER
- textalignx 200
- textaligny 0
- font 4
- textscale 1
- forecolor 1 .682 0 .8
- outlinecolor 1 .5 .5 .5
- cvarTest "ui_about_gametype"
- showCvar
- {
- "1"
- }
- visible 1
- decoration
- }
- itemDef
- {
- name text2
- group none
- style 0
- text @MENUS_NOFORCE_HOLO_2
- rect 20 350 400 20
- textalign ITEM_ALIGN_CENTER
- textalignx 200
- textaligny 0
- font 4
- textscale 1
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- forecolor 1 .682 0 .8
- cvarTest "ui_about_gametype"
- showCvar
- {
- "1"
- }
- visible 1
- decoration
- }
- itemDef
- {
- name text3
- group none
- style 0
- text @MENUS_NOFORCE_HOLO_3
- rect 20 370 400 20
- textalign ITEM_ALIGN_CENTER
- textalignx 200
- textaligny 0
- font 4
- textscale 1
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- forecolor 1 .682 0 .8
- cvarTest "ui_about_gametype"
- showCvar
- {
- "1"
- }
- visible 1
- decoration
- }
- //------------------------------------------------------------------------------------------------
- // JEDI MASTER INFO
- //------------------------------------------------------------------------------------------------
- // The Force title
- itemDef
- {
- name forcetitle
- group none
- style 0
- text @MENUS_NOFORCE_JEDI_0
- rect 220 298 0 0
- textalign ITEM_ALIGN_CENTER
- textalignx 0
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- textaligny -4
- font 2
- textscale 1
- forecolor 1 1 1 1
- cvarTest "ui_about_gametype"
- showCvar
- {
- "2"
- }
- visible 1
- decoration
- }
- itemDef
- {
- name text1
- group none
- style 0
- text @MENUS_NOFORCE_JEDI_1
- rect 20 330 400 20
- textalign ITEM_ALIGN_CENTER
- textalignx 200
- textaligny 0
- font 4
- textscale 1
- forecolor 1 .682 0 .8
- outlinecolor 1 .5 .5 .5
- cvarTest "ui_about_gametype"
- showCvar
- {
- "2"
- }
- visible 1
- decoration
- }
- itemDef
- {
- name text2
- group none
- style 0
- text @MENUS_NOFORCE_JEDI_2
- rect 20 350 400 20
- textalign ITEM_ALIGN_CENTER
- textalignx 200
- textaligny 0
- font 4
- textscale 1
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- forecolor 1 .682 0 .8
- cvarTest "ui_about_gametype"
- showCvar
- {
- "2"
- }
- visible 1
- decoration
- }
- itemDef
- {
- name text3
- group none
- style 0
- text @MENUS_NOFORCE_JEDI_3
- rect 20 370 400 20
- textalign ITEM_ALIGN_CENTER
- textalignx 200
- textaligny 0
- font 4
- textscale 1
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- forecolor 1 .682 0 .8
- cvarTest "ui_about_gametype"
- showCvar
- {
- "2"
- }
- visible 1
- decoration
- }
- //---------------------------------------------
- // APPLY BUTTON
- //---------------------------------------------
- // APPLY, already on a team
- itemDef
- {
- name applyjoinButton
- group highlights
- style WINDOW_STYLE_SHADER
- rect 5 412 105 32
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- decoration
- visible 0
- appearance_slot 3
- }
- itemDef
- {
- name applycurrent
- group "playerapply"
- text @MENUS_APPLY
- type 1
- style WINDOW_STYLE_EMPTY
- rect 5 412 105 32
- textalign ITEM_ALIGN_CENTER
- textalignx 52
- textaligny 2
- font 2
- textscale 1
- forecolor 1 .682 0 1
- descText @MENUS_APPLY_CHANGES_AND_JOIN
- visible 1
- action
- {
- play "sound/interface/button1"
- uiScript setForce "none"
- hide highlights
- uiScript closeingame
- }
- mouseEnter
- {
- show applyjoinButton
- }
- mouseExit
- {
- hide applyjoinButton
- }
- }
- // APPLY Free
- itemDef
- {
- name applyjoin
- group "playerforcejoin"
- text @MENUS_JOIN_GAME
- type 1
- style WINDOW_STYLE_EMPTY
- rect 5 412 105 32
- textalign ITEM_ALIGN_CENTER
- textalignx 52
- textaligny 2
- font 2
- textscale 1
- forecolor 1 .682 0 1
- descText @MENUS_APPLY_CHANGES_AND_JOIN
- visible 1
- action
- {
- play "sound/interface/button1"
- uiScript setForce "free"
- hide highlights
- uiScript closeingame
- }
- mouseEnter
- {
- show applyjoinButton
- }
- mouseExit
- {
- hide applyjoinButton
- }
- }
- // APPLY RED
- itemDef
- {
- name applyredButton
- group highlights
- style WINDOW_STYLE_SHADER
- rect 110 412 105 32
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef
- {
- name applyred
- group "playerforcered"
- text @MENUS_JOIN_RED
- type 1
- style WINDOW_STYLE_EMPTY
- rect 110 412 105 32
- textalign ITEM_ALIGN_CENTER
- textalignx 52
- textaligny 2
- font 2
- textscale 1
- forecolor 1 .682 0 1
- cvarTest "ui_about_gametype"
- hideCvar
- {
- "0" ;
- "1" ;
- "2" ;
- "3" ;
- "4"
- }
- descText @MENUS_CHANGES_AND_JOIN_THE
- visible 1
- action
- {
- play "sound/interface/button1"
- uiScript setForce "red"
- hide highlights
- uiScript closeingame
- }
- mouseEnter
- {
- show applyredButton
- }
- mouseExit
- {
- hide applyredButton
- }
- }
- // APPLY BLUE
- itemDef
- {
- name applyblueButton
- group highlights
- style WINDOW_STYLE_SHADER
- rect 215 412 105 32
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef
- {
- name applyblue
- group "playerforceblue"
- text @MENUS_JOIN_BLUE
- type 1
- style WINDOW_STYLE_EMPTY
- rect 215 412 105 32
- textalign ITEM_ALIGN_CENTER
- textalignx 52
- textaligny 2
- font 2
- textscale 1
- forecolor 1 .682 0 1
- cvarTest "ui_about_gametype"
- hideCvar
- {
- "0" ;
- "1" ;
- "2" ;
- "3" ;
- "4"
- }
- descText @MENUS_AND_JOIN_THE_BLUE_TEAM
- visible 1
- action
- {
- play "sound/interface/button1"
- uiScript setForce "blue"
- hide highlights
- uiScript closeingame
- }
- mouseEnter
- {
- show applyblueButton
- }
- mouseExit
- {
- hide applyblueButton
- }
- }
- // APPLY SPECTATOR
- itemDef
- {
- name applyspectateButton
- group highlights
- style WINDOW_STYLE_SHADER
- rect 320 412 105 32
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef
- {
- name applyspectate
- group "playerforcespectate"
- text @MENUS_SPECTATE
- type 1
- style WINDOW_STYLE_EMPTY
- rect 320 412 105 32
- textalign ITEM_ALIGN_CENTER
- textalignx 52
- textaligny 2
- font 2
- textscale 1
- forecolor 1 .682 0 1
- descText @MENUS_APPLY_CHANGES_BUT_REMAIN
- visible 1
- action
- {
- play "sound/interface/button1"
- uiScript setForce "s"
- hide highlights
- uiScript closeingame
- }
- mouseEnter
- {
- show applyspectateButton
- }
- mouseExit
- {
- hide applyspectateButton
- }
- }
- }
- }
|