]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/options/key.menu
-Added VScrollBar support to the menu (no gfx yet).
[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                 size      '700 600'
16                 origin    '380 0'
17                 alignment [AlignCenter]
18                 direction [Nex_DefaultVertDirection]
19                 flag      [FlagEmbedded]
20
21                 Derive MultiLabel Description
22                 {
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                         size    '600 15'
32                         direction '10 0'
33
34                         Derive Rect Action
35                         {
36                                 size    '200 15'
37                                 color   '0.5 0.5 0.5'
38                                 alpha   0.5
39
40                                 Derive Label Label
41                                 {
42                                         text    "Action"
43                                 }
44                         }
45                         Derive Rect Key1
46                         {
47                                 pos     '210 0'
48                                 size    '190 15'
49                                 color   '0.5 0.5 0.5'
50                                 alpha   0.5
51
52                                 Derive Label Label
53                                 {
54                                         text    "Key/Button 1"
55                                 }
56                         }
57                         Derive Rect Key2
58                         {
59                                 pos     '410 0'
60                                 size    '190 15'
61                                 color   '0.5 0.5 0.5'
62                                 alpha   0.5
63
64                                 Derive Label Label
65                                 {
66                                         text    "Key/Button 2"
67                                 }
68                         }
69                 }
70                 Item Window Temp
71                 {
72                         size    '700 500'
73                         flag    [FlagEmbedded]
74
75                         Item ScrollWindow Scroll
76                         {
77                                 size    '600 500'
78                                 flag    [FlagEmbedded]
79
80                                 Item Arrangement Keys
81                                 {
82                                         direction       [Nex_DefaultVertDirection]
83                                         flag            [FlagEmbedded]
84
85                                         Template Layout Nex_Key_Template
86                                         {
87                                                 size    '600 12'
88                                                 flag    [FlagEmbedded]
89                                                 direction '10 0'
90
91                                                 Template Automation_Job Job
92                                                 {
93                                                         action Nex_Automation_Key
94                                                 }
95                                                 Derive Label Action
96                                                 {
97                                                         size    '200 12'
98                                                 }
99                                                 Template DataLink_AltString Link1
100                                                 {
101                                                         flag            [FlagHidden]
102                                                         stepValue       0
103                                                 }
104                                                 DeriveTemplate Nex_KeyButton Key1
105                                                 {
106                                                         pos     '210 0'
107                                                         size    '190 12'
108                                                         target  "##down"
109                                                         action  Nex_Action_KeyButton
110
111                                                         Item DataLink_FastResync Resync
112                                                         {
113                                                                 link    "Link1"
114                                                         }
115                                                 }
116                                                 Template DataLink_AltString Link2
117                                                 {
118                                                         flag            [FlagHidden]
119                                                         stepValue       1
120                                                 }
121                                                 DeriveTemplate Nex_KeyButton Key2
122                                                 {
123                                                         pos     '410 0'
124                                                         size    '190 12'
125                                                         target  "##down"
126                                                         action  Nex_Action_KeyButton
127
128                                                         Item DataLink_FastResync Resync
129                                                         {
130                                                                 link    "Link2"
131                                                         }
132                                                 }
133                                         }
134                                         DeriveTemplate Label Title
135                                         {
136                                                 fontSize '13 13'
137                                                 color    '0.5 0.3 0.3'
138                                         }
139                                         Derive Title GroupMovement
140                                         {
141                                                 text    "[Movement]"
142                                         }
143                                         Derive Nex_Key_Template Forward
144                                         {
145                                                 text    "Move Forward"
146                                                 target  "Data::Key::Forward"
147                                         }
148                                         Derive Nex_Key_Template Backward
149                                         {
150                                                 text    "Move Backward"
151                                                 target  "Data::Key::Backward"
152                                         }
153                                         Derive Nex_Key_Template Left
154                                         {
155                                                 text    "Strafe Left"
156                                                 target  "Data::Key::StrafeLeft"
157                                         }
158                                         Derive Nex_Key_Template Right
159                                         {
160                                                 text    "Strafe Right"
161                                                 target  "Data::Key::StrafeRight"
162                                         }
163                                         Derive Nex_Key_Template Jump
164                                         {
165                                                 text    "Jump"
166                                                 target  "Data::Key::Jump"
167                                         }
168                                         Derive Nex_Key_Template Crouch
169                                         {
170                                                 text    "Crouch"
171                                                 target  "Data::Key::Crouch"
172                                         }
173                                         Derive Nex_Void Seperator1
174                                         {}
175                                         Derive Title GroupFight
176                                         {
177                                                 text    "[Fight]"
178                                         }
179                                         Derive Nex_Key_Template Primary
180                                         {
181                                                 text    "Primary Attack"
182                                                 target  "Data::Key::FirePrimary"
183                                         }
184                                         Derive Nex_Key_Template Secondary
185                                         {
186                                                 text    "Secondary Attack"
187                                                 target  "Data::Key::FireSecondary"
188                                         }
189                                         Derive Nex_Key_Template PrevWeapon
190                                         {
191                                                 text    "Previous Weapon"
192                                                 target  "Data::Key::PrevWeapon"
193                                         }
194                                         Derive Nex_Key_Template NextWeapon
195                                         {
196                                                 text    "Next Weapon"
197                                                 target  "Data::Key::NextWeapon"
198                                         }
199                                         Derive Nex_Void Seperator2
200                                         {}
201                                         Derive Title Weapons
202                                         {
203                                                 text    "[Weapon]"
204                                         }
205                                         Derive Nex_Key_Template Laser
206                                         {
207                                                 text    "Laser"
208                                                 target  "Data::Key::Weapon::Laser"
209                                         }
210                                         Derive Nex_Key_Template Uzi
211                                         {
212                                                 text    "Uzi"
213                                                 target  "Data::Key::Weapon::Uzi"
214                                         }
215                                         Derive Nex_Key_Template Shotgun
216                                         {
217                                                 text    "Shotgun"
218                                                 target  "Data::Key::Weapon::Shotgun"
219                                         }
220                                         Derive Nex_Key_Template Grenade
221                                         {
222                                                 text    "Uzi"
223                                                 target  "Data::Key::Weapon::Grenade"
224                                         }
225                                         Derive Nex_Key_Template Electro
226                                         {
227                                                 text    "Electro"
228                                                 target  "Data::Key::Weapon::Electro"
229                                         }
230                                         Derive Nex_Key_Template CryLink
231                                         {
232                                                 text    "CryLink"
233                                                 target  "Data::Key::Weapon::CryLink"
234                                         }
235                                         Derive Nex_Key_Template NexGun
236                                         {
237                                                 text    "NexGun"
238                                                 target  "Data::Key::Weapon::NexGun"
239                                         }
240                                         Derive Nex_Key_Template Hagar
241                                         {
242                                                 text    "Hagar"
243                                                 target  "Data::Key::Weapon::Hagar"
244                                         }
245                                         Derive Nex_Key_Template Rocket
246                                         {
247                                                 text    "Rocket"
248                                                 target  "Data::Key::Weapon::Rocket"
249                                         }
250                                 }
251                         }
252                         Item VScrollBar Scroller
253                         {
254                                 pos     '610 0'
255                                 size    '20 100'
256                                 target  "##prev"
257                         }
258                 }
259
260                 Item Arrangement Buttons
261                 {
262                         flag    [FlagEmbedded]
263                         Derive TextButton Reset
264                         {
265                                 normal  "Reset to default"
266                                 init    Nex_Action_ResetData
267                                 target  "::Data::Key"
268                         }
269                 }
270         }
271
272         // info window
273         Item Window InfoWindow
274         {
275                 size    '300 50'
276                 pos     '150 200'
277                 flag    [FlagHidden]
278
279                 Derive Rect Background
280                 {
281                         color           '0.1 0.1 0.1'
282                         drawFlag        [DrawFlagModulate]
283                         flag            [FlagSealOffMouse]
284
285                         Derive Rect Layer
286                         {
287                                 color           '0.2 0.2 0.2'
288                                 drawFlag        [DrawFlagAdditive]
289                         }
290                 }
291                 Item Window TextContainer
292                 {
293                         pos     '2 2'
294                         size    '296 46'
295                         Derive Rect Background
296                         {
297                                 color           '0.1 0.1 0.1'
298                                 drawFlag        [DrawFlagAdditive]
299                         }
300                         Derive MultiLabel Info
301                         {
302                                 pos     '3 3'
303                                 wrap    24
304                                 text    "Now press the key you want to bind or press [Escape] to abort."
305                         }
306                 }
307         }
308 }
309
310