~richardson183/tremulous/trunk

« back to all changes in this revision

Viewing changes to assets/ui/ingame_help.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 W           420
 
6
#define H           290
 
7
#define X           10
 
8
#define Y           60
 
9
#define BORDER      10
 
10
 
 
11
#define LIST_W    140
 
12
#define LIST_H    (H-(2*BORDER))
 
13
#define LIST_X    BORDER
 
14
#define LIST_Y    BORDER
 
15
 
 
16
#define INFO_W    (W-((3*BORDER)+LIST_W))
 
17
#define INFO_H    (H-(2*BORDER))
 
18
#define INFO_X    ((2*BORDER)+LIST_W)
 
19
#define INFO_Y    BORDER
 
20
#define INFO_TOFF 6
 
21
 
 
22
  menuDef
 
23
  {
 
24
    name "ingame_help"
 
25
    visible MENU_FALSE
 
26
    fullscreen MENU_FALSE
 
27
    outOfBoundsClick      // this closes the window if it gets a click out of the rectangle
 
28
    rect X Y W H
 
29
    focusColor 1 .75 0 1
 
30
    aspectBias ALIGN_LEFT
 
31
    onOpen {
 
32
      setFocus list;
 
33
    }
 
34
 
 
35
    itemDef
 
36
    {
 
37
      name window
 
38
      rect 0 0 W H
 
39
      style WINDOW_STYLE_FILLED
 
40
      backcolor 0 0 0 1
 
41
      visible MENU_TRUE
 
42
      decoration
 
43
 
 
44
      border WINDOW_BORDER_FULL
 
45
      borderSize 1.0
 
46
      borderColor 0.5 0.5 0.5 1
 
47
    }
 
48
 
 
49
    itemDef
 
50
    {
 
51
      name "list"
 
52
      rect LIST_X LIST_Y LIST_W LIST_H
 
53
      type ITEM_TYPE_LISTBOX
 
54
      style WINDOW_STYLE_EMPTY
 
55
      elementwidth 120
 
56
      elementheight 20
 
57
      textscale .33
 
58
      elementtype LISTBOX_TEXT
 
59
      feeder FEEDER_HELP_LIST
 
60
      border WINDOW_BORDER_FULL
 
61
      bordercolor   0.5 0.5 0.5 0.5
 
62
      forecolor     1   1   1   1
 
63
      backcolor     0.2 0.2 0.2 1
 
64
      outlinecolor  0.1 0.1 0.1 0.5
 
65
      visible MENU_TRUE
 
66
    }
 
67
 
 
68
    itemDef
 
69
    {
 
70
      name infopane
 
71
      ownerdraw UI_HELPINFOPANE
 
72
      textstyle ITEM_TEXTSTYLE_NORMAL
 
73
      style WINDOW_STYLE_EMPTY
 
74
      rect INFO_X INFO_Y INFO_W INFO_H
 
75
      textscale .33
 
76
      textalign ALIGN_LEFT
 
77
      textvalign VALIGN_TOP
 
78
      textalignx INFO_TOFF
 
79
      textaligny INFO_TOFF
 
80
      border WINDOW_BORDER_FULL
 
81
      bordercolor   0.5 0.5 0.5 0.5
 
82
      forecolor     1   1   1   1
 
83
      backcolor     0.2 0.2 0.2 1
 
84
      visible MENU_TRUE
 
85
      decoration
 
86
    }
 
87
  }
 
88
}