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