summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-21 07:58:54 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:58 +0000
commitd935b1ba18d3585e468175835693c2a04c23d5a7 (patch)
treedf253c2ad28e26c80aa2f2b90568ae37eb56a096 /assets
parentc098b029c82b3a3d568feb67c24d11ad47328fd4 (diff)
* Add options in the ingame UI to callvote sudden_death and callvote nextmap (Exclamation)
* Prevent up arrow, down arrow, tab, and mouse buttons from unexpectedly sending Say: menu text * Fix a crash introduced by r1813 when using teamsay on a map without location entities
Diffstat (limited to 'assets')
-rw-r--r--assets/ui/ingame_game.menu52
-rw-r--r--assets/ui/say.menu4
2 files changed, 48 insertions, 8 deletions
diff --git a/assets/ui/ingame_game.menu b/assets/ui/ingame_game.menu
index a9ab5a70..8348859a 100644
--- a/assets/ui/ingame_game.menu
+++ b/assets/ui/ingame_game.menu
@@ -4,7 +4,7 @@
\\ INGAME GAME BOX \\
#define W 320
-#define H 290
+#define H 310
#define X 10
#define Y 60
#define BORDER 10
@@ -17,8 +17,8 @@
#define MAP_X (SIDEBUTT_W+BORDER)
#define MAP_Y ((2*BORDER)+TOPBUTT_H)
-#define MAP_W 100
-#define MAP_H 75
+#define MAP_W 124
+#define MAP_H 93
#define MAPLIST_X MAP_X
#define MAPLIST_Y ((3*BORDER)+TOPBUTT_H+MAP_H)
#define MAPLIST_W (W-((2*BORDER)+SIDEBUTT_W))
@@ -26,7 +26,7 @@
#define MAPBUTT_X (MAP_X+MAP_W+BORDER)
#define MAPBUTT_Y MAP_Y
#define MAPBUTT_W (W-(MAPBUTT_X+BORDER))
-#define MAPBUTT_H 25
+#define MAPBUTT_H 20
#define PBUTT_X MAP_X
#define PBUTT_Y (H-((2*PBUTT_H)+BORDER))
@@ -304,7 +304,7 @@
{
name mapvote
group gameGrp
- text "Restart Current Map"
+ text "Load Selected Map Next"
type ITEM_TYPE_BUTTON
textscale .25
rect MAPBUTT_X (MAPBUTT_Y+MAPBUTT_H) MAPBUTT_W MAPBUTT_H
@@ -315,6 +315,26 @@
action
{
play "sound/misc/menu1.wav";
+ uiScript voteNextMap;
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
+ text "Restart Current Map"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect MAPBUTT_X (MAPBUTT_Y+(2*MAPBUTT_H)) MAPBUTT_W MAPBUTT_H
+ textalign ALIGN_LEFT
+ textvalign VALIGN_CENTER
+ forecolor 1 1 1 1
+ visible MENU_FALSE
+ action
+ {
+ play "sound/misc/menu1.wav";
exec "cmd callvote map_restart";
uiScript closeingame
}
@@ -324,10 +344,30 @@
{
name mapvote
group gameGrp
+ text "Begin Sudden Death"
+ type ITEM_TYPE_BUTTON
+ textscale .25
+ rect MAPBUTT_X (MAPBUTT_Y+(3*MAPBUTT_H)) MAPBUTT_W MAPBUTT_H
+ textalign ALIGN_LEFT
+ textvalign VALIGN_CENTER
+ forecolor 1 1 1 1
+ visible MENU_FALSE
+ action
+ {
+ play "sound/misc/menu1.wav";
+ exec "cmd callvote sudden_death";
+ uiScript closeingame
+ }
+ }
+
+ itemDef
+ {
+ name mapvote
+ group gameGrp
text "End Match In Draw"
type ITEM_TYPE_BUTTON
textscale .25
- rect MAPBUTT_X (MAPBUTT_Y+(2*MAPBUTT_H)) MAPBUTT_W MAPBUTT_H
+ rect MAPBUTT_X (MAPBUTT_Y+(4*MAPBUTT_H)) MAPBUTT_W MAPBUTT_H
textalign ALIGN_LEFT
textvalign VALIGN_CENTER
forecolor 1 1 1 1
diff --git a/assets/ui/say.menu b/assets/ui/say.menu
index 7b804b45..1dd2380b 100644
--- a/assets/ui/say.menu
+++ b/assets/ui/say.menu
@@ -5,9 +5,9 @@
#define BORDER 10
#define X BORDER
-#define Y 200
+#define Y BORDER
#define W (600-(2*BORDER))
-#define H 40
+#define H (480-(2*BORDER))
// Say to All
menuDef