diff options
author | Tim Angus <tim@ngus.net> | 2007-11-02 20:42:47 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2007-11-02 20:42:47 +0000 |
commit | 3289f089c3b6f6196fe9508e7d3d48b32a42d10d (patch) | |
tree | 00284abb075f2df331988b7398dbc82cf54352d8 /ui/say.menu | |
parent | 580693963c553ca1b63fb62f70e3f048a3666991 (diff) |
* 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
Diffstat (limited to 'ui/say.menu')
-rw-r--r-- | ui/say.menu | 46 |
1 files changed, 46 insertions, 0 deletions
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 + } + } + } +} |