123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465 |
- //------------------------------------------------------------------------------------------------
- // SIEGE_TEAM - player chooses team and then from here they choose base class.
- //
- // ui_team 1 = RED
- // ui_team 2 = BLUE
- // ui_team 3 = SPECTATOR
- //
- //------------------------------------------------------------------------------------------------
- {
- menuDef
- {
- name "ingame_siegeteam"
- visible 0
- fullscreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 95 34 460 435
- focusColor 1 1 1 1 // Focus color for text and items
- style 1
- border 1
- descX 320
- descY 440
- descScale 0.7
- descColor .79 .64 .22 .7 // Focus color for text and items
- descAlignment ITEM_ALIGN_CENTER
- onOpen
- {
- uiScript update ui_GetName
- uiScript updateForceStatus
- hide nextbutton
- hide glow
- setitemcolor team1_button forecolor .670 .670 .929 1
- setitemcolor team2_button forecolor .670 .670 .929 1
- }
- onClose
- {
- // uiScript update ui_SetName
- // uiScript updateForceStatus
- }
- // Overall window backdrop
- itemDef
- {
- name background_pic
- group none
- style WINDOW_STYLE_SHADER
- rect 0 0 460 435
- background "gfx/menus/menu_box_ingame"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- //----------------------------------------
- //
- // TITLE BAR
- //
- //----------------------------------------
- itemDef
- {
- name siegeclassconfigtitle
- style WINDOW_STYLE_SHADER
- background "gfx/menus/menu_blendbox"
- text "TEAM CHOICE"
- rect 20 5 420 28
- textalign ITEM_ALIGN_CENTER
- textalignx 210
- textaligny 2
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- font 3
- textscale 0.9
- forecolor 1 1 1 1
- border 0
- bordercolor 0 0 0 0
- visible 1
- }
- //----------------------------------------
- //
- // TEAM SYMBOLS
- //
- //----------------------------------------
- itemDef
- {
- name team1_impsymbol
- group team1_symbol
- style WINDOW_STYLE_SHADER
- background "gfx/2d/mp_imp_symbol"
- cvarTest cg_siegeTeam1Name
- showCVar { "Imperial" }
- rect 102 87 256 256
- forecolor 1 1 1 .3
- visible 1
- decoration
- }
- itemDef
- {
- name team1_rebelsymbol
- group team1_symbol
- style WINDOW_STYLE_SHADER
- background "gfx/2d/mp_rebel_symbol"
- cvarTest cg_siegeTeam1Name
- showCVar { "Rebel" }
- rect 102 87 256 256
- forecolor 1 1 1 .3
- visible 1
- decoration
- }
- itemDef
- {
- name team2_impsymbol
- group team2_symbol
- style WINDOW_STYLE_SHADER
- background "gfx/2d/mp_imp_symbol"
- cvarTest cg_siegeTeam2Name
- showCVar { "Imperial" }
- rect 102 87 256 256
- forecolor 1 1 1 .3
- visible 0
- decoration
- }
- itemDef
- {
- name team2_rebelsymbol
- group team2_symbol
- style WINDOW_STYLE_SHADER
- background "gfx/2d/mp_rebel_symbol"
- cvarTest cg_siegeTeam2Name
- showCVar { "Rebel" }
- rect 102 87 256 256
- forecolor 1 1 1 .3
- visible 0
- decoration
- }
- //----------------------------------------
- //
- // NAME ENTRY FIELD
- //
- //----------------------------------------
- itemDef
- {
- name namefield
- type ITEM_TYPE_EDITFIELD
- style 0
- text @MENUS_NAME
- cvar ui_Name
- maxchars 26
- rect 80 80 300 20
- textalign ITEM_ALIGN_LEFT
- textalignx 0
- textaligny -4
- font 0
- textscale 1
- forecolor .670 .670 .929 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
- mouseEnter
- {
- show namefield_glow
- }
- mouseExit
- {
- hide namefield_glow
- }
- }
- // The high light
- itemDef
- {
- name namefield_glow
- group glow
- style WINDOW_STYLE_SHADER
- rect 10 80 400 20
- background "gfx/menus/menu_blendbox"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- //----------------------------------------
- // TEAM1 BUTTON
- //----------------------------------------
- itemDef
- {
- name team1_button
- type ITEM_TYPE_BUTTON
- cvar cg_siegeTeam1Name
- rect 165 150 130 16
- textalign ITEM_ALIGN_CENTER
- textalignx 65
- textaligny -4
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- font 2
- textscale 0.9
- forecolor .670 .670 .929 1
- border 0
- bordercolor 0 0 0 0
- descText "Join this team."
- visible 1
- mouseEnter
- {
- show team1_glow
- }
- mouseExit
- {
- hide team1_glow
- }
- action
- {
- play "sound/interface/button1.wav"
- hide team2_symbol
- show team1_symbol
- exec "cmd team r"
- setcvar ui_team 1
- uiscript updatesiegeclasscnt 1
- uiscript updatesiegecvars
- // show nextbutton
- // setitemcolor team1_button forecolor 1 1 .807 1
- // setitemcolor team2_button forecolor .670 .670 .929 1
- uiScript setsiegeclass
- close all
- open ingame_siegeclass
- }
- }
- // The high light
- itemDef
- {
- name team1_glow
- group glow
- style WINDOW_STYLE_SHADER
- rect 165 145 130 26
- background "gfx/menus/menu_blendbox"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- //----------------------------------------
- // TEAM2 BUTTON
- //----------------------------------------
- itemDef
- {
- name team2_button
- type ITEM_TYPE_BUTTON
- cvar cg_siegeTeam2Name
- rect 165 200 130 16
- textalign ITEM_ALIGN_CENTER
- textalignx 65
- textaligny -4
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- font 2
- textscale 0.9
- forecolor .670 .670 .929 1
- border 0
- bordercolor 0 0 0 0
- descText "Join this team."
- visible 1
- action
- {
- play "sound/interface/button1.wav"
- hide team1_symbol
- show team2_symbol
- exec "cmd team b"
- setcvar ui_team 2
- uiscript updatesiegeclasscnt 2
- uiscript updatesiegecvars
- // show nextbutton
- // setitemcolor team1_button forecolor .670 .670 .929 1
- // setitemcolor team2_button forecolor 1 1 .807 1
- uiScript setsiegeclass
- close all
- open ingame_siegeclass
- }
- mouseEnter
- {
- show team2_glow
- }
- mouseExit
- {
- hide team2_glow
- }
- }
- // The high light
- itemDef
- {
- name team2_glow
- group glow
- style WINDOW_STYLE_SHADER
- rect 165 195 130 26
- background "gfx/menus/menu_blendbox"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- //----------------------------------------
- // AUTOTEAM BUTTON
- //----------------------------------------
- itemDef
- {
- name autoteam
- text @MENUS_AUTO_TEAM
- type 1
- style 2
- rect 165 250 130 16
- textalign ITEM_ALIGN_CENTER
- textalignx 65
- textaligny -4
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- font 2
- textscale 0.9
- forecolor .670 .670 .929 1
- descText "Let server automatically decide the team."
- visible 1
- action
- {
- play "sound/interface/button1.wav"
- exec "cmd team free"
- uiScript closeingame
- }
- mouseEnter
- {
- show autoteam_glow
- }
- mouseExit
- {
- hide autoteam_glow
- }
- }
- // The high light
- itemDef
- {
- name autoteam_glow
- group glow
- style WINDOW_STYLE_SHADER
- rect 165 245 130 26
- background "gfx/menus/menu_blendbox"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- //----------------------------------------
- // SPECTATOR BUTTON
- //----------------------------------------
- itemDef
- {
- name spectate
- text @MENUS_SPECTATE
- type 1
- style 2
- rect 165 300 130 16
- textalign ITEM_ALIGN_CENTER
- textalignx 65
- textaligny -4
- font 2
- textscale .9
- forecolor .670 .670 .929 1
- visible 1
- descText "Watch the game."
- action
- {
- play "sound/interface/button1.wav"
- exec "cmd team s"
- uiScript closeingame
- }
- mouseEnter
- {
- show spectate_glow
- }
- mouseExit
- {
- hide spectate_glow
- }
- }
- // The high light
- itemDef
- {
- name spectate_glow
- group glow
- style WINDOW_STYLE_SHADER
- rect 165 295 130 26
- background "gfx/menus/menu_blendbox"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- //----------------------------------------
- // NEXT BUTTON
- //----------------------------------------
- /* itemDef
- {
- name nextbutton
- group playerapply
- text @MENUS_NEXT
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 10 370 440 16
- textalign ITEM_ALIGN_CENTER
- textalignx 220
- textaligny -4
- font 2
- textscale .9
- forecolor .79 .64 .22 1
- descText "Select a class on the chosen team."
- visible 0
- action
- {
- play "sound/interface/button1.wav"
- uiScript setsiegeclass
- close all
- open ingame_siegeclass
- }
- mouseEnter
- {
- show next_glow
- }
- mouseExit
- {
- hide next_glow
- }
- }
- // The high light
- itemDef
- {
- name next_glow
- group glow
- style WINDOW_STYLE_SHADER
- rect 10 365 440 26
- background "gfx/menus/menu_blendbox"
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- } */
- }
|