summaryrefslogtreecommitdiff
path: root/ui/say.menu
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2019-08-06 02:17:23 +0100
committerIronClawTrem <louie.nutman@gmail.com>2019-08-06 02:17:23 +0100
commite5ff1d3d4bc01d98b12d05f9cb85457c7f15c424 (patch)
treea18bc2026e95b76f820170855ea3a39aa5f03324 /ui/say.menu
first commit
Diffstat (limited to 'ui/say.menu')
-rw-r--r--ui/say.menu91
1 files changed, 91 insertions, 0 deletions
diff --git a/ui/say.menu b/ui/say.menu
new file mode 100644
index 0000000..f6de3f9
--- /dev/null
+++ b/ui/say.menu
@@ -0,0 +1,91 @@
+#include "ui/menudef.h"
+
+{
+
+#define BORDER 10
+
+#define X BORDER
+#define Y BORDER
+//#define W (600-(2*BORDER))
+//#define H (480-(2*BORDER))
+#define W 580
+#define H 460
+
+ // Say to All
+ menuDef
+ {
+ name say
+ fullScreen MENU_FALSE
+ visible MENU_FALSE
+ rect X Y W H
+ //aspectBias ALIGN_LEFT
+ focusColor 1 1 1 1
+ style WINDOW_STYLE_EMPTY
+ onOpen
+ {
+ setfocus say_field;
+ }
+
+ itemDef
+ {
+ name say_field
+ type ITEM_TYPE_SAYFIELD
+ style WINDOW_STYLE_EMPTY
+ text "Say:"
+ cvar "ui_sayBuffer"
+ maxchars 128
+ //rect 0 0 W H
+ rect 0 230 W 20
+ //textalign ALIGN_LEFT
+ //textvalign VALIGN_CENTER
+ textstyle ITEM_TEXTSTYLE_SHADOWED
+ textscale .4
+ forecolor 0.93 0.93 0.92 1
+ visible MENU_TRUE
+ onTextEntry
+ {
+ uiScript Say;
+ close say;
+ }
+ }
+ }
+
+ // Say to Team
+ menuDef
+ {
+ name say_team
+ fullScreen MENU_FALSE
+ visible MENU_FALSE
+ rect X Y W H
+ //aspectBias ALIGN_LEFT
+ focusColor 1 1 1 1
+ style WINDOW_STYLE_EMPTY
+ onOpen
+ {
+ setfocus say_field
+ }
+
+ itemDef
+ {
+ name say_field
+ type ITEM_TYPE_SAYFIELD
+ style WINDOW_STYLE_EMPTY
+ text "Say to team:"
+ cvar "ui_sayBuffer"
+ maxchars 128
+ //rect 0 0 W H
+ rect 0 230 W 20
+ //textalign ALIGN_LEFT
+ //textvalign VALIGN_CENTER
+ textstyle ITEM_TEXTSTYLE_SHADOWED
+ textscale .4
+ forecolor 0.93 0.93 0.92 1
+ visible MENU_TRUE
+ onTextEntry
+ {
+ uiScript Say;
+ close say_team;
+ }
+ }
+ }
+}