rename menu directories
[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 Table3
8         {
9                 picture "gfx/table3"
10                 pos     '0 0'
11                 size    '900 555'
12         }
13         Item Layout JoinGame
14         {
15                 size            '900 650'
16                 direction       '0 10'
17                 alignment       [AlignCenter]
18                 origin          '450 0'
19 #define SList_Ping      '50 15'
20 #define SList_Name      '492 15'
21 #define SList_Map       '120 15'
22 #define SList_Players   '60 15'
23 #define SList_Mod       '120 15'
24 #define SList_Direction '2 0'
25
26                 Derive Nex_Composition Query
27                 {
28                         Derive TextButton Description
29                         {
30                                 normal          "Query String:"
31
32                                 link            "##next"
33                         }
34                         Derive EditBox EditBox
35                         {
36                                 size    '700 12'
37                                 target  "::Data::ServerList::QueryString::Text"
38
39                                 action  Nex_Action_ExecuteQuery
40                         }
41                 }
42
43                 Item Layout TableDesc
44                 {
45                         direction       [SList_Direction]
46                         flag            [FlagEmbedded]
47                         size            '900 15'
48
49                         DeriveTemplate Rect Theme
50                         {
51                                 color   '0.5 0.5 0.5'
52                                 alpha   0.5
53                                 flag    [FlagEmbedded]
54                         }
55                         Derive Theme Ping
56                         {
57                                 size    [SList_Ping]
58                                 Derive TextButton Text
59                                 {
60                                         normal          "Ping"
61
62                                         init            Nex_Action_JoinGame_SortBy
63                                         target          "ping"
64                                 }
65                         }
66                         Derive Theme Name
67                         {
68                                 size    [SList_Name]
69                                 Derive TextButton Text
70                                 {
71                                         normal          "Server Name"
72
73                                         init            Nex_Action_JoinGame_SortBy
74                                         target          "name"
75                                 }
76                         }
77                         Derive Theme Map
78                         {
79                                 size    [SList_Map]
80                                 Derive TextButton Text
81                                 {
82                                         normal          "Map Name"
83
84                                         init            Nex_Action_JoinGame_SortBy
85                                         target          "map"
86                                 }
87                         }
88                         Derive Theme Players
89                         {
90                                 size    [SList_Players]
91                                 Item Arrangement Glue
92                                 {
93                                         direction       '0.001 0 0'
94                                         flag            [FlagEmbedded]
95
96                                         Derive TextButton NumPlayers
97                                         {
98                                                 normal          "NP"
99
100                                                 init            Nex_Action_JoinGame_SortBy
101                                                 target          "numplayers"
102                                         }
103                                         Derive Label    Slash
104                                         {
105                                                 text            "/"
106                                         }
107                                         Derive TextButton MaxPlayers
108                                         {
109                                                 normal          "MP"
110
111                                                 init            Nex_Action_JoinGame_SortBy
112                                                 target          "maxplayers"
113                                         }
114                                 }
115                         }
116                         Derive Theme Mod
117                         {
118                                 size    [SList_Mod]
119                                 Derive TextButton Text
120                                 {
121                                         normal          "Mod Name"
122
123                                         init            Nex_Action_JoinGame_SortBy
124                                         target          "mod"
125                                 }
126                         }
127                 }
128                 Item Window Scroll
129                 {
130                         flag    [FlagEmbedded]
131                         size    '900 500'
132
133                         Item ScrollWindow ScrollArea
134                         {
135                                 flag    [FlagEmbedded]
136                                 size    '870 500'
137
138                                 Item Arrangement Slist
139                                 {
140                                         direction       '0 1 0'
141                                         flag            [FlagEmbedded]
142
143                                         DeriveTemplate Nex_HostCache_Entry Entry
144                                         {
145                                                 size            '852 15'
146                                                 action          Nex_Action_EntryConnect
147
148                                                 DeriveTemplate Nex_HostCache_ValueField Ping
149                                                 {
150                                                         pos             '0 0'
151                                                         size            [SList_Ping]
152                                                         target          "ping"
153                                                         alignment       [AlignRight]
154                                                 }
155                                                 DeriveTemplate Nex_HostCache_StringField Name
156                                                 {
157                                                         pos             '52 0'
158                                                         size            [SList_Name]
159                                                         target          "name"
160                                                 }
161                                                 DeriveTemplate Nex_HostCache_StringField Map
162                                                 {
163                                                         pos             '546 0'
164                                                         size            [SList_Map]
165                                                         target          "map"
166                                                 }
167                                                 DeriveTemplate Nex_HostCache_Players Players
168                                                 {
169                                                         pos             '668 0'
170                                                         size            [SList_Players]
171                                                         alignment       [AlignRight]
172                                                 }
173                                                 DeriveTemplate Nex_HostCache_StringField Mod
174                                                 {
175                                                         pos             '730 0'
176                                                         size            [SList_Mod]
177                                                         target          "mod"
178                                                 }
179                                         }
180                                         Item Automation_Job Generator
181                                         {
182                                                 action Nex_Automation_CreateEntries
183                                         }
184                                 }
185                         }
186                         Item VScrollBar Scroller
187                         {
188                                 pos     '870 0'
189                                 size    '20 100'
190                                 target  "##prev"
191                         }
192                 }
193                 Derive PictureButton Refresh
194                 {
195                         normal          "$gfx/m_refresh"
196
197                         action  Nex_Action_RefreshSlist
198                 }
199         }
200 }