]> icculus.org git repositories - divverent/nexuiz.git/blob - data/menu/joingame.menu
r_ambient 0 again; added menu option for it
[divverent/nexuiz.git] / data / menu / joingame.menu
1 // Property of Alientrap/AK
2 //
3 // joingame.menu
4
5 Item Window JoinGame
6 {
7         Derive Picture Table1
8         {
9                 picture "gfx/join_border"
10                 size    '910 610'
11         }
12         Derive Picture Table2
13         {
14                 picture "gfx/join_background"
15                 pos     '28 32'
16                 size    '854 481'
17         }
18         Item Layout JoinGame
19         {
20                 size            '872 501'
21                 direction       '0 8'
22                 alignment       [AlignCenter]
23                 origin          '460 44'
24
25                 #define SList_Ping      '50 15'
26                 #define SList_Name      '442 15'
27                 #define SList_Map       '120 15'
28                 #define SList_Players   '95 15'
29                 #define SList_Mod       '90 15'
30                 #define SList_Direction '2 0'
31
32                 Derive Nex_Composition Query
33                 {
34                         Derive TextButton Description
35                         {
36                                 normal          "Server name filter:"
37
38                                 link            "##next"
39                         }
40                         Derive EditBox EditBox
41                         {
42                                 size    '610 12'
43                                 target  "::Data::ServerList::QueryString::Text"
44
45                                 action  Nex_Action_ExecuteQuery
46                         }
47                 }
48
49                 Item Layout TableDesc
50                 {
51                         direction       [SList_Direction]
52                         flag            [FlagEmbedded]
53                         size            '844 15'
54
55                         DeriveTemplate Rect Theme
56                         {
57                                 color   '0.5 0.5 0.5'
58                                 alpha   0.5
59                                 flag    [FlagEmbedded]
60                         }
61                         Derive Theme Ping
62                         {
63                                 size    [SList_Ping]
64                                 Derive TextButton Text
65                                 {
66                                         normal          "Ping"
67
68                                         init            Nex_Action_JoinGame_SortBy
69                                         target          "ping"
70                                 }
71                         }
72                         Derive Theme Name
73                         {
74                                 size    [SList_Name]
75                                 Derive TextButton Text
76                                 {
77                                         normal          "Server Name"
78
79                                         init            Nex_Action_JoinGame_SortBy
80                                         target          "name"
81                                 }
82                         }
83                         Derive Theme Map
84                         {
85                                 size    [SList_Map]
86                                 Derive TextButton Text
87                                 {
88                                         normal          "Map Name"
89
90                                         init            Nex_Action_JoinGame_SortBy
91                                         target          "map"
92                                 }
93                         }
94                         Derive Theme Players
95                         {
96                                 size    [SList_Players]
97                                 Item Arrangement Glue
98                                 {
99                                         direction       '0.001 0 0'
100                                         flag            [FlagEmbedded]
101
102                                         Derive TextButton NumHumans
103                                         {
104                                                 normal          "NP"
105
106                                                 init            Nex_Action_JoinGame_SortBy
107                                                 target          "numhumans"
108                                         }
109                                         Derive Label    Slash
110                                         {
111                                                 text            "/"
112                                         }
113                                         Derive TextButton NumPlayers
114                                         {
115                                                 normal          "TP"
116
117                                                 init            Nex_Action_JoinGame_SortBy
118                                                 target          "numplayers"
119                                         }
120                                         Derive Label    Slash2
121                                         {
122                                                 text            "/"
123                                         }
124                                         Derive TextButton MaxPlayers
125                                         {
126                                                 normal          "MP"
127
128                                                 init            Nex_Action_JoinGame_SortBy
129                                                 target          "maxplayers"
130                                         }
131                                 }
132                         }
133                         Derive Theme Mod
134                         {
135                                 size    [SList_Mod]
136                                 Derive TextButton Text
137                                 {
138                                         normal          "Mod Name"
139
140                                         init            Nex_Action_JoinGame_SortBy
141                                         target          "mod"
142                                 }
143                         }
144                 }
145                 Item Window Scroll
146                 {
147                         flag    [FlagEmbedded]
148                         size    '844 416'
149
150                         Item ScrollWindow ScrollArea
151                         {
152                                 flag    [FlagEmbedded]
153                                 size    '824 416'
154
155                                 Item Arrangement Slist
156                                 {
157                                         direction       '0 1 0'
158                                         flag            [FlagEmbedded]
159
160                                         DeriveTemplate Nex_HostCache_Entry Entry
161                                         {
162                                                 size            '824 15'
163                                                 action          Nex_Action_EntryConnect
164
165                                                 DeriveTemplate Nex_HostCache_Ping Ping
166                                                 {
167                                                         pos             '0 0'
168                                                         size            [SList_Ping]
169                                                         target          "ping"
170                                                         alignment       [AlignRight]
171                                                 }
172                                                 DeriveTemplate Nex_HostCache_StringField Name
173                                                 {
174                                                         pos             '52 0'
175                                                         size            [SList_Name]
176                                                         target          "name"
177                                                 }
178                                                 DeriveTemplate Nex_HostCache_StringField Map
179                                                 {
180                                                         pos             '494 0'
181                                                         size            [SList_Map]
182                                                         target          "map"
183                                                 }
184                                                 DeriveTemplate Nex_HostCache_Players Players
185                                                 {
186                                                         pos             '616 0'
187                                                         size            [SList_Players]
188                                                 }
189                                                 DeriveTemplate Nex_HostCache_StringField Mod
190                                                 {
191                                                         pos             '713 0'
192                                                         size            [SList_Mod]
193                                                         target          "mod"
194                                                 }
195                                         }
196                                         Item Automation_Job Generator
197                                         {
198                                                 action Nex_Automation_CreateEntries
199                                         }
200                                 }
201                         }
202                         Item VScrollBar Scroller
203                         {
204                                 pos     '814 0'
205                                 size    '20 100'
206                                 target  "##prev"
207                         }
208                 }
209         }
210         Derive PictureButton Refresh
211         {
212                 pos     '30 522'
213                 normal  "$gfx/join_b_refresh"
214
215                 action  Nex_Action_RefreshSlist
216         }
217         Item Layout Settings
218         {
219                 size            '1000 200'
220                 alignment       [AlignLeft]
221                 pos             '200 537'
222                 direction       '0 10'
223                 
224                 Derive Nex_Option_Switch AutoDemo
225                 {
226                         text    "Automatically record a Demo when playing"
227                         target  "Data::Demos::AutoDemo::Switch"
228                 }
229                 DeriveTemplate Nex_Composition Option_EditBox
230                 {
231                         DeriveTemplate Nex_Automation_Option_EditBox Automation
232                         {}
233                         DeriveTemplate TextButton Description
234                         {}
235                         DeriveTemplate EditBox EditBox
236                         {
237                                 size    '500 12'
238                                 action  Nex_Action_TestOnChange
239                                 select  Nex_Action_TestOnSelect
240                         }
241                 }
242                 Derive Option_EditBox AutoDemoFormat
243                 {
244                         text    "Demo Name Format"
245                         target  "Data::Demos::AutoDemoFormat::Text"
246                 }
247         }
248 }