123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648 |
- \\ CALL VOTE MENU \\
- {
- menuDef
- {
- name "ingame_callvote"
- visible 0
- fullscreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 270 40 360 216
- focusColor 1 1 1 1 // Focus color for text and items
- style 1
- border 1
- descX 450
- descY 210
- descScale 1
- descColor 1 .682 0 .8 // Focus color for text and items
- descAlignment ITEM_ALIGN_CENTER
- onopen
- {
- uiscript clearmouseover map ;
- uiscript clearmouseover type ;
- uiscript clearmouseover kick ;
- hide doneButton ;
- hide grpcallVote ;
- show misc ;
- uiScript loadArenas ;
- setitemcolor grpbutton forecolor 1 .682 0 1 ;
- setitemcolor miscbutton forecolor 1 1 1 1 ;
- uiscript resetmaplist ;
- }
-
- // Overall window backdrop
- itemDef
- {
- name background_pic
- group none
- style WINDOW_STYLE_SHADER
- rect 0 0 360 210
- background "gfx/menus/menu_box_ingame"
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef
- {
- name playerconfigtitle
- style WINDOW_STYLE_SHADER
- background "gfx/menus/menu_blendbox"
- text @MENUS_CALL_FOR_VOTES
- rect 10 5 340 15
- textalign ITEM_ALIGN_CENTER
- textalignx 170
- textaligny -2
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- font 3
- textscale 0.8
- forecolor .549 .854 1 1
- border 0
- bordercolor 0 0 0 0
- visible 1
- }
-
- /* itemDef
- {
- name setup_background
- style WINDOW_STYLE_SHADER
- rect 112 35 245 135
- background "gfx/menus/menu_box1" // Frame
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- */
-
-
- itemDef
- {
- name setup_background2
- group none
- style WINDOW_STYLE_FILLED
- rect 120 35 235 135
- backcolor 0 0 .6 .5
- forecolor 1 1 1 1
- border 1
- bordercolor 0 0 .6 1
- visible 1
- decoration
- }
-
-
- // DONE GLOW, used for several buttons
- itemDef
- {
- name doneButton
- group none
- style WINDOW_STYLE_SHADER
- rect 140 186 80 30
- background "gfx/menus/menu_buttonback" // Frame around button
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- // BUTTONS //
- itemDef
- {
- name misc_glow
- group glows
- style WINDOW_STYLE_SHADER
- rect 0 35 120 30
- background "gfx/menus/menu_blendbox2" // Frame around button
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name miscbutton
- group grpbutton
- text @MENUS_GENERAL
- descText @MENUS_ADJUST_GAME_OPTIONS
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 10 35 103 30
- font 3
- textscale 0.9
- textalignx 100
- textaligny 5
- textstyle 3
- textalign ITEM_ALIGN_RIGHT
- forecolor 1 .682 0 1
- visible 1
- action
- {
- play "sound/interface/button1.wav" ;
- hide grpCallVote ;
- show misc ;
- setitemcolor grpbutton forecolor 1 .682 0 1 ;
- setitemcolor miscbutton forecolor 1 1 1 1 ;
- }
- mouseEnter
- {
- show misc_glow
- }
- mouseExit
- {
- hide misc_glow
- }
- }
- itemDef
- {
- name gametype_glow
- group glows
- style WINDOW_STYLE_SHADER
- rect 0 65 120 30
- background "gfx/menus/menu_blendbox2" // Frame around button
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name gametypebutton
- group grpbutton
- text @MENUS_GAMETYPE
- descText @MENUS_START_A_DIFFERENT_TYPE
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 10 65 103 30
- font 3
- textscale 0.9
- textalignx 100
- textaligny 5
- textstyle 3
- textalign ITEM_ALIGN_RIGHT
- forecolor 1 .682 0 1
- visible 1
- action
- {
- play "sound/interface/button1.wav" ;
- hide grpCallVote ;
- show type ;
- setitemcolor grpbutton forecolor 1 .682 0 1 ;
- setitemcolor gametypebutton forecolor 1 1 1 1 ;
- }
-
- forecolor .615 .615 .956 1
-
- mouseEnter
- {
- show gametype_glow
- }
- mouseExit
- {
- hide gametype_glow
- }
- }
- itemDef
- {
- name changemap_glow
- group glows
- style WINDOW_STYLE_SHADER
- rect 0 95 120 30
- background "gfx/menus/menu_blendbox2" // Frame around button
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name changemapbutton
- text @MENUS_MAP
- descText @MENUS_CHANGE_TO_A_NEW_MAP
- group grpbutton
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 10 95 103 30
- font 3
- textscale 0.9
- textalignx 100
- textaligny 5
- textstyle 3
- textalign ITEM_ALIGN_RIGHT
- forecolor 1 .682 0 1
- visible 1
- action
- {
- play "sound/interface/button1.wav" ;
- hide grpCallVote ;
- show maplist ;
- show map ;
- setitemcolor grpbutton forecolor 1 .682 0 1 ;
- setitemcolor changemapbutton forecolor 1 1 1 1 ;
- }
- mouseEnter
- {
- show changemap_glow
- }
- mouseExit
- {
- hide changemap_glow
- }
- }
- itemDef
- {
- name kick_glow
- group glows
- style WINDOW_STYLE_SHADER
- rect 0 125 120 30
- background "gfx/menus/menu_blendbox2" // Frame around button
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name kickbutton
- group grpbutton
- text @MENUS_KICK
- descText @MENUS_BANISH_A_PLAYER_FROM
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- rect 10 125 103 30
- font 3
- textscale 0.9
- textalignx 100
- textaligny 5
- textstyle 3
- textalign ITEM_ALIGN_RIGHT
- forecolor 1 .682 0 1
- visible 1
- action
- {
- play "sound/interface/button1.wav" ;
- hide grpCallVote ;
- show kick ;
- setitemcolor grpbutton forecolor 1 .682 0 1 ;
- setitemcolor kickbutton forecolor 1 1 1 1 ;
- }
- mouseEnter
- {
- show kick_glow
- }
- mouseExit
- {
- hide kick_glow
- }
- }
- //----------------------------------
- // MISC VOTE PANEL
- //----------------------------------
- itemDef
- {
- name misc
- text @MENUS_RESTART_MAP
- descText @MENUS_BEGIN_VOTE_TO_RESTART
- group grpCallVote
- rect 112 35 245 30
- type 1
- textalign ITEM_ALIGN_CENTER
- textalignx 122
- textaligny 2
- font 2
- textscale 1
- forecolor 1 .682 0 1
- visible 0
- action
- {
- play "sound/interface/button1.wav" ;
- exec "cmd callvote map_restart" ;
- uiScript closeingame
- }
- }
- itemDef
- {
- name misc
- group grpCallVote
- text @MENUS_NEXT_MAP
- descText @MENUS_BEGIN_VOTE_TO_CYCLE_TO
- rect 112 65 245 30
- type 1
- textalign ITEM_ALIGN_CENTER
- textalignx 122
- textaligny 2
- font 2
- textscale 1
- forecolor 1 .682 0 1
- visible 0
- action
- {
- play "sound/interface/button1.wav" ;
- exec "cmd callvote nextmap" ;
- uiScript closeingame
- }
- }
- itemDef
- {
- name misc
- group grpCallVote
- text @MENUS_WARMUP
- descText @MENUS_BEGIN_VOTE_TO_DO_A_WARMUP
- rect 112 95 245 30
- type 1
- textalign ITEM_ALIGN_CENTER
- textalignx 122
- textaligny 2
- font 2
- textscale 1
- forecolor 1 .682 0 1
- visible 0
- action
- {
- play "sound/interface/button1.wav" ;
- exec "cmd callvote g_doWarmup 1" ;
- uiScript closeingame
- }
- }
- //----------------------------------
- // GAMETYPE VOTE PANEL
- //----------------------------------
- itemDef
- {
- name type
- group grpCallVote
- text @MENUS_GAME_TYPE
- descText @MENUS_SELECT_A_NEW_GAME_TYPE
- style 0
- ownerdraw UI_NETGAMETYPE
- rect 120 65 230 30
- textalign ITEM_ALIGN_RIGHT
- textalignx 50
- textaligny 2
- font 2
- textscale 1
- forecolor 1 .682 0 1
- visible 0
- }
- itemDef
- {
- name type
- group grpCallVote
- text @MENUS_OKAY
- descText @MENUS_BEGIN_VOTE_FOR_THIS_GAME
- type 1
- style WINDOW_STYLE_FILLED
- rect 140 186 80 30
- textalign ITEM_ALIGN_CENTER
- textalignx 40
- textaligny 0
- font 3
- textscale 1
- forecolor 1 .682 0 1
- visible 1
- action
- {
- play "sound/interface/button1.wav" ;
- uiScript voteGame ;
- uiScript closeingame
- }
- mouseEnter
- {
- show doneButton
- }
- mouseExit
- {
- hide doneButton
- }
- }
- //----------------------------------
- // MAP VOTE PANEL
- //----------------------------------
- itemDef
- {
- name map
- group grpCallVote
- text @MENUS_NEW_MAP
- ownerdraw UI_ALLMAPS_SELECTION
- rect 120 35 230 20
- textalign 0
- textalignx 5
- textaligny -2
- font 2
- textscale .8
- forecolor .549 .854 1 1
- decoration
- visible 0
- action
- {
- play "sound/interface/button1.wav" ;
- }
- }
- itemDef
- {
- name maplist
- group grpCallVote
- descText @MENUS_SELECT_DESIRED_MAP
- rect 120 55 230 108
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_FILLED
- elementwidth 120
- elementheight 15
- elementtype LISTBOX_TEXT
- feeder FEEDER_ALLMAPS
- border 1
- bordercolor 1 .682 0 .8
- backcolor 0 0 .5 .25
- outlinecolor .1 .1 .7 .5
- visible 0
- font 2
- textaligny 12
- textscale .8
- forecolor .615 .615 .956 1
- mouseEnter
- {
- fadein message_arena ;
- setitemcolor map bordercolor .7 0 0 1
- }
- mouseExit
- {
- fadeout message_arena ;
- setitemcolor map bordercolor .5 .5 .5 .5
- }
- action
- {
- play "sound/interface/button1.wav" ;
-
- }
- }
- itemDef
- {
- name map
- text @MENUS_OKAY
- descText @MENUS_BEGIN_VOTE_TO_SWITCH
- type 1
- group grpCallVote
- style WINDOW_STYLE_FILLED
- rect 140 186 80 30
- textalign ITEM_ALIGN_CENTER
- textalignx 40
- textaligny 0
- font 3
- textscale 1
- forecolor 1 .682 0 1
- visible 1
- action
- {
- play "sound/interface/button1.wav" ;
- uiScript voteMap ;
- uiScript closeingame
- }
- mouseEnter
- {
- show doneButton
- }
- mouseExit
- {
- hide doneButton
- }
- }
- //----------------------------------
- // KICK VOTE PANEL
- //----------------------------------
- itemDef
- {
- name kick
- group grpCallVote
- text @MENUS_KICK_PLAYER
- rect 120 35 230 20
- textalign 0
- textalignx 5
- textaligny -2
- font 2
- textscale .8
- forecolor .549 .854 1 1
- visible 0
- decoration
- action
- {
- play "sound/interface/button1.wav" ;
- }
- }
- itemDef
- {
- name kick
- group grpCallVote
- descText @MENUS_SELECT_PLAYER_TO_KICK
- rect 120 55 230 108
- style WINDOW_STYLE_FILLED
- type ITEM_TYPE_LISTBOX
- elementwidth 120
- elementheight 15
- elementtype LISTBOX_TEXT
- feeder FEEDER_PLAYER_LIST
- border 1
- bordercolor 1 .682 0 .8
- backcolor 0 0 .5 .25
- outlinecolor .1 .1 .7 .5
- font 2
- textaligny 12
- textscale .8
- forecolor .615 .615 .956 1
- visible 0
- mouseEnter
- {
- fadein message_arena ;
- setitemcolor kick bordercolor .7 0 0 1
- }
- mouseExit
- {
- fadeout message_arena ;
- setitemcolor kick bordercolor .5 .5 .5 1
- }
- action
- {
- play "sound/interface/button1.wav" ;
- }
- }
- itemDef
- {
- name kick
- text @MENUS_OKAY
- descText @MENUS_BEGIN_VOTE_TO_BANISH
- type 1
- group grpCallVote
- style WINDOW_STYLE_FILLED
- rect 140 186 80 30
- textalign ITEM_ALIGN_CENTER
- textalignx 40
- textaligny 0
- font 3
- textscale 1
- forecolor 1 .682 0 1
- visible 1
- action
- {
- play "sound/interface/button1.wav" ;
- uiScript voteKick ;
- uiScript closeingame
- }
- mouseEnter
- {
- show doneButton
- }
- mouseExit
- {
- hide doneButton
- }
- }
- }
- }
|