]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/joingame.menu
Adding my current version of the scmenu to the nexuiz cvs.
[divverent/nexuiz.git] / scmenu / joingame.menu
1 // Property of Alientrap/AK
2 //
3 // joingame.menu
4 Item Layout JoinGame
5 {
6         size            '900 650'
7         direction       '0 10'
8         alignment       [AlignCenter]
9         origin          '450 0'
10 #define SList_Ping      '50 15'
11 #define SList_Name      '492 15'
12 #define SList_Map       '120 15'
13 #define SList_Players   '60 15'
14 #define SList_Mod       '120 15'
15 #define SList_Direction '2 0'
16
17         Derive Nex_Composition Query
18         {
19                 Derive TextButton Description
20                 {
21                         normal          "Query String:"
22
23                         link            "##next"
24                 }
25                 Derive EditBox EditBox
26                 {
27                         size    '700 12'
28                         target  "::Data::JoinGame::QueryString::Text"
29
30                         action  Nex_Action_ExecuteQuery
31                 }
32         }
33
34         Item Layout TableDesc
35         {
36                 direction       [SList_Direction]
37                 flag            [FlagEmbedded]
38                 size            '900 15'
39
40                 DeriveTemplate Rect Theme
41                 {
42                         color   '0.5 0.5 0.5'
43                         alpha   0.5
44                         flag    [FlagEmbedded]
45                 }
46                 Derive Theme Ping
47                 {
48                         size    [SList_Ping]
49                         Derive TextButton Text
50                         {
51                                 normal          "Ping"
52
53                                 action          Nex_Action_JoinGame_SortBy
54                                 stepValue       [SListFieldPing]
55                         }
56                 }
57                 Derive Theme Name
58                 {
59                         size    [SList_Name]
60                         Derive TextButton Text
61                         {
62                                 normal          "Server Name"
63
64                                 action          Nex_Action_JoinGame_SortBy
65                                 stepValue       [SListFieldName]
66                         }
67                 }
68                 Derive Theme Map
69                 {
70                         size    [SList_Map]
71                         Derive TextButton Text
72                         {
73                                 normal          "Map Name"
74
75                                 action          Nex_Action_JoinGame_SortBy
76                                 stepValue       [SListFieldMap]
77                         }
78                 }
79                 Derive Theme Players
80                 {
81                         size    [SList_Players]
82                         Item Arrangement Glue
83                         {
84                                 direction       '0.001 0 0'
85                                 flag            [FlagEmbedded]
86
87                                 Derive TextButton NumPlayers
88                                 {
89                                         normal          "NP"
90
91                                         action          Nex_Action_JoinGame_SortBy
92                                         stepValue       [SListFieldNumPlayers]
93                                 }
94                                 Derive Label    Slash
95                                 {
96                                         text            "/"
97                                 }
98                                 Derive TextButton MaxPlayers
99                                 {
100                                         normal          "MP"
101
102                                         action          Nex_Action_JoinGame_SortBy
103                                         stepValue       [SListFieldMaxPlayers]
104                                 }
105                         }
106                 }
107                 Derive Theme Mod
108                 {
109                         size    [SList_Mod]
110                         Derive TextButton Text
111                         {
112                                 normal          "Mod Name"
113
114                                 action          Nex_Action_JoinGame_SortBy
115                                 stepValue       [SListFieldMod]
116                         }
117                 }
118         }
119         Item ScrollWindow Scroll
120         {
121                 flag    [FlagEmbedded]
122                 size    '900 500'
123
124                 Item Arrangement Slist
125                 {
126                         direction       '0 1 0'
127                         flag            [FlagEmbedded]
128
129                         DeriveTemplate Nex_HostCache_Entry Entry
130                         {
131                                 size            '852 15'
132                                 action          Nex_Action_EntryConnect
133
134                                 DeriveTemplate Nex_HostCache_ValueField Ping
135                                 {
136                                         pos             '0 0'
137                                         size            [SList_Ping]
138                                         stepValue       [SListFieldPing]
139                                         alignment       [AlignRight]
140                                 }
141                                 DeriveTemplate Nex_HostCache_StringField Name
142                                 {
143                                         pos             '52 0'
144                                         size            [SList_Name]
145                                         stepValue       [SListFieldName]
146                                 }
147                                 DeriveTemplate Nex_HostCache_StringField Map
148                                 {
149                                         pos             '546 0'
150                                         size            [SList_Map]
151                                         stepValue       [SListFieldMap]
152                                 }
153                                 DeriveTemplate Nex_HostCache_Players Players
154                                 {
155                                         pos             '668 0'
156                                         size            [SList_Players]
157                                         alignment       [AlignRight]
158                                 }
159                                 DeriveTemplate Nex_HostCache_StringField Mod
160                                 {
161                                         pos             '730 0'
162                                         size            [SList_Mod]
163                                         stepValue       [SListFieldMod]
164                                 }
165                         }
166                         Item Automation_Job Generator
167                         {
168                                 action Nex_Automation_CreateEntries
169                         }
170                 }
171         }
172         Derive TextButton Refresh
173         {
174                 normal  "Refresh List"
175
176                 action  Nex_Action_RefreshSlist
177         }
178 }