summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-11-02 20:00:38 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:17 +0000
commitc49ee670d39f11f5eea3bd621c7e918e41c20876 (patch)
tree2d7cd3af524520e01296f5f089eee09b95b2848d /assets
parent93f6321471501aba564eff619ff71fa605fced4a (diff)
* When ui_chatCommands is enabled, change the "Say:" or "Say to Team:" text in the prompt to "Command:" when appropriate, so the user can tell that their text will not be sent as chat but executed instead. (tjw)
Diffstat (limited to 'assets')
-rw-r--r--assets/ui/say.menu50
1 files changed, 50 insertions, 0 deletions
diff --git a/assets/ui/say.menu b/assets/ui/say.menu
index 77204a1b..a52f2eda 100644
--- a/assets/ui/say.menu
+++ b/assets/ui/say.menu
@@ -39,6 +39,10 @@
textscale .4
forecolor 0.93 0.93 0.92 1
visible MENU_TRUE
+ onCharEntry
+ {
+ uiScript SayKeyDown;
+ }
onTextEntry
{
uiScript Say;
@@ -77,6 +81,10 @@
textscale .4
forecolor 0.93 0.93 0.92 1
visible MENU_TRUE
+ onCharEntry
+ {
+ uiScript SayKeyDown;
+ }
onTextEntry
{
uiScript Say;
@@ -84,4 +92,46 @@
}
}
}
+
+ // Command
+ menuDef
+ {
+ name say_command
+ 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 "Command:"
+ cvar "ui_sayBuffer"
+ maxchars 128
+ rect 0 0 W H
+ textalign ALIGN_LEFT
+ textvalign VALIGN_CENTER
+ textstyle ITEM_TEXTSTYLE_SHADOWED
+ textscale .4
+ forecolor 0.93 0.93 0.92 1
+ visible MENU_TRUE
+ onCharEntry
+ {
+ uiScript SayKeyDown;
+ }
+ onTextEntry
+ {
+ uiScript Say;
+ close say_command;
+ }
+ }
+ }
}