summaryrefslogtreecommitdiff
path: root/assets/ui/main.menu
blob: df08bef50811976bb51ff0b447651afd57771017 (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
208
209
210
211
212
213
214
215
216
217
218
#include "ui/menudef.h"

{
  assetGlobalDef
  {
    font "fonts/font" 26      
    smallFont "fonts/smallfont" 20    
    bigFont "fonts/bigfont" 34  
	
    cursor "ui/assets/3_cursor3"              // cursor
    gradientBar "ui/assets/gradientbar2.tga"  // gradient bar
    itemFocusSound "sound/misc/menu2.wav"     // sound for item getting focus (via keyboard or mouse )
    fadeClamp 1.0          					  // sets the fadeup alpha
    fadeCycle 1             				  // how often fade happens in milliseconds
    fadeAmount 0.1          			   	  // amount to adjust alpha per cycle
    shadowColor 1 1 1 1    		          // shadow color
  }

  menuDef
  {
    name main
    fullScreen MENU_TRUE
    rect 0 0 640 480      		  // Size and position of the menu
    visible MENU_TRUE      		  // Visible on open
    focusColor 1 1 1 1        // Menu focus color for text and items
    background "ui/assets/warp_splash_m.jpg"
    aspectBias ASPECT_NONE
    onOpen { uiScript stopRefresh ; playlooped "ui/assets/edge_heartbeat.wav" }
    onESC { open quit_popmenu }

    itemDef
    {
      name "aurora_add"
      style WINDOW_STYLE_SHADER
      rect 0 13 640 442
      visible 1
	  background "ui/menu_main_aurora_base_stars"
      decoration
    }
	
    itemDef
    {
      name "aurora"
      style WINDOW_STYLE_SHADER
      rect 0 12 640 442
      visible 1
	  background "ui/menu_main_aurora_base"
      decoration
    }
	
	itemDef
    {
      name "dist"
      style WINDOW_STYLE_SHADER
      rect 0 13 640 440
      visible 1
	  background "gfx/edge/basi_invisble_overlay"
      decoration
    }
	
    itemDef
    { 
      name window
      rect 70 0 500 500
      style WINDOW_STYLE_GRADIENT
      backcolor 0.0 1.35 2.55 0
      visible 1
      decoration
    }
	
    itemDef
    {
      name "edge_logo"
      style WINDOW_STYLE_SHADER
      rect 215 75 212 140
      visible 1
	  background "ui/edge_logo"
      decoration
    }
	
    itemDef
    {
      name mainmenu
      text "ENTER New EDGE EU SERVER"
      type ITEM_TYPE_BUTTON
      style WINDOW_STYLE_EMPTY
      textstyle ITEM_TEXTSTYLE_NORMAL
      rect 270 210 100 20
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      textscale .40
      forecolor 0 0.8 1 1
      visible MENU_TRUE
      action
      {
        exec stopmusic
        exec "connect 95.85.34.7:30720";
      }
    }

    itemDef
    {
      name mainmenu
      text "ENTER New EDGE US SERVER"
      type ITEM_TYPE_BUTTON
      style WINDOW_STYLE_EMPTY
      textstyle ITEM_TEXTSTYLE_NORMAL
      rect 270 230 100 20
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      textscale .40
      forecolor 0 0.8 1 1
      visible MENU_TRUE
      action
      {
        exec stopmusic
        exec "connect 162.243.129.42:30720";
      }
    }
	
    itemDef
    {
      name mainmenu
      text "SERVER BROWSER"
      type ITEM_TYPE_BUTTON
      style WINDOW_STYLE_EMPTY
      textstyle ITEM_TEXTSTYLE_NORMAL
      rect 270 250 100 20
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      textscale .4
      forecolor 0 0.8 1 1
      visible MENU_TRUE
      action
      {
        open joinserver
      }
    }

    itemDef
    {
      name mainmenu
      text "OPTIONS"
      type ITEM_TYPE_BUTTON
      style WINDOW_STYLE_EMPTY
      textstyle ITEM_TEXTSTYLE_NORMAL
      textscale .4
      rect 270 270 100 20
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      backcolor 0 0 0 0
      forecolor 0 0.8 1 1
      visible MENU_TRUE
      action
      {
        open simple_options
      }
    }

    itemDef
    {
      name mainmenu
      text "QUIT"
      type ITEM_TYPE_BUTTON
      style WINDOW_STYLE_EMPTY
      textstyle ITEM_TEXTSTYLE_NORMAL
      rect 270 290 100 20
      textscale .4
      textalign ALIGN_CENTER
      textvalign VALIGN_CENTER
      forecolor 0 0.8 1 1
      visible MENU_TRUE
      action
      {
        uiScript "quit"
      }
    }
    itemDef
    {
      name copyright
      type ITEM_TYPE_TEXT
      text "Tremulous (C) 2005-2009 darklegion development | EDGE (C) 2012-2013 yalt"
      style WINDOW_STYLE_EMPTY
      textstyle ITEM_TEXTSTYLE_NORMAL
      textscale .22
      rect 0 467 640 10
      textalign ALIGN_CENTER
      forecolor 0.5 0.5 0.5 1
      visible MENU_TRUE
      decoration
    }

    itemDef
    {
      name "terminal"
      style WINDOW_STYLE_SHADER
      rect 210 374 220 80
      visible 1
      background "ui/edgeterminal"
      decoration
    }

    itemDef
    {
      name copyright
      type ITEM_TYPE_TEXT
      text "www.new-edge.org"
      style WINDOW_STYLE_EMPTY
      textstyle ITEM_TEXTSTYLE_BLINK
      textscale .35
      rect 0 423 635 10
      textalign ALIGN_CENTER
      forecolor 0 0.8 1 1
      visible MENU_TRUE
      decoration
    }
  }
}