Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / ryzom / client / mods / syui_v3 / syui / compass.xml
blob674b7a749d3c18286af9aded2786392dae2d45d6
1 <interface_config>
2   <root id="interface"
3         x="0"
4         y="0"
5         w="800"
6         h="600"
7         active="true" />
8   <variable entry="UI:SAVE:RADARZOOM"
9             type="sint64"
10             value="1" />
11   <variable entry="UI:SAVE:MP3_VOLUME"
12             type="sint64"
13             value="255" />
14   <!--******************-->
15   <!--*   MP3 PLAYER   *-->
16   <!--******************-->
17   <proc id="mp3_player_active">
18     <action handler="set"
19             params="dblink=UI:VARIABLES:ISACTIVE:MP3PLAYER|value=1" />
20   </proc>
21   <proc id="mp3_player_deactive">
22     <action handler="set"
23             params="dblink=UI:VARIABLES:ISACTIVE:MP3PLAYER|value=0" />
24   </proc>
25   <group type="menu"
26          id="mp3_player_menu"
27          extends="base_menu_with_color"></group>
28   <group type="modal"
29          id="playlist"
30          posparent="mp3_player"
31          posref="BM TM"
32          w="234"
33          h="256"
34          options="layer0"
35          mouse_pos="false"
36          escapable="false"
37          exit_click_out="false"
38          on_active=""
39          on_active_params="">
40     <view type="text"
41           id="title"
42           posref="TL TL"
43           x="4"
44           y="-4"
45           hardtext="uiPlaylistTitle"
46           shadow="true"
47           color="255 255 255 255"
48           fontsize="12" />
49     <ctrl type="button"
50           id="close"
51           button_type="push_button"
52           posref="TR TR"
53           x="-4"
54           y="-4"
55           tx_normal="w_win_close.tga"
56           tx_pushed="w_win_close.tga"
57           tx_over="W_button_14_over.tga"
58           onclick_l="leave_modal"
59           params_l="" />
60   </group>
61   <link expr="@UI:SAVE:MP3_VOLUME"
62         action="music_player"
63         params="volume=@UI:SAVE:MP3_VOLUME" />
64   <group id="mp3_player"
65          type="container_windows"
66          w="206"
67          h="40"
68          header_active="false"
69          resizer="false"
70          right_button="true"
71          movable="true"
72          locked="true"
73          openable="false"
74          win_priority="%win_priority_lowest"
75          savable="true"
76          group_onclick_r="active_menu"
77          group_params_r="menu=ui:interface:mp3_player_menu"
78          on_deactive="proc"
79          on_deactive_params="mp3_player_deactive"
80          on_active="proc"
81          on_active_params="mp3_player_active">
82     <group id="header_closed"
83            x="0"
84            y="0"
85            w="206"
86            h="40"
87            posref="TL TL" />
88     <!-- CONTROLS -->
89     <group id="controls"
90            posref="TL TL"
91            w="206"
92            h="20"
93            y="-6">
94       <!-- Slots of Prev/Play/Pause/Next buttons -->
95       <view id="slot1"
96             type="bitmap"
97             posref="ML ML"
98             x="8"
99             y="-1"
100             texture="mp3_button_slot.tga" />
101       <view id="slot2"
102             type="bitmap"
103             posref="TR TL"
104             posparent="slot1"
105             x="2"
106             y="0"
107             texture="mp3_button_slot.tga" />
108       <view id="slot3"
109             type="bitmap"
110             posref="TR TL"
111             posparent="slot2"
112             x="2"
113             y="0"
114             texture="mp3_button_slot.tga" />
115       <view id="slot4"
116             type="bitmap"
117             posref="TR TL"
118             posparent="slot3"
119             x="2"
120             y="0"
121             texture="mp3_button_slot.tga" />
122       <!-- Prev/Play/Pause/Next Buttons -->
123       <ctrl type="button"
124             id="but_prev"
125             button_type="push_button"
126             posref="MM MM"
127             posparent="slot1"
128             tx_normal="mp3_button_previous.tga"
129             tx_pushed="mp3_button_previous.tga"
130             tx_over="mp3_button_over.tga"
131             onclick_l="music_player"
132             params_l="previous"
133             tooltip="uiMP3Prev" />
134       <ctrl type="button"
135             id="but_play"
136             button_type="push_button"
137             posref="MM MM"
138             posparent="slot2"
139             tx_normal="mp3_button_play.tga"
140             tx_pushed="mp3_button_play.tga"
141             tx_over="mp3_button_over.tga"
142             onclick_l="music_player"
143             params_l="play"
144             tooltip="uiMP3Play" />
145       <ctrl type="button"
146             id="but_pause"
147             button_type="push_button"
148             posref="MM MM"
149             posparent="slot3"
150             tx_normal="mp3_button_pause.tga"
151             tx_pushed="mp3_button_pause.tga"
152             tx_over="mp3_button_over.tga"
153             onclick_l="music_player"
154             params_l="pause"
155             tooltip="uiMP3Pause" />
156       <ctrl type="button"
157             id="but_next"
158             button_type="push_button"
159             posref="MM MM"
160             posparent="slot4"
161             tx_normal="mp3_button_next.tga"
162             tx_pushed="mp3_button_next.tga"
163             tx_over="mp3_button_over.tga"
164             onclick_l="music_player"
165             params_l="next"
166             tooltip="uiMP3Next" />
167       <!-- Volume -->
168       <view type="bitmap"
169             id="vol_jauge"
170             posparent="slot4"
171             posref="TR TL"
172             x="2"
173             texture="mp3_vol_jauge.tga" />
174       <group id="volume_control"
175              posparent="slot4"
176              posref="MR ML"
177              x="4"
178              y="-3"
179              w="48"
180              h="20">
181         <view type="bitmap"
182               id="bk"
183               posref="ML ML"
184               scale="true"
185               y="-1"
186               w="48"
187               h="2"
188               texture="W_line_hor2.tga" />
189         <ctrl type="scroll"
190               id="c"
191               posparent="bk"
192               posref="MM MM"
193               x="0"
194               y="-1"
195               w="48"
196               h="8"
197               vertical="false"
198               align="L"
199               min="0"
200               max="255"
201               tracksize="8"
202               value="UI:SAVE:MP3_VOLUME"
203               tx_topright="w_scroll_R.tga"
204               tx_middle="w_scroll_l123_m.tga"
205               tx_bottomleft="w_scroll_L.tga"
206               onscroll=""
207               params="" />
208       </group>
209       <!-- Slots of Open/Playlist buttons -->
210       <view id="slot5"
211             type="bitmap"
212             posref="MR ML"
213             posparent="volume_control"
214             x="4"
215             y="3"
216             texture="mp3_button_slot.tga" />
217       <!--
218     <view id="slot6" type="bitmap" posref="TR TL" posparent="slot5" x="2" y="0" texture="mp3_button_slot.tga" />
219                 -->
220       <!-- Open/Playlist buttons -->
221       <ctrl type="button"
222             id="but_open"
223             button_type="push_button"
224             posref="MM MM"
225             posparent="slot5"
226             tx_normal="mp3_button_open.tga"
227             tx_pushed="mp3_button_open.tga"
228             tx_over="mp3_button_over.tga"
229             onclick_l="music_player"
230             params_l="play_songs"
231             tooltip="uiMP3Open" />
232       <!--
233                 <ctrl type="button" id="but_list" button_type="push_button" posref="MM MM" posparent="slot6"
234       tx_normal="mp3_button_list.tga" tx_pushed="mp3_button_list.tga" tx_over="mp3_button_over.tga"
235                         onclick_l="enter_modal" params_l="group=ui:interface:playlist" tooltip="uiMP3Playlist" />
236                 -->
237       <!-- TOOLTIPS -->
238       <ctrl type="tooltip"
239             id="volumett"
240             tooltip="uiMP3Volume"
241             posparent="volume_control"
242             posref="TL TL"
243             w="48"
244             h="20" />
245     </group>
246     <!-- SCREEN -->
247     <group id="screen"
248            posref="BM BM"
249            w="190"
250            h="20"
251            y="8">
252       <instance template="box_widget"
253                 id="box"
254                 posref="TL TL"
255                 sizeref="wh"
256                 w="0"
257                 h="0" />
258       <view type="text"
259             id="text"
260             posref="ML ML"
261             x="2"
262             y="-2"
263             color="255 255 255 255"
264             global_color="false"
265             fontsize="10"
266             line_maxw="182"
267             shadow="true"
268             hardtext="uiNoFiles" />
269     </group>
270   </group>
271   <tree node="mp3_player" />
272   <!--***************-->
273   <!--*   COMPASS   *-->
274   <!--***************-->
275   <variable type="float"
276             entry="UI:VARIABLES:DIRECTION" />
277   <proc id="compass_proc_active">
278     <action handler="set"
279             params="target_property=ui:interface:compass:arrow3d:cam:posx|value=0.0" />
280     <action handler="set"
281             params="target_property=ui:interface:compass:arrow3d:cam:posy|value=-0.01" />
282     <action handler="set"
283             params="target_property=ui:interface:compass:arrow3d:cam:posz|value=2.5" />
284     <action handler="set"
285             params="target_property=ui:interface:compass:arrow3d:cam:tgtx|value=0.0" />
286     <action handler="set"
287             params="target_property=ui:interface:compass:arrow3d:cam:tgty|value=0.0" />
288     <action handler="set"
289             params="target_property=ui:interface:compass:arrow3d:cam:tgtz|value=0.0" />
290     <action handler="set"
291             params="target_property=ui:interface:compass:arrow3d:cam:fov|value=30.0" />
292     <action handler="set"
293             params="dblink=UI:VARIABLES:ISACTIVE:COMPAS|value=1" />
294     <!--<action handler="set" params="target_property=ui:interface:compass:arrow3d:arrow:diffuse|value=135.0" />-->
295   </proc>
296   <proc id="compas_proc_deactive">
297     <action handler="set"
298             params="dblink=UI:VARIABLES:ISACTIVE:COMPAS|value=0" />
299   </proc>
300   <proc id="radar_proc_zoom_in">
301     <action handler="set"
302             cond="ne(@UI:SAVE:RADARZOOM,0)"
303             params="dblink=UI:SAVE:RADARZOOM|value=sub(@UI:SAVE:RADARZOOM,1)" />
304   </proc>
305   <proc id="radar_proc_zoom_out">
306     <action handler="set"
307             cond="ne(@UI:SAVE:RADARZOOM,3)"
308             params="dblink=UI:SAVE:RADARZOOM|value=add(@UI:SAVE:RADARZOOM,1)" />
309   </proc>
310   <proc id="radar_proc_zoom">
311     <action handler="set"
312             params="target_property=ui:interface:compass:visuel:range:hardtext|
313                                                                 value=switch(@0, 'uiRadarZoom0', 'uiRadarZoom1', 'uiRadarZoom2', 'uiRadarZoom3')" />
314     <action handler="set"
315             params="target_property=ui:interface:compass:visuel:radar:world_size|
316                                                                 value=switch(@0, 50.0, 100.0, 250.0, 500.0)" />
317   </proc>
318   <group id="compass_menu"
319          type="menu_compas"
320          extends="base_menu_with_color"
321          posref="TL TL"
322          x="0"
323          y="0"
324          mouse_pos="true"
325          exit_click_b="true"
326          force_inside_screen="true"
327          compass="ui:interface:compass">
328     <!-- SubMenus. Add dummy entries first -->
329     <action id="mission"
330             name="uimCompassMissions">
331       <action id="dummy1"
332               name="DUMMY-ERROR" />
333     </action>
334     <action id="land_mark"
335             name="uimCompassLandMarks">
336       <action id="land_mark_misc"
337               name="uiLMMiscColor">
338         <action id="dummy1"
339                 name="DUMMY-ERROR" />
340       </action>
341       <action id="land_mark_tribe"
342               name="uiLMTribeColor">
343         <action id="dummy1"
344                 name="DUMMY-ERROR" />
345       </action>
346       <action id="land_mark_bandit"
347               name="uiLMBanditColor">
348         <action id="dummy1"
349                 name="DUMMY-ERROR" />
350       </action>
351       <action id="land_mark_citizen"
352               name="uiLMCitizenColor">
353         <action id="dummy1"
354                 name="DUMMY-ERROR" />
355       </action>
356       <action id="land_mark_fauna"
357               name="uiLMFaunaColor">
358         <action id="dummy1"
359                 name="DUMMY-ERROR" />
360       </action>
361       <action id="land_mark_faunaexcel"
362               name="uiLMFaunaExcelColor">
363         <action id="dummy1"
364                 name="DUMMY-ERROR" />
365       </action>
366       <action id="land_mark_faunasup"
367               name="uiLMFaunaSupColor">
368         <action id="dummy1"
369                 name="DUMMY-ERROR" />
370       </action>
371       <action id="land_mark_forage"
372               name="uiLMForageColor">
373         <action id="dummy1"
374                 name="DUMMY-ERROR" />
375       </action>
376       <action id="land_mark_forageexcel"
377               name="uiLMForageExcelColor">
378         <action id="dummy1"
379                 name="DUMMY-ERROR" />
380       </action>
381       <action id="land_mark_foragesup"
382               name="uiLMForageSupColor">
383         <action id="dummy1"
384                 name="DUMMY-ERROR" />
385       </action>
386       <action id="land_mark_sap"
387               name="uiLMSapColor">
388         <action id="dummy1"
389                 name="DUMMY-ERROR" />
390       </action>
391       <action id="land_mark_amber"
392               name="uiLMAmberColor">
393         <action id="dummy1"
394                 name="DUMMY-ERROR" />
395       </action>
396       <action id="land_mark_node"
397               name="uiLMNodeColor">
398         <action id="dummy1"
399                 name="DUMMY-ERROR" />
400       </action>
401       <action id="land_mark_fiber"
402               name="uiLMFiberColor">
403         <action id="dummy1"
404                 name="DUMMY-ERROR" />
405       </action>
406       <action id="land_mark_bark"
407               name="uiLMBarkColor">
408         <action id="dummy1"
409                 name="DUMMY-ERROR" />
410       </action>
411       <action id="land_mark_seed"
412               name="uiLMSeedColor">
413         <action id="dummy1"
414                 name="DUMMY-ERROR" />
415       </action>
416       <action id="land_mark_shell"
417               name="uiLMShellColor">
418         <action id="dummy1"
419                 name="DUMMY-ERROR" />
420       </action>
421       <action id="land_mark_resin"
422               name="uiLMResinColor">
423         <action id="dummy1"
424                 name="DUMMY-ERROR" />
425       </action>
426       <action id="land_mark_wood"
427               name="uiLMWoodColor">
428         <action id="dummy1"
429                 name="DUMMY-ERROR" />
430       </action>
431       <action id="land_mark_oil"
432               name="uiLMOilColor">
433         <action id="dummy1"
434                 name="DUMMY-ERROR" />
435       </action>
436       <action id="land_mark_mission"
437               name="uiLMMissionColor">
438         <action id="dummy1"
439                 name="DUMMY-ERROR" />
440       </action>
441       <action id="land_mark_food"
442               name="uiLMFoodColor">
443         <action id="dummy1"
444                 name="DUMMY-ERROR" />
445       </action>
446       <action id="land_mark_construction"
447               name="uiLMConstructionColor">
448         <action id="dummy1"
449                 name="DUMMY-ERROR" />
450       </action>
451       <action id="land_mark_goo"
452               name="uiLMGooColor">
453         <action id="dummy1"
454                 name="DUMMY-ERROR" />
455       </action>
456       <action id="land_mark_insect"
457               name="uiLMInsectColor">
458         <action id="dummy1"
459                 name="DUMMY-ERROR" />
460       </action>
461       <action id="land_mark_kitin"
462               name="uiLMKitinColor">
463         <action id="dummy1"
464                 name="DUMMY-ERROR" />
465       </action>
466       <action id="land_mark_nocive"
467               name="uiLMNociveColor">
468         <action id="dummy1"
469                 name="DUMMY-ERROR" />
470       </action>
471       <action id="land_mark_preservative"
472               name="uiLMPreservativeColor">
473         <action id="dummy1"
474                 name="DUMMY-ERROR" />
475       </action>
476       <action id="land_mark_passage"
477               name="uiLMPassageColor">
478         <action id="dummy1"
479                 name="DUMMY-ERROR" />
480       </action>
481       <action id="land_mark_teleporter"
482               name="uiLMTeleporterColor">
483         <action id="dummy1"
484                 name="DUMMY-ERROR" />
485       </action>
486     </action>
487     <action id="team"
488             name="uimCompassTeam">
489       <action id="dummy1"
490               name="DUMMY-ERROR" />
491     </action>
492     <action id="animal"
493             name="uimCompassAnimal">
494       <action id="dummy1"
495               name="DUMMY-ERROR" />
496     </action>
497     <action id="dialogs"
498             name="uimCompassDialogs">
499       <action id="dummy1"
500               name="DUMMY-ERROR" />
501     </action>
502     <!-- Common Container menu actions -->
503     <separator />
504     <action id="zi"
505             name="uimZoomIn"
506             handler="proc"
507             params="radar_proc_zoom_in" />
508     <action id="zo"
509             name="uimZoomOut"
510             handler="proc"
511             params="radar_proc_zoom_out" />
512     <separator />
513     <!--
514         <action id="lock_unlock" name="uimLockUnlock" handler="lock_unlock" cond="eq(@UI:VARIABLES:GC_POPUP, 1)"/>      
515         <action id="help" name="uimHelp" handler="ic_help" cond="eq(@UI:VARIABLES:GC_HAS_HELP, 1)"/>
516         -->
517   </group>
518   <group id="compass"
519          type="compas"
520          movable="true"
521          w="182"
522          h="150"
523          openable="false"
524          resizer="false"
525          header_active="false"
526          right_button="false"
527          group_onclick_r="active_menu"
528          opened="false"
529          options="compass"
530          on_active="proc"
531          on_active_params="compass_proc_active"
532          on_deactive="proc"
533          on_deactive_params="compas_proc_deactive"
534          group_params_r="menu=ui:interface:compass_menu"
535          north_color="255 255 255 255"
536          selection_color="0 255 0 255"
537          respawn_color="66 66 77 255"
538          home_color="255 0 255 255"
539          continent_landmark_color="0 255 0 255"
540          mission_landmark_color="255 0 255 255"
541          user_landmark_color="255 255 0 255"
542          new_target_selected_color="255 0 0 255"
543          help_page="interf_compass.html">
544     <group id="header_closed"
545            x="0"
546            y="0"
547            w="166"
548            h="156"
549            posref="TL TL">
550       <view id="back_L"
551             type="bitmap"
552             posref="BL BL"
553             texture="Compas_L.tga" />
554       <view id="back_M"
555             type="bitmap"
556             posref="BM BM"
557             scale="true"
558             sizeref="w"
559             w="-8"
560             h="16"
561             texture="Compas_M.tga" />
562       <view id="back_R"
563             type="bitmap"
564             posref="BR BR"
565             texture="Compas_R.tga" />
566     </group>
567     <!-- compass clock -->
568     <group id="clock"
569            posref="TL TL"
570            w="70"
571            h="16"
572            x="4"
573            y="-4">
574       <view type="text"
575             id="time"
576             posref="TL TL"
577             x="0"
578             y="0"
579             color="255 255 255 255"
580             shadow="true"
581             global_color="true"
582             fontsize="11"
583             hardtext="" />
584     </group>
585     <link expr="@UI:SAVE:SHOW_CLOCK"
586           target="clock:active" />
587         <!-- compass fps -->
588         <group id="frame"
589            posref="BL BL"
590            w="50"
591            h="16"
592            x="12"
593            y="18">
594       <view type="text"
595             id="fps"
596             posref="TL TL"
597             x="0"
598             y="0"
599             color="255 255 255 255"
600             shadow="true"
601             global_color="true"
602             fontsize="12"
603             hardtext="" />
604     </group>
605         <link expr="depends(@UI:VARIABLES:PING)"
606             action="lua"
607             params="game:updateFPS()" />
608     <link expr="@UI:SAVE:SHOW_FPS"
609           target="fps:active" />
610     <!-- new mail message notifier -->
611     <group id="mail"
612            posref="BR BR"
613            group_onclick_l="show_hide"
614            group_params_l="mailbox"
615            tooltip="uiMk_interaction5"
616            w="32"
617            h="32"
618            x="-6"
619            y="126">
620       <!--<view id="envelop"
621             type="bitmap"
622             texture="message.tga"
623                         group_onclick_l="show_hide"
624             group_params_l="mailbox"
625             global_color="false" />-->
626           <!-- fix the onlick, otherwsie with old one does not work -->
627           <ctrl type="button"
628             id="envelop"
629             button_type="push_button"
630             posref="MR MR"
631                         x="-4"
632             tx_normal="message.tga"
633             tx_pushed="message.tga"
634             tx_over="message.tga"
635             global_color_normal="false"
636             global_color_over="false"
637             global_color_pushed="false"
638             onclick_l="show_hide"
639                         params_l="mailbox"
640             tooltip="uiMk_interaction5" />
641       <view type="text"
642             id="mail_nb"
643             posref="BR BR"
644             x="0"
645             y="0"
646             color="255 255 255 255"
647             shadow="true"
648             global_color="false"
649             fontsize="10"
650             hardtext="" />
651 <!--      <view type="text" id="mail_nb2" posparent="mail_nb" posref="BL BR" x="-2" y="0" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="x" /> -->
652     </group>
653     <link expr="@UI:VARIABLES:MAIL_WAITING"
654           target="mail:active" />
655     <!-- new guild forum message notifier -->
656     <group id="forum"
657            posref="BR BR"
658            group_onclick_l="show_hide"
659            group_params_l="guild_forum"
660            tooltip="uiMk_interaction3" 
661            w="32"
662            h="20"
663            x="-6"
664            y="20">
665       <view id="envelop"
666             type="bitmap"
667             w="24"
668             scale="true"
669             texture="com.tga"
670             global_color="false" />
671       <view type="text"
672             id="forum_nb"
673             posref="BR BR"
674             x="-1"
675             y="0"
676             color="255 255 255 255"
677             shadow="true"
678             global_color="false"
679             fontsize="10"
680             hardtext="" />
681     </group>
682     <link expr="@UI:VARIABLES:FORUM_UPDATED"
683           target="forum:active" />
684     <group id="visuel"
685            posref="MM MM"
686            w="128"
687            h="128"
688            y="0">
689       <!-- Background -->
690       <view id="back"
691             type="bitmap"
692             texture="w_radar.tga" />
693           <!-- ZOOM -->
694       <!--
695                 <ctrl type="button" id="zoom_in" button_type="push_button" posref="BR BR" x="-8" y="8" 
696                         tx_normal="w_button_radar_plus.tga" tx_pushed="w_button_radar_plus.tga" tx_over="W_button_16_over.tga"
697                         color="255 255 255 255" col_pushed="255 255 255 255" col_over="255 255 255 255"
698                         onclick_l="proc" params_l="radar_proc_zoom_in" render_layer="4" />
699                 <ctrl type="button" id="zoom_out" button_type="push_button" posref="BL BL" x="9" y="9" 
700                         tx_normal="w_button_radar_moins.tga" tx_pushed="w_button_radar_moins.tga" tx_over="W_button_14_over.tga"
701                         color="255 255 255 255" col_pushed="255 255 255 255" col_over="255 255 255 255"
702                         onclick_l="proc" params_l="radar_proc_zoom_out" render_layer="4"  />
703                 -->
704       <view id="radar"
705             type="radar"
706             texture_std="w_radar_point.tga"
707             texture_missionlist="radar_mission_16.tga"
708             texture_missionauto="radar_mission3_16.tga"
709             texture_missionstep="radar_mission2_16.tga"
710             mini_texture_missionlist="radar_mission_mini_16.tga"
711             mini_texture_missionauto="radar_mission3_mini_16.tga"
712             mini_texture_missionstep="radar_mission2_mini_16.tga"
713             world_size="50.0"
714             posparent="back"
715             posref="MM MM"
716             w="110"
717             h="106"
718             y="8"
719             global_color="false"
720             render_layer="2" />
721       <!--    
722                 <link expr="ne(@UI:SAVE:RADARZOOM,0)" target="zoom_in:active" />
723                 <link expr="ne(@UI:SAVE:RADARZOOM,3)" target="zoom_out:active" />
724                 -->
725           <view id="compass_text"
726             type="bitmap"
727                     posref="BM MM"
728             x="0"
729             y="18"
730             texture="comp_text.tga"
731             render_layer="3" />
732           <view type="text"
733             id="range"
734             posref="BM MM"
735             x="0"
736             y="16"
737             hardtext="uiRadarZoom0"
738             shadow="true"
739             color="255 255 255 255"
740             fontsize="10"
741             render_layer="3" />
742     </group>
743         <!-- set arrow on top or it will be under the icons -->
744         <scene3d id="arrow3d"
745              x="0"
746              y="-21"
747              w="100"
748              h="100"
749              posref="TM TM"
750              curcam="cam"
751              ambient="0 0 0"
752              sun_ambient="20 20 20"
753              sun_diffuse="0 0 0"
754              sun_specular="0 0 0"
755              sun_direction="2.0 1.0 -1.0">
756         <camera id="cam"
757               fov="60"
758               pos="0 0 1"
759               target="0 0 0"
760               roll="0" />
761           <!-- green target arrow -->
762           <light id="l1"
763              pos="-20.0 -30.0 100.0"
764              color="255 255 0"
765              near="1000.0"
766              far="1500.0" />
767       <shape id="arrow"
768              name="arrow.shape"
769                          pos="0 0 0"
770              rot="0.0 0.0 0.0" />
771         </scene3d>
772         <view type="text"
773           id="dist"
774           posref="BM BM"
775           x="0"
776           y="3"
777           hardtext="uiRadarZoom0"
778           shadow="true"
779           color="255 255 255 255"
780           global_color="false"
781           fontsize="10"
782           line_maxw="164"
783           over_extend_view_text="true" />
784     <ctrl type="tooltip"
785           id="tt"
786           tooltip="uittCompassDistance"
787           tooltip_parent="win"
788           posref="BL BL"
789           x="0"
790           y="0"
791           sizeref="w"
792           w="0"
793           h="16" />
794     <ctrl type="tooltip"
795           id="tt2"
796           tooltip="uittCompassRange"
797           tooltip_parent="win"
798           posref="BM BM"
799           x="0"
800           y="26"
801           w="44"
802           h="18" />
803   </group>
804   <tree node="compass" />
805   <link expr="switch(@UI:SAVE:RADARZOOM, 'uiRadarZoom0', 'uiRadarZoom1', 'uiRadarZoom2', 'uiRadarZoom3')"
806         target="ui:interface:compass:visuel:range:hardtext" />
807   <link expr="switch(@UI:SAVE:RADARZOOM, 50.0, 100.0, 250.0, 500.0)"
808         target="ui:interface:compass:visuel:radar:world_size" />
809   <!--******************-->
810   <!--*   CONNECTION   *-->
811   <!--******************-->
812   <proc id="proc_connection_close">
813     <action handler="set"
814             params="target_property=ui:interface:connection:w|value=64" />
815     <action handler="set"
816             params="target_property=ui:interface:connection:header_closed:w|value=64" />
817   </proc>
818   <group id="connection"
819          type="container"
820          title="uiConnectionTitle_short"
821          title_opened="uiConnectionTitle"
822          w="192"
823          global_color="false"
824          movable="true"
825          active="false"
826          openable="true"
827          opened="true"
828          resizer="false"
829          header_color="UI:SAVE:WIN:COLORS:OPT"
830          on_active="set"
831          on_active_params="dblink=UI:VARIABLES:ISACTIVE:CONNECTION|value=1"
832          on_deactive="set"
833          on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:CONNECTION|value=0"
834          on_open="set"
835          on_open_params="target_property=ui:interface:connection:w|value=192"
836          on_close="set"
837          on_close_params="target_property=ui:interface:connection:w|value=64">
839     <group id="header_closed"
840            x="0"
841            y="0"
842            h="74"
843            posref="TL TL"
844            group_onclick_r="active_menu"
845            group_params_r="menu=ui:interface:base_menu_with_color">
846       <!--
847                 <group id="server_state" posref="TM TM" w="28" h="16" x="0" >
848                         <view type="text" id="server0" posref="ML ML" color="255 255 255 255" fontsize="10" shadow="true" global_color="false" hardtext="uiServerState0" />
849                         <view type="text" id="server1" posref="ML ML" color="255 255 255 255" fontsize="10" shadow="true" global_color="false" hardtext="uiServerState1" />
850                         <view type="text" id="server2" posref="ML ML" color="255 255 255 255" fontsize="10" shadow="true" global_color="false" hardtext="uiServerState2" />
851                         <view type="text" id="server3" posref="ML ML" color="255 255 255 255" fontsize="10" shadow="true" global_color="false" hardtext="uiServerState3" />
852                         <view type="text" id="server4" posref="ML ML" color="255 255 255 255" fontsize="10" shadow="true" global_color="false" hardtext="uiServerState4" />
853                         <view type="text" id="server5" posref="ML ML" color="255 255 255 255" fontsize="10" shadow="true" global_color="false" hardtext="uiServerState5" />
854                         <view type="text" id="server6" posref="ML ML" color="255 255 255 255" fontsize="10" shadow="true" global_color="false" hardtext="uiServerState6" />
855                         <view type="text" id="server7" posref="ML ML" color="255 255 255 255" fontsize="10" shadow="true" global_color="false" hardtext="uiServerState7" />
856                         <view type="text" id="server8" posref="ML ML" color="255 255 255 255" fontsize="10" shadow="true" global_color="false" hardtext="uiServerState8" />
857                         <view type="text" id="server9" posref="TR TR" x="0" y="-68" color="255 255 255 255" fontsize="11" shadow="true" global_color="false" hardtext="uiServerState9" />
858                 </group>
859                 -->
860       <view type="text_number"
861             id="upload"
862             posref="TL TL"
863             x="0"
864             y="-18"
865             color="255 255 255 255"
866             shadow="true"
867             fontsize="10"
868             value="UI:VARIABLES:UPLOAD"
869             global_color="false"
870             positive="true" />
871       <view type="text_number"
872             id="download"
873             posref="BL TL"
874             posparent="upload"
875             x="0"
876             y="0"
877             color="255 255 255 255"
878             shadow="true"
879             fontsize="10"
880             value="UI:VARIABLES:DOWNLOAD"
881             global_color="false"
882             positive="true" />
883       <view type="text_number"
884             id="ping"
885             posref="BL TL"
886             posparent="download"
887             x="0"
888             y="0"
889             color="255 255 255 255"
890             shadow="true"
891             fontsize="10"
892             value="UI:VARIABLES:PING"
893             global_color="false"
894             positive="true" />
895       <view type="text_number"
896             id="packet"
897             posref="BL TL"
898             posparent="ping"
899             x="0"
900             y="0"
901             color="255 255 255 255"
902             shadow="true"
903             fontsize="10"
904             value="UI:VARIABLES:PACKETLOST"
905             global_color="false"
906             positive="true" />
907     </group>
908     <group id="header_opened"
909            x="0"
910            y="0"
911            h="16"
912            posref="TL TL"
913            group_onclick_r="active_menu"
914            group_params_r="menu=ui:interface:base_menu_with_color">
915            </group>
916     <group id="content"
917            posref="TR TR"
918            h="82">
919       <view type="text"
920             id="up_title"
921             posref="TL TL"
922             x="0"
923             y="-2"
924             color="255 255 255 255"
925             fontsize="11"
926             shadow="true"
927             hardtext="uiUpload" />
928       <view type="text"
929             id="down_title"
930             posref="TL TL"
931             x="0"
932             y="-18"
933             color="255 255 255 255"
934             fontsize="11"
935             shadow="true"
936             hardtext="uiDownload" />
937       <view type="text"
938             id="ping_title"
939             posref="TL TL"
940             x="0"
941             y="-34"
942             color="255 255 255 255"
943             fontsize="11"
944             shadow="true"
945             hardtext="uiPing" />
946       <view type="text"
947             id="packet_title"
948             posref="TL TL"
949             x="0"
950             y="-50"
951             color="255 255 255 255"
952             fontsize="11"
953             shadow="true"
954             hardtext="uiPacketLost" />
955       <view type="text"
956             id="server_title"
957             posref="TL TL"
958             x="0"
959             y="-66"
960             color="255 255 255 255"
961             fontsize="11"
962             shadow="true"
963             hardtext="uiServerState" />
964       <view type="text_number"
965             id="upload"
966             posref="TR TR"
967             x="0"
968             y="-2"
969             color="255 255 255 255"
970             shadow="true"
971             fontsize="11"
972             value="UI:VARIABLES:UPLOAD"
973             global_color="false"
974             positive="true" />
975       <view type="text_number"
976             id="download"
977             posref="TR TR"
978             x="0"
979             y="-18"
980             color="255 255 255 255"
981             shadow="true"
982             fontsize="11"
983             value="UI:VARIABLES:DOWNLOAD"
984             global_color="false"
985             positive="true" />
986       <view type="text_number"
987             id="ping"
988             posref="TR TR"
989             x="0"
990             y="-34"
991             color="255 255 255 255"
992             shadow="true"
993             fontsize="11"
994             value="UI:VARIABLES:PING"
995             global_color="false"
996             positive="true" />
997       <view type="text_number"
998             id="packet"
999             posref="TR TR"
1000             x="0"
1001             y="-50"
1002             color="255 255 255 255"
1003             shadow="true"
1004             fontsize="11"
1005             value="UI:VARIABLES:PACKETLOST"
1006             global_color="false"
1007             positive="true" />
1008       <view type="text"
1009             id="server0"
1010             posref="TR TR"
1011             x="0"
1012             y="-66"
1013             color="255 255 255 255"
1014             fontsize="11"
1015             shadow="true"
1016             global_color="false"
1017             hardtext="uiServerState0" />
1018       <view type="text"
1019             id="server1"
1020             posref="TR TR"
1021             x="0"
1022             y="-66"
1023             color="255 255 255 255"
1024             fontsize="11"
1025             shadow="true"
1026             global_color="false"
1027             hardtext="uiServerState1" />
1028       <view type="text"
1029             id="server2"
1030             posref="TR TR"
1031             x="0"
1032             y="-66"
1033             color="255 255 255 255"
1034             fontsize="11"
1035             shadow="true"
1036             global_color="false"
1037             hardtext="uiServerState2" />
1038       <view type="text"
1039             id="server3"
1040             posref="TR TR"
1041             x="0"
1042             y="-66"
1043             color="255 255 255 255"
1044             fontsize="11"
1045             shadow="true"
1046             global_color="false"
1047             hardtext="uiServerState3" />
1048       <view type="text"
1049             id="server4"
1050             posref="TR TR"
1051             x="0"
1052             y="-66"
1053             color="255 255 255 255"
1054             fontsize="11"
1055             shadow="true"
1056             global_color="false"
1057             hardtext="uiServerState4" />
1058       <view type="text"
1059             id="server5"
1060             posref="TR TR"
1061             x="0"
1062             y="-66"
1063             color="255 255 255 255"
1064             fontsize="11"
1065             shadow="true"
1066             global_color="false"
1067             hardtext="uiServerState5" />
1068       <view type="text"
1069             id="server6"
1070             posref="TR TR"
1071             x="0"
1072             y="-66"
1073             color="255 255 255 255"
1074             fontsize="11"
1075             shadow="true"
1076             global_color="false"
1077             hardtext="uiServerState6" />
1078       <view type="text"
1079             id="server7"
1080             posref="TR TR"
1081             x="0"
1082             y="-66"
1083             color="255 255 255 255"
1084             fontsize="11"
1085             shadow="true"
1086             global_color="false"
1087             hardtext="uiServerState7" />
1088       <view type="text"
1089             id="server8"
1090             posref="TR TR"
1091             x="0"
1092             y="-66"
1093             color="255 255 255 255"
1094             fontsize="11"
1095             shadow="true"
1096             global_color="false"
1097             hardtext="uiServerState8" />
1098       <view type="text"
1099             id="server9"
1100             posref="TR TR"
1101             x="0"
1102             y="-66"
1103             color="255 255 255 255"
1104             fontsize="11"
1105             shadow="true"
1106             global_color="false"
1107             hardtext="uiServerState9" />
1108     </group>
1109   </group>
1110   <tree node="connection" />
1111   <link expr="eq(@UI:VARIABLES:SERVERSTATE,0)"
1112         target="connection:content:server0:active" />
1113   <link expr="eq(@UI:VARIABLES:SERVERSTATE,1)"
1114         target="connection:content:server1:active" />
1115   <link expr="eq(@UI:VARIABLES:SERVERSTATE,2)"
1116         target="connection:content:server2:active" />
1117   <link expr="eq(@UI:VARIABLES:SERVERSTATE,3)"
1118         target="connection:content:server3:active" />
1119   <link expr="eq(@UI:VARIABLES:SERVERSTATE,4)"
1120         target="connection:content:server4:active" />
1121   <link expr="and(ne(@UI:VARIABLES:CONNECTION_QUALITY,0),eq(@UI:VARIABLES:SERVERSTATE,5))"
1122         target="connection:content:server5:active" />
1123   <link expr="and(eq(@UI:VARIABLES:CONNECTION_QUALITY,0),eq(@UI:VARIABLES:SERVERSTATE,5))"
1124         target="connection:content:server9:active" />
1125   <link expr="eq(@UI:VARIABLES:SERVERSTATE,6)"
1126         target="connection:content:server6:active" />
1127   <link expr="eq(@UI:VARIABLES:SERVERSTATE,7)"
1128         target="connection:content:server7:active" />
1129   <link expr="eq(@UI:VARIABLES:SERVERSTATE,8)"
1130         target="connection:content:server8:active" />
1131 </interface_config>