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