summaryrefslogtreecommitdiff
path: root/assets/ui/ingame_leave.menu
blob: 5aa5cc78fb9d5c6d29bf25c191a08301db1fc46d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#include "ui/menudef.h"

{
  \\ INGAME_LEAVE MENU \\

#define X             160
#define Y             60
#define W             120
#define H             100

#define L1_X          0
#define L1_Y          (H/6)
#define L1_W          W
#define L1_H          (H/3)
#define L2_X          0
#define L2_Y          (H/2)
#define L2_W          W
#define L2_H          (H/3)

  menuDef
  {
    name "ingame_leave"
    visible MENU_TRUE
    fullScreen 0
    outOfBoundsClick      // this closes the window if it gets a click out of the rectangle
    rect X Y W H
    focusColor 1 .75 0 1
    aspectBias ALIGN_LEFT
    onOpen
    {
      show grpMenu;
      hide grpConfirm
    }

    itemDef
    {
      name leave
      style WINDOW_STYLE_FILLED
      rect 0 0 W H
      backcolor 0 0 0 1
      visible MENU_TRUE
      decoration

      border WINDOW_BORDER_FULL
      borderSize 1.0
      borderColor 0.5 0.5 0.5 1
    }

    itemDef
    {
      name leave
      type ITEM_TYPE_BUTTON
      text "Main Menu"
      group grpMenu
      style WINDOW_STYLE_EMPTY
      rect L1_X L1_Y L1_W L1_H
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      textscale .25
      forecolor 1 1 1 1
      visible MENU_TRUE
      action
      {
        play "sound/misc/menu1.wav";
        hide grpMenu;
        show leaveConfirm
      }
    }

    itemDef
    {
      name leave
      group grpMenu
      type ITEM_TYPE_BUTTON
      text "Quit"
      style WINDOW_STYLE_EMPTY
      rect L2_X L2_Y L2_W L2_H
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      textscale .25
      forecolor  1 1 1 1
      visible MENU_TRUE
      action
      {
        play "sound/misc/menu1.wav";
        hide grpMenu;
        show quitConfirm
      }
    }


    // CONFIRMS //


    itemDef
    {
      name leaveConfirm
      text "Return To Main Menu?"
      group grpConfirm
      style WINDOW_STYLE_EMPTY
      rect L1_X L1_Y L1_W L1_H
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      textscale .25
      decoration
      forecolor 1 1 1 1
      visible MENU_TRUE
    }

    itemDef
    {
      name leaveConfirm
      text "Yes"
      group grpConfirm
      type ITEM_TYPE_BUTTON
      textscale .25
      style WINDOW_STYLE_EMPTY
      rect L2_X L2_Y (L2_W/2) L2_H
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      forecolor 1 1 1 1
      visible MENU_TRUE
      action
      {
        play "sound/misc/menu1.wav";
        uiScript leave
      }
    }

    itemDef
    {
      name leaveConfirm
      text "No"
      group grpConfirm
      type ITEM_TYPE_BUTTON
      textscale .25
      style WINDOW_STYLE_EMPTY
      rect (L2_X+(L2_W/2)) L2_Y (L2_W/2) L2_H
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      forecolor 1 1 1 1
      visible MENU_TRUE
      action
      {
        play "sound/misc/menu3.wav";
        hide grpConfirm;
        show grpMenu
      }
    }

    itemDef
    {
      name quitConfirm
      text "Want To Quit Game?"
      group grpConfirm
      style WINDOW_STYLE_EMPTY
      rect L1_X L1_Y L1_W L1_H
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      textscale .25
      forecolor 1 1 1 1
      decoration
      visible MENU_TRUE
    }

    itemDef
    {
      name quitConfirm
      text "Yes"
      group grpConfirm
      type ITEM_TYPE_BUTTON
      textscale .25
      style WINDOW_STYLE_EMPTY
      rect L2_X L2_Y (L2_W/2) L2_H
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      forecolor 1 1 1 1
      visible MENU_TRUE
      action
      {
        play "sound/misc/menu1.wav";
        uiScript quit
      }
    }

    itemDef
    {
      name quitConfirm
      text "No"
      group grpConfirm
      type ITEM_TYPE_BUTTON
      textscale .25
      style WINDOW_STYLE_EMPTY
      rect (L2_X+(L2_W/2)) L2_Y (L2_W/2) L2_H
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      forecolor 1 1 1 1
      visible MENU_TRUE
      action
      {
        play "sound/misc/menu3.wav";
        hide grpConfirm;
        show grpMenu
      }
    }
  }
}