3 <root id="interface" x="0" y="0" w="800" h="600" active="true" />
7 <!-- flag for game:onLoadMap() handler to override map texture or not -->
8 <variable entry="UI:VARIABLES:SHOW_ALT_MAP" type="bool" value="0" />
10 <!-- icon for landmark menu user group -->
11 <template name="landmark_row_icon" keep="true"
12 id="" posref="TL TL" sizeref="w" posparent="parent" x="0" y="0" w="24" h="18"
13 icon_id="icon" icon_x="0" icon_y="-4" icon_color="80 80 80 255" icon_texture="lm_user.tga">
14 <group id="#id" posref="#posref" posparent="#posparent" sizeref="#sizeref" x="#x" y="#y" w="#w" h="#h">
15 <view type="bitmap" id="#icon_id" posref="MM MM" x="#icon_x" y="#icon_y" color="#icon_color"
16 global_color="false" texture="#icon_texture" />
20 <!-- base menu of landmark -->
21 <group type="menu" id="land_mark_menu" extends="base_menu">
22 <action id="target" name="uiTargetLM" handler="land_mark_selected" params="" icon="ico_aim.tga" />
23 <action id="lmteleport" name="uiTeleport" handler="land_mark_teleport" params="" icon="mp_batiment_noyau_maduk.tga" />
27 <!-- modal box to confirm removal of landmark -->
28 <group type="modal" id="remove_user_landmark_confirm" exit_click_out="true" posref="TL TL" x="-8" y="8" w="100" h="60" options="skin_modal">
29 <view type="bitmap" id="b" posref="TL TL" x="4" y="-4" global_color="false" texture="w_warning_2.tga" />
30 <view type="text" id="t" posref="TL TL" x="20" y="-5" color="233 197 42 255" fontsize="12" shadow="true" global_color="false" hardtext="uiRemove" />
31 <instance template="button_ok_cancel" posref="BR BR" x="-4" y="4" onclick_ok="remove_user_landmark" onclick_ok_param="" onclick_cancel="leave_modal" onclick_cancel_param="" />
34 <!-- menu of user landmark -->
35 <group type="menu" id="user_land_mark_menu_base" extends="land_mark_menu">
36 <action id="remove" name="uiRemove" handler="enter_modal" params="group=ui:interface:remove_user_landmark_confirm" icon="ico_aim.tga"/>
37 <action id="rename" name="uiRename" handler="rename_user_landmark" params="" icon="r2ed_edit_dialog.tga"/>
41 <group type="menu" id="user_land_mark_menu" extends="user_land_mark_menu_base">
42 <!-- closest landmarks added from c++ at the end of the menu -->
47 <group type="menu" id="map_menu" extends="base_menu"
49 on_active_params="if r2 and r2.Mode == 'Edit' then r2:setCurrentTool('') end"
51 <action id="create" name="uiCreateUserLM" handler="create_user_landmark" params="" icon="lm_mission.tga"/>
52 <action id="teleport" name="uiTeleport" handler="map_teleport" params="" icon="mp_batiment_noyau_maduk.tga"/>
53 <action id="create_at_user_pos" name="uiCreateUserLMAtUserPos" handler="create_user_landmark_at_user_pos" params="" icon="r2ed_entry_point_over.tga"/>
55 <action id="search" name="uiMapSearch" handler="proc" params="map_search_show" icon="ico_location.tga"/>
57 <action id="center" name="uiMenuCenter" handler="map_center" params="map=ui:interface:map:content:map_content:actual_map" icon="curs_pick.tga"/>
61 <!-- menu of map (ring version) -->
62 <group type="menu" id="map_menu_island" extends="base_menu"
64 on_active_params="if r2 and r2.Mode == 'Edit' then r2:setCurrentTool('') end"
66 <action id="teleport" name="uiTeleport" handler="map_teleport" params="" icon="mp_batiment_noyau_maduk.tga"/>
67 <action id="center" name="uiMenuCenter" handler="map_center" params="map=ui:interface:map:content:map_content:actual_map" icon="curs_pick.tga"/>
71 <variable entry="UI:VARIABLES:CDB_INIT_IN_PROGRESS" type="bool" value="1" />
74 <!-- ******************************************************************** -->
75 <!-- * WINDOW TO ENTER THE NAME OF A USER LANDMARK (or to rename one) * -->
76 <!-- ******************************************************************** -->
77 <variable entry="UI:TEMP:LANDMARKTYPE" type="sint8" value="0" />
79 <proc id="validate_user_landmark_name">
80 <action handler="set" params="target_property=ui:interface:create_new_party_chat:active|value=0"/>
81 <action handler="validate_user_landmark_name" params=""/>
84 <group id="enter_landmark_name"
92 header_color="UI:SAVE:WIN:COLORS:LAB"
94 on_close_button="set" on_close_button_params="target_property=ui:interface:enter_landmark_name:active|value=0"
97 title_opened="uiCreateNewLandMark"
104 <group id="header_opened"/>
113 <group type="combo_box"
117 value="UI:TEMP:LANDMARKTYPE"
122 <instance template="combo_box_def1" />
123 <combo_text name="uiLMMiscColor" />
124 <combo_text name="uiLMTribeColor" />
125 <combo_text name="uiLMBanditColor" />
126 <combo_text name="uiLMCitizenColor" />
127 <combo_text name="uiLMFaunaColor" />
128 <combo_text name="uiLMFaunaExcelColor" />
129 <combo_text name="uiLMFaunaSupColor" />
130 <combo_text name="uiLMForageColor" />
131 <combo_text name="uiLMForageExcelColor" />
132 <combo_text name="uiLMForageSupColor" />
133 <combo_text name="uiLMSapColor" />
134 <combo_text name="uiLMAmberColor" />
135 <combo_text name="uiLMNodeColor" />
136 <combo_text name="uiLMFiberColor" />
137 <combo_text name="uiLMBarkColor" />
138 <combo_text name="uiLMSeedColor" />
139 <combo_text name="uiLMShellColor" />
140 <combo_text name="uiLMResinColor" />
141 <combo_text name="uiLMWoodColor" />
142 <combo_text name="uiLMOilColor" />
143 <combo_text name="uiLMMissionColor" />
144 <combo_text name="uiLMFoodColor" />
145 <combo_text name="uiLMConstructionColor" />
146 <combo_text name="uiLMGooColor" />
147 <combo_text name="uiLMInsectColor" />
148 <combo_text name="uiLMKitinColor" />
149 <combo_text name="uiLMNociveColor" />
150 <combo_text name="uiLMPreservativeColor" />
151 <combo_text name="uiLMPassageColor" />
152 <combo_text name="uiLMTeleporterColor" />
156 template="edit_box_widget"
160 posref="TL TL" x="2" y="-12" w="-170"
161 onenter="proc" params="validate_user_landmark_name" entry_type="text"/>
164 posref="BR BR" sizeref="wh" x="-2" y="2"
165 template="button_ok_cancel"
167 onclick_ok_param="validate_user_landmark_name"
169 onclick_cancel_param="target_property=ui:interface:enter_landmark_name:active|value=0" />
174 <!-- ******************************************************************** -->
175 <!-- * USER MAP * -->
176 <!-- ******************************************************************** -->
178 <variable entry="UI:VARIABLES:ISACTIVE:MAP_SEARCH" type="sint32" value="0" />
180 <proc id="map_proc_active">
181 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP|value=1" />
182 <action handler="lua" params="if (r2 and r2.Mode == 'Edit') then r2.ToolUI:updateToggleWindowButtons() end" />
185 <proc id="map_proc_deactive">
186 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP|value=0" />
187 <action handler="lua" params="if (r2 and r2.Mode == 'Edit') then r2.ToolUI:updateToggleWindowButtons() end" />
190 <proc id="map_search_toggle">
191 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_SEARCH|value=not(@UI:VARIABLES:ISACTIVE:MAP_SEARCH)"/>
192 <action handler="proc" params="map_search_focus" cond="@UI:VARIABLES:ISACTIVE:MAP_SEARCH"/>
193 <action handler="proc" params="map_search_reset" cond="not(@UI:VARIABLES:ISACTIVE:MAP_SEARCH)"/>
196 <proc id="map_search_focus">
197 <action handler="set_keyboard_focus" params="target=ui:interface:map:content:map_content:lm_search:search:eb|select_all=true" />
200 <proc id="map_search_reset">
201 <action handler="proc" params="map_search_setfilter" />
204 <proc id="map_search_show">
205 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_SEARCH|value=1" />
206 <action handler="proc" params="map_search_focus" />
209 <proc id="map_search_hide">
210 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_SEARCH|value=0" />
213 <proc id="map_search_setfilter">
214 <action handler="set" params="target_property=ui:interface:map:content:map_content:lm_search:search:eb:input_string|value='@0'" />
215 <action handler="land_mark_filter" params="map=ui:interface:map:content:map_content:actual_map|text=@0" />
218 <!-- set search string from /mapsearch command -->
219 <proc id="map_search_show_set">
220 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_SEARCH|value=1" />
221 <action handler="proc" params="map_search_setfilter|@0" />
224 <!-- hide search if focus was lost and input is empty (esc key) -->
225 <proc id="map_search_focuslost">
226 <action handler="proc" params="map_search_hide"
227 cond="eq(getprop('ui:interface:map:content:map_content:lm_search:search:eb:input_string'),'')" />
230 <proc id="map_search_onchange">
231 <action handler="land_mark_filter" params="map=ui:interface:map:content:map_content:actual_map|group=@0" />
234 <define id="map_min_size_h" value="256" />
235 <define id="map_min_size_w" value="256" />
237 <define id="map_respawn_min_size_h" value="256" />
238 <define id="map_respawn_min_size_w" value="260" />
240 <variable entry="UI:VARIABLES:ISACTIVE:MAP_EVENTS" type="sint32" value="0" />
242 <proc id="map_events_toggle">
243 <action handler="browse_home" params="name=ui:interface:map:content:map_content:lm_events:html" cond="not(@UI:VARIABLES:ISACTIVE:MAP_EVENTS)" />
244 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_EVENTS|value=not(@UI:VARIABLES:ISACTIVE:MAP_EVENTS)"/>
245 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_DYNICONS|value=0)"/>
248 <proc id="map_events_hide">
249 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_EVENTS|value=0)"/>
252 <proc id="map_events_show">
253 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_EVENTS|value=1)"/>
254 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_DYNICONS|value=0)"/>
257 <variable entry="UI:VARIABLES:ISACTIVE:MAP_DYNICONS" type="sint32" value="0" />
259 <proc id="map_dynicons_toggle">
260 <action handler="browse_home" params="name=ui:interface:map:content:map_content:lm_dynicons:html" cond="not(@UI:VARIABLES:ISACTIVE:MAP_DYNICONS)" />
261 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_DYNICONS|value=not(@UI:VARIABLES:ISACTIVE:MAP_DYNICONS)"/>
262 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_EVENTS|value=0)"/>
265 <proc id="map_dynicons_hide">
266 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_DYNICONS|value=0)"/>
269 <proc id="map_dynicons_show">
270 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_DYNICONS|value=1)"/>
271 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_EVENTS|value=0)"/>
276 <!-- used to override onclick handler -->
277 <proc id="dummy_proc" />
279 <template name="lm_search_result" keep="true" active="true" id="" x="0" y="0" w="0" h="17" posparent="parent" posref="TL TL"
280 hardtext="" fontsize="10" y_text="-2" onclick_l="lua" params_l="" tooltip="" index="0">
282 <group id="#id" active="#active" x="#x" y="#y" w="#w" h="#h" posparent="#posparent" posref="#posref" sizeref="w">
284 <ctrl type="button" id="over" sizeref="wh" w="0" h="0" posref="MM MM"
285 scale="true" tx_normal="blank.tga" tx_over="blank.tga" color="0 0 0 0" col_over="255 255 255 127"
286 onclick_l="land_mark_result_selected" params_l="map=ui:interface:map:content:map_content:actual_map|index=#index"
287 onclick_r="proc" params_r="dummy_proc"
288 tooltip="#tooltip" />
290 <view type="bitmap" id="icon" posref="ML ML" w="16" h="16"
291 scale="true" color="255 255 255 255" global_color="false" texture="blank.tga" />
293 <view type="text" id="title" posref="TL TL" x="16" y="#y_text"
294 color="255 255 255 255" global_color="true" fontsize="#fontsize" shadow="true" hardtext="#hardtext"
295 auto_clamp="true" over_extend_view_text="false" over_extend_parent_rect="false" />
301 <group id="map" type="container" posref="BL TL" min_w="%map_min_size_w" max_w="16384" w="800" h="600" x="352" y="200" min_h="%map_min_size_h" max_h="16384"
302 resizer="true" pop_max_h="16384" pop_min_h="%map_min_size_h" pop_max_w="16384" pop_min_w="%map_min_size_w"
303 openable="false" opened="true"
304 movable="true" open_button="false"
307 header_color="UI:SAVE:WIN:COLORS:LAB" global_color="false"
308 on_active="proc" on_active_params="map_proc_active"
309 on_deactive="proc" on_deactive_params="map_proc_deactive"
311 <group id="header_closed" x="0" y="0" h="16" posref="TL TL" >
314 <group id="header_opened" x="0" y="0" w="385" h="16" posref="TL TL"
315 group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" >
318 <group id="content" x="0" y="0" h="0" posref="TL TL" >
319 <group id="map_content" posref="TL TL" sizeref="wh" w="0" h="-7" y="-6" >
322 <ctrl type="button" id="map_back" button_type="push_button" posref="TL TL" y="0" x="4" tx_normal="w_back_map.tga" tx_pushed="w_back_map.tga" tx_over="W_button_16_over.tga"
323 onclick_l="map_back" params_l="map=ui:interface:map:content:map_content:actual_map" tooltip="uittBack" />
326 <ctrl type="button" id="zoom_in" button_type="push_button" posparent="map_back" posref="TR TL" y="0" x="4" tx_normal="w_zoom_in.tga" tx_pushed="w_zoom_in.tga" tx_over="W_button_16_over.tga"
327 onclick_l="map_zoom_in" params_l="map=ui:interface:map:content:map_content:actual_map" tooltip="uittZoomIn" />
330 <ctrl type="button" id="zoom_out" button_type="push_button" posparent="zoom_in" posref="TR TL" y="0" x="4" tx_normal="w_zoom_out.tga" tx_pushed="w_zoom_out.tga" tx_over="W_button_16_over.tga"
331 onclick_l="map_zoom_out" params_l="map=ui:interface:map:content:map_content:actual_map" tooltip="uittZoomOut" />
333 <!-- center on player -->
334 <ctrl type="button" id="center" button_type="push_button" posparent="zoom_out" posref="TR TL" y="0" x="4" tx_normal="w_center_map.tga" tx_pushed="w_center_map.tga" tx_over="W_button_16_over.tga"
335 onclick_l="map_center" params_l="map=ui:interface:map:content:map_content:actual_map" tooltip="uittCenter" />
338 <ctrl type="button" id="lm_search_btn" button_type="push_button" posparent="center" posref="TR TL" y="0" x="4" tx_normal="w_help_1.tga" tx_pushed="w_help_1.tga" tx_over="W_button_16_over.tga"
339 onclick_l="proc" params_l="map_search_toggle" tooltip="uittMapSearch" />
341 <!-- open dynamish icon overlay-->
342 <ctrl type="button" id="lm_dynicons_btn" button_type="push_button" posparent="lm_search_btn" posref="TR TL" global_color="false" scale="true" y="0" x="4" h="16" w="16" tx_normal="r2ed_entry_point_pushed.tga" tx_pushed="r2ed_entry_point_pushed.tga" tx_over="W_button_16_over.tga"
343 onclick_l="proc" params_l="map_dynicons_toggle" tooltip="uiIcons" />
345 <!-- open dynamish events overlay-->
346 <ctrl type="button" id="lm_events_btn" button_type="push_button" posparent="lm_dynicons_btn" posref="TR TL" global_color="false" scale="true" y="0" x="4" h="16" w="16" tx_normal="dyn_event.tga" tx_pushed="dyn_event.tga" tx_over="W_button_16_over.tga"
347 onclick_l="proc" params_l="map_events_toggle" tooltip="uiR2Events" />
348 <view type="text" id="events" x="4" y="0" posref="BR BL" posparent="lm_events_btn" color="244 147 49 255" fontsize="12" shadow="true" hardtext="" global_color="false" />
352 <view type="text" id="time" x="4" y="-18" posref="TL TL" color="255 255 255 255" fontsize="12" shadow="true" hardtext="" />
353 <view type="text" id="weather" x="4" y="-32" posref="TL TL" color="255 255 255 255" fontsize="12" shadow="true" hardtext="" />
354 <ctrl type="tooltip" id="weather_tt" posparent="weather" sizeref="wh" w="0" h="0" tooltip="" tooltip_parent="ctrl" tooltip_posref="BL TL" />
356 <instance template="box_widget" id="back" posref="TL TL" sizeref="wh" w="-2" h="-50" x="1" y="-50" render_layer="0" />
358 <group type="map" id="actual_map" sizeref="wh" w="-4" h="-6" posparent="back" posref="TL TL" x="2" y="-2" render_layer="1"
359 group_onclick_r="world_map_right_click"
360 group_params_r="map=ui:interface:map:content:map_content:actual_map"
362 continent_landmark_tex_normal="LM_continent.tga"
363 continent_landmark_tex_over="LM_over.tga"
364 continent_landmark_tex_pushed="LM_continent_pushed.tga"
365 continent_landmark_color_normal="255 255 255 255"
366 continent_landmark_color_over="255 255 255 255"
367 continent_landmark_color_pushed="255 255 255 255"
368 continent_landmark_menu="ui:interface:land_mark_menu"
370 user_landmark_tex_normal="LM_user.tga"
371 user_landmark_tex_over="LM_over.tga"
372 user_landmark_tex_pushed="LM_user_pushed.tga"
373 user_landmark_color_normal="255 255 255 255"
374 user_landmark_color_over="255 255 255 255"
375 user_landmark_color_pushed="255 255 255 255"
376 user_landmark_menu="ui:interface:user_land_mark_menu"
378 mission_landmark_tex_normal="LM_mission.tga"
379 mission_landmark_tex_over="LM_over.tga"
380 mission_landmark_tex_pushed="LM_mission_pushed.tga"
381 mission_landmark_color_normal="255 255 255 255"
382 mission_landmark_color_over="255 255 255 255"
383 mission_landmark_color_pushed="255 255 255 255"
384 mission_landmark_menu="ui:interface:land_mark_menu"
386 home_fyros_landmark_tex_normal="LM_home.tga"
387 home_fyros_landmark_tex_over="LM_home_over.tga"
388 home_fyros_landmark_tex_pushed="LM_home_pushed.tga"
389 home_fyros_landmark_color_normal="255 255 255 255"
390 home_fyros_landmark_color_over="255 255 255 255"
391 home_fyros_landmark_color_pushed="255 255 255 255"
392 home_fyros_landmark_menu="ui:interface:land_mark_menu"
394 home_tryker_landmark_tex_normal="LM_home.tga"
395 home_tryker_landmark_tex_over="LM_home_over.tga"
396 home_tryker_landmark_tex_pushed="LM_home_pushed.tga"
397 home_tryker_landmark_color_normal="255 255 255 255"
398 home_tryker_landmark_color_over="255 255 255 255"
399 home_tryker_landmark_color_pushed="255 255 255 255"
400 home_tryker_landmark_menu="ui:interface:land_mark_menu"
402 home_matis_landmark_tex_normal="LM_home.tga"
403 home_matis_landmark_tex_over="LM_home_over.tga"
404 home_matis_landmark_tex_pushed="LM_home_pushed.tga"
405 home_matis_landmark_color_normal="255 255 255 255"
406 home_matis_landmark_color_over="255 255 255 255"
407 home_matis_landmark_color_pushed="255 255 255 255"
408 home_matis_landmark_menu="ui:interface:land_mark_menu"
410 home_zorai_landmark_tex_normal="LM_home.tga"
411 home_zorai_landmark_tex_over="LM_home_over.tga"
412 home_zorai_landmark_tex_pushed="LM_home_pushed.tga"
413 home_zorai_landmark_color_normal="255 255 255 255"
414 home_zorai_landmark_color_over="255 255 255 255"
415 home_zorai_landmark_color_pushed="255 255 255 255"
416 home_zorai_landmark_menu="ui:interface:land_mark_menu"
418 target_landmark_tex_normal="LM_target.tga"
419 target_landmark_tex_over="LM_target_over.tga"
420 target_landmark_tex_pushed="LM_target_pushed.tga"
421 target_landmark_color_normal="255 255 255 255"
422 target_landmark_color_over="255 255 255 255"
423 target_landmark_color_pushed="255 255 255 255"
424 target_landmark_menu="ui:interface:land_mark_menu"
426 respawn_landmark_tex_normal="LM_respawn.tga"
427 respawn_landmark_tex_over="LM_respawn_over.tga"
428 respawn_landmark_tex_pushed="LM_respawn_pushed.tga"
429 respawn_landmark_color_normal="255 255 255 255"
430 respawn_landmark_color_over="255 255 255 255"
431 respawn_landmark_color_pushed="255 255 255 255"
432 respawn_landmark_menu="ui:interface:land_mark_menu"
434 animal_landmark_tex_normal="mektoub_map.tga"
435 animal_landmark_tex_over="mektoub_map_over.tga"
436 animal_landmark_tex_pushed="mektoub_map.tga"
437 animal_landmark_color_normal="255 255 255 255"
438 animal_landmark_color_over="255 255 255 255"
439 animal_landmark_color_pushed="255 255 255 255"
440 animal_landmark_menu="ui:interface:land_mark_menu"
442 animal_stable_landmark_tex_normal="building_state2.tga"
443 animal_stable_landmark_tex_over="mektoub_map_over.tga"
444 animal_stable_landmark_tex_pushed="mektoub_map.tga"
445 animal_stable_landmark_color_normal="255 255 255 255"
446 animal_stable_landmark_color_over="255 255 255 255"
447 animal_stable_landmark_color_pushed="255 255 255 255"
448 animal_stable_landmark_menu="ui:interface:land_mark_menu"
450 animal_dead_landmark_tex_normal="MP_skull.tga"
451 animal_dead_landmark_tex_over="mektoub_map_over.tga"
452 animal_dead_landmark_tex_pushed="mektoub_map.tga"
453 animal_dead_landmark_color_normal="255 255 255 255"
454 animal_dead_landmark_color_over="255 255 255 255"
455 animal_dead_landmark_color_pushed="255 255 255 255"
456 animal_dead_landmark_menu="ui:interface:land_mark_menu"
458 teammate_landmark_tex_normal="teammate_map.tga"
459 teammate_landmark_tex_over="teammate_map_over.tga"
460 teammate_landmark_tex_pushed="teammate_map.tga"
461 teammate_landmark_color_normal="255 255 255 255"
462 teammate_landmark_color_over="255 255 255 255"
463 teammate_landmark_color_pushed="255 255 255 255"
464 teammate_landmark_menu="ui:interface:land_mark_menu"
466 player_pos_tex="player_pos.tga"
468 frustum_view_texture = "r2_frustum.tga"
469 frustum_view_color = "255 255 255 255"
470 frustum_view_color_over = "255 255 255 63"
471 frustum_view_blend_time_in_ms = "600"
473 selection_axis_color = "0 0 0 127"
475 compass="ui:interface:compass"
477 <!-- border around the map -->
479 <group id="lm_events"
488 child_resize_w="true">
489 <view type="bitmap" id="bg" posref="ML ML" sizeref="h" w="355"
490 scale="true" color="0 0 0 0" global_color="false" texture="blank.tga" />
491 <instance template="webig_html" />
493 <link expr="@UI:VARIABLES:ISACTIVE:MAP_EVENTS" target="lm_events:active" />
495 <group id="lm_dynicons"
504 child_resize_w="true">
505 <view type="bitmap" id="bg" posref="ML ML" sizeref="h" w="355"
506 scale="true" color="0 0 0 0" global_color="false" texture="blank.tga" />
507 <instance template="webig_html" />
509 <link expr="@UI:VARIABLES:ISACTIVE:MAP_DYNICONS" target="lm_dynicons:active" />
511 <group id="lm_search"
518 child_resize_w="true">
520 <view type="bitmap" id="bg" posref="ML ML" sizeref="wh" h="25"
521 scale="true" color="100 100 100 120" global_color="false" texture="blank.tga" />
523 <instance template="edit_box_widget"
527 clear_on_escape="true"
528 enter_recover_focus="false"
529 on_focus_lost="proc" on_focus_lost_params="map_search_focuslost"
531 onchange="proc" onchange_params="map_search_onchange|ui:interface:map:content:map_content:lm_search:search:eb" />
535 button_type="push_button"
539 tx_normal="w_close_0.tga"
540 tx_pushed="w_close_0.tga"
541 tx_over="W_button_16_over"
542 onclick_l="proc" params_l="map_search_toggle"
544 <view type="text" id="lm_count" posparent="search" posref="BR TR" x="-2" color="200 200 200 255" fontsize="10" shadow="true" hardtext="0" />
546 <group id="result" posref="TR TR" x="0" y="-25" w="0" h="-20" over="true" sizeref="wh">
547 <group id="rows" x="10" w="-10" y="0" sizeref="w" posref="TL TL" child_resize_h="true" child_resize_hmargin="4" max_h="0" max_sizeref="h" max_sizeparent="parent">
548 <group id="lm_result" type="list" x="0" y="0" posref="TL TL" sizeref="w" dynamic_display_size="true" />
550 <ctrl style="skin_scroll" id="sv" posref="TL TL" x="0" y="0" target="rows" />
553 <link expr="@UI:VARIABLES:ISACTIVE:MAP_SEARCH" target="lm_search:active" />
560 <!-- ******************************************************************** -->
561 <!-- * RESPAWN MAP * -->
562 <!-- ******************************************************************** -->
565 <!-- Change This to modify the delay before an auto respawn. In Server Ticks (300 => 30 seconds) -->
566 <define id="time_before_auto_respawn" value="600" />
567 <variable entry="UI:VARIABLES:RESPAWN:MSG_SENT" type="sint64" value="0" />
569 <proc id="respawn_map_activated">
570 <action handler="exit_free_look" />
571 <action handler="set" params="dblink=UI:VARIABLES:RESPAWN:MSG_SENT|value=0" />
572 <!-- <action handler="add_link" params="id=respawn_timer_link|expr=secondsToTimeString(div(mul(div(sub(%player_percent_max,abs(@%player_hp_percent)),%player_percent_max),%time_before_auto_respawn),10))|target=ui:interface:respawn_map:content:map_content:timer:t:uc_hardtext" /> -->
573 <action handler="add_link" params="id=respawn_timer_link|expr=secondsToTimeString(mul(div(sub(%player_percent_max,abs(@%player_hp_percent)),%player_percent_max),%time_before_auto_respawn))|target=ui:interface:respawn_map:content:map_content:timer:t:uc_hardtext" />
574 <action handler="add_link" params="id=respawn_acttimer_link|expr=depends(@%player_hp_percent)|action=respawn_map_valid|params=map=ui:interface:respawn_map:content:map_content:actual_map|cond=and(eq(abs(@%player_hp_percent), %player_percent_max), and(lt(@%player_hp_percent,0), eq(@UI:VARIABLES:CDB_INIT_IN_PROGRESS, 0)) ,ne(@UI:VARIABLES:RESPAWN:MSG_SENT,1)) " />
575 <action handler="add_link" params="id=respawn_showtimer_link|expr=lt(abs(@%player_hp_percent), %player_percent_max)|target=ui:interface:respawn_map:content:map_content:timer:active" />
578 <proc id="respawn_map_deactivated">
579 <action handler="remove_link" params="id=respawn_timer_link" />
580 <action handler="remove_link" params="id=respawn_acttimer_link" />
581 <action handler="remove_link" params="id=respawn_showtimer_link" />
584 <!-- The Respawn Map Group -->
585 <group id="respawn_map" type="container" posref="BL TL" min_w="%map_respawn_min_size_w" max_w="16384" w="260" h="256" x="352" y="200" min_h="%map_respawn_min_size_h" max_h="16384"
586 resizer="true" pop_max_h="16384" pop_min_h="%map_respawn_min_size_h" pop_max_w="16384" pop_min_w="%map_respawn_min_size_w"
587 openable="false" opened="true" right_button="false"
588 movable="true" open_button="false"
589 savable="true" active_savable="false"
590 title="uiRespawnMapTitle"
591 header_color="UI:SAVE:WIN:COLORS:LAB" global_color="false"
592 win_priority="%win_priority_high"
593 on_active="proc" on_active_params="respawn_map_activated"
594 on_deactive="proc" on_deactive_params="respawn_map_deactivated"
596 <group id="header_closed" x="0" y="0" h="16" posref="TL TL" >
599 <group id="header_opened" x="0" y="0" h="16" w="260" posref="TL TL"
600 group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" >
603 <group id="content" x="0" y="0" w="0" h="0" posref="TL TL" >
604 <group id="map_content" posref="TL TL" sizeref="wh" w="0" h="-12" y="-12" >
607 <ctrl type="button" id="zoom_in" button_type="push_button" posref="TL TL" y="0" x="4" tx_normal="w_zoom_in.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga"
608 onclick_l="map_zoom_in" params_l="map=ui:interface:respawn_map:content:map_content:actual_map" tooltip="uittZoomIn" />
610 <ctrl type="button" id="zoom_out" button_type="push_button" posparent="zoom_in" posref="TR TL" y="0" x="4" tx_normal="w_zoom_out.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga"
611 onclick_l="map_zoom_out" params_l="map=ui:interface:respawn_map:content:map_content:actual_map" tooltip="uittZoomOut" />
612 <!-- center on player -->
613 <ctrl type="button" id="center" button_type="push_button" posparent="zoom_out" posref="TR TL" y="0" x="4" tx_normal="w_center_map.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga"
614 onclick_l="map_center" params_l="map=ui:interface:respawn_map:content:map_content:actual_map" tooltip="uittCenter" />
616 <ctrl style="button_ok" id="respawn" posparent="center" x="16" posref="TR TL" onclick_l="respawn_map_valid" params_l="map=ui:interface:respawn_map:content:map_content:actual_map" hardtext="uiRespawn"/>
618 <group id="timer" posparent="respawn" posref="TR TL" x="8" y="-2" child_resize_h="true" child_resize_w="true">
619 <view type="bar" id="b" ultra_mini="true" posref="TL TL" value="%player_hp_percent" range="%player_percent_max" color="255 255 255 255" color_negative="255 255 255 255" />
620 <view type="text" id="t" posparent="b" posref="TR TL" x="4" color="255 255 255 255" fontsize="8" shadow="true" hardtext="" />
623 <instance template="box_widget" id="back" posref="TL TL" sizeref="wh" w="-2" h="-22" x="1" y="-22" render_layer="0" />
625 <group type="map" id="actual_map" sizeref="wh" w="-4" h="-4" posparent="back" posref="TL TL" x="2" y="-2" render_layer="1"
626 group_onclick_r="world_map_right_click"
627 group_params_r="map=ui:interface:respawn_map:content:map_content:actual_map"
630 respawn_selected="LM_respawn_over.tga"
631 respawn_button="ui:interface:respawn_map:content:map_content:respawn"
633 respawn_landmark_tex_normal="LM_respawn.tga"
634 respawn_landmark_tex_over="LM_respawn_over.tga"
635 respawn_landmark_tex_pushed="LM_respawn_pushed.tga"
636 respawn_landmark_color_normal="255 255 255 255"
637 respawn_landmark_color_over="255 255 255 255"
638 respawn_landmark_color_pushed="255 255 255 255"
639 respawn_landmark_menu="ui:interface:land_mark_menu"
641 player_pos_tex="player_pos.tga"
644 <!-- border around the map -->
650 <!-- Change This to modify the delay after wich the Respawn Map opens. In Ms -->
651 <define id="time_to_open_respawn_map" value="4000" />
652 <variable entry="UI:VARIABLES:OPEN_RESPAWN" type="sint32" value="0" />
653 <variable entry="UI:VARIABLES:OPEN_RESPAWN_AT_TIME" type="sint32" value="0" />
655 <!-- Avoid set Active each frame for possible speed up: Use OPEN_RESPAWN intermediate -->
656 <link expr="@UI:VARIABLES:OPEN_RESPAWN" target="ui:interface:respawn_map:active" />
658 <!-- Set the Open Flag when the delay has expired -->
659 <link expr="and(@UI:VARIABLES:OPEN_RESPAWN_AT_TIME, le(@UI:VARIABLES:OPEN_RESPAWN_AT_TIME, @UI:VARIABLES:CURRENT_TIME))" target="@UI:VARIABLES:OPEN_RESPAWN" />
662 Verify player mode. because at init, mode == 0, => the window won't be opened by default
663 If Dead, then start The Timing counter, else reset.
664 NB: must not test player Life Percent, because inc each time => counter started when the user is in "coma mode"
666 <link expr="depends(@SERVER:Entities:E0:P8)" action="set"
667 params="dblink=UI:VARIABLES:OPEN_RESPAWN_AT_TIME|value=ifthenelse(
669 add(@UI:VARIABLES:CURRENT_TIME, %time_to_open_respawn_map),
673 <tree node="enter_landmark_name">
677 <tree node="respawn_map">