From 3289f089c3b6f6196fe9508e7d3d48b32a42d10d Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 2 Nov 2007 20:42:47 +0000 Subject: * s/ui_loading/ui_hideCursor/ * Hide cursor when using edit fields and binding keys * Remove client side chat handling, moving it to UI module * Remove target and last attacker message modes * Add ui_developer cvar * Fix edit field bug where cvar changes under it * Add onTextEntry UI script event * Give the user some feedback when binding keys * Stop doing a UI refresh when primed (and remove cgame ui_loading sets) * Move cg_drawSnapshot to bottom of the screen --- ui/say.menu | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 ui/say.menu (limited to 'ui/say.menu') diff --git a/ui/say.menu b/ui/say.menu new file mode 100644 index 00000000..089b1fea --- /dev/null +++ b/ui/say.menu @@ -0,0 +1,46 @@ +#include "ui/menudef.h" + +{ + +#define BORDER 10 + +#define X BORDER +#define Y 200 +#define W (640-(2*BORDER)) +#define H 40 + + menuDef + { + name say + fullScreen MENU_FALSE + visible MENU_TRUE + rect X Y W H + focusColor 1 1 1 1 + style WINDOW_STYLE_EMPTY + onOpen + { + setfocus say_field + } + + itemDef + { + name say_field + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_EMPTY + text "Say:" + cvar "ui_sayBuffer" + maxchars 128 + rect 0 0 W H + textalign ITEM_ALIGN_LEFT + textvalign ITEM_VALIGN_CENTER + textscale .5 + forecolor 1 1 1 1 + visible MENU_TRUE + onTextEntry + { + uiScript Say; + close say + } + } + } +} -- cgit