~richardson183/tremulous/trunk

« back to all changes in this revision

Viewing changes to assets/ui/say.menu

  • Committer: tma
  • Date: 2009-10-03 11:45:33 UTC
  • Revision ID: svn-v4:fa00571f-6d07-0410-8660-cfe97aa2585a:trunk:1600
* Move all non-source-code to assets directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "ui/menudef.h"
 
2
 
 
3
{
 
4
 
 
5
#define BORDER    10
 
6
 
 
7
#define X         BORDER
 
8
#define Y         200
 
9
#define W         (600-(2*BORDER))
 
10
#define H         40
 
11
 
 
12
  // Say to All
 
13
  menuDef
 
14
  {
 
15
    name say
 
16
    fullScreen MENU_FALSE
 
17
    visible MENU_FALSE
 
18
    rect X Y W H
 
19
    aspectBias ALIGN_LEFT
 
20
    focusColor 1 1 1 1
 
21
    style WINDOW_STYLE_EMPTY
 
22
    onOpen
 
23
    {
 
24
      setfocus say_field;
 
25
    }
 
26
 
 
27
    itemDef
 
28
    {
 
29
      name say_field
 
30
      type ITEM_TYPE_EDITFIELD
 
31
      style WINDOW_STYLE_EMPTY
 
32
      text "Say:"
 
33
      cvar "ui_sayBuffer"
 
34
      maxchars 128
 
35
      rect 0 0 W H
 
36
      textalign ALIGN_LEFT
 
37
      textvalign VALIGN_CENTER
 
38
      textstyle ITEM_TEXTSTYLE_SHADOWED
 
39
      textscale .4
 
40
      forecolor 0.93 0.93 0.92 1
 
41
      visible MENU_TRUE
 
42
      onTextEntry
 
43
      {
 
44
        uiScript Say;
 
45
        close say;
 
46
      }
 
47
    }
 
48
  }
 
49
 
 
50
  // Say to Team
 
51
  menuDef
 
52
  {
 
53
    name say_team
 
54
    fullScreen MENU_FALSE
 
55
    visible MENU_FALSE
 
56
    rect X Y W H
 
57
    aspectBias ALIGN_LEFT
 
58
    focusColor 1 1 1 1
 
59
    style WINDOW_STYLE_EMPTY
 
60
    onOpen
 
61
    {
 
62
      setfocus say_field
 
63
    }
 
64
 
 
65
    itemDef
 
66
    {
 
67
      name say_field
 
68
      type ITEM_TYPE_EDITFIELD
 
69
      style WINDOW_STYLE_EMPTY
 
70
      text "Say to team:"
 
71
      cvar "ui_sayBuffer"
 
72
      maxchars 128
 
73
      rect 0 0 W H
 
74
      textalign ALIGN_LEFT
 
75
      textvalign VALIGN_CENTER
 
76
      textstyle ITEM_TEXTSTYLE_SHADOWED
 
77
      textscale .4
 
78
      forecolor 0.93 0.93 0.92 1
 
79
      visible MENU_TRUE
 
80
      onTextEntry
 
81
      {
 
82
        uiScript Say;
 
83
        close say_team;
 
84
      }
 
85
    }
 
86
  }
 
87
}