]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/joingame.menu
-Added maplist support
[divverent/nexuiz.git] / scmenu / 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 550'
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 ScrollWindow Scroll
129         {
130                 flag    [FlagEmbedded]
131                 size    '900 500'
132
133                 Item Arrangement Slist
134                 {
135                         direction       '0 1 0'
136                         flag            [FlagEmbedded]
137
138                         DeriveTemplate Nex_HostCache_Entry Entry
139                         {
140                                 size            '852 15'
141                                 action          Nex_Action_EntryConnect
142
143                                 DeriveTemplate Nex_HostCache_ValueField Ping
144                                 {
145                                         pos             '0 0'
146                                         size            [SList_Ping]
147                                         target          "ping"
148                                         alignment       [AlignRight]
149                                 }
150                                 DeriveTemplate Nex_HostCache_StringField Name
151                                 {
152                                         pos             '52 0'
153                                         size            [SList_Name]
154                                         target          "name"
155                                 }
156                                 DeriveTemplate Nex_HostCache_StringField Map
157                                 {
158                                         pos             '546 0'
159                                         size            [SList_Map]
160                                         target          "map"
161                                 }
162                                 DeriveTemplate Nex_HostCache_Players Players
163                                 {
164                                         pos             '668 0'
165                                         size            [SList_Players]
166                                         alignment       [AlignRight]
167                                 }
168                                 DeriveTemplate Nex_HostCache_StringField Mod
169                                 {
170                                         pos             '730 0'
171                                         size            [SList_Mod]
172                                         target          "mod"
173                                 }
174                         }
175                         Item Automation_Job Generator
176                         {
177                                 action Nex_Automation_CreateEntries
178                         }
179                 }
180         }
181         Derive PictureButton Refresh
182         {
183                 normal          "$gfx/m_refresh"
184
185                 action  Nex_Action_RefreshSlist
186         }
187 }
188 }