summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2007-03-25 03:20:13 +0000
committerTony J. White <tjw@tjw.org>2007-03-25 03:20:13 +0000
commit571bbb40853abd04a351b91921881bf5b5275f61 (patch)
tree9a3189501413587e0e22cda18a97ce07aa13b750 /ui
parent38db2a614ec51079aed2065dcfd547754c27567e (diff)
* ingame menus redesigned
* spectators can now participate in non-team votes * added teamvote "admitdefeat" * replaced "nextmap" vote with "draw" * removed vote "clientkick" vote (uses "kick" instead) * removed teamvote "teamclientkick" (uses "kick" instead) * renamed teamvote "teamkick" to teamvote "kick" * added teamvote "denybuild" and "allowbuild" * added vote "mute" and "unmute" * added !denybuild and !allowbuild g_admin commands * added /ignore and /unignore commands (and menu support) * Game -> Info (formerly About) shows server settings instead of local ones * Voting keys can now be configured in the Options menu * Voting key binds now display with the vote status (F3 and F4 will be the eventual default binds for "teamvote yes" and "teamvote no" respectively)
Diffstat (limited to 'ui')
-rw-r--r--ui/ingame.menu30
-rw-r--r--ui/ingame.txt5
-rw-r--r--ui/ingame_about.menu173
-rw-r--r--ui/ingame_callteamvote.menu175
-rw-r--r--ui/ingame_callvote.menu276
-rw-r--r--ui/ingame_game.menu3206
-rw-r--r--ui/ingame_options.menu129
-rw-r--r--ui/ingame_vote.menu515
-rw-r--r--ui/menudef.h4
-rw-r--r--ui/menus.txt3
-rw-r--r--ui/teamscore.menu21
11 files changed, 3345 insertions, 1192 deletions
diff --git a/ui/ingame.menu b/ui/ingame.menu
index a19d529d..13bd1f3c 100644
--- a/ui/ingame.menu
+++ b/ui/ingame.menu
@@ -53,8 +53,8 @@
itemdef
{
- name about
- text "About"
+ name game
+ text "Game"
rect 35 6 65 40
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
@@ -67,7 +67,7 @@
action
{
play "sound/misc/menu1.wav";
- open ingame_about
+ open ingame_game
}
}
@@ -93,32 +93,12 @@
itemDef
{
- name vote
- text "Vote"
- type ITEM_TYPE_BUTTON
- style WINDOW_STYLE_EMPTY
- ownerdrawflag UI_SHOW_NOTSPECTATING
- rect 170 6 50 40
- textalign ITEM_ALIGN_CENTER
- textalignx 25
- textaligny 28
- textscale .4
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- open ingame_vote
- }
- }
-
- itemDef
- {
name leave
text "Exit"
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
- rect 220 6 50 40
+ //rect 220 6 50 40
+ rect 170 6 50 40
textalign ITEM_ALIGN_CENTER
textalignx 25
textaligny 28
diff --git a/ui/ingame.txt b/ui/ingame.txt
index 860fce10..185ce97a 100644
--- a/ui/ingame.txt
+++ b/ui/ingame.txt
@@ -2,10 +2,7 @@
//
{
loadMenu { "ui/ingame.menu" }
- loadMenu { "ui/ingame_about.menu" }
+ loadMenu { "ui/ingame_game.menu" }
loadMenu { "ui/ingame_options.menu" }
- loadMenu { "ui/ingame_vote.menu" }
- loadMenu { "ui/ingame_callvote.menu" }
- loadMenu { "ui/ingame_callteamvote.menu" }
loadMenu { "ui/ingame_leave.menu" }
}
diff --git a/ui/ingame_about.menu b/ui/ingame_about.menu
deleted file mode 100644
index 77ab4c91..00000000
--- a/ui/ingame_about.menu
+++ /dev/null
@@ -1,173 +0,0 @@
-#include "ui/menudef.h"
-
-{
- \\ INGAME ABOUT BOX \\
-
- menuDef
- {
- name "ingame_about"
- visible 0
- fullscreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 10 56 256 160
- focusColor 1 .75 0 1
-
- itemDef
- {
- name window
- rect 10 5 256 150
- style 1
- backcolor 0 0 0 1
- visible 1
- decoration
-
- border WINDOW_BORDER_KCGRADIENT
- borderSize 2.0
- borderColor 0.5 0.5 0.5 1
- }
-
- itemDef
- {
- name about
- rect 0 25 256 20
- name gametypefield
- type 4
- style 0
- text "Map Name:"
- cvar mapname
- maxPaintChars 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 128
- textaligny 12
- textscale .25
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name about
- rect 0 40 256 20
- type 4
- style 0
- text "Time Limit:"
- maxPaintChars 12
- cvar timelimit
- textalign ITEM_ALIGN_RIGHT
- textalignx 128
- textaligny 12
- textscale .25
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name about
- rect 0 55 256 20
- type 4
- style 0
- text "Protocol:"
- cvar protocol
- maxPaintChars 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 128
- textaligny 12
- textscale .25
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name about
- rect 0 70 256 20
- type 4
- style 0
- text "Max Clients:"
- cvar sv_maxclients
- maxPaintChars 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 128
- textaligny 12
- textscale .25
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name about
- rect 0 85 256 20
- type 4
- style 0
- text "Host Name:"
- cvar sv_hostname
- maxPaintChars 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 128
- textaligny 12
- textscale .25
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name about
- rect 0 100 256 20
- type 11
- style 0
- text "Password Required:"
- cvar g_needpass
- textalign ITEM_ALIGN_RIGHT
- textalignx 128
- textaligny 12
- textscale .25
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name about
- rect 0 115 256 20
- type 11
- style 0
- text "DM Flags:"
- cvar g_dmflags
- textalign ITEM_ALIGN_RIGHT
- textalignx 128
- textaligny 12
- textscale .25
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
- itemDef
- {
- name about
- rect 0 130 256 20
- type 4
- style 0
- text "Version:"
- cvar version
- maxPaintChars 32
- textalign ITEM_ALIGN_LEFT
- textalignx 128
- textaligny 12
- textalign 1
- textscale .25
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- }
-}
diff --git a/ui/ingame_callteamvote.menu b/ui/ingame_callteamvote.menu
deleted file mode 100644
index 58a0c7cb..00000000
--- a/ui/ingame_callteamvote.menu
+++ /dev/null
@@ -1,175 +0,0 @@
-#include "ui/menudef.h"
-
-{
- menuDef
- {
- name "ingame_callteamvote"
- visible 0
- fullscreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 37 56 250 157
- focusColor 1 .75 0 1
- onopen
- {
- hide grpCallVote;
- show teamKick;
-
- setitemcolor teamKickBtn forecolor 0.2 0.2 0.2 1.0;
- }
-
- itemDef
- {
- name window
- rect 10 5 230 147
- style WINDOW_STYLE_FILLED
- backcolor 0 0 0 1
- visible 1
- decoration
-
- border WINDOW_BORDER_KCGRADIENT
- borderSize 2.0
- borderColor 0.5 0.5 0.5 1
- }
-
- itemDef
- {
- name teamKickBtn
- text "Team Kick"
- textscale .25
- group grpbutton
- rect 20 40 45 20
- type ITEM_TYPE_BUTTON
- textalign ITEM_ALIGN_CENTER
- textalignx 22
- textaligny 16
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- hide grpCallVote;
- show teamKick;
-
- setitemcolor teamKickBtn forecolor 0.2 0.2 0.2 1.0;
- }
- }
-
-
- // TEAM KICK PLAYER //
-
- itemDef
- {
- name teamKick
- group grpCallVote
- text "Team Kick Player:"
- textscale .25
- rect 70 15 110 20
- textalign 0
- textalignx 0
- textaligny 16
- forecolor 1 1 1 1
- visible 0
- decoration
- }
-
- itemDef
- {
- name teamKick
- group grpCallVote
- rect 70 35 150 85
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_LISTBOX
- elementwidth 120
- elementheight 15
- textscale .25
- elementtype LISTBOX_TEXT
- feeder FEEDER_TEAM_LIST
- border 1
- bordercolor 0.5 0.5 0.5 0.5
- forecolor 1 1 1 1
- backcolor 0.2 0.2 0.2 1
- outlinecolor 0.1 0.1 0.1 0.5
- visible 0
- }
-
- itemDef
- {
- name teamKick
- text "OK"
- type ITEM_TYPE_BUTTON
- textscale .25
- group grpCallVote
- rect 173 125 50 20
- textalign 1
- textalignx 25
- textaligny 15
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- uiScript voteTeamKick;
- uiScript closeingame
- }
- }
-
-
- // KICK PLAYER //
-
- itemDef
- {
- name kick
- group grpCallVote
- text "Kick Player:"
- textscale .25
- rect 70 15 110 20
- textalign 0
- textalignx 0
- textaligny 16
- forecolor 1 1 1 1
- visible 0
- decoration
- }
-
- itemDef
- {
- name kick
- group grpCallVote
- rect 70 35 150 85
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_LISTBOX
- elementwidth 120
- elementheight 15
- textscale .25
- elementtype LISTBOX_TEXT
- feeder FEEDER_PLAYER_LIST
- border 1
- bordercolor 0.5 0.5 0.5 0.5
- forecolor 1 1 1 1
- backcolor 0.2 0.2 0.2 1
- outlinecolor 0.1 0.1 0.1 0.5
- visible 0
- }
-
- itemDef
- {
- name kick
- text "OK"
- type ITEM_TYPE_BUTTON
- textscale .25
- group grpCallVote
- rect 173 125 50 20
- textalign 1
- textalignx 25
- textaligny 15
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- uiScript voteKick;
- uiScript closeingame
- }
- }
- }
-}
diff --git a/ui/ingame_callvote.menu b/ui/ingame_callvote.menu
deleted file mode 100644
index c8340687..00000000
--- a/ui/ingame_callvote.menu
+++ /dev/null
@@ -1,276 +0,0 @@
-#include "ui/menudef.h"
-
-{
- menuDef
- {
- name "ingame_callvote"
- visible 0
- fullscreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 37 56 250 157
- focusColor 1 .75 0 1
- onopen
- {
- uiScript loadArenas;
- hide grpCallVote;
- show misc;
-
- setitemcolor miscBtn forecolor 0.2 0.2 0.2 1.0;
- setitemcolor kickBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor mapBtn forecolor 1.0 1.0 1.0 1.0;
- }
-
- itemDef
- {
- name window
- rect 10 5 230 147
- style WINDOW_STYLE_FILLED
- backcolor 0 0 0 1
- visible 1
- decoration
-
- border WINDOW_BORDER_KCGRADIENT
- borderSize 2.0
- borderColor 0.5 0.5 0.5 1
- }
-
- itemDef
- {
- name miscBtn
- text "Misc"
- textscale .25
- group grpbutton
- rect 20 40 45 20
- type ITEM_TYPE_BUTTON
- textalign ITEM_ALIGN_CENTER
- textalignx 22
- textaligny 16
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- hide grpCallVote;
- show misc;
-
- setitemcolor miscBtn forecolor 0.2 0.2 0.2 1.0;
- setitemcolor kickBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor mapBtn forecolor 1.0 1.0 1.0 1.0
- }
- }
-
- itemDef
- {
- name kickBtn
- text "Kick"
- textscale .25
- group grpbutton
- rect 20 65 45 20
- type ITEM_TYPE_BUTTON
- textalign ITEM_ALIGN_CENTER
- textalignx 22
- textaligny 16
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- hide grpCallVote;
- show kick;
-
- setitemcolor miscBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor kickBtn forecolor 0.2 0.2 0.2 1.0;
- setitemcolor mapBtn forecolor 1.0 1.0 1.0 1.0
- }
- }
-
- itemDef
- {
- name mapBtn
- text "Map"
- textscale .25
- group grpbutton
- rect 20 90 45 20
- type ITEM_TYPE_BUTTON
- textalign ITEM_ALIGN_CENTER
- textalignx 22
- textaligny 16
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- hide grpCallVote;
- show map;
-
- setitemcolor miscBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor kickBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor mapBtn forecolor 0.2 0.2 0.2 1.0
- }
- }
-
-
- // MISC //
-
- itemDef
- {
- name misc
- text "Restart Map"
- group grpCallVote
- textscale .25
- rect 90 45 96 20
- type 1
- textalign 1
- textalignx 50
- textaligny 16
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- exec "cmd callvote map_restart";
- uiScript closeingame
- }
- }
-
- itemDef
- {
- name misc
- group grpCallVote
- text "Next Map"
- textscale .25
- rect 90 75 96 20
- type 1
- textalign 1
- textalignx 50
- textaligny 16
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- exec "cmd callvote nextmap";
- uiScript closeingame
- }
- }
-
-
- // KICK PLAYER //
-
- itemDef
- {
- name kick
- group grpCallVote
- text "Kick Player:"
- textscale .25
- rect 70 15 110 20
- textalign 0
- textalignx 0
- textaligny 16
- forecolor 1 1 1 1
- visible 0
- decoration
- }
-
- itemDef
- {
- name kick
- group grpCallVote
- rect 70 35 150 85
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_LISTBOX
- elementwidth 120
- elementheight 15
- textscale .25
- elementtype LISTBOX_TEXT
- feeder FEEDER_PLAYER_LIST
- border 1
- bordercolor 0.5 0.5 0.5 0.5
- forecolor 1 1 1 1
- backcolor 0.2 0.2 0.2 1
- outlinecolor 0.1 0.1 0.1 0.5
- visible 0
- }
-
- itemDef
- {
- name kick
- text "OK"
- type ITEM_TYPE_BUTTON
- textscale .25
- group grpCallVote
- rect 173 125 50 20
- textalign 1
- textalignx 25
- textaligny 15
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- uiScript voteKick;
- uiScript closeingame
- }
- }
-
-
- // NEW MAP //
-
- itemDef
- {
- name map
- group grpCallVote
- text "New Map:"
- ownerdraw UI_ALLMAPS_SELECTION
- textscale .25
- rect 70 15 110 20
- textalign 0
- textalignx 0
- textaligny 16
- forecolor 1 1 1 1
- decoration
- visible 0
- }
-
- itemDef
- {
- name map
- group grpCallVote
- rect 70 35 150 85
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_EMPTY
- elementwidth 120
- elementheight 15
- textscale .25
- elementtype LISTBOX_TEXT
- feeder FEEDER_ALLMAPS
- border 1
- bordercolor 0.5 0.5 0.5 0.5
- forecolor 1 1 1 1
- backcolor 0.2 0.2 0.2 1
- outlinecolor 0.1 0.1 0.1 0.5
- visible 0
- }
-
- itemDef
- {
- name map
- text "OK"
- type ITEM_TYPE_BUTTON
- textscale .25
- group grpCallVote
- rect 173 125 50 20
- textalign 1
- textalignx 25
- textaligny 15
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- uiScript voteMap;
- uiScript closeingame
- }
- }
- }
-}
diff --git a/ui/ingame_game.menu b/ui/ingame_game.menu
new file mode 100644
index 00000000..0200ed95
--- /dev/null
+++ b/ui/ingame_game.menu
@@ -0,0 +1,3206 @@
+#include "ui/menudef.h"
+
+{
+ \\ INGAME GAME BOX \\
+
+ menuDef
+ {
+ name "ingame_game"
+ visible 0
+ fullscreen 0
+ outOfBoundsClick // this closes the window if it gets a click out of the rectangle
+ rect 10 56 292 280
+ focusColor 1 .75 0 1
+ onopen
+ {
+ uiScript InitIgnoreList;
+ uiScript loadArenas;
+ uiScript loadServerInfo;
+ hide gameGrp;
+ show vote;
+ show mapvote;
+
+ setitemcolor voteBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0
+ }
+
+ itemDef
+ {
+ name window
+ rect 10 5 292 270
+ style WINDOW_STYLE_FILLED
+ backcolor 0 0 0 1
+ visible 1
+ decoration
+
+ border WINDOW_BORDER_KCGRADIENT
+ borderSize 2.0
+ borderColor 0.5 0.5 0.5 1
+ }
+
+ //Section menus
+ itemDef
+ {
+ name voteBtn
+ text "Vote"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 35 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show vote;
+ show mapvote;
+
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor voteBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0
+ }
+ }
+
+ itemDef
+ {
+ name ignoreBtn
+ text "Ignore"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 100 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show ignore;
+
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor voteBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor ignoreBtn forecolor 0.2 0.2 0.2 1.0
+ }
+ }
+
+ itemDef
+ {
+ name infoBtn
+ text "Info"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 165 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show info;
+
+ setitemcolor infoBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor voteBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0
+ }
+ }
+
+
+//////// INFO
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 55 256 20
+ type 4
+ style 0
+ text "Server Name:"
+ cvar ui_serverinfo_hostname
+ maxPaintChars 32
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 70 256 20
+ type 4
+ style 0
+ text "Time Limit:"
+ maxPaintChars 12
+ cvar ui_serverinfo_timelimit
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 85 256 20
+ type 4
+ style 0
+ text "Sudden Death Time:"
+ cvar ui_serverinfo_sd
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 100 256 20
+ type 4
+ style 0
+ text "Max Clients:"
+ cvar ui_serverinfo_maxclients
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 115 256 20
+ type 4
+ style 0
+ text "Map Name:"
+ cvar ui_serverinfo_mapname
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 130 256 20
+ type 11
+ style 0
+ text "Lag Correction:"
+ cvar ui_serverinfo_unlagged
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 145 256 20
+ type ITEM_TYPE_MULTI
+ style 0
+ text "Friendly Fire:"
+ cvarFloat ui_serverinfo_ff 0 0 7
+ cvarFloatList { "Off" 0 "Humans Only" 1 "Aliens Only" 2 "Both Teams" 3 "Buildables Only" 4 "Humans and Buildables" 5 "Aliens and Buildables" 6 "Both Teams and Buildables" 7 }
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 160 256 20
+ type 4
+ style 0
+ text "Version:"
+ cvar ui_serverinfo_version
+ maxPaintChars 45
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+//////// VOTE
+
+ //Vote menu
+ itemDef
+ {
+ name vote
+ text "Map"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 60 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show mapvote;
+ show vote;
+ }
+ }
+
+ itemDef
+ {
+ name vote
+ text "Players"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 85 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show playervote;
+ show vote;
+ }
+ }
+
+ itemDef
+ {
+ name vote
+ text "Team"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 110 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show teamvote;
+ show vote;
+ }
+ }
+
+///// Map Vote
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ style 0
+ ownerdraw UI_STARTMAPCINEMATIC
+ rect 111 61 80 60
+ border 1
+ bordercolor .5 .5 .5 .5
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ style WINDOW_STYLE_FILLED
+ rect 110 60 82 62
+ border 1
+ bordercolor .5 .5 .5 .5
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text ""
+ ownerdraw UI_ALLMAPS_SELECTION
+ textscale .225
+ rect 200 80 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ rect 110 122 150 85
+ type ITEM_TYPE_LISTBOX
+ style WINDOW_STYLE_EMPTY
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_ALLMAPS
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ doubleclick
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMap;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "Load Selected Map"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 210 80 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMap;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "Restart Current Map"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 230 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callvote map_restart";
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "End Match In Draw"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 250 110 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callvote draw";
+ uiScript closeingame
+ }
+ }
+
+///// Player Vote
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Selected Player:"
+ ownerdraw UI_PLAYERLIST_SELECTION
+ textscale .225
+ rect 110 60 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ rect 110 80 170 85
+ style WINDOW_STYLE_EMPTY
+ type ITEM_TYPE_LISTBOX
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_PLAYER_LIST
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Kick Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 175 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteKick;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Mute Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 195 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMute;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Un-Mute Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 215 100 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteUnMute;
+ uiScript closeingame
+ }
+ }
+
+
+///// Team Vote
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Selected Teammate:"
+ ownerdraw UI_TEAMLIST_SELECTION
+ textscale .225
+ rect 110 60 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ rect 110 80 170 85
+ style WINDOW_STYLE_EMPTY
+ type ITEM_TYPE_LISTBOX
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_TEAM_LIST
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Kick Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 175 100 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamKick;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Deny Building For Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 195 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamDenyBuild;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Allow Building For Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 215 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamAllowBuild;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Admit Defeat"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 235 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callteamvote admitdefeat";
+ uiScript closeingame
+ }
+ }
+
+//////// IGNORE
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 45 70 40 5
+ text "Player Name"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 190 70 40 5
+ text "Ignored"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 230 70 40 5
+ text "Ignoring You"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 35 75 240 130
+ type ITEM_TYPE_LISTBOX
+ style WINDOW_STYLE_EMPTY
+ elementwidth 120
+ elementheight 16
+ textscale .225
+ border 1
+ bordersize 1
+ bordercolor .5 .5 .5 1
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_IGNORE_LIST
+ visible 0
+ columns 3
+ 2 40 32 ITEM_ALIGN_LEFT
+ 150 15 1 ITEM_ALIGN_LEFT
+ 190 15 1 ITEM_ALIGN_LEFT
+ doubleClick {
+ play "sound/misc/menu1.wav";
+ uiScript ToggleIgnore
+ }
+ }
+
+ itemDef
+ {
+ name ignore
+ text "Ignore Player"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 60 210 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript IgnorePlayer
+ }
+ }
+
+ itemDef
+ {
+ name ignore
+ text "Stop Ignoring Player"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 190 210 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript UnIgnorePlayer
+ }
+ }
+
+ }
+}
+#include "ui/menudef.h"
+
+{
+ \\ INGAME GAME BOX \\
+
+ menuDef
+ {
+ name "ingame_game"
+ visible 0
+ fullscreen 0
+ outOfBoundsClick // this closes the window if it gets a click out of the rectangle
+ rect 10 56 292 280
+ focusColor 1 .75 0 1
+ onopen
+ {
+ uiScript InitIgnoreList;
+ uiScript loadArenas;
+ uiScript loadServerInfo;
+ hide gameGrp;
+ show vote;
+ show mapvote;
+
+ setitemcolor voteBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0
+ }
+
+ itemDef
+ {
+ name window
+ rect 10 5 292 270
+ style WINDOW_STYLE_FILLED
+ backcolor 0 0 0 1
+ visible 1
+ decoration
+
+ border WINDOW_BORDER_KCGRADIENT
+ borderSize 2.0
+ borderColor 0.5 0.5 0.5 1
+ }
+
+ //Section menus
+ itemDef
+ {
+ name voteBtn
+ text "Vote"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 35 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show vote;
+ show mapvote;
+
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor voteBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0
+ }
+ }
+
+ itemDef
+ {
+ name ignoreBtn
+ text "Ignore"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 100 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show ignore;
+
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor voteBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor ignoreBtn forecolor 0.2 0.2 0.2 1.0
+ }
+ }
+
+ itemDef
+ {
+ name infoBtn
+ text "Info"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 165 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show info;
+
+ setitemcolor infoBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor voteBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0
+ }
+ }
+
+
+//////// INFO
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 55 256 20
+ type 4
+ style 0
+ text "Server Name:"
+ cvar ui_serverinfo_hostname
+ maxPaintChars 32
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 70 256 20
+ type 4
+ style 0
+ text "Time Limit:"
+ maxPaintChars 12
+ cvar ui_serverinfo_timelimit
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 85 256 20
+ type 4
+ style 0
+ text "Sudden Death Time:"
+ cvar ui_serverinfo_sd
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 100 256 20
+ type 4
+ style 0
+ text "Max Clients:"
+ cvar ui_serverinfo_maxclients
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 115 256 20
+ type 4
+ style 0
+ text "Map Name:"
+ cvar ui_serverinfo_mapname
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 130 256 20
+ type 11
+ style 0
+ text "Lag Correction:"
+ cvar ui_serverinfo_unlagged
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 145 256 20
+ type 11
+ style 0
+ text "Friendly Fire:"
+ cvar ui_serverinfo_ff
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 160 256 20
+ type 4
+ style 0
+ text "Version:"
+ cvar version
+ maxPaintChars 45
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+//////// VOTE
+
+ //Vote menu
+ itemDef
+ {
+ name vote
+ text "Map"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 60 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show mapvote;
+ show vote;
+ }
+ }
+
+ itemDef
+ {
+ name vote
+ text "Players"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 85 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show playervote;
+ show vote;
+ }
+ }
+
+ itemDef
+ {
+ name vote
+ text "Team"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 110 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show teamvote;
+ show vote;
+ }
+ }
+
+///// Map Vote
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ style 0
+ ownerdraw UI_STARTMAPCINEMATIC
+ rect 111 61 80 60
+ border 1
+ bordercolor .5 .5 .5 .5
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ style WINDOW_STYLE_FILLED
+ rect 110 60 82 62
+ border 1
+ bordercolor .5 .5 .5 .5
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text ""
+ ownerdraw UI_ALLMAPS_SELECTION
+ textscale .225
+ rect 200 80 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ rect 110 122 150 85
+ type ITEM_TYPE_LISTBOX
+ style WINDOW_STYLE_EMPTY
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_ALLMAPS
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ doubleclick
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMap;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "Load Selected Map"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 210 80 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMap;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "Restart Current Map"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 230 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callvote map_restart";
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "End Match In Draw"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 250 110 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callvote draw";
+ uiScript closeingame
+ }
+ }
+
+///// Player Vote
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Selected Player:"
+ ownerdraw UI_PLAYERLIST_SELECTION
+ textscale .225
+ rect 110 60 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ rect 110 80 170 85
+ style WINDOW_STYLE_EMPTY
+ type ITEM_TYPE_LISTBOX
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_PLAYER_LIST
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Kick Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 175 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteKick;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Mute Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 195 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMute;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Un-Mute Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 215 100 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteUnMute;
+ uiScript closeingame
+ }
+ }
+
+
+///// Team Vote
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Selected Teammate:"
+ ownerdraw UI_TEAMLIST_SELECTION
+ textscale .225
+ rect 110 60 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ rect 110 80 170 85
+ style WINDOW_STYLE_EMPTY
+ type ITEM_TYPE_LISTBOX
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_TEAM_LIST
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Kick Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 175 100 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamKick;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Deny Building For Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 195 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamDenyBuild;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Allow Building For Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 215 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamAllowBuild;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Admit Defeat"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 235 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callteamvote admitdefeat";
+ uiScript closeingame
+ }
+ }
+
+//////// IGNORE
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 45 70 40 5
+ text "Player Name"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 190 70 40 5
+ text "Ignored"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 230 70 40 5
+ text "Ignoring You"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 35 75 240 130
+ type ITEM_TYPE_LISTBOX
+ style WINDOW_STYLE_EMPTY
+ elementwidth 120
+ elementheight 16
+ textscale .225
+ border 1
+ bordersize 1
+ bordercolor .5 .5 .5 1
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_IGNORE_LIST
+ visible 0
+ columns 3
+ 2 40 32 ITEM_ALIGN_LEFT
+ 150 15 1 ITEM_ALIGN_LEFT
+ 190 15 1 ITEM_ALIGN_LEFT
+ doubleClick {
+ play "sound/misc/menu1.wav";
+ uiScript ToggleIgnore
+ }
+ }
+
+ itemDef
+ {
+ name ignore
+ text "Ignore Player"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 60 210 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript IgnorePlayer
+ }
+ }
+
+ itemDef
+ {
+ name ignore
+ text "Stop Ignoring Player"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 190 210 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript UnIgnorePlayer
+ }
+ }
+
+ }
+}
+#include "ui/menudef.h"
+
+{
+ \\ INGAME GAME BOX \\
+
+ menuDef
+ {
+ name "ingame_game"
+ visible 0
+ fullscreen 0
+ outOfBoundsClick // this closes the window if it gets a click out of the rectangle
+ rect 10 56 292 280
+ focusColor 1 .75 0 1
+ onopen
+ {
+ uiScript InitIgnoreList;
+ uiScript loadArenas;
+ uiScript loadServerInfo;
+ hide gameGrp;
+ show vote;
+ show mapvote;
+
+ setitemcolor voteBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0
+ }
+
+ itemDef
+ {
+ name window
+ rect 10 5 292 270
+ style WINDOW_STYLE_FILLED
+ backcolor 0 0 0 1
+ visible 1
+ decoration
+
+ border WINDOW_BORDER_KCGRADIENT
+ borderSize 2.0
+ borderColor 0.5 0.5 0.5 1
+ }
+
+ //Section menus
+ itemDef
+ {
+ name voteBtn
+ text "Vote"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 35 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show vote;
+ show mapvote;
+
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor voteBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0
+ }
+ }
+
+ itemDef
+ {
+ name ignoreBtn
+ text "Ignore"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 100 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show ignore;
+
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor voteBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor ignoreBtn forecolor 0.2 0.2 0.2 1.0
+ }
+ }
+
+ itemDef
+ {
+ name infoBtn
+ text "Info"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 165 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show info;
+
+ setitemcolor infoBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor voteBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0
+ }
+ }
+
+
+//////// INFO
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 55 256 20
+ type 4
+ style 0
+ text "Server Name:"
+ cvar ui_serverinfo_hostname
+ maxPaintChars 32
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 70 256 20
+ type 4
+ style 0
+ text "Time Limit:"
+ maxPaintChars 12
+ cvar ui_serverinfo_timelimit
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 85 256 20
+ type 4
+ style 0
+ text "Sudden Death Time:"
+ cvar ui_serverinfo_sd
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 100 256 20
+ type 4
+ style 0
+ text "Max Clients:"
+ cvar ui_serverinfo_maxclients
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 115 256 20
+ type 4
+ style 0
+ text "Map Name:"
+ cvar ui_serverinfo_mapname
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 130 256 20
+ type 11
+ style 0
+ text "Lag Correction:"
+ cvar ui_serverinfo_unlagged
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 145 256 20
+ type 11
+ style 0
+ text "Friendly Fire:"
+ cvar ui_serverinfo_ff
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 160 256 20
+ type 4
+ style 0
+ text "Version:"
+ cvar version
+ maxPaintChars 45
+ textalign ITEM_ALIGN_RIGHT
+ textaligny 12
+ textalignx 75
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+//////// VOTE
+
+ //Vote menu
+ itemDef
+ {
+ name vote
+ text "Map"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 60 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show mapvote;
+ show vote;
+ }
+ }
+
+ itemDef
+ {
+ name vote
+ text "Players"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 85 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show playervote;
+ show vote;
+ }
+ }
+
+ itemDef
+ {
+ name vote
+ text "Team"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 110 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show teamvote;
+ show vote;
+ }
+ }
+
+///// Map Vote
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ style 0
+ ownerdraw UI_STARTMAPCINEMATIC
+ rect 111 61 80 60
+ border 1
+ bordercolor .5 .5 .5 .5
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ style WINDOW_STYLE_FILLED
+ rect 110 60 82 62
+ border 1
+ bordercolor .5 .5 .5 .5
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text ""
+ ownerdraw UI_ALLMAPS_SELECTION
+ textscale .225
+ rect 200 80 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ rect 110 122 150 85
+ type ITEM_TYPE_LISTBOX
+ style WINDOW_STYLE_EMPTY
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_ALLMAPS
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ doubleclick
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMap;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "Load Selected Map"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 210 80 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMap;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "Restart Current Map"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 230 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callvote map_restart";
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "End Match In Draw"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 250 110 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callvote draw";
+ uiScript closeingame
+ }
+ }
+
+///// Player Vote
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Selected Player:"
+ ownerdraw UI_PLAYERLIST_SELECTION
+ textscale .225
+ rect 110 60 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ rect 110 80 170 85
+ style WINDOW_STYLE_EMPTY
+ type ITEM_TYPE_LISTBOX
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_PLAYER_LIST
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Kick Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 175 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteKick;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Mute Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 195 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMute;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Un-Mute Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 215 100 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteUnMute;
+ uiScript closeingame
+ }
+ }
+
+
+///// Team Vote
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Selected Teammate:"
+ ownerdraw UI_TEAMLIST_SELECTION
+ textscale .225
+ rect 110 60 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ rect 110 80 170 85
+ style WINDOW_STYLE_EMPTY
+ type ITEM_TYPE_LISTBOX
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_TEAM_LIST
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Kick Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 175 100 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamKick;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Deny Building For Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 195 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamDenyBuild;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Allow Building For Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 215 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamAllowBuild;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Admit Defeat"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 235 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callteamvote admitdefeat";
+ uiScript closeingame
+ }
+ }
+
+//////// IGNORE
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 45 70 40 5
+ text "Player Name"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 190 70 40 5
+ text "Ignored"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 230 70 40 5
+ text "Ignoring You"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 35 75 240 130
+ type ITEM_TYPE_LISTBOX
+ style WINDOW_STYLE_EMPTY
+ elementwidth 120
+ elementheight 16
+ textscale .225
+ border 1
+ bordersize 1
+ bordercolor .5 .5 .5 1
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_IGNORE_LIST
+ visible 0
+ columns 3
+ 2 40 32 ITEM_ALIGN_LEFT
+ 150 15 1 ITEM_ALIGN_LEFT
+ 190 15 1 ITEM_ALIGN_LEFT
+ doubleClick {
+ play "sound/misc/menu1.wav";
+ uiScript ToggleIgnore
+ }
+ }
+
+ itemDef
+ {
+ name ignore
+ text "Ignore Player"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 60 210 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript IgnorePlayer
+ }
+ }
+
+ itemDef
+ {
+ name ignore
+ text "Stop Ignoring Player"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 190 210 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript UnIgnorePlayer
+ }
+ }
+
+ }
+}
+#include "ui/menudef.h"
+
+{
+ \\ INGAME GAME BOX \\
+
+ menuDef
+ {
+ name "ingame_game"
+ visible 0
+ fullscreen 0
+ outOfBoundsClick // this closes the window if it gets a click out of the rectangle
+ rect 10 56 292 280
+ focusColor 1 .75 0 1
+ onopen
+ {
+ uiScript InitIgnoreList;
+ uiScript loadArenas;
+ uiScript loadServerInfo;
+ hide gameGrp;
+ show vote;
+ show mapvote;
+
+ setitemcolor voteBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0
+ }
+
+ itemDef
+ {
+ name window
+ rect 10 5 292 270
+ style WINDOW_STYLE_FILLED
+ backcolor 0 0 0 1
+ visible 1
+ decoration
+
+ border WINDOW_BORDER_KCGRADIENT
+ borderSize 2.0
+ borderColor 0.5 0.5 0.5 1
+ }
+
+ //Section menus
+ itemDef
+ {
+ name voteBtn
+ text "Vote"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 35 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show vote;
+ show mapvote;
+
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor voteBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0
+ }
+ }
+
+ itemDef
+ {
+ name ignoreBtn
+ text "Ignore"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 100 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show ignore;
+
+ setitemcolor infoBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor voteBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor ignoreBtn forecolor 0.2 0.2 0.2 1.0
+ }
+ }
+
+ itemDef
+ {
+ name infoBtn
+ text "Info"
+ group menuGrp
+ style WINDOW_STYLE_EMPTY
+ rect 165 22 40 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ textscale .35
+ forecolor 1 1 1 1
+ visible 1
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show info;
+
+ setitemcolor infoBtn forecolor 0.2 0.2 0.2 1.0;
+ setitemcolor voteBtn forecolor 1.0 1.0 1.0 1.0;
+ setitemcolor ignoreBtn forecolor 1.0 1.0 1.0 1.0
+ }
+ }
+
+
+//////// ABOUT
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 55 256 20
+ type 4
+ style 0
+ text "Server Name:"
+ cvar ui_serverinfo_hostname
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 128
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 70 256 20
+ type 4
+ style 0
+ text "Time Limit:"
+ maxPaintChars 12
+ cvar ui_serverinfo_timelimit
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 128
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 85 256 20
+ type 4
+ style 0
+ text "Sudden Death Time:"
+ cvar ui_serverinfo_sd
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 128
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 100 256 20
+ type 4
+ style 0
+ text "Max Clients:"
+ cvar ui_serverinfo_maxclients
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 128
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 115 256 20
+ type 4
+ style 0
+ text "Map Name:"
+ cvar ui_serverinfo_mapname
+ maxPaintChars 12
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 128
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 130 256 20
+ type 11
+ style 0
+ text "Lag Correction:"
+ cvar ui_serverinfo_unlagged
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 128
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 145 256 20
+ type 11
+ style 0
+ text "Friendly Fire:"
+ cvar ui_serverinfo_ff
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 128
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+ itemDef
+ {
+ name info
+ group gameGrp
+ rect 30 160 256 20
+ type 4
+ style 0
+ text "Version:"
+ cvar version
+ maxPaintChars 45
+ textalign ITEM_ALIGN_LEFT
+ textalignx 128
+ textaligny 12
+ textalign 1
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ decoration
+ }
+
+//////// VOTE
+
+ //Vote menu
+ itemDef
+ {
+ name vote
+ text "Map"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 60 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show mapvote;
+ show vote;
+ }
+ }
+
+ itemDef
+ {
+ name vote
+ text "Players"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 85 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show playervote;
+ show vote;
+ }
+ }
+
+ itemDef
+ {
+ name vote
+ text "Team"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 20 110 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ hide gameGrp;
+ show teamvote;
+ show vote;
+ }
+ }
+
+///// Map Vote
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ style 0
+ ownerdraw UI_STARTMAPCINEMATIC
+ rect 111 61 80 60
+ border 1
+ bordercolor .5 .5 .5 .5
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ style WINDOW_STYLE_FILLED
+ rect 110 60 82 62
+ border 1
+ bordercolor .5 .5 .5 .5
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text ""
+ ownerdraw UI_ALLMAPS_SELECTION
+ textscale .225
+ rect 200 80 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ rect 110 122 150 85
+ type ITEM_TYPE_LISTBOX
+ style WINDOW_STYLE_EMPTY
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_ALLMAPS
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ doubleclick
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMap;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "Load Selected Map"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 210 80 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMap;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "Restart Current Map"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 230 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callvote map_restart";
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "End Match In Draw"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 250 110 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callvote draw";
+ uiScript closeingame
+ }
+ }
+
+///// Player Vote
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Selected Player:"
+ ownerdraw UI_PLAYERLIST_SELECTION
+ textscale .225
+ rect 110 60 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ rect 110 80 170 85
+ style WINDOW_STYLE_EMPTY
+ type ITEM_TYPE_LISTBOX
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_PLAYER_LIST
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Kick Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 175 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteKick;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Mute Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 195 90 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteMute;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name playervote
+ group gameGrp
+ text "Un-Mute Selected Player"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 215 100 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteUnMute;
+ uiScript closeingame
+ }
+ }
+
+
+///// Team Vote
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Selected Teammate:"
+ ownerdraw UI_TEAMLIST_SELECTION
+ textscale .225
+ rect 110 60 110 20
+ textalign 0
+ textalignx 0
+ textaligny 16
+ forecolor 1 1 1 1
+ decoration
+ visible 0
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ rect 110 80 170 85
+ style WINDOW_STYLE_EMPTY
+ type ITEM_TYPE_LISTBOX
+ elementwidth 120
+ elementheight 15
+ textscale .225
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_TEAM_LIST
+ border 1
+ bordercolor 0.5 0.5 0.5 0.5
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible 0
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Kick Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 175 100 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamKick;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Deny Building For Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 195 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamDenyBuild;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Allow Building For Selected Teammate"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 215 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript voteTeamAllowBuild;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name teamvote
+ group gameGrp
+ text "Admit Defeat"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect 110 235 150 20
+ textalign ITEM_ALIGN_LEFT
+ textalignx 5
+ textaligny 15
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callteamvote admitdefeat";
+ uiScript closeingame
+ }
+ }
+
+//////// IGNORE
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 45 70 40 5
+ text "Player Name"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 190 70 40 5
+ text "Ignored"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 230 70 40 5
+ text "Ignoring You"
+ visible 0
+ type ITEM_TYPE_TEXT
+ textscale .225
+ }
+ itemDef
+ {
+ name ignore
+ group gameGrp
+ rect 35 75 240 130
+ type ITEM_TYPE_LISTBOX
+ style WINDOW_STYLE_EMPTY
+ elementwidth 120
+ elementheight 16
+ textscale .225
+ border 1
+ bordersize 1
+ bordercolor .5 .5 .5 1
+ forecolor 1 1 1 1
+ backcolor 0.2 0.2 0.2 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_IGNORE_LIST
+ visible 0
+ columns 3
+ 2 40 32 ITEM_ALIGN_LEFT
+ 150 15 1 ITEM_ALIGN_LEFT
+ 190 15 1 ITEM_ALIGN_LEFT
+ doubleClick {
+ play "sound/misc/menu1.wav";
+ uiScript ToggleIgnore
+ }
+ }
+
+ itemDef
+ {
+ name ignore
+ text "Ignore Player"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 60 210 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript IgnorePlayer
+ }
+ }
+
+ itemDef
+ {
+ name ignore
+ text "Stop Ignoring Player"
+ group gameGrp
+ style WINDOW_STYLE_EMPTY
+ rect 190 210 64 20
+ type ITEM_TYPE_BUTTON
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 64
+ textaligny 16
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ uiScript UnIgnorePlayer
+ }
+ }
+
+ }
+}
diff --git a/ui/ingame_options.menu b/ui/ingame_options.menu
index 324114b0..4874b237 100644
--- a/ui/ingame_options.menu
+++ b/ui/ingame_options.menu
@@ -42,7 +42,7 @@
text "Game"
group menuGrp
style WINDOW_STYLE_EMPTY
- rect 90 20 64 20
+ rect 80 20 64 20
type ITEM_TYPE_BUTTON
textalign ITEM_ALIGN_CENTER
textalignx 34
@@ -126,8 +126,9 @@
style 0
text "Name:"
cvar "name"
- maxchars 26
- rect 90 85 192 15
+ maxchars 31
+ maxPaintChars 31
+ rect 50 85 220 15
textalign ITEM_ALIGN_LEFT
textalignx 64
textaligny 12
@@ -143,7 +144,7 @@
type ITEM_TYPE_YESNO
text "Auto Download:"
cvar "cl_allowDownload"
- rect 90 115 192 15
+ rect 80 115 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 12
@@ -163,7 +164,7 @@
type ITEM_TYPE_YESNO
text "Taunts Sounds Off:"
cvar "cg_noTaunt"
- rect 90 130 192 15
+ rect 80 130 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 12
@@ -183,7 +184,7 @@
type ITEM_TYPE_YESNO
text "Team Chats Only:"
cvar "cg_teamChatsOnly"
- rect 90 145 192 15
+ rect 80 145 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 12
@@ -203,7 +204,7 @@
type ITEM_TYPE_YESNO
text "Auto Wallwalk Pitching:"
cvar "cg_wwFollow"
- rect 90 160 192 15
+ rect 80 160 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 12
@@ -224,7 +225,7 @@
text "Wallwalking Speed:"
cvarfloat "cg_wwSmoothTime" 300 0 1000
cvarFloatList { "Medium" 300 "Fast" 150 "Instant" 0 "Slow" 600 }
- rect 90 175 192 15
+ rect 80 175 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 12
@@ -244,7 +245,7 @@
type ITEM_TYPE_YESNO
text "Wallwalk Control Toggles:"
cvar "cg_wwToggle"
- rect 90 190 192 15
+ rect 80 190 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 12
@@ -264,7 +265,7 @@
type ITEM_TYPE_YESNO
text "Disable Warning Dialogs:"
cvar "cg_disableWarningDialogs"
- rect 90 205 192 15
+ rect 80 205 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 12
@@ -284,7 +285,7 @@
type ITEM_TYPE_YESNO
text "Tutorial Mode:"
cvar "cg_tutorial"
- rect 90 220 192 15
+ rect 80 220 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 12
@@ -305,7 +306,7 @@
text "Show Clock:"
cvar "cg_drawClock"
cvarFloatList { "No" 0 "12 Hour" 1 "24 Hour" 2 }
- rect 90 235 192 15
+ rect 80 235 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 12
@@ -1016,7 +1017,7 @@
type ITEM_TYPE_BIND
text "Show Scores:"
cvar "+scores"
- rect 96 80 192 15
+ rect 96 65 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 90
maxPaintChars 20
@@ -1037,7 +1038,7 @@
type ITEM_TYPE_BIND
text "Scroll Scores Up:"
cvar "scoresUp"
- rect 96 95 192 15
+ rect 96 80 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 90
maxPaintChars 20
@@ -1058,7 +1059,7 @@
type ITEM_TYPE_BIND
text "Scroll Scores Down:"
cvar "scoresDown"
- rect 96 110 192 15
+ rect 96 95 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 90
maxPaintChars 20
@@ -1079,7 +1080,7 @@
type ITEM_TYPE_BIND
text "Use Structure/Evolve:"
cvar "+button7"
- rect 96 125 192 15
+ rect 96 110 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 90
maxPaintChars 20
@@ -1100,7 +1101,7 @@
type ITEM_TYPE_BIND
text "Deconstruct Structure:"
cvar "deconstruct"
- rect 96 140 192 15
+ rect 96 125 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 90
maxPaintChars 20
@@ -1121,7 +1122,7 @@
type ITEM_TYPE_BIND
text "Gesture:"
cvar "+button3"
- rect 96 155 192 15
+ rect 96 140 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 90
maxPaintChars 20
@@ -1142,7 +1143,7 @@
type ITEM_TYPE_BIND
text "Chat:"
cvar "messagemode"
- rect 96 170 192 15
+ rect 96 155 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 90
maxPaintChars 20
@@ -1163,7 +1164,7 @@
type ITEM_TYPE_BIND
text "Team Chat:"
cvar "messagemode2"
- rect 96 185 192 15
+ rect 96 170 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 90
maxPaintChars 20
@@ -1184,7 +1185,7 @@
type ITEM_TYPE_BIND
text "Target Chat:"
cvar "messagemode3"
- rect 96 200 192 15
+ rect 96 185 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 90
maxPaintChars 20
@@ -1205,6 +1206,27 @@
type ITEM_TYPE_BIND
text "Attack Chat:"
cvar "messagemode4"
+ rect 96 200 192 15
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 90
+ maxPaintChars 20
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ }
+ }
+
+ itemDef
+ {
+ name misc
+ group optionsGrp
+ type ITEM_TYPE_BIND
+ text "Vote Yes:"
+ cvar "vote yes"
rect 96 215 192 15
textalign ITEM_ALIGN_RIGHT
textalignx 90
@@ -1219,6 +1241,71 @@
}
}
+ itemDef
+ {
+ name misc
+ group optionsGrp
+ type ITEM_TYPE_BIND
+ text "Vote No:"
+ cvar "vote no"
+ rect 96 230 192 15
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 90
+ maxPaintChars 20
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ }
+ }
+
+ itemDef
+ {
+ name misc
+ group optionsGrp
+ type ITEM_TYPE_BIND
+ text "Team Vote Yes:"
+ cvar "teamvote yes"
+ rect 96 245 192 15
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 90
+ maxPaintChars 20
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ }
+ }
+
+ itemDef
+ {
+ name misc
+ group optionsGrp
+ type ITEM_TYPE_BIND
+ text "Team Vote No:"
+ cvar "teamvote no"
+ rect 96 260 192 15
+ textalign ITEM_ALIGN_RIGHT
+ textalignx 90
+ maxPaintChars 20
+ textaligny 12
+ textscale .25
+ forecolor 1 1 1 1
+ visible 0
+ action
+ {
+ play "sound/misc/menu1.wav";
+ }
+ }
+
+
+
//////// SYSTEM
//System menu
diff --git a/ui/ingame_vote.menu b/ui/ingame_vote.menu
deleted file mode 100644
index 902649f8..00000000
--- a/ui/ingame_vote.menu
+++ /dev/null
@@ -1,515 +0,0 @@
-#include "ui/menudef.h"
-
-{
- \\ VOTE MENU \\
-
- menuDef
- {
- name "ingame_vote"
- visible 0
- fullscreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 27 56 260 107
- focusColor 1 .75 0 1
-
- itemDef
- {
- name window
- ownerdrawflag UI_SHOW_CANVOTE
- ownerdrawflag UI_SHOW_CANTEAMVOTE
- rect 10 5 240 47
- style WINDOW_STYLE_FILLED
- backcolor 0 0 0 1
- visible 1
- decoration
-
- border WINDOW_BORDER_KCGRADIENT
- borderSize 2.0
- borderColor 0.5 0.5 0.5 1
- }
-
- itemDef
- {
- name window
- ownerdrawflag UI_SHOW_VOTEACTIVE
- ownerdrawflag UI_SHOW_CANTEAMVOTE
- rect 10 5 240 72
- style WINDOW_STYLE_FILLED
- backcolor 0 0 0 1
- visible 1
- decoration
-
- border WINDOW_BORDER_KCGRADIENT
- borderSize 2.0
- borderColor 0.5 0.5 0.5 1
- }
-
- itemDef
- {
- name window
- ownerdrawflag UI_SHOW_TEAMVOTEACTIVE
- rect 10 5 240 97
- style WINDOW_STYLE_FILLED
- backcolor 0 0 0 1
- visible 1
- decoration
-
- border WINDOW_BORDER_KCGRADIENT
- borderSize 2.0
- borderColor 0.5 0.5 0.5 1
- }
-
- itemDef
- {
- name callvote
- text "Call Vote"
- type 1
- ownerdrawflag UI_SHOW_CANVOTE
- textscale .35
- rect 30 20 100 20
- textalign ITEM_ALIGN_CENTER
- textalignx 50
- textaligny 17
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- close ingame_vote;
- open ingame_callvote
- }
- }
-
- itemDef
- {
- name callteamvote
- text "Call Team Vote"
- type 1
- ownerdrawflag UI_SHOW_CANTEAMVOTE
- textscale .35
- rect 130 20 100 20
- textalign ITEM_ALIGN_CENTER
- textalignx 50
- textaligny 17
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- close ingame_vote;
- open ingame_callteamvote
- }
- }
-
- itemDef
- {
- name yes
- text "Vote Yes"
- type 1
- ownerdrawflag UI_SHOW_VOTEACTIVE
- textscale .35
- rect 30 45 100 20
- textalign ITEM_ALIGN_CENTER
- textalignx 50
- textaligny 17
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- exec "vote yes";
- uiScript closeingame
- }
- }
-
- itemDef
- {
- name no
- text "Vote No"
- type 1
- ownerdrawflag UI_SHOW_VOTEACTIVE
- textscale .35
- rect 130 45 100 20
- textalign ITEM_ALIGN_CENTER
- textalignx 50
- textaligny 17
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu4.wav";
- exec "vote no";
- uiScript closeingame
- }
- }
-
- itemDef
- {
- name teamyes
- text "Team Vote Yes"
- type 1
- ownerdrawflag UI_SHOW_TEAMVOTEACTIVE
- textscale .35
- rect 30 70 100 20
- textalign ITEM_ALIGN_CENTER
- textalignx 50
- textaligny 17
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- exec "teamvote yes";
- uiScript closeingame
- }
- }
-
- itemDef
- {
- name teamno
- text "Team Vote No"
- type 1
- ownerdrawflag UI_SHOW_TEAMVOTEACTIVE
- textscale .35
- rect 130 70 100 20
- textalign ITEM_ALIGN_CENTER
- textalignx 50
- textaligny 17
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu4.wav";
- exec "teamvote no";
- uiScript closeingame
- }
- }
-
-/* itemDef
- {
- name miscBtn
- text "Misc"
- textscale .25
- group grpbutton
- rect 20 75 45 20
- type ITEM_TYPE_BUTTON
- textalign ITEM_ALIGN_CENTER
- textalignx 22
- textaligny 16
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- hide grpCallVote;
- show misc;
-
- setitemcolor miscBtn forecolor 0.2 0.2 0.2 1.0;
- setitemcolor kickBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor teamKickBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor mapBtn forecolor 1.0 1.0 1.0 1.0
- }
- }
-
- itemDef
- {
- name kickBtn
- text "Kick"
- textscale .25
- group grpbutton
- rect 20 100 45 20
- type ITEM_TYPE_BUTTON
- textalign ITEM_ALIGN_CENTER
- textalignx 22
- textaligny 16
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- hide grpCallVote;
- show kick;
-
- setitemcolor miscBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor kickBtn forecolor 0.2 0.2 0.2 1.0;
- setitemcolor teamKickBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor mapBtn forecolor 1.0 1.0 1.0 1.0
- }
- }
-
- itemDef
- {
- name teamKickBtn
- text "Team Kick"
- textscale .25
- group grpbutton
- rect 20 125 45 20
- type ITEM_TYPE_BUTTON
- textalign ITEM_ALIGN_CENTER
- textalignx 22
- textaligny 16
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- hide grpCallVote;
- show teamKick;
-
- setitemcolor miscBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor kickBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor teamKickBtn forecolor 0.2 0.2 0.2 1.0;
- setitemcolor mapBtn forecolor 1.0 1.0 1.0 1.0
- }
- }
-
- itemDef
- {
- name mapBtn
- text "Map"
- textscale .25
- group grpbutton
- rect 20 150 45 20
- type ITEM_TYPE_BUTTON
- textalign ITEM_ALIGN_CENTER
- textalignx 22
- textaligny 16
- forecolor 1 1 1 1
- visible 1
- action
- {
- play "sound/misc/menu1.wav";
- hide grpCallVote;
- show map;
-
- setitemcolor miscBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor kickBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor teamKickBtn forecolor 1.0 1.0 1.0 1.0;
- setitemcolor mapBtn forecolor 0.2 0.2 0.2 1.0
- }
- }
-
-
- // MISC //
-
- itemDef
- {
- name misc
- text "Restart Map"
- group grpCallVote
- textscale .25
- rect 100 105 96 20
- type 1
- textalign 1
- textalignx 50
- textaligny 16
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- exec "cmd callvote map_restart";
- uiScript closeingame
- }
- }
-
- itemDef
- {
- name misc
- group grpCallVote
- text "Next Map"
- textscale .25
- rect 100 135 96 20
- type 1
- textalign 1
- textalignx 50
- textaligny 16
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- exec "cmd callvote nextmap";
- uiScript closeingame
- }
- }
-
-
- // KICK PLAYER //
-
- itemDef
- {
- name kick
- group grpCallVote
- text "Kick Player:"
- textscale .25
- rect 80 75 110 20
- textalign 0
- textalignx 0
- textaligny 16
- forecolor 1 1 1 1
- visible 0
- decoration
- }
-
- itemDef
- {
- name kick
- group grpCallVote
- rect 80 95 150 85
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_LISTBOX
- elementwidth 120
- elementheight 15
- textscale .25
- elementtype LISTBOX_TEXT
- feeder FEEDER_PLAYER_LIST
- border 1
- bordercolor 0.5 0.5 0.5 0.5
- forecolor 1 1 1 1
- backcolor 0.2 0.2 0.2 1
- outlinecolor 0.1 0.1 0.1 0.5
- visible 0
- }
-
- itemDef
- {
- name kick
- text "OK"
- type ITEM_TYPE_BUTTON
- textscale .25
- group grpCallVote
- rect 183 185 50 20
- textalign 1
- textalignx 25
- textaligny 15
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- uiScript voteKick;
- uiScript closeingame
- }
- }
-
-
- // TEAM KICK PLAYER //
-
- itemDef
- {
- name teamKick
- group grpCallVote
- text "Team Kick Player:"
- textscale .25
- rect 80 75 110 20
- textalign 0
- textalignx 0
- textaligny 16
- forecolor 1 1 1 1
- visible 0
- decoration
- }
-
- itemDef
- {
- name teamKick
- group grpCallVote
- rect 80 95 150 85
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_LISTBOX
- elementwidth 120
- elementheight 15
- textscale .25
- elementtype LISTBOX_TEXT
- feeder FEEDER_TEAM_LIST
- border 1
- bordercolor 0.5 0.5 0.5 0.5
- forecolor 1 1 1 1
- backcolor 0.2 0.2 0.2 1
- outlinecolor 0.1 0.1 0.1 0.5
- visible 0
- }
-
- itemDef
- {
- name teamKick
- text "OK"
- type ITEM_TYPE_BUTTON
- textscale .25
- group grpCallVote
- rect 183 185 50 20
- textalign 1
- textalignx 25
- textaligny 15
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- uiScript voteTeamKick;
- uiScript closeingame
- }
- }
-
-
- // NEW MAP //
-
- itemDef
- {
- name map
- group grpCallVote
- text "New Map:"
- ownerdraw UI_ALLMAPS_SELECTION
- textscale .25
- rect 80 75 110 20
- textalign 0
- textalignx 0
- textaligny 16
- forecolor 1 1 1 1
- decoration
- visible 0
- }
-
- itemDef
- {
- name map
- group grpCallVote
- rect 80 95 150 85
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_EMPTY
- elementwidth 120
- elementheight 15
- textscale .25
- elementtype LISTBOX_TEXT
- feeder FEEDER_ALLMAPS
- border 1
- bordercolor 0.5 0.5 0.5 0.5
- forecolor 1 1 1 1
- backcolor 0.2 0.2 0.2 1
- outlinecolor 0.1 0.1 0.1 0.5
- visible 0
- }
-
- itemDef
- {
- name map
- text "OK"
- type ITEM_TYPE_BUTTON
- textscale .25
- group grpCallVote
- rect 183 185 50 20
- textalign 1
- textalignx 25
- textaligny 15
- forecolor 1 1 1 1
- visible 0
- action
- {
- play "sound/misc/menu1.wav";
- uiScript voteMap;
- uiScript closeingame
- }
- }*/
- }
-}
diff --git a/ui/menudef.h b/ui/menudef.h
index 11f13382..d4ed0b27 100644
--- a/ui/menudef.h
+++ b/ui/menudef.h
@@ -78,6 +78,7 @@
#define FEEDER_TREMALIENBUILD 0x16 //alien buildables
#define FEEDER_TREMHUMANBUILD 0x17 //human buildables
//TA: tremulous menus
+#define FEEDER_IGNORE_LIST 0x18 //ignored players
// display flags
#define CG_SHOW_BLUE_TEAM_HAS_REDFLAG 0x00000001
@@ -327,6 +328,9 @@
#define UI_ABUILDINFOPANE 264
#define UI_HBUILDINFOPANE 265
+#define UI_PLAYERLIST_SELECTION 266
+#define UI_TEAMLIST_SELECTION 267
+
#define VOICECHAT_GETFLAG "getflag" // command someone to get the flag
#define VOICECHAT_OFFENSE "offense" // command someone to go on offense
#define VOICECHAT_DEFEND "defend" // command someone to go on defense
diff --git a/ui/menus.txt b/ui/menus.txt
index 3fa3dcf6..cc6f73c7 100644
--- a/ui/menus.txt
+++ b/ui/menus.txt
@@ -3,7 +3,7 @@
{
loadMenu { "ui/main.menu" }
loadMenu { "ui/joinserver.menu" }
- loadMenu { "ui/options.menu" }
+ loadMenu { "ui/punkbuster.menu" }
loadMenu { "ui/createserver.menu" }
loadMenu { "ui/mod.menu" }
loadMenu { "ui/credit.menu" }
@@ -12,7 +12,6 @@
loadMenu { "ui/quit.menu" }
loadMenu { "ui/addfilter.menu" }
loadMenu { "ui/error.menu" }
- loadMenu { "ui/drop.menu" }
loadMenu { "ui/serverinfo.menu" }
loadMenu { "ui/findplayer.menu" }
loadMenu { "ui/quitcredit.menu" }
diff --git a/ui/teamscore.menu b/ui/teamscore.menu
index 2c8a7dd7..a0dad012 100644
--- a/ui/teamscore.menu
+++ b/ui/teamscore.menu
@@ -13,7 +13,6 @@
style 0
border 1
-
// GAMETYPE BAR //
// TEAM NAME //
@@ -282,5 +281,25 @@
ownerdraw CG_SPECTATORS
decoration
}
+
+ // WINNAR //
+
+ itemDef
+ {
+ name winner
+ rect 310 400 612 40
+ type 4
+ style 0
+ text ""
+ cvar ui_winner
+ maxPaintChars 24
+ textalign ITEM_ALIGN_CENTER
+ textaligny 20
+ textscale .5
+ forecolor 1 1 1 1
+ visible 1
+ decoration
+ }
+
}
}