]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/options/key.menu
Fixed a 'hanging ;' warning
[divverent/nexuiz.git] / scmenu / options / key.menu
1 // Property of Alientrap/AK
2 // options/key.menu
3 Item Window KeyControl
4 {
5         size    '700 600'
6
7         Derive Picture Table1
8         {
9                 picture "gfx/table1"
10                 size    '700 600'
11         }
12
13         Item Layout Layout
14         {
15                 pos             '30 0'
16                 size            '700 600'
17                 direction       [Nex_DefaultVertDirection]
18                 flag            [FlagEmbedded]
19
20                 Derive MultiLabel Description
21                 {
22                         pos     '0 50'
23                         size    '600 24'
24                         text
25         "Press [Enter] or [Mouse1] to change a key binding.\nPress [Delete] to remove the binding."
26                 }
27
28                 // table: name key1 key2
29                 Item Layout TableDesc
30                 {
31                         pos     '0 0'
32                         size    '600 15'
33                         direction '10 0'
34
35                         Derive Rect Action
36                         {
37                                 size    '200 15'
38                                 color   '0.5 0.5 0.5'
39                                 alpha   0.5
40
41                                 Derive Label Label
42                                 {
43                                         text    "Action"
44                                 }
45                         }
46                         Derive Rect Key1
47                         {
48                                 pos     '210 0'
49                                 size    '190 15'
50                                 color   '0.5 0.5 0.5'
51                                 alpha   0.5
52
53                                 Derive Label Label
54                                 {
55                                         text    "Key/Button 1"
56                                 }
57                         }
58                         Derive Rect Key2
59                         {
60                                 pos     '410 0'
61                                 size    '190 15'
62                                 color   '0.5 0.5 0.5'
63                                 alpha   0.5
64
65                                 Derive Label Label
66                                 {
67                                         text    "Key/Button 2"
68                                 }
69                         }
70                 }
71                 Item Window Temp
72                 {
73                         size    '700 500'
74                         flag    [FlagEmbedded]
75
76                         Item ScrollWindow Scroll
77                         {
78                                 size    '600 500'
79                                 flag    [FlagEmbedded]
80
81                                 Item Arrangement Keys
82                                 {
83                                         direction       [Nex_DefaultVertDirection]
84                                         flag            [FlagEmbedded]
85
86                                         Template Layout Nex_Key_Template
87                                         {
88                                                 size    '600 12'
89                                                 flag    [FlagEmbedded]
90                                                 direction '10 0'
91
92                                                 Template Automation_Job Job
93                                                 {
94                                                         action Nex_Automation_Key
95                                                 }
96                                                 Derive Label Action
97                                                 {
98                                                         size    '200 12'
99                                                 }
100                                                 Template DataLink_AltString Link1
101                                                 {
102                                                         flag            [FlagHidden]
103                                                         stepValue       0
104                                                 }
105                                                 DeriveTemplate Nex_KeyButton Key1
106                                                 {
107                                                         pos     '210 0'
108                                                         size    '190 12'
109                                                         target  "##down"
110                                                         action  Nex_Action_KeyButton
111
112                                                         Item DataLink_FastResync Resync
113                                                         {
114                                                                 link    "Link1"
115                                                         }
116                                                 }
117                                                 Template DataLink_AltString Link2
118                                                 {
119                                                         flag            [FlagHidden]
120                                                         stepValue       1
121                                                 }
122                                                 DeriveTemplate Nex_KeyButton Key2
123                                                 {
124                                                         pos     '410 0'
125                                                         size    '190 12'
126                                                         target  "##down"
127                                                         action  Nex_Action_KeyButton
128
129                                                         Item DataLink_FastResync Resync
130                                                         {
131                                                                 link    "Link2"
132                                                         }
133                                                 }
134                                         }
135                                         DeriveTemplate Label Title
136                                         {
137                                                 fontSize '13 13'
138                                                 color    '0.5 0.3 0.3'
139                                         }
140                                         Derive Title GroupMovement
141                                         {
142                                                 text    "[Movement]"
143                                         }
144                                         Derive Nex_Key_Template Forward
145                                         {
146                                                 text    "Move Forward"
147                                                 target  "Data::Key::Forward"
148                                         }
149                                         Derive Nex_Key_Template Backward
150                                         {
151                                                 text    "Move Backward"
152                                                 target  "Data::Key::Backward"
153                                         }
154                                         Derive Nex_Key_Template Left
155                                         {
156                                                 text    "Strafe Left"
157                                                 target  "Data::Key::StrafeLeft"
158                                         }
159                                         Derive Nex_Key_Template Right
160                                         {
161                                                 text    "Strafe Right"
162                                                 target  "Data::Key::StrafeRight"
163                                         }
164                                         Derive Nex_Key_Template Jump
165                                         {
166                                                 text    "Jump"
167                                                 target  "Data::Key::Jump"
168                                         }
169                                         Derive Nex_Key_Template Crouch
170                                         {
171                                                 text    "Crouch"
172                                                 target  "Data::Key::Crouch"
173                                         }
174                                         Derive Nex_Void Seperator1
175                                         {}
176                                         Derive Title GroupFight
177                                         {
178                                                 text    "[Fight]"
179                                         }
180                                         Derive Nex_Key_Template Primary
181                                         {
182                                                 text    "Primary Attack"
183                                                 target  "Data::Key::FirePrimary"
184                                         }
185                                         Derive Nex_Key_Template Secondary
186                                         {
187                                                 text    "Secondary Attack"
188                                                 target  "Data::Key::FireSecondary"
189                                         }
190                                         Derive Nex_Key_Template PrevWeapon
191                                         {
192                                                 text    "Previous Weapon"
193                                                 target  "Data::Key::PrevWeapon"
194                                         }
195                                         Derive Nex_Key_Template NextWeapon
196                                         {
197                                                 text    "Next Weapon"
198                                                 target  "Data::Key::NextWeapon"
199                                         }
200                                         Derive Nex_Key_Template Zoom
201                                         {
202                                                 text    "Zoom"
203                                                 target  "Data::Key::Zoom"
204                                         }
205                                         Derive Nex_Void Seperator2
206                                         {}
207                                         Derive Title Weapons
208                                         {
209                                                 text    "[Weapon]"
210                                         }
211                                         Derive Nex_Key_Template Laser
212                                         {
213                                                 text    "Laser"
214                                                 target  "Data::Key::Weapon::Laser"
215                                         }
216                                         Derive Nex_Key_Template Shotgun
217                                         {
218                                                 text    "Shotgun"
219                                                 target  "Data::Key::Weapon::Shotgun"
220                                         }
221                                         Derive Nex_Key_Template Machingun
222                                         {
223                                                 text    "Machinegun"
224                                                 target  "Data::Key::Weapon::Machinegun"
225                                         }
226
227                                         Derive Nex_Key_Template Mortar
228                                         {
229                                                 text    "Mortar"
230                                                 target  "Data::Key::Weapon::Mortar"
231                                         }
232                                         Derive Nex_Key_Template Electro
233                                         {
234                                                 text    "Electro"
235                                                 target  "Data::Key::Weapon::Electro"
236                                         }
237                                         Derive Nex_Key_Template CryLink
238                                         {
239                                                 text    "CryLink"
240                                                 target  "Data::Key::Weapon::CryLink"
241                                         }
242                                         Derive Nex_Key_Template NexGun
243                                         {
244                                                 text    "NexGun"
245                                                 target  "Data::Key::Weapon::NexGun"
246                                         }
247                                         Derive Nex_Key_Template Hagar
248                                         {
249                                                 text    "Hagar"
250                                                 target  "Data::Key::Weapon::Hagar"
251                                         }
252                                         Derive Nex_Key_Template Rocket
253                                         {
254                                                 text    "Rocket"
255                                                 target  "Data::Key::Weapon::Rocket"
256                                         }
257                                         Derive Nex_Void Seperator3
258                                         {}
259                                         Derive Title Misc
260                                         {
261                                                 text    "[Miscellaneous]"
262                                         }
263                                         Derive Nex_Key_Template ShowScores
264                                         {
265                                                 text    "Show Scores"
266                                                 target  "Data::Key::ShowScores"
267                                         }
268                                         Derive Nex_Key_Template ToggleConsole
269                                         {
270                                                 text    "Toggle Console"
271                                                 target  "Data::Key::ToggleConsole"
272                                         }
273                                         Derive Nex_Key_Template Message
274                                         {
275                                                 text    "Message"
276                                                 target  "Data::Key::Message"
277                                         }
278                                         Derive Nex_Key_Template TeamMessage
279                                         {
280                                                 text    "Team Message"
281                                                 target  "Data::Key::TeamMessage"
282                                         }
283                                         Derive Nex_Key_Template Pause
284                                         {
285                                                 text    "Pause"
286                                                 target  "Data::Key::Pause"
287                                         }
288                                         Derive Nex_Key_Template Screenshot
289                                         {
290                                                 text    "Screenshot"
291                                                 target  "Data::Key::Screenshot"
292                                         }
293                                         Derive Nex_Key_Template Quit
294                                         {
295                                                 text    "Quit Nexuiz"
296                                                 target  "Data::Key::Quit"
297                                         }
298                                         Derive Nex_Key_Template ViewSmaller
299                                         {
300                                                 text    "Decrease Viewsize"
301                                                 target  "Data::Key::ViewSmaller"
302                                         }
303                                         Derive Nex_Key_Template ViewBigger
304                                         {
305                                                 text    "Increase Viewsize"
306                                                 target  "Data::Key::ViewBigger"
307                                         }
308                                 }
309                         }
310                         Item VScrollBar Scroller
311                         {
312                                 pos     '610 0'
313                                 size    '20 100'
314                                 target  "##prev"
315                         }
316                 }
317
318                 Item Arrangement Buttons
319                 {
320                         flag    [FlagEmbedded]
321                         Derive TextButton Reset
322                         {
323                                 normal  "Reset to default"
324                                 init    Nex_Action_ResetData
325                                 target  "::Data::Key"
326                         }
327                 }
328         }
329
330         // info window
331         Item Window InfoWindow
332         {
333                 size    '300 50'
334                 pos     '150 200'
335                 flag    [FlagHidden]
336
337                 Derive Rect Background
338                 {
339                         color           '0.1 0.1 0.1'
340                         drawFlag        [DrawFlagModulate]
341                         flag            [FlagSealOffMouse]
342
343                         Derive Rect Layer
344                         {
345                                 color           '0.2 0.2 0.2'
346                                 drawFlag        [DrawFlagAdditive]
347                         }
348                 }
349                 Item Window TextContainer
350                 {
351                         pos     '2 2'
352                         size    '296 46'
353                         Derive Rect Background
354                         {
355                                 color           '0.1 0.1 0.1'
356                                 drawFlag        [DrawFlagAdditive]
357                         }
358                         Derive MultiLabel Info
359                         {
360                                 pos     '3 3'
361                                 wrap    24
362                                 text    "Now press the key you want to bind or press [Escape] to abort."
363                         }
364                 }
365         }
366 }
367
368