]> icculus.org git repositories - divverent/nexuiz.git/blob - data/menu/joingame.menu
Moved NixNex down in the menu to fit lexicographically
[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      '467 15'
27                 #define SList_Map       '120 15'
28                 #define SList_Players   '70 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          "Query String:"
37
38                                 link            "##next"
39                         }
40                         Derive EditBox EditBox
41                         {
42                                 size    '650 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 NumPlayers
103                                         {
104                                                 normal          "NP"
105
106                                                 init            Nex_Action_JoinGame_SortBy
107                                                 target          "numplayers"
108                                         }
109                                         Derive Label    Slash
110                                         {
111                                                 text            "/"
112                                         }
113                                         Derive TextButton MaxPlayers
114                                         {
115                                                 normal          "MP"
116
117                                                 init            Nex_Action_JoinGame_SortBy
118                                                 target          "maxplayers"
119                                         }
120                                 }
121                         }
122                         Derive Theme Mod
123                         {
124                                 size    [SList_Mod]
125                                 Derive TextButton Text
126                                 {
127                                         normal          "Mod Name"
128
129                                         init            Nex_Action_JoinGame_SortBy
130                                         target          "mod"
131                                 }
132                         }
133                 }
134                 Item Window Scroll
135                 {
136                         flag    [FlagEmbedded]
137                         size    '844 416'
138
139                         Item ScrollWindow ScrollArea
140                         {
141                                 flag    [FlagEmbedded]
142                                 size    '824 416'
143
144                                 Item Arrangement Slist
145                                 {
146                                         direction       '0 1 0'
147                                         flag            [FlagEmbedded]
148
149                                         DeriveTemplate Nex_HostCache_Entry Entry
150                                         {
151                                                 size            '824 15'
152                                                 action          Nex_Action_EntryConnect
153
154                                                 DeriveTemplate Nex_HostCache_ValueField Ping
155                                                 {
156                                                         pos             '0 0'
157                                                         size            [SList_Ping]
158                                                         target          "ping"
159                                                         alignment       [AlignRight]
160                                                 }
161                                                 DeriveTemplate Nex_HostCache_StringField Name
162                                                 {
163                                                         pos             '52 0'
164                                                         size            [SList_Name]
165                                                         target          "name"
166                                                 }
167                                                 DeriveTemplate Nex_HostCache_StringField Map
168                                                 {
169                                                         pos             '519 0'
170                                                         size            [SList_Map]
171                                                         target          "map"
172                                                 }
173                                                 DeriveTemplate Nex_HostCache_Players Players
174                                                 {
175                                                         pos             '641 0'
176                                                         size            [SList_Players]
177                                                 }
178                                                 DeriveTemplate Nex_HostCache_StringField Mod
179                                                 {
180                                                         pos             '713 0'
181                                                         size            [SList_Mod]
182                                                         target          "mod"
183                                                 }
184                                         }
185                                         Item Automation_Job Generator
186                                         {
187                                                 action Nex_Automation_CreateEntries
188                                         }
189                                 }
190                         }
191                         Item VScrollBar Scroller
192                         {
193                                 pos     '814 0'
194                                 size    '20 100'
195                                 target  "##prev"
196                         }
197                 }
198         }
199         Derive PictureButton Refresh
200         {
201                 pos     '395 522'
202                 normal  "$gfx/join_b_refresh"
203
204                 action  Nex_Action_RefreshSlist
205         }
206 }