1///////////////////////////////////////////////////////////////////////////////
2//  F1 Add/Edit Entity                                                       //
3///////////////////////////////////////////////////////////////////////////////
4menu_entity = [toggleui "addentity"]
5// menu_entity = [if (enthavesel) [toggleui "editentity"] [toggleui "addentity"]]
6
7UImenu "editentity" [
8   uifill 0.5 0.5 [
9      UIbutton "" [uitext "ToDo" 0.8] 0.3 0.2 [hidetopui]
10   ]
11] [] [] [] "Edit Entity"
12
13UImenu "addentity" [
14   uispace 0.008 0.015 [
15      uivlist 0 [
16         uifill 0.5 0.032 [
17            uitext (concatword "^f8/newent " $UI_enttype) 0.7
18            uialign* -1 0
19            uioutline $c_line ; uiclamp- 1 1 1 1
20         ]
21         uifill 0 0.025
22         uihlist 0.005 [
23            uivlist 0.005 [
24               UIbutton "" [uitext "Envmap" 0.6]    0.2 0.04 [hideui "addentity" ; newent envmap]          -1 [uihover [UI_enttype = "envmap"]]
25               UIbutton "" [uitext "Light" 0.6]     0.2 0.04 [hideui "addentity" ; showui "ent_light"]     -1 [uihover [UI_enttype = "light ^f4*"]]
26               UIbutton "" [uitext "Spotlight" 0.6] 0.2 0.04 [hideui "addentity" ; showui "ent_spotlight"] -1 [uihover [UI_enttype = "spotlight ^f4*"]]
27            ]
28            uivlist 0.005 [
29               UIbutton "" [uitext "Jumppad" 0.6]   0.2 0.04 [hideui "addentity" ; showui "ent_jumppad"]   -1 [uihover [UI_enttype = "jumppad ^f4*"]]
30               UIbutton "" [uitext "Mapmodel" 0.6; UI_keyref 2 0.027 0.027 "F3"]  0.2 0.04 [hideui "addentity"; showui "mapmodel"]     -1 [uihover [UI_enttype = "mapmodel ^f4*"]]
31               UIbutton "" [uitext "Particles" 0.6] 0.2 0.04 [hideui "addentity" ; showui "ent_particles"] -1 [uihover [UI_enttype = "particles ^f4*"]]
32               UIbutton "" [uitext "Teleport" 0.6]  0.2 0.04 [hideui "addentity" ; showui "ent_teleport"]  -1 [uihover [UI_enttype = "teleport ^f4*"]]
33               UIbutton "" [uitext "Teledest" 0.6]  0.2 0.04 [hideui "addentity" ; showui "ent_teledest"]  -1 [uihover [UI_enttype = "teledest ^f4*"]]
34            ]
35            uivlist 0.005 [
36               UIbutton "" [uitext "Playerstart" 0.6]         0.2 0.04 [hideui "addentity" ; newent playerstart]   -1 [uihover [UI_enttype = "playerstart"]]
37               UIbutton "" [uitext "Playerstart ^f1Azul" 0.6] 0.2 0.04 [hideui "addentity" ; newent playerstart 1] -1 [uihover [UI_enttype = "playerstart 1"]]
38               UIbutton "" [uitext "Playerstart ^f3Rojo" 0.6] 0.2 0.04 [hideui "addentity" ; newent playerstart 2] -1 [uihover [UI_enttype = "playerstart 2"]]
39               UIbutton "" [uitext "Flag ^f1Azul" 0.6]        0.2 0.04 [hideui "addentity" ; newent flag 1]        -1 [uihover [UI_enttype = "flag 1"]]
40               UIbutton "" [uitext "Flag ^f3Rojo" 0.6]        0.2 0.04 [hideui "addentity" ; newent flag 2]        -1 [uihover [UI_enttype = "flag 2"]]
41            ]
42            uialign* -1 -1
43         ]
44         uifill 0 0.01
45         UIbutton "hold2" [
46            UIcheckbox $entselsnap 0.016
47            uitext "Entity Snapping" 0.6
48            UI_keyref 2 0.027 0.027 "7"
49         ] 0.25 0.04 [entselsnap (! $entselsnap)]
50      ]
51   ]
52] [
53   UI_enttype = " "
54   looplist a ["editentity" "ent_light" "ent_spotlight" "ent_jumppad" "mapmodel" "ent_particles" "ent_teleport" "ent_teledest"] [hideui $a]
55] [] [] "Add Entity"
56
57UI_lts = 128
58UI_ltr = 127
59UI_ltg = 127
60UI_ltb = 127
61UI_ltt = 0
62UImenu "ent_light" [
63   uispace 0.008 0.015 [
64      uivlist 0 [
65         uifill 0.5 0.032 [
66            uitext (concatword "^f8/newent light " $UI_lts " " $UI_ltr " " $UI_ltg " " $UI_ltb " " $UI_ltt) 0.7
67            uialign* -1 0
68            uioutline $c_line ; uiclamp- 1 1 1 1
69         ]
70         uifill 0 0.025
71         uitable 0.005 0.005 [
72            uitablerow [
73               uitext "Radius" 0.6
74               UIhslider UI_lts 1 256 1 0.5 0.032 [uitext $UI_lts 0.6]
75               uialign* -1 0
76            ]
77            uitablerow [
78               uitext "Red" 0.6
79               UIhslider UI_ltr 0 255 1 0.5 0.032 [uitext $UI_ltr 0.6]
80               uialign* -1 0
81            ]
82            uitablerow [
83               uitext "Green" 0.6
84               UIhslider UI_ltg 0 255 1 0.5 0.032 [uitext $UI_ltg 0.6]
85               uialign* -1 0
86            ]
87            uitablerow [
88               uitext "Blue" 0.6
89               UIhslider UI_ltb 0 255 1 0.5 0.032 [uitext $UI_ltb 0.6]
90               uialign* -1 0
91            ]
92            uitablerow [
93               uitext "Type" 0.6
94               UIhslider UI_ltt 0 2 1 0.5 0.032 [uitext $UI_ltt 0.6]
95               uialign* -1 0
96            ]
97         ]
98         uifill 0 0.025
99         UIbutton "" [uitext "Add" 0.6] 0.12 0.06 [hideui "ent_light" ; newent light $UI_lts $UI_ltr $UI_ltg $UI_ltb $UI_ltt]
100      ]
101   ]
102] [] [] [] "Add Entity - Light"
103
104UI_sla = 45
105UImenu "ent_spotlight" [
106   uispace 0.008 0.015 [
107      uivlist 0 [
108         uifill 0.5 0.032 [
109            uitext (concatword "^f8/newent spotlight " $UI_sla) 0.7
110            uialign* -1 0
111            uioutline $c_line ; uiclamp- 1 1 1 1
112         ]
113         uifill 0 0.025
114         uihlist 0.005 [
115            uitext "Angle" 0.6
116            UIhslider UI_sla 1 90 1 0.5 0.032 [uitext $UI_sla 0.6]
117            uialign* -1 0
118         ]
119         uifill 0 0.025
120         UIbutton "" [uitext "Add" 0.6] 0.12 0.06 [hideui "ent_spotlight" ; newent spotlight $UI_sla]
121      ]
122   ]
123] [] [] [] "Add Entity - Spotlight"
124
125UI_jph = 20
126UI_jpx = 0
127UI_jpy = 0
128UImenu "ent_jumppad" [
129   uispace 0.008 0.015 [
130      uivlist 0 [
131         uifill 0.5 0.032 [
132            uitext (concatword "^f8/newent jumppad " $UI_jph " " $UI_jpx " " $UI_jpy " ") 0.7
133            uialign* -1 0
134            uioutline $c_line ; uiclamp- 1 1 1 1
135         ]
136         uifill 0 0.025
137         uitable 0.005 0.005 [
138            uitablerow [
139               uitext "Height" 0.6
140               UIhslider UI_jph -128 128 1 0.5 0.032 [uitext $UI_jph 0.6]
141               uialign* -1 0
142            ]
143            uitablerow [
144               uitext "X Lateral" 0.6
145               UIhslider UI_jpx -127 127 1 0.5 0.032 [uitext $UI_jpx 0.6]
146               uialign* -1 0
147            ]
148            uitablerow [
149               uitext "Y Lateral" 0.6
150               UIhslider UI_jpy -127 127 1 0.5 0.032 [uitext $UI_jpy 0.6]
151               uialign* -1 0
152            ]
153         ]
154         uifill 0 0.025
155         UIbutton "" [uitext "Add" 0.6] 0.12 0.06 [hideui "ent_jumppad" ; newent jumppad $UI_jph $UI_jpx $UI_jpy]
156      ]
157   ]
158] [] [] [] "Add Entity - Jumppad"
159
160UImenu "ent_particles" [
161   uispace 0.008 0.015 [
162      uivlist 0 [
163         uifill 0.5 0.032 [
164            uitext (concatword "^f8/newent particles ") 0.7
165            uialign* -1 0
166            uioutline $c_line ; uiclamp- 1 1 1 1
167         ]
168         uifill 0 0.025
169         UIbutton "" [uitext "ToDo" 0.8] 0.3 0.2 [hidetopui]
170      ]
171   ]
172] [] [] [] "Add Entity - Particles"
173
174UI_tid = 0
175UImenu "ent_teleport" [
176   uispace 0.008 0.015 [
177      uivlist 0 [
178         uifill 0.5 0.032 [
179            uitext (concatword "^f8/newent teleport " $UI_tid) 0.7
180            uialign* -1 0
181            uioutline $c_line ; uiclamp- 1 1 1 1
182         ]
183         uifill 0 0.025
184         uihlist 0.005 [
185            uitext "ID#" 0.6
186            UIhslider UI_tid 0 127 1 0.5 0.032 [uitext $UI_tid 0.6]
187            uialign* -1 0
188         ]
189         uifill 0 0.025
190         UIbutton "" [uitext "Add" 0.6] 0.12 0.06 [hideui "ent_teleport" ; newent teleport $UI_tid]
191      ]
192   ]
193] [] [] [] "Add Entity - Teleport"
194UImenu "ent_teledest" [
195   uispace 0.008 0.015 [
196      uivlist 0 [
197         uifill 0.5 0.032 [
198            uitext (concatword "^f8/newent teledest " $UI_tid) 0.7
199            uialign* -1 0
200            uioutline $c_line ; uiclamp- 1 1 1 1
201         ]
202         uifill 0 0.025
203         uihlist 0.005 [
204            uitext "ID#" 0.6
205            UIhslider UI_tid 0 127 1 0.5 0.032 [uitext $UI_tid 0.6]
206            uialign* -1 0
207         ]
208         uifill 0 0.025
209         UIbutton "" [uitext "Add" 0.6] 0.12 0.06 [hideui "ent_teledest" ; newent teledest $UI_tid]
210      ]
211   ]
212] [] [] [] "Add Entity - Teledest"
213
214///////////////////////////////////////////////////////////////////////////////
215//  F2 Texture Browser                                                       //
216///////////////////////////////////////////////////////////////////////////////
217UI_textabs = 0
218
219// uitarget 0 0 [
220//    uiimage "media/interface/directory.png" 0.145 0.145 [uispace 0 0.008 [uialign 0 1 ; uiclip 0.145 0 [uitext "directory" 0.55]]]
221//    uihold [uioutline 0xC0C0C0; uiclamp- 1 1 1 1] [uihover [uioutline 0xFFFFFF; uiclamp- 1 1 1 1]]
222//    uirelease [hideui "texture_browser"]
223// ]
224
225UImenu "texture_browser" [
226   uihlist 0 [
227      uifill 0 0 [
228         uialign 0 -1
229         uiclamp 1 1 1 1
230         UIvtab 0.2 (*f 0.048 3) UI_textabs [
231            0 "Listed"   [] // Listed Registered Cataloged
232            1 "Utilized" [] // Used Utilized
233            2 "Replace"  []
234         ] 1
235         uialign- 0 -1
236         UIbutton "hold2" [
237            UIcheckbox $allfaces 0.016
238            uitext "Allfaces" 0.6
239            UI_keyref 2 0.027 0.027 "6"
240         ] 0.2 0.04 [allfaces (! $allfaces)]
241         uialign- 0 1
242      ]
243      UIbar 0 1
244      uifill 0.01
245      case $UI_textabs 0 [//Listed/////////////////////////////////////////////////////////////////
246         uiscroll 1.202875 0.7495 [
247            uifill 1.202875 0.7495 [
248               uigrid 8 0.006125 0.006125 [
249                  loop slot (numslots) [
250                     uislotview $slot 0.145 0.145 [
251                        uihold [uioutline 0xC0C0C0; uiclamp- 1 1 1 1] [uihover [uioutline 0xFFFFFF; uiclamp- 1 1 1 1]]
252                        uirelease [hideui "texture_browser"; settex (getslottex $slot)]
253                     ]
254                  ]
255               ]
256               uialign* -1 -1
257            ]
258         ]
259         uifill 0.01
260         UIvscroll 0.02 0.7495 3.0225
261      ] 1 [//Utilized//////////////////////////////////////////////////////////////////////////////
262         uiscroll 1.202875 0.7495 [
263            uifill 1.202875 0.7495 [
264               uigrid 8 0.006125 0.006125 [
265                  looptexmru tex [
266                     uivslotview $tex 0.145 0.145 [
267                        uihold [uioutline 0xC0C0C0; uiclamp- 1 1 1 1] [uihover [uioutline 0xFFFFFF; uiclamp- 1 1 1 1]]
268                        uirelease [hideui "texture_browser"; settex $tex]
269                     ]
270                  ]
271               ]
272               uialign* -1 -1
273            ]
274         ]
275         uifill 0.01
276         UIvscroll 0.02 0.7495 3.0225
277      ] 2 [//Replace///////////////////////////////////////////////////////////////////////////////
278         uifill 1.232875 0.7495 [
279            UIbutton "" [uitext "ToDo" 0.8] 0.25 0.1 [hidetopui]
280         ]
281      ]
282   ]
283] [] [] [] "Texture Browser"
284
285///////////////////////////////////////////////////////////////////////////////
286//  F3 Mapmodel                                                              //
287///////////////////////////////////////////////////////////////////////////////
288newui "mapmodel" [
289   uialign -1 -1
290   uieschide 0
291   uicolor $c_menu_a 0 0 [
292      uispace $UIwindow_padding $UIwindow_padding [
293         uiclamp 1 1 1 1
294         uihlist 0.01 [
295            if 0 [
296               UIvscroll 0.02 0.81 (*f (min (+ 1 (div $nummapmodels 100)) 10) 5.4)
297            ] [
298               UIvscroll 0.02 0.81 (*f (min (+ 1 (div $nummapmodels 50)) 5) 2.7)
299            ]
300            uiscroll 0 0.81 [
301               uivlist 0 [
302                  uigrid 2 0 0 [// (+ $_res_wide 1)
303                     loop i $nummapmodels [
304                        uigroup [
305                           uimodelpreview (mapmodelname $i 1) "mapmodel" 0.12 0.135 [
306                              uihover [
307                                 uihold [uioutline 0xFFFFFF] [
308                                    uieschold [uioutline 0xFFFFFF] [
309                                       uioutline 0x80FFFFFF
310                                    ]
311                                 ]
312                                 uiclamp* 1 1 1 1
313                                 UI_selmdl = $i
314                                 uirelease [
315                                    newent mapmodel $i
316                                    _io_mapmodel = 0
317                                 ]
318                                 uiescrelease [
319                                    if (enthavesel) [
320                                       entset "mapmodel" $i
321                                       _io_mapmodel = 0
322                                    ]
323                                 ]
324                              ] [
325                                 if (= $UI_selmdl $i) [
326                                    uioutline 0x40FFFFFF
327                                    uiclamp- 1 1 1 1
328                                 ]
329                              ]
330                           ]
331                           uispace 0.01 0.006 [
332                              uialign -1 -1
333                              uicolortext $i 0x80FFFFFF 0.6
334                           ]
335                        ]
336                     ]
337                  ]
338               ]
339            ]
340         ]
341      ]
342      uioutline $c_line ; uiclamp- 1 1 1 1
343   ]
344   uiclamp* 1 1 1 1
345] [
346   UI_selmdl = -1
347   hideui "texture"
348   hideui "addentity"
349]
350
351///////////////////////////////////////////////////////////////////////////////
352//  F4 Material Volume                                                       //
353///////////////////////////////////////////////////////////////////////////////
354UImenu "material" [
355   uispace 0.008 0.015 [
356      uivlist 0 [
357         uifill 0.5 0.032 [
358            uitext (concatword "^f8/" $UI_mattype) 0.7
359            uialign* -1 0
360            uioutline $c_line ; uiclamp- 1 1 1 1
361         ]
362         uifill 0 0.025
363         uihlist 0.005 [
364            uivlist 0.005 [
365               UIbutton "" [uitext "Air (Clear)" 0.6] 0.15 0.04 [editmat air]      -1 [uihover [UI_mattype = "air"]]
366               UIbutton "" [uitext "Clip" 0.6]        0.15 0.04 [editmat clip]     -1 [uihover [UI_mattype = "clip"]]
367               UIbutton "" [uitext "No-Clip" 0.6]     0.15 0.04 [editmat noclip]   -1 [uihover [UI_mattype = "noclip"]]
368               UIbutton "" [uitext "Gameclip" 0.6]    0.15 0.04 [editmat gameclip] -1 [uihover [UI_mattype = "gameclip"]]
369               UIbutton "" [uitext "Death" 0.6]       0.15 0.04 [editmat death]    -1 [uihover [UI_mattype = "death"]]
370               UIbutton "" [uitext "Alpha" 0.6]       0.15 0.04 [editmat alpha]    -1 [uihover [UI_mattype = "alpha"]]
371            ]
372            uivlist 0.005 [
373               UIbutton "" [uitext "Glass 1" 0.6]     0.15 0.04 [editmat glass]    -1 [uihover [UI_mattype = "glass"]]
374               UIbutton "" [uitext "Glass 2" 0.6]     0.15 0.04 [editmat glass2]   -1 [uihover [UI_mattype = "glass2"]]
375               UIbutton "" [uitext "Glass 3" 0.6]     0.15 0.04 [editmat glass3]   -1 [uihover [UI_mattype = "glass3"]]
376               UIbutton "" [uitext "Glass 4" 0.6]     0.15 0.04 [editmat glass4]   -1 [uihover [UI_mattype = "glass4"]]
377            ]
378            uivlist 0.005 [
379               UIbutton "" [uitext "Lava 1" 0.6]      0.15 0.04 [editmat lava]     -1 [uihover [UI_mattype = "lava"]]
380               UIbutton "" [uitext "Lava 2" 0.6]      0.15 0.04 [editmat lava2]    -1 [uihover [UI_mattype = "lava2"]]
381               UIbutton "" [uitext "Lava 3" 0.6]      0.15 0.04 [editmat lava3]    -1 [uihover [UI_mattype = "lava3"]]
382               UIbutton "" [uitext "Lava 4" 0.6]      0.15 0.04 [editmat lava4]    -1 [uihover [UI_mattype = "lava4"]]
383            ]
384            uivlist 0.005 [
385               UIbutton "" [uitext "Water 1" 0.6]     0.15 0.04 [editmat water]    -1 [uihover [UI_mattype = "water"]]
386               UIbutton "" [uitext "Water 2" 0.6]     0.15 0.04 [editmat water2]   -1 [uihover [UI_mattype = "water2"]]
387               UIbutton "" [uitext "Water 3" 0.6]     0.15 0.04 [editmat water3]   -1 [uihover [UI_mattype = "water3"]]
388               UIbutton "" [uitext "Water 4" 0.6]     0.15 0.04 [editmat water4]   -1 [uihover [UI_mattype = "water4"]]
389            ]
390            uialign* -1 -1
391         ]
392         uifill 0 0.01
393         UIbutton "hold2" [
394            UIcheckbox $showmat 0.016
395            uitext "Show Material Volumes" 0.6
396            UI_keyref 2 0.027 0.027 "M"
397         ] 0.33 0.04 [showmat (! $showmat)]
398      ]
399   ]
400] [UI_mattype = " "] [] [] "Material Volume"
401
402///////////////////////////////////////////////////////////////////////////////
403//  F5 Save Map                                                              //
404///////////////////////////////////////////////////////////////////////////////
405menu_savemap = [if (! $mapname) [toggleui "savemap"] [savemap]]
406UI_mapname = "untitled"
407
408UImenu "savemap" [
409   uispace 0.008 0.015 [
410      uivlist 0 [
411         uihlist 0.01 [
412            uitext "^f8/savemap " 0.7
413            uifield UI_mapname 32 [] 0.7 style_generic_focus
414         ]
415         uifill 0 0.025
416         UIbutton "" [uitext "Save" 0.6] 0.12 0.06 [savemap $UI_mapname]
417      ]
418   ]
419] [] [] [] "Save Map"
420
421///////////////////////////////////////////////////////////////////////////////
422//  F6 Map Browser                                                           //
423///////////////////////////////////////////////////////////////////////////////
424UI_mapscale = 10
425UI_maplist = 0
426dmmaps = [
427   complex ot turbine
428]
429ctfmaps = [
430   test_ctf
431]
432tdmmaps = (concat $dmmaps $ctfmaps)
433allmaps = (concat $dmmaps $ctfmaps)
434testmaps = [
435   test_anim test_model
436]
437editmaps = (concat $dmmaps $ctfmaps $testmaps)
438
439UImenu "map_browser" [
440   uihlist 0.01 [
441      uivlist 0 [
442         uialign 0 -1
443         UItitle [uiclip 0.3 0 [uitext $UI_selmap 0.7]] 0.3 0.03
444         uimodcolor $c_boxmod 0.3 0.3 [
445            uiclamp 1 1 1 1
446            uiimage "media/interface/cube.png" 0.3 0.3 [uiimage (concatword "media/map/" $UI_selmap ".png") 0.3 0.3 [uiclamp 1 1 1 1]]
447         ]
448         uifill 0 0.015
449         UItitle [uitext "List" 0.7] 0.3 0.03
450         UIbutton "" [
451            UIradio [= $UI_maplist 0] 0.016
452            uitext "Tesseract" 0.6
453         ] 0.3 0.03 [UI_maplist = 0 ; UI_selmap = ""] -1
454         UIbutton "" [
455            UIradio [= $UI_maplist 1] 0.016
456            uitext "Custom" 0.6
457         ] 0.3 0.03 [UI_maplist = 1 ; UI_selmap = ""] -1
458         uifill 0.0 0.015
459         UItitle [uitext "Gamemode" 0.7] 0.3 0.03
460         uigrid 3 0 0 [
461            nextmode = (getnextmode)
462            looplist2 n i [
463               "Edit"  0 "rDM"  1 "pDM"  2
464               ""     -1 "rTDM" 3 "pTDM" 4
465               ""     -1 "rCTF" 5 "pCTF" 6
466            ] [
467               if (< $i 0) [
468                  uimodcolor $c_boxmod 0.1 0.03
469               ] [
470                  UIbutton "" [
471                     UIradio [= $nextmode $i] 0.016
472                     uitext $n 0.6
473                  ] 0.1 0.03 [mode $i] -1
474               ]
475            ]
476         ]
477         uifill 0.0 0.015
478         if (issomeoneelsemaster) [
479            if (ismaster $getclientnum) [
480               UIbutton "" [uitext (concatword (? (= $isconnected 1) (? (! $editing) "^f4")) "New Map") 0.7] 0.3 0.05 [hideui "map_browser" ; showui "newmap"]
481            ] [
482               UIbutton "" [uitext "^f4New Map" 0.65] 0.3 0.05 []
483            ]
484         ] [
485            UIbutton "" [uitext (concatword (? (= $isconnected 1) (? (! $editing) "^f4")) "New Map") 0.7] 0.3 0.05 [hideui "map_browser" ; showui "newmap"]
486         ]
487      ]
488      uiscroll 0.4 0.64 [
489         uifill 0.37 0.64
490         uivlist 0 [
491            uialign 0 -1
492            uiclamp 1 1
493            if $UI_maplist [
494               if (=s $custommaps "") [
495                  custommaps = " "
496                  loopfiles m "media/map" "ogz" [
497                     if (< (indexof $editmaps $m) 0) [
498                        custommaps = (concat $custommaps $m)
499                     ]
500                  ]
501               ]
502               looplist m $custommaps [
503                  UIbutton (? (!=s $UI_selmap $m) "hold2") [
504                     uitext $m 0.6
505                  ] 0 0.04 [
506                     hideui "loadmap"
507                     map $m
508                  ] -1 [uihover [UI_selmap = $m]]
509               ]
510            ] [
511               looplist m $(? (m_ctf $nextmode) "ctfmaps" (? (m_edit $nextmode) "editmaps" (? (m_teammode $nextmode) "tdmmaps" "dmmaps"))) [
512                  UIbutton (? (!=s $UI_selmap $m) "hold2") [
513                     uitext $m 0.6
514                  ] 0 0.04 [
515                     hideui "loadmap"
516                     map $m
517                  ] -1 [uihover [UI_selmap = $m]]
518               ]
519            ]
520            uiclamp* 1 1
521         ]
522      ]
523      UIvscroll 0.02 0.64 1.6
524   ]
525] [
526   UI_selmap = ""
527   custommaps = ""
528   hideui "newmap"
529] [] [] "Map Browser"
530
531UImenu "newmap" [
532   uispace 0.008 0.015 [
533      uivlist 0 [
534         uifill 0.5 0.032 [
535            uitext (concatword "^f8/newmap " (? (!= $UI_mapscale 10) $UI_mapscale)) 0.7
536            uialign* -1 0
537            uioutline $c_line ; uiclamp- 1 1 1 1
538         ]
539         uifill 0 0.025
540         uihlist 0.01 [
541            uitext "MapScale" 0.6
542            UIhslider UI_mapscale 10 16 1 0.5 0.032 [uitext $UI_mapscale 0.6]
543            uialign* -1 0
544         ]
545         uifill 0 0.025
546         UIbutton "" [uitext (concatword (? (= $isconnected 1) (? (! $editing) "^f4")) "New") 0.6] 0.12 0.06 [hideui "newmap" ; newmap $UI_mapscale]
547      ]
548   ]
549] [] [] [] "New Map"
550
551///////////////////////////////////////////////////////////////////////////////
552//  F7 Environment Settings                                                  //
553///////////////////////////////////////////////////////////////////////////////
554UI_envtabs = 0
555
556UImenu "env_settings" [
557   uihlist 0 [
558      UIvtab 0.2 (*f 0.048 7) UI_envtabs [
559         0 "Lighting" []
560         1 "Sky"      []
561         2 [@@(concatword (? (! $atmo) "^f4") "Dynamic-Sky")] []
562         3 "Fog"      []
563         4 "Water"    []
564         5 "Lava"     []
565         6 "Glass"    []
566      ] 1
567      uialign- 0 -1
568      UIbar 0 1
569      uifill 0.02
570      uiscroll 0.67 0.6 [
571         uifill 0.67 0.6 [
572            uialign 0 -1
573            uitable 0 0 [
574               uialign -1 -1
575               case $UI_envtabs 0 [//Lighting//////////////////////////////////////////////////////
576                  uitablerow [
577                     UIbutton "" [uitext "Lighting" 0.8] 0.25 0.1 [hidetopui]
578                  ]
579               ] 1 [//Sky//////////////////////////////////////////////////////////////////////////
580                  uitablerow [
581                     UIbutton "" [uitext "Sky" 0.8] 0.25 0.1 [hidetopui]
582                  ]
583               ] 2 [//Dynamic-Sky//////////////////////////////////////////////////////////////////
584                  uitablerow [
585                     UIbutton "" [uitext "Dynamic-Sky" 0.8] 0.25 0.1 [hidetopui]
586                  ]
587               ] 3 [//Fog//////////////////////////////////////////////////////////////////////////
588                  uitablerow [
589                     UIbutton "" [uitext "Fog" 0.8] 0.25 0.1 [hidetopui]
590                  ]
591               ] 4 [//Water////////////////////////////////////////////////////////////////////////
592                  uitablerow [
593                     UIbutton "" [uitext "Water" 0.8] 0.25 0.1 [hidetopui]
594                  ]
595               ] 5 [//Lava/////////////////////////////////////////////////////////////////////////
596                  uitablerow [
597                     UIbutton "" [uitext "Lava" 0.8] 0.25 0.1 [hidetopui]
598                  ]
599               ] 6 [//Glass////////////////////////////////////////////////////////////////////////
600                  uitablerow [
601                     UIbutton "" [uitext "Glass" 0.8] 0.25 0.1 [hidetopui]
602                  ]
603               ]
604            ]
605         ]
606      ]
607      UIvscroll 0.02 0.6 1.421 0.5
608   ]
609] [] [] [] "Environment Settings"
610
611///////////////////////////////////////////////////////////////////////////////
612//  F8 World Geometry Prefab                                                 //
613///////////////////////////////////////////////////////////////////////////////
614UImenu "geo_prefab" [
615   uifill 0.5 0.5 [
616      UIbutton "" [uitext "ToDo" 0.8] 0.3 0.2 [hidetopui]
617   ]
618] [] [] [] "World Geometry Prefab"
619
620///////////////////////////////////////////////////////////////////////////////
621//  F9 Miscellaneous Editing                                                 //
622///////////////////////////////////////////////////////////////////////////////
623UImenu "misc_editing" [
624   uifill 0.5 0.5 [
625      UIbutton "" [uitext "ToDo" 0.8] 0.3 0.2 [hidetopui]
626   ]
627] [] [] [] "Miscellaneous Editing"
628
629///////////////////////////////////////////////////////////////////////////////
630//  F10 Default Keybind Reference                                            //
631///////////////////////////////////////////////////////////////////////////////
632// UI_keyref 1:MODE(0=none,1=game,2=edit,3=move) 2:WIDTH(0=default) 3:HEIGHT(0=default) 4:NAME1 5:NAME2 6:TEXTSIZE(0=default)
633// UI_keyref * 0.027 0.027 "*"    (Key Reference)
634UI_keyref = [
635   if $arg2 [] [arg2 = 0.04]
636   if $arg3 [] [arg3 = 0.04]
637   if $arg6 [] [arg6 = 0.5]
638   uicolor (at [0x505050 0x496F37 0x2A707B 0x955524] $arg1) $arg2 $arg3 [
639      if $arg5 [
640         uivlist 0 [uitext $arg4 $arg6 ; uitext $arg5 $arg6]
641      ] [
642         uitext $arg4 $arg6
643      ]
644   ]
645]
646
647UImenu "editbind_reference" [
648   uispace 0.005 0.005 [
649      uivlist 0 [
650         uihlist 0 [
651            uigrid 3 0 0 [
652               looplist a [
653                  "^f9ESC"      "^f4 = " "^f9Main ^f4(Menu)"
654                  "^f8F1"       "^f4 = " "^f8Add/Edit Entity ^f4(Menu)"
655                  "^f8F2"       "^f4 = " "^f8Texture List ^f4(Menu)"
656                  "^f8F3"       "^f4 = " "^f8Add Mapmodel ^f4(Menu)"
657                  "^f8F4"       "^f4 = " "^f8Material Volume ^f4(Menu)"
658                  " "           " "      " "
659                  "^f8F5"       "^f4 = " "^f8Savemap ^f4(Menu)"
660                  "^f9F6"       "^f4 = " "^f9Loadmap ^f4(Menu)"
661                  "^f8F7"       "^f4 = " "^f8Environment Settings ^f4(Menu)"
662                  "^f8F8"       "^f4 = " "^f8World Geometry Prefab ^f4(Menu)"
663                  " "           " "      " "
664                  "^f8F9"       "^f4 = " "^f8Miscellaneous Editing ^f4(Menu)"
665                  "^f8F10"      "^f4 = " "^f8Keybind Reference ^f4(Menu)"
666                  "^f9F11"      "^f4 = " "^f9Show Console"
667                  "^f9F12"      "^f4 = " "^f9Take Screenshot"
668                  " "           " "      " "
669                  "^f9Pause"    "^f4 = " "^f9Pause Game"
670                  " "           " "      " "
671                  "^f8Delete"   "^f4 = " "^f8Editdelete"
672                  "^f8Home"     "^f4 = " "^f8Goto selection"
673                  "^f8End"      "^f4 = " "^f8Goto selected entities"
674                  " "           " "      "^f4(Hold & Mousewheel)"
675                  "^f8PageUp"   "^f4 = " "^f8Console scroll up"
676                  "^f8PageDown" "^f4 = " "^f8Console scroll to end"
677               ] [uitext $a 0.42]
678            ]
679            uispace 0.01 0 [UIbar 0 1 ; uiclamp 1 1 1 1]
680            uigrid 3 0 0 [
681               looplist a [
682                  "^f8`" "^f4 = " "^f8Saycommand"
683                  "^f81" "^f4 = " "^f8Edit Entity Attribute 0"
684                  " "    " "      "^f4(Hold & Mousewheel)"
685                  "^f82" "^f4 = " "^f8Edit Entity Attribute 1"
686                  " "    " "      "^f4(Hold & Mousewheel)"
687                  "^f83" "^f4 = " "^f8Edit Entity Attribute 2"
688                  " "    " "      "^f4(Hold & Mousewheel)"
689                  "^f84" "^f4 = " "^f8Edit Entity Attribute 3"
690                  " "    " "      "^f4(Hold & Mousewheel)"
691                  "^f85" "^f4 = " "^f8Edit Entity Attribute 4"
692                  " "    " "      "^f4(Hold & Mousewheel)"
693                  "^f86" "^f4 = " "^f8Toggle texture allfaces"
694                  "^f87" "^f4 = " "^f8Toggle entity snapping"
695                  "^f88" "^f4 = " "^f8Toggle entity editing"
696                  "^f89" "^f4 = " "^f8Edit selected entity in console"
697                  "^f90" "^f4 = " "^f9Show Master Menu"
698                  "^f8-" "^f4 = " "^f8Toggle outline"
699                  "^f8=" "^f4 = " "^f8Toggle wireframe"
700                  " "    " "      " "
701                  "^f8Q" "^f4 = " "^f8Push geometry corner pointed at"
702                  " "    " "      "^f4(Hold & Mousewheel)"
703                  "^f9E" "^f4 = " "^f9Edittoggle"
704                  "^f8R" "^f4 = " "^f8Rotate geometry/blend-brush"
705                  " "    " "      "^f4(Hold & Mousewheel)"
706                  "^f9T" "^f4 = " "^f9Chat"
707                  "^f8Y" "^f4 = " "^f8Scroll through textures"
708                  " "    " "      "^f4(Hold & Mousewheel)"
709                  "^f8U" "^f4 = " "^f8Undo"
710                  "^f8I" "^f4 = " "^f8Redo"
711                  "^f8O" "^f4 = " "^f8Texture offset horizontal ^f4(vslot)"
712                  " "    " "      "^f4(Hold & Mousewheel)"
713                  "^f8P" "^f4 = " "^f8Texture offset vertical ^f4(vslot)"
714                  " "    " "      "^f4(Hold & Mousewheel)"
715               ] [uitext $a 0.42]
716            ]
717            uispace 0.01 0 [UIbar 0 1 ; uiclamp 1 1 1 1]
718            uigrid 3 0 0 [
719               looplist a [
720                  "^f8F"          "^f4 = " "^f8Push face/corner selected"
721                  " "             " "      "^f4(Hold & Mousewheel)"
722                  "^f8G"          "^f4 = " "^f8Change gridsize"
723                  " "             " "      "^f4(Hold & Mousewheel)"
724                  "^f8H"          "^f4 = " "^f8Toggle heightmap mode"
725                  "^f8K"          "^f4 = " "^f8Calculate Lighting/Remip/Smoothing"
726                  "^f8L"          "^f4 = " "^f8Toggle fullbright"
727                  " "             " "      " "
728                  "^f8Z"          "^f4 = " "^f8Repeat last saycommand"
729                  "^f8X"          "^f4 = " "^f8Mirror Selection"
730                  "^f8C"          "^f4 = " "^f8Copy Selection"
731                  "^f8V"          "^f4 = " "^f8Paste Selection"
732                  "^f8B"          "^f4 = " "^f8Change heightmap mode brush"
733                  " "             " "      "^f4(Hold & Mousewheel)"
734                  "^f8N"          "^f4 = " "^f8Find all entities of selected type"
735                  "^f8M"          "^f4 = " "^f8Toggle show material volumes"
736                  "^f8,"          "^f4 = " "^f8Rotate texture ^f4(vslot)"
737                  " "             " "      "^f4(Hold & Mousewheel)"
738                  "^f8."          "^f4 = " "^f8Scale texture ^f4(vslot)"
739                  " "             " "      "^f4(Hold & Mousewheel)"
740                  " "             " "      " "
741                  "^f9TAB"        "^f4 = " "^f9Show scoreboard"
742                  "^f8Left SHIFT" "^f4 = " "^f8Floatspeed 1000"
743                  " "             " "      "^f4(Hold)"
744                  "^f8Left CTRL"  "^f4 = " "^f8Select passthrough"
745                  "^f8Left ALT"   "^f4 = " "^f8Edit entity x10"
746                  " "             " "      "^f4(Hold with 1,2,3,4,5)"
747                  "^f8SPACE"      "^f4 = " "^f8Cancel Selection"
748                  "^f8Right ALT"  "^f4 = " "^f8Texture offset by 32px"
749                  " "             " "      "^f4(Default 16px)"
750                  " "             " "      "^f4(Hold with O or P)"
751                  "^f9ENTER"      "^f4 = " "^f9Chat"
752               ] [uitext $a 0.42]
753            ]
754            uispace 0.01 0 [UIbar 0 1 ; uiclamp 1 1 1 1]
755            uigrid 3 0 0 [
756               looplist a [
757                  "^f8KP 0"          "^f4 = " "^f8Exit paint blendmap"
758                  "^f8KP 2"          "^f4 = " "^f8Paint"
759                  "^f8KP 5"          "^f4 = " "^f8Erase"
760                  "^f8KP 8"          "^f4 = " "^f8Select blendbrush -"
761                  "^f8KP 9"          "^f4 = " "^f8Select blendbrush +"
762                  "^f8KP +"          "^f4 = " "^f8Toggle selection move/cut"
763                  "^f8KP /"          "^f4 = " "^f8Floatspeed 10"
764                  "^f8KP *"          "^f4 = " "^f8Floatspeed 50"
765                  "^f8KP -"          "^f4 = " "^f8Floatspeed 100"
766                  "^f8KP ENTER"      "^f4 = " "^f8Select entities within"
767                  " "                " "      "^f8selection volume"
768                  " "                " "      " "
769                  "^f8Mouse Left"    "^f4 = " "^f8Select geometry/entities"
770                  "^f8Mouse Middle"  "^f4 = " "^f8Select corners"
771                  "^f8Mouse Right"   "^f4 = " "^f8Select extend/move/cut"
772                  "^f8Mouse Scroll"  "^f4 = " "^f8Push Geometry"
773                  "^f8Mouse Back"    "^f4 = " "^f8Toggle selection move/cut"
774                  "^f8Mouse Forward" "^f4 = " "^f8Toggle selection move/cut"
775               ] [uitext $a 0.42]
776            ]
777            uialign* -1 -1
778         ]
779         uifill 0 0.01
780         uivlist 0.003 [
781            uihlist 0.003 [
782               UI_keyref 1 0     0 "ESC"
783               uifill 0.03 0.04
784               UI_keyref 2 0     0 "F1"
785               UI_keyref 2 0     0 "F2"
786               UI_keyref 2 0     0 "F3"
787               UI_keyref 2 0     0 "F4"
788               uifill 0.02 0.04
789               UI_keyref 2 0     0 "F5"
790               UI_keyref 1 0     0 "F6"
791               UI_keyref 2 0     0 "F7"
792               UI_keyref 2 0     0 "F8"
793               uifill 0.02 0.04
794               UI_keyref 2 0     0 "F9"
795               UI_keyref 2 0     0 "F10"
796               UI_keyref 1 0     0 "F11"
797               UI_keyref 1 0     0 "F12"
798               uifill 0.01 0.04
799               UI_keyref 0 0     0 "Print"  "Screen" 0.32
800               UI_keyref 0 0     0 "Scroll" "Lock"   0.32
801               UI_keyref 1 0     0 "Pause"  ""       0.32
802            ]
803            uifill 0 0.01
804            uihlist 0.003 [
805               UI_keyref 1 0     0 "`"
806               UI_keyref 2 0     0 "1"
807               UI_keyref 2 0     0 "2"
808               UI_keyref 2 0     0 "3"
809               UI_keyref 2 0     0 "4"
810               UI_keyref 2 0     0 "5"
811               UI_keyref 2 0     0 "6"
812               UI_keyref 2 0     0 "7"
813               UI_keyref 2 0     0 "8"
814               UI_keyref 2 0     0 "9"
815               UI_keyref 1 0     0 "0"
816               UI_keyref 2 0     0 "-"
817               UI_keyref 2 0     0 "="
818               UI_keyref 0 0.076 0 "BACK"
819               uifill 0.01 0.04
820               UI_keyref 0 0     0 "Insert" ""     0.32
821               UI_keyref 2 0     0 "Home"   ""     0.32
822               UI_keyref 1 0     0 "Page"   "Up"   0.32
823               uifill 0.01 0.04
824               UI_keyref 0 0     0 "Num"    "Lock" 0.32
825               UI_keyref 2 0     0 "/"
826               UI_keyref 2 0     0 "*"
827               UI_keyref 2 0     0 "-"
828            ]
829            uihlist 0.003 [
830               UI_keyref 1 0.060 0 "TAB"
831               UI_keyref 2 0     0 "Q"
832               UI_keyref 3 0     0 "W"
833               UI_keyref 1 0     0 "E"
834               UI_keyref 2 0     0 "R"
835               UI_keyref 1 0     0 "T"
836               UI_keyref 2 0     0 "Y"
837               UI_keyref 2 0     0 "U"
838               UI_keyref 2 0     0 "I"
839               UI_keyref 2 0     0 "O"
840               UI_keyref 2 0     0 "P"
841               UI_keyref 0 0     0 "["
842               UI_keyref 0 0     0 "]"
843               UI_keyref 0 0.056 0 "\"
844               uifill 0.01 0.04
845               UI_keyref 2 0     0 "Delete" ""     0.32
846               UI_keyref 2 0     0 "End"    ""     0.32
847               UI_keyref 1 0     0 "Page"   "Down" 0.32
848               uifill 0.01 0.04
849               UI_keyref 0 0     0 "7"
850               UI_keyref 2 0     0 "8"
851               UI_keyref 2 0     0 "9"
852               UI_keyref 2 0     0 "+"
853            ]
854            uihlist 0.003 [
855               UI_keyref 0 0.072 0 "CAPS"
856               UI_keyref 3 0     0 "A"
857               UI_keyref 3 0     0 "S"
858               UI_keyref 3 0     0 "D"
859               UI_keyref 2 0     0 "F"
860               UI_keyref 2 0     0 "G"
861               UI_keyref 2 0     0 "H"
862               UI_keyref 0 0     0 "J"
863               UI_keyref 2 0     0 "K"
864               UI_keyref 2 0     0 "L"
865               UI_keyref 0 0     0 ";"
866               UI_keyref 0 0     0 "'"
867               UI_keyref 1 0.087 0 "ENTER"
868               uifill 0.152 0.04
869               UI_keyref 0 0     0 "4"
870               UI_keyref 2 0     0 "5"
871               UI_keyref 0 0     0 "6"
872             //UI_keyref 2 0     0 "+"
873            ]
874            uihlist 0.003 [
875               UI_keyref 2 0.100 0 "L SHIFT"
876               UI_keyref 2 0     0 "Z"
877               UI_keyref 2 0     0 "X"
878               UI_keyref 2 0     0 "C"
879               UI_keyref 2 0     0 "V"
880               UI_keyref 2 0     0 "B"
881               UI_keyref 2 0     0 "N"
882               UI_keyref 2 0     0 "M"
883               UI_keyref 2 0     0 ","
884               UI_keyref 2 0     0 "."
885               UI_keyref 0 0     0 "/"
886               UI_keyref 0 0.102 0 "R SHIFT"
887               uifill 0.053 0.04
888               uicolor 0x955524 0.04 0.04 [UItriangle 0 0.01 0.01 0]
889               uifill 0.053 0.04
890               UI_keyref 0 0     0 "1"
891               UI_keyref 2 0     0 "2"
892               UI_keyref 0 0     0 "3"
893               UI_keyref 2 0     0 "ENTER" "" 0.32
894            ]
895            uihlist 0.003 [
896               UI_keyref 2 0.070 0 "LCTRL"
897               uifill 0.0585 0.04
898               UI_keyref 2 0.060 0 "LALT"
899               UI_keyref 2 0.240 0 "SPACE"
900               UI_keyref 2 0.060 0 "RALT"
901               uifill 0.0585 0.04
902               UI_keyref 0 0.070 0 "RCTRL"
903               uifill 0.01 0.04
904               uicolor 0x955524 0.04 0.04 [UItriangle 0 0.01 0.01 90]
905               uicolor 0x955524 0.04 0.04 [UItriangle 0 0.01 0.01 180]
906               uicolor 0x955524 0.04 0.04 [UItriangle 0 0.01 0.01 270]
907               uifill 0.010 0.04
908               UI_keyref 2 0.083 0 "0"
909               UI_keyref 0 0     0 "."
910             //UI_keyref 2 0     0 "ENTER" "" 0.32
911            ]
912            uialign* -1 -1
913         ]
914      ]
915   ]
916] [] [] [] "Default Editbind Reference"
917
918UImenu "gamebind_reference" [
919   uispace 0.005 0.005 [
920      uivlist 0 [
921         uihlist 0 [
922            uigrid 3 0 0 [
923               looplist a [
924                  "^f9ESC"        "^f4 = " "^f9Main ^f4(Menu)"
925                  " "             " "      " "
926                  "^f9F6"         "^f4 = " "^f9Loadmap ^f4(Menu)"
927                  "^f9F10"        "^f4 = " "^f9Keybind Reference ^f4(Menu)"
928                  "^f9F11"        "^f4 = " "^f9Show Console"
929                  "^f9F12"        "^f4 = " "^f9Take Screenshot"
930                  " "             " "      " "
931                  "^f9Pause"      "^f4 = " "^f9Pause Game"
932                  " "             " "      " "
933                  "^f9PageUp"     "^f4 = " "^f9Console scroll up"
934                  "^f9PageDown"   "^f4 = " "^f9Console scroll to end"
935                  " "             " "      " "
936                  "^f9TAB"        "^f4 = " "^f9Show scoreboard"
937                  "^f9Left SHIFT" "^f4 = " "^f9Crouch ^f4(Hold)"
938                  "^f9Left CTRL"  "^f4 = " "^f9Crouch ^f4(Hold)"
939                  "^f9SPACE"      "^f4 = " "^f9Jump"
940                  "^f9ENTER"      "^f4 = " "^f9Chat"
941               ] [uitext $a 0.42]
942            ]
943            uispace 0.01 0 [UIbar 0 1 ; uiclamp 1 1 1 1]
944            uigrid 3 0 0 [
945               looplist a [
946                  "^f9`" "^f4 = " "^f9Saycommand"
947                  "^f91" "^f4 = " "^f9Use Rifle"
948                  "^f92" "^f4 = " "^f9Use Rocket"
949                  "^f90" "^f4 = " "^f9Show Master Menu"
950                  " "    " "    " "
951                  "^f9E" "^f4 = " "^f9Edittoggle"
952                  "^f9R" "^f4 = " "^f9Drop Flag"
953                  "^f9T" "^f4 = " "^f9Chat"
954                  "^f9Y" "^f4 = " "^f9Team Chat"
955                  " "    " "    " "
956                  "^f9F" "^f4 = " "^f9Melee attack"
957                  " "    " "    " "
958                  "^f9Z" "^f4 = " "^f9Toggle zoom"
959               ] [uitext $a 0.42]
960            ]
961            uispace 0.01 0 [UIbar 0 1 ; uiclamp 1 1 1 1]
962            uigrid 3 0 0 [
963               looplist a [
964                  "^f9Mouse Left"        "^f4 = " "^f9Attack"
965                  "^f9Mouse Middle"      "^f4 = " "^f9Melee"
966                  "^f9Mouse Right"       "^f4 = " "^f9Zoom"
967                  " "                    " "    " "
968                  "^f9Mouse Scroll-Up"   "^f4 = " "^f9Use Rocket"
969                  "^f9Mouse Scroll-Down" "^f4 = " "^f9Use Rifle"
970                  " "                    " "    " "
971                  "^f9Mouse Back"        "^f4 = " "^f9Melee"
972                  "^f9Mouse Forward"     "^f4 = " "^f9Melee"
973               ] [uitext $a 0.42]
974            ]
975            uialign* -1 -1
976         ]
977         uifill 0 0.01
978         uivlist 0.003 [
979            uihlist 0.003 [
980               UI_keyref 1 0     0 "ESC"
981               uifill 0.03 0.04
982               UI_keyref 1 0     0 "F1"
983               UI_keyref 0 0     0 "F2"
984               UI_keyref 0 0     0 "F3"
985               UI_keyref 0 0     0 "F4"
986               uifill 0.02 0.04
987               UI_keyref 0 0     0 "F5"
988               UI_keyref 1 0     0 "F6"
989               UI_keyref 0 0     0 "F7"
990               UI_keyref 0 0     0 "F8"
991               uifill 0.02 0.04
992               UI_keyref 0 0     0 "F9"
993               UI_keyref 1 0     0 "F10"
994               UI_keyref 1 0     0 "F11"
995               UI_keyref 1 0     0 "F12"
996               uifill 0.01 0.04
997               UI_keyref 0 0     0 "Print"  "Screen" 0.32
998               UI_keyref 0 0     0 "Scroll" "Lock"   0.32
999               UI_keyref 1 0     0 "Pause"  ""       0.32
1000            ]
1001            uifill 0 0.01
1002            uihlist 0.003 [
1003               UI_keyref 1 0     0 "`"
1004               UI_keyref 1 0     0 "1"
1005               UI_keyref 1 0     0 "2"
1006               UI_keyref 0 0     0 "3"
1007               UI_keyref 0 0     0 "4"
1008               UI_keyref 0 0     0 "5"
1009               UI_keyref 0 0     0 "6"
1010               UI_keyref 0 0     0 "7"
1011               UI_keyref 0 0     0 "8"
1012               UI_keyref 0 0     0 "9"
1013               UI_keyref 1 0     0 "0"
1014               UI_keyref 0 0     0 "-"
1015               UI_keyref 0 0     0 "="
1016               UI_keyref 0 0.076 0 "BACK"
1017               uifill 0.01 0.04
1018               UI_keyref 0 0     0 "Insert" ""     0.32
1019               UI_keyref 0 0     0 "Home"   ""     0.32
1020               UI_keyref 1 0     0 "Page"   "Up"   0.32
1021               uifill 0.01 0.04
1022               UI_keyref 0 0     0 "Num"    "Lock" 0.32
1023               UI_keyref 0 0     0 "/"
1024               UI_keyref 0 0     0 "*"
1025               UI_keyref 0 0     0 "-"
1026            ]
1027            uihlist 0.003 [
1028               UI_keyref 1 0.060 0 "TAB"
1029               UI_keyref 0 0     0 "Q"
1030               UI_keyref 3 0     0 "W"
1031               UI_keyref 1 0     0 "E"
1032               UI_keyref 1 0     0 "R"
1033               UI_keyref 1 0     0 "T"
1034               UI_keyref 1 0     0 "Y"
1035               UI_keyref 0 0     0 "U"
1036               UI_keyref 0 0     0 "I"
1037               UI_keyref 0 0     0 "O"
1038               UI_keyref 0 0     0 "P"
1039               UI_keyref 0 0     0 "["
1040               UI_keyref 0 0     0 "]"
1041               UI_keyref 0 0.056 0 "\"
1042               uifill 0.01 0.04
1043               UI_keyref 0 0     0 "Delete" ""     0.32
1044               UI_keyref 0 0     0 "End"    ""     0.32
1045               UI_keyref 1 0     0 "Page"   "Down" 0.32
1046               uifill 0.01 0.04
1047               UI_keyref 0 0     0 "7"
1048               UI_keyref 0 0     0 "8"
1049               UI_keyref 0 0     0 "9"
1050               UI_keyref 0 0     0 "+"
1051            ]
1052            uihlist 0.003 [
1053               UI_keyref 0 0.072 0 "CAPS"
1054               UI_keyref 3 0     0 "A"
1055               UI_keyref 3 0     0 "S"
1056               UI_keyref 3 0     0 "D"
1057               UI_keyref 1 0     0 "F"
1058               UI_keyref 0 0     0 "G"
1059               UI_keyref 0 0     0 "H"
1060               UI_keyref 0 0     0 "J"
1061               UI_keyref 0 0     0 "K"
1062               UI_keyref 0 0     0 "L"
1063               UI_keyref 0 0     0 ";"
1064               UI_keyref 0 0     0 "'"
1065               UI_keyref 1 0.087 0 "ENTER"
1066               uifill 0.152 0.04
1067               UI_keyref 0 0     0 "4"
1068               UI_keyref 0 0     0 "5"
1069               UI_keyref 0 0     0 "6"
1070             //UI_keyref 0 0     0 "+"
1071            ]
1072            uihlist 0.003 [
1073               UI_keyref 1 0.100 0 "L SHIFT"
1074               UI_keyref 1 0     0 "Z"
1075               UI_keyref 0 0     0 "X"
1076               UI_keyref 0 0     0 "C"
1077               UI_keyref 0 0     0 "V"
1078               UI_keyref 0 0     0 "B"
1079               UI_keyref 0 0     0 "N"
1080               UI_keyref 0 0     0 "M"
1081               UI_keyref 0 0     0 ","
1082               UI_keyref 0 0     0 "."
1083               UI_keyref 0 0     0 "/"
1084               UI_keyref 0 0.102 0 "R SHIFT"
1085               uifill 0.053 0.04
1086               uicolor 0x955524 0.04 0.04 [UItriangle 0 0.01 0.01 0]
1087               uifill 0.053 0.04
1088               UI_keyref 0 0     0 "1"
1089               UI_keyref 0 0     0 "2"
1090               UI_keyref 0 0     0 "3"
1091               UI_keyref 0 0     0 "ENTER" "" 0.32
1092            ]
1093            uihlist 0.003 [
1094               UI_keyref 1 0.070 0 "LCTRL"
1095               uifill 0.0585 0.04
1096               UI_keyref 0 0.060 0 "LALT"
1097               UI_keyref 1 0.240 0 "SPACE"
1098               UI_keyref 0 0.060 0 "RALT"
1099               uifill 0.0585 0.04
1100               UI_keyref 0 0.070 0 "RCTRL"
1101               uifill 0.01 0.04
1102               uicolor 0x955524 0.04 0.04 [UItriangle 0 0.01 0.01 90]
1103               uicolor 0x955524 0.04 0.04 [UItriangle 0 0.01 0.01 180]
1104               uicolor 0x955524 0.04 0.04 [UItriangle 0 0.01 0.01 270]
1105               uifill 0.010 0.04
1106               UI_keyref 0 0.083 0 "0"
1107               UI_keyref 0 0     0 "."
1108             //UI_keyref 0 0     0 "ENTER" "" 0.32
1109            ]
1110            uialign* -1 -1
1111         ]
1112      ]
1113   ]
1114] [] [] [] "Default Gamebind Reference"
1115
1116///////////////////////////////////////////////////////////////////////////////
1117//  F11 Fullscreen Console                                                   //
1118///////////////////////////////////////////////////////////////////////////////
1119newui "fullconsole" [
1120   uiallowinput 0
1121   uiclamp 1 1
1122   uialign 0 -1
1123   uicolor $c_menu_a 0 0 [
1124      uispace $UIwindow_padding $UIwindow_padding [
1125         uiclamp 1 1 1 1
1126         uiconsole 0 (divf $fullconsize 100) [uiclamp 1 1]
1127      ]
1128      uioutline $c_line ; uiclamp- 1 1 1 1
1129   ]
1130   uiclamp* 1 1 1 1
1131]
1132