8 <variable entry="UI:SAVE:RADARZOOM"
11 <variable entry="UI:SAVE:MP3_VOLUME"
14 <!--******************-->
16 <!--******************-->
17 <proc id="mp3_player_active">
19 params="dblink=UI:VARIABLES:ISACTIVE:MP3PLAYER|value=1" />
21 <proc id="mp3_player_deactive">
23 params="dblink=UI:VARIABLES:ISACTIVE:MP3PLAYER|value=0" />
27 extends="base_menu_with_color"></group>
30 posparent="mp3_player"
37 exit_click_out="false"
45 hardtext="uiPlaylistTitle"
47 color="255 255 255 255"
51 button_type="push_button"
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"
61 <link expr="@UI:SAVE:MP3_VOLUME"
63 params="volume=@UI:SAVE:MP3_VOLUME" />
64 <group id="mp3_player"
65 type="container_windows"
74 win_priority="%win_priority_lowest"
76 group_onclick_r="active_menu"
77 group_params_r="menu=ui:interface:mp3_player_menu"
79 on_deactive_params="mp3_player_deactive"
81 on_active_params="mp3_player_active">
82 <group id="header_closed"
94 <!-- Slots of Prev/Play/Pause/Next buttons -->
100 texture="mp3_button_slot.tga" />
107 texture="mp3_button_slot.tga" />
114 texture="mp3_button_slot.tga" />
121 texture="mp3_button_slot.tga" />
122 <!-- Prev/Play/Pause/Next Buttons -->
125 button_type="push_button"
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"
133 tooltip="uiMP3Prev" />
136 button_type="push_button"
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"
144 tooltip="uiMP3Play" />
147 button_type="push_button"
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"
155 tooltip="uiMP3Pause" />
158 button_type="push_button"
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"
166 tooltip="uiMP3Next" />
173 texture="mp3_vol_jauge.tga" />
174 <group id="volume_control"
188 texture="W_line_hor2.tga" />
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"
209 <!-- Slots of Open/Playlist buttons -->
213 posparent="volume_control"
216 texture="mp3_button_slot.tga" />
218 <view id="slot6" type="bitmap" posref="TR TL" posparent="slot5" x="2" y="0" texture="mp3_button_slot.tga" />
220 <!-- Open/Playlist buttons -->
223 button_type="push_button"
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" />
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" />
240 tooltip="uiMP3Volume"
241 posparent="volume_control"
252 <instance template="box_widget"
263 color="255 255 255 255"
268 hardtext="uiNoFiles" />
271 <tree node="mp3_player" />
272 <!--***************-->
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" />-->
296 <proc id="compas_proc_deactive">
297 <action handler="set"
298 params="dblink=UI:VARIABLES:ISACTIVE:COMPAS|value=0" />
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)" />
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)" />
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)" />
318 <group id="compass_menu"
320 extends="base_menu_with_color"
326 force_inside_screen="true"
327 compass="ui:interface:compass">
328 <!-- SubMenus. Add dummy entries first -->
330 name="uimCompassMissions">
332 name="DUMMY-ERROR" />
334 <action id="land_mark"
335 name="uimCompassLandMarks">
336 <action id="land_mark_misc"
337 name="uiLMMiscColor">
339 name="DUMMY-ERROR" />
341 <action id="land_mark_tribe"
342 name="uiLMTribeColor">
344 name="DUMMY-ERROR" />
346 <action id="land_mark_bandit"
347 name="uiLMBanditColor">
349 name="DUMMY-ERROR" />
351 <action id="land_mark_citizen"
352 name="uiLMCitizenColor">
354 name="DUMMY-ERROR" />
356 <action id="land_mark_fauna"
357 name="uiLMFaunaColor">
359 name="DUMMY-ERROR" />
361 <action id="land_mark_faunaexcel"
362 name="uiLMFaunaExcelColor">
364 name="DUMMY-ERROR" />
366 <action id="land_mark_faunasup"
367 name="uiLMFaunaSupColor">
369 name="DUMMY-ERROR" />
371 <action id="land_mark_forage"
372 name="uiLMForageColor">
374 name="DUMMY-ERROR" />
376 <action id="land_mark_forageexcel"
377 name="uiLMForageExcelColor">
379 name="DUMMY-ERROR" />
381 <action id="land_mark_foragesup"
382 name="uiLMForageSupColor">
384 name="DUMMY-ERROR" />
386 <action id="land_mark_sap"
389 name="DUMMY-ERROR" />
391 <action id="land_mark_amber"
392 name="uiLMAmberColor">
394 name="DUMMY-ERROR" />
396 <action id="land_mark_node"
397 name="uiLMNodeColor">
399 name="DUMMY-ERROR" />
401 <action id="land_mark_fiber"
402 name="uiLMFiberColor">
404 name="DUMMY-ERROR" />
406 <action id="land_mark_bark"
407 name="uiLMBarkColor">
409 name="DUMMY-ERROR" />
411 <action id="land_mark_seed"
412 name="uiLMSeedColor">
414 name="DUMMY-ERROR" />
416 <action id="land_mark_shell"
417 name="uiLMShellColor">
419 name="DUMMY-ERROR" />
421 <action id="land_mark_resin"
422 name="uiLMResinColor">
424 name="DUMMY-ERROR" />
426 <action id="land_mark_wood"
427 name="uiLMWoodColor">
429 name="DUMMY-ERROR" />
431 <action id="land_mark_oil"
434 name="DUMMY-ERROR" />
436 <action id="land_mark_mission"
437 name="uiLMMissionColor">
439 name="DUMMY-ERROR" />
441 <action id="land_mark_food"
442 name="uiLMFoodColor">
444 name="DUMMY-ERROR" />
446 <action id="land_mark_construction"
447 name="uiLMConstructionColor">
449 name="DUMMY-ERROR" />
451 <action id="land_mark_goo"
454 name="DUMMY-ERROR" />
456 <action id="land_mark_insect"
457 name="uiLMInsectColor">
459 name="DUMMY-ERROR" />
461 <action id="land_mark_kitin"
462 name="uiLMKitinColor">
464 name="DUMMY-ERROR" />
466 <action id="land_mark_nocive"
467 name="uiLMNociveColor">
469 name="DUMMY-ERROR" />
471 <action id="land_mark_preservative"
472 name="uiLMPreservativeColor">
474 name="DUMMY-ERROR" />
476 <action id="land_mark_passage"
477 name="uiLMPassageColor">
479 name="DUMMY-ERROR" />
481 <action id="land_mark_teleporter"
482 name="uiLMTeleporterColor">
484 name="DUMMY-ERROR" />
488 name="uimCompassTeam">
490 name="DUMMY-ERROR" />
493 name="uimCompassAnimal">
495 name="DUMMY-ERROR" />
498 name="uimCompassDialogs">
500 name="DUMMY-ERROR" />
502 <!-- Common Container menu actions -->
507 params="radar_proc_zoom_in" />
511 params="radar_proc_zoom_out" />
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)"/>
525 header_active="false"
527 group_onclick_r="active_menu"
531 on_active_params="compass_proc_active"
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"
553 texture="Compas_L.tga" />
561 texture="Compas_M.tga" />
565 texture="Compas_R.tga" />
567 <!-- compass clock -->
579 color="255 255 255 255"
585 <link expr="@UI:SAVE:SHOW_CLOCK"
586 target="clock:active" />
599 color="255 255 255 255"
605 <link expr="depends(@UI:VARIABLES:PING)"
607 params="game:updateFPS()" />
608 <link expr="@UI:SAVE:SHOW_FPS"
609 target="fps:active" />
610 <!-- new mail message notifier -->
613 group_onclick_l="show_hide"
614 group_params_l="mailbox"
615 tooltip="uiMk_interaction5"
620 <!--<view id="envelop"
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 -->
629 button_type="push_button"
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"
640 tooltip="uiMk_interaction5" />
646 color="255 255 255 255"
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" /> -->
653 <link expr="@UI:VARIABLES:MAIL_WAITING"
654 target="mail:active" />
655 <!-- new guild forum message notifier -->
658 group_onclick_l="show_hide"
659 group_params_l="guild_forum"
660 tooltip="uiMk_interaction3"
670 global_color="false" />
676 color="255 255 255 255"
682 <link expr="@UI:VARIABLES:FORUM_UPDATED"
683 target="forum:active" />
692 texture="w_radar.tga" />
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" />
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"
722 <link expr="ne(@UI:SAVE:RADARZOOM,0)" target="zoom_in:active" />
723 <link expr="ne(@UI:SAVE:RADARZOOM,3)" target="zoom_out:active" />
725 <view id="compass_text"
730 texture="comp_text.tga"
737 hardtext="uiRadarZoom0"
739 color="255 255 255 255"
743 <!-- set arrow on top or it will be under the icons -->
744 <scene3d id="arrow3d"
752 sun_ambient="20 20 20"
755 sun_direction="2.0 1.0 -1.0">
761 <!-- green target arrow -->
763 pos="-20.0 -30.0 100.0"
777 hardtext="uiRadarZoom0"
779 color="255 255 255 255"
783 over_extend_view_text="true" />
786 tooltip="uittCompassDistance"
796 tooltip="uittCompassRange"
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" />
818 <group id="connection"
820 title="uiConnectionTitle_short"
821 title_opened="uiConnectionTitle"
829 header_color="UI:SAVE:WIN:COLORS:OPT"
831 on_active_params="dblink=UI:VARIABLES:ISACTIVE:CONNECTION|value=1"
833 on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:CONNECTION|value=0"
835 on_open_params="target_property=ui:interface:connection:w|value=192"
837 on_close_params="target_property=ui:interface:connection:w|value=64">
839 <group id="header_closed"
844 group_onclick_r="active_menu"
845 group_params_r="menu=ui:interface:base_menu_with_color">
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" />
860 <view type="text_number"
865 color="255 255 255 255"
868 value="UI:VARIABLES:UPLOAD"
871 <view type="text_number"
877 color="255 255 255 255"
880 value="UI:VARIABLES:DOWNLOAD"
883 <view type="text_number"
889 color="255 255 255 255"
892 value="UI:VARIABLES:PING"
895 <view type="text_number"
901 color="255 255 255 255"
904 value="UI:VARIABLES:PACKETLOST"
908 <group id="header_opened"
913 group_onclick_r="active_menu"
914 group_params_r="menu=ui:interface:base_menu_with_color">
924 color="255 255 255 255"
927 hardtext="uiUpload" />
933 color="255 255 255 255"
936 hardtext="uiDownload" />
942 color="255 255 255 255"
951 color="255 255 255 255"
954 hardtext="uiPacketLost" />
960 color="255 255 255 255"
963 hardtext="uiServerState" />
964 <view type="text_number"
969 color="255 255 255 255"
972 value="UI:VARIABLES:UPLOAD"
975 <view type="text_number"
980 color="255 255 255 255"
983 value="UI:VARIABLES:DOWNLOAD"
986 <view type="text_number"
991 color="255 255 255 255"
994 value="UI:VARIABLES:PING"
997 <view type="text_number"
1002 color="255 255 255 255"
1005 value="UI:VARIABLES:PACKETLOST"
1006 global_color="false"
1013 color="255 255 255 255"
1016 global_color="false"
1017 hardtext="uiServerState0" />
1023 color="255 255 255 255"
1026 global_color="false"
1027 hardtext="uiServerState1" />
1033 color="255 255 255 255"
1036 global_color="false"
1037 hardtext="uiServerState2" />
1043 color="255 255 255 255"
1046 global_color="false"
1047 hardtext="uiServerState3" />
1053 color="255 255 255 255"
1056 global_color="false"
1057 hardtext="uiServerState4" />
1063 color="255 255 255 255"
1066 global_color="false"
1067 hardtext="uiServerState5" />
1073 color="255 255 255 255"
1076 global_color="false"
1077 hardtext="uiServerState6" />
1083 color="255 255 255 255"
1086 global_color="false"
1087 hardtext="uiServerState7" />
1093 color="255 255 255 255"
1096 global_color="false"
1097 hardtext="uiServerState8" />
1103 color="255 255 255 255"
1106 global_color="false"
1107 hardtext="uiServerState9" />
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" />