Initial commit.
This commit is contained in:
647
base/ui/jamp/ingame_callvote.menu
Normal file
647
base/ui/jamp/ingame_callvote.menu
Normal file
@@ -0,0 +1,647 @@
|
||||
\\ 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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user