8 <lua file="inventory.lua" />
10 <!-- * INVENTORY * -->
11 <!-- ************* -->
15 <variable entry="UI:TEMP_INV:ALL_EMPTY"
18 <variable entry="UI:PHRASE:SELECT_MEMORY"
21 <!-- ************** -->
22 <!-- * Management * -->
23 <!-- ************** -->
24 <!-- left click on a slot of the armor or jewelry or hands -->
25 <proc id="inv_left_click_on_slot">
26 <action handler="enter_modal"
27 params="group=ui:interface:bag_choose" />
29 <!-- left click on a slot of the hotbar -->
30 <proc id="hotbar_left_click_on_slot">
31 <action handler="enter_modal"
32 params="group=ui:interface:hotbar_choose" />
34 <proc id="select_special_items">
35 <action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=0" />
36 <action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=1" />
37 <action handler="set" params="target_property=ui:interface:inventory:content:bag:money:active|value=0" />
38 <action handler="set" params="target_property=ui:interface:inventory:content:bag:elyps:active|value=1" />
39 <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_content:active|value=0" />
40 <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_bottom:active|value=0" />
41 <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_tab:active|value=0" />
42 <action handler="lua" params="artefact:restorePact()" />
43 <action handler="browse_home" params="name=ui:interface:inventory:content:bag:webitems:html" />
45 <proc id="select_bag_items">
46 <action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=1" />
47 <action handler="set" params="target_property=ui:interface:inventory:content:bag:money:active|value=1" />
48 <action handler="set" params="target_property=ui:interface:inventory:content:bag:elyps:active|value=0" />
49 <action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=0" />
50 <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_content:active|value=0" />
51 <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_bottom:active|value=0" />
52 <action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_tab:active|value=0" />
53 <action handler="lua" params="artefact:restorePact()" />
55 <!-- ************* -->
56 <!-- * EQUIPMENT * -->
57 <!-- ************* -->
58 <style style="armor_jewelry_item"
60 menu_r="%self_item_modal_menu"
61 selection_group="inventory_selection"
64 params_drag="from_slot"
65 oncandrop="inv_can_drop"
66 oncannotdrop="inv_cannot_drop"
70 params_l="inv_left_click_on_slot"
71 auto_grayed="false" />
73 <!-- ************* -->
75 <!-- ************* -->
76 <style style="hotbar_item"
78 menu_r="%hotbar_item_modal_menu"
79 selection_group="inventory_selection"
82 params_drag="from_slot"
83 oncandrop="can_drop_to_hotbar"
84 oncannotdrop="inv_cannot_drop"
88 params_l="hotbar_left_click_on_slot"
89 auto_grayed="false" />
91 <template name="img_button"
95 cancel_text="uittCancel"
104 avoid_resize_parent="false">
106 posparent="#posparent"
108 child_resize_w="true"
109 child_resize_h="true"
112 avoid_resize_parent="#avoid_resize_parent">
113 <ctrl style="button_ok"
119 onclick_l="#onclick_ok"
120 params_l="#onclick_ok_param"
122 tooltip="#tooltip_ok" />
125 button_type="push_button"
131 color="255 255 255 255"
132 col_pushed="255 255 255 255"
133 col_over="255 255 255 0"
134 onclick_l="#onclick_ok"
135 params_l="#onclick_ok_param" />
139 <template name="image_button"
152 button_type="push_button"
159 color="255 255 255 255"
160 col_pushed="255 255 255 255"
161 col_over="255 255 255 0"
162 onclick_l="#onclick_l"
163 params_l="#params_l" />
167 <template name="itemgroups_item"
177 posparent="#posparent"
179 <view type="bitmap" id="sep1" posref="TL TL" scale="true" sizeref="w" h="2" w="0" texture="W_line_hor.tga" y="1" />
180 <view type="bitmap" id="sep2" posref="BL BL" scale="true" sizeref="w" h="2" w="0" texture="W_line_hor.tga" y="-1"/>
186 over_extend_view_text="true"
193 button_type="push_button"
199 tx_normal="r2_toolbar_delete.tga"
200 tx_pushed="r2_toolbar_delete_pushed.tga"
201 tx_over="r2_toolbar_delete_over.tga"
202 global_color_normal="false"
203 global_color_over="false"
204 global_color_pushed="false"
205 onclick_l="enter_modal"
206 params_l="group=ui:interface:remove_itemgroup_confirm"
207 tooltip="uiRemove" />
210 button_type="push_button"
212 posparent="delete_button"
217 tx_normal="ar_helmet.tga"
218 tx_pushed="ar_helmet.tga"
219 tx_over="W_button_14_over.tga"
220 global_color_normal="false"
221 global_color_over="false"
222 global_color_pushed="false"
223 onclick_l="item_group_equip"
224 params_l="name=#name"
225 tooltip="uimEquip" />
229 <!-- modal box to confirm removal of group -->
230 <group type="modal" id="remove_itemgroup_confirm" exit_click_out="true" posref="TL TL" x="-8" y="8" w="100" h="60" options="skin_modal">
231 <view type="bitmap" id="b" posref="TL TL" x="4" y="-4" global_color="false" texture="w_warning_2.tga" />
232 <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" />
233 <instance template="button_ok_cancel" posref="BR BR" x="-4" y="4" onclick_ok="item_group_delete" onclick_ok_param="" onclick_cancel="leave_modal" onclick_cancel_param="" />
236 <!-- clear group name input on loss of focus -->
237 <proc id="lose_focus_group_create">
238 <action handler="set" params="target='ui:interface:inventory:content:equip:midsection:content:itemgroups:itemgroup_create:edit_name:eb:input_string'|value=''" />
239 <action handler="set" params="target='ui:interface:inv_equip:content:equip:midsection:content:itemgroups:itemgroup_create:edit_name:eb:input_string'|value=''" />
242 <!-- init preview -->
243 <proc id="init_3d_preview">
244 <!-- give preview idle animation -->
245 <action handler="set" params="target_property=ui:interface:inventory:content:equip:midsection:content:visu3d:char3d:char:anim|value=0" />
246 <action handler="set" params="target_property=ui:interface:inv_equip:content:equip:midsection:content:visu3d:char3d:char:anim|value=0" />
248 <!-- make loading text inactive -->
249 <action handler="set" params="target_property=ui:interface:inventory:content:equip:midsection:content:visu3d:loading_text:active|value=0" />
250 <action handler="set" params="target_property=ui:interface:inv_equip:content:equip:midsection:content:visu3d:loading_text:active|value=0" />
252 <!-- init 3d preview -->
253 <action handler="lua" params="game:initEquipPreview()" />
255 <!-- give preview race specific background -->
256 <action handler="set" cond="eq(@UI:TEMP:PREVIEWCHAR3D:PEOPLE,0)" params="target_property=ui:interface:inventory:content:equip:midsection:content:visu3d:char3d:env:name|value='outgame_fyros.ig'" />
257 <action handler="set" cond="eq(@UI:TEMP:PREVIEWCHAR3D:PEOPLE,1)" params="target_property=ui:interface:inventory:content:equip:midsection:content:visu3d:char3d:env:name|value='outgame_matis.ig'" />
258 <action handler="set" cond="eq(@UI:TEMP:PREVIEWCHAR3D:PEOPLE,2)" params="target_property=ui:interface:inventory:content:equip:midsection:content:visu3d:char3d:env:name|value='outgame_tryker.ig'" />
259 <action handler="set" cond="eq(@UI:TEMP:PREVIEWCHAR3D:PEOPLE,3)" params="target_property=ui:interface:inventory:content:equip:midsection:content:visu3d:char3d:env:name|value='outgame_zorai.ig'" />
261 <action handler="set" cond="eq(@UI:TEMP:PREVIEWCHAR3D:PEOPLE,0)" params="target_property=ui:interface:inv_equip:content:equip:midsection:content:visu3d:char3d:env:name|value='outgame_fyros.ig'" />
262 <action handler="set" cond="eq(@UI:TEMP:PREVIEWCHAR3D:PEOPLE,1)" params="target_property=ui:interface:inv_equip:content:equip:midsection:content:visu3d:char3d:env:name|value='outgame_matis.ig'" />
263 <action handler="set" cond="eq(@UI:TEMP:PREVIEWCHAR3D:PEOPLE,2)" params="target_property=ui:interface:inv_equip:content:equip:midsection:content:visu3d:char3d:env:name|value='outgame_tryker.ig'" />
264 <action handler="set" cond="eq(@UI:TEMP:PREVIEWCHAR3D:PEOPLE,3)" params="target_property=ui:interface:inv_equip:content:equip:midsection:content:visu3d:char3d:env:name|value='outgame_zorai.ig'" />
266 <!-- make preview active -->
267 <action handler="set" params="target_property=ui:interface:inventory:content:equip:midsection:content:visu3d:char3d:active|value=1" />
268 <action handler="set" params="target_property=ui:interface:inv_equip:content:equip:midsection:content:visu3d:char3d:active|value=1" />
271 <template name="tinv_equip">
275 child_resize_h="true"
276 child_resize_hmargin="20"
280 <group id="midsection"
286 <group id="tab_group" posref="TL TL" x="0" y="0" sizeref="w" h="24" >
287 <group type="tab" id="view_select" posref="TL TL" x="0" y="0" child_resize_w="true" h="24" >
288 <ctrl style="tab_button_new" id="tab0" x="0" posref="TL TL" group="content:equip:midsection:content:visu3d" hardtext="ui3DView"/>
289 <ctrl style="tab_button_new" id="tab1" posparent="tab0" group="content:equip:midsection:content:itemgroups" hardtext="uimGroup" />
291 <view type="bitmap" id="septab" posparent="view_select" posref="BR BL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" />
293 <group id="content" posref="BL TL" posparent="tab_group" w="140" h="173">
294 <group id="black" posref="TL TL" sizeref="h" h="0" inherit_gc_alpha="true"/>
295 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
297 <group id="visu3d" sizeref="wh" posref="TL TL" w="-3" h="-3" x="3" y="-3">
298 <scene3d id="char3d" x="0" y="0" active="false" sizeref="wh" posref="TL TL" curcam="cam" render_layer="0"
299 user_interaction="true" rotz_factor="0.017"
300 roty_factor="0" roty_limit_min="0" roty_limit_max="0"
301 dist_factor="0.005" dist_limit_min="2" dist_limit_max="3"
302 ambient="20 20 20" sun_ambient="20 20 20" sun_diffuse="80 64 32" sun_specular="0 0 0" sun_direction="0 0 0" >
304 <character3d id="char" dblink="player" pos="0.0 26.5 1" rot="0.0 0.0 0.0" />
306 <camera id="cam" fov="30" pos="0.0 24.0 1.9" target="0.0 26.5 1.9" roll="0" />
308 <light id="back" pos="0.0 28.5 2.4" color="255 128 0" near="2.5" far="4.0" />
309 <light id="lgt_m" pos="1.36 25.3 2.48" color="255 255 255" near="2.0" far="2.5" />
310 <light id="lgt_f" pos="-1.36 25.3 2.48" color="255 255 255" near="2.0" far="2.5" />
312 <shape id="shadow" name="shadow.shape" pos="0 26.5 1" rot="0.0 0.0 0.0" />
313 <ig id="env" name="" pos="0 0 0" />
315 <view type="text" id="loading_text" posref="MM MM" x="0" y="0" color="255 255 255 155" fontsize="10" shadow="true" global_color="false" hardtext="uiLoading" justification="centered" />
318 <group id="itemgroups" posref="TL TL" sizeref="h" w="140">
319 <group id="list_container" posref="TM TM" child_resize_w="true" h="133" x="0" y="-7">
320 <group id="black" posref="TR TR" w="124" inherit_gc_alpha="true"/>
321 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
327 w="119" h="-6" x="-2" y="-3">
329 <view type="text" id="empty_text" active="false" posref="MM MM" posparent="black" x="0" y="0" color="255 255 255 155" fontsize="9" shadow="true" global_color="false" multi_line="true" line_maxw="105" hardtext="uiEmptyItemgroups" justification="centered" />
330 <ctrl style="skin_scroll" id="scroll_bar" posref="TL TR" posparent="itemgroups_list" x="-4" target="itemgroups_list" target_stepy="4"/>
332 <group id="itemgroup_create" posref="BM TM" posparent="list_container" y="-4" child_resize_w="true">
333 <instance template="edit_box_widget" id="edit_name" posref="TL TL" x="0" y="0" child_resize_h="true" w="104" fontsize="10" prompt="" max_num_chars="255" clear_on_escape="true"
334 reset_focus_on_hide="true" onenter="item_group_create" enter_loose_focus="false" on_focus_lost="proc" on_focus_lost_params="lose_focus_group_create" entry_type="text" tooltip="uittItemgroupNameInput" />
335 <ctrl type="button" id="create_button" button_type="push_button" posref="MR ML" posparent="edit_name" x="2" h="18" w="18" scale="true" tx_normal="r2ed_icon_newactivity.tga" tx_pushed="r2ed_icon_newactivity.tga" tx_over="W_button_14_over.tga"
336 global_color_normal="false" global_color_over="true" global_color_pushed="true" onclick_l="item_group_create" tooltip="uimFaCrea" />
344 posparent="midsection"
345 child_resize_w="true"
352 hardtext="uiArmorTitle"
355 <ctrl style="armor_jewelry_item"
361 tx_noitem="W_AR_helmet.tga"
364 tooltip="uittHelmet" />
365 <ctrl style="armor_jewelry_item"
371 tx_noitem="W_AR_gilet.tga"
374 tooltip="uittChest" />
375 <ctrl style="armor_jewelry_item"
381 tx_noitem="W_AR_pantabotte.tga"
384 tooltip="uittLegs" />
385 <ctrl style="armor_jewelry_item"
391 tx_noitem="W_AR_botte.tga"
394 tooltip="uittFeet" />
395 <ctrl style="armor_jewelry_item"
401 tx_noitem="W_AR_armpad.tga"
404 tooltip="uittArms" />
405 <ctrl style="armor_jewelry_item"
411 tx_noitem="W_AR_hand.tga"
414 tooltip="uittHands" />
419 posparent="midsection"
420 child_resize_w="true"
427 hardtext="uiJewelryTitle"
430 <ctrl style="armor_jewelry_item"
435 tx_noitem="W_PA_earring.tga"
438 tooltip="uittEarr" />
439 <ctrl style="armor_jewelry_item"
444 tx_noitem="W_PA_bracelet.tga"
447 tooltip="uittWristr" />
448 <ctrl style="armor_jewelry_item"
450 posparent="bracelet_r"
453 tx_noitem="W_PA_ring.tga"
456 tooltip="uittFingerr" />
457 <ctrl style="armor_jewelry_item"
462 tx_noitem="W_PA_anklet.tga"
465 tooltip="uittAnkler" />
466 <ctrl style="armor_jewelry_item"
472 tx_noitem="W_PA_earring.tga"
475 tooltip="uittEarl" />
476 <ctrl style="armor_jewelry_item"
481 tx_noitem="W_PA_bracelet.tga"
484 tooltip="uittWristl" />
485 <ctrl style="armor_jewelry_item"
487 posparent="bracelet_l"
490 tx_noitem="W_PA_ring.tga"
493 tooltip="uittFingerl" />
494 <ctrl style="armor_jewelry_item"
499 tx_noitem="W_PA_anklet.tga"
502 tooltip="uittAnklel" />
503 <ctrl style="armor_jewelry_item"
505 posparent="bracelet_l"
509 tx_noitem="W_PA_diadem.tga"
510 item_slot="HEADDRESS"
512 tooltip="uittHeaddress" />
513 <ctrl style="armor_jewelry_item"
515 posparent="headdress"
519 tx_noitem="W_PA_pendant.tga"
522 tooltip="uittNeck" />
528 child_resize_w="true"
529 child_resize_h="true">
530 <instance template="tinv_hotbar"/>
536 hardtext="uiHotbarTitle"
548 tx_noitem="hand_left.tga"
549 selection_group="inventory_selection"
551 params_l="inv_left_click_on_slot"
553 menu_r="%self_item_modal_menu"
556 params_drag="from_slot"
557 oncannotdrop="inv_cannot_drop"
558 oncandrop="inv_can_drop"
560 item_slot="LEFT_HAND"
562 other_hand_slot="handr"
563 auto_grayed="false" />
572 tx_noitem="hand_right.tga"
573 selection_group="inventory_selection"
575 params_l="inv_left_click_on_slot"
577 menu_r="%self_item_modal_menu"
580 params_drag="from_slot"
581 oncannotdrop="inv_cannot_drop"
582 oncandrop="inv_can_drop"
584 item_slot="RIGHT_HAND"
586 other_hand_slot="handl"
587 auto_grayed="false" />
588 <!-- Must update some things when the item equipped change -->
589 <link expr="depends(@%bag:[%hand_r:INDEX_IN_BAG-1]:SHEET)"
590 action="phrase_update_from_hand" />
591 <link expr="depends(@%bag:[%hand_r:INDEX_IN_BAG-1]:QUALITY)"
592 action="phrase_update_from_hand" />
593 <link expr="depends(@%bag:[%hand_r:INDEX_IN_BAG-1]:ENCHANT)"
594 action="phrase_update_from_hand" />
598 <template name="tinv_hotbar" x="0" y="0">
601 child_resize_w="true"
602 child_resize_h="true"
605 <ctrl style="hotbar_item"
610 tx_noitem="W_hotbar1.tga"
612 tooltip="uittHotbarItem1" />
613 <ctrl style="hotbar_item"
619 tx_noitem="W_hotbar2.tga"
621 tooltip="uittHotbarItem2" />
622 <ctrl style="hotbar_item"
628 tx_noitem="W_hotbar3.tga"
630 tooltip="uittHotbarItem3" />
631 <ctrl style="hotbar_item"
637 tx_noitem="W_hotbar4.tga"
639 tooltip="uittHotbarItem4" />
640 <ctrl style="hotbar_item"
646 tx_noitem="W_hotbar5.tga"
648 tooltip="uittHotbarItem5" />
651 <!-- **************************** -->
652 <!-- * ALL SEPARATED CONTAINERS * -->
653 <!-- **************************** -->
654 <proc id="inv_equip_active">
655 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:INV_EQUIP|value=1" />
656 <action handler="lua" params="game:updateEquipOnResize('inv_equip', true)" />
659 <group type="container"
663 title="uiInvEquipTitle"
675 header_color="UI:SAVE:WIN:COLORS:INV"
677 on_active_params="inv_equip_active"
679 on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:INV_EQUIP|value=0"
681 on_resize_params="game:updateEquipOnResize('inv_equip', false)"
683 <group id="header_opened"
689 group_onclick_r="active_menu"
690 group_params_r="menu=ui:interface:base_menu_with_color">
698 <ctrl type="button" id="expand_button" button_type="push_button" posref="TR TR" x="-5" y="-8" scale="true" w="16" h="16"
699 color="255 255 255 200" col_over="255 255 255 255" col_pushed="255 255 255 255"
700 global_color_normal="false" global_color_pushed="false" global_color_over="false"
701 onclick_l="proc" params_l="expand_equip2" tx_over="w_button_12_over.tga" tx_normal="Switch_Ratio.tga" tx_pushed="Switch_Ratio.tga"
702 over_when_pushed="false" tooltip="uiExpandWindow" />
703 <instance template="tinv_equip" />
706 <tree node="inv_equip" />
709 <define id="hotbar_h" value="1" />
710 <define id="hotbar_v" value="2" />
712 <variable entry="UI:SAVE:HOTBAR_MODE" type="sint32" value="0" />
714 <proc id="hotbar_proc_active">
715 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:INV_HOTBAR|value=1"/>
716 <action handler="proc" params="hotbar_proc_mode" />
719 <proc id="hotbar_proc_set">
720 <action handler="set" params="dblink=UI:SAVE:HOTBAR_MODE|value=@0"/>
721 <action handler="proc" params="hotbar_proc_mode" />
724 <proc id="hotbar_proc_mode">
725 <action handler="proc" cond="ne(@UI:SAVE:HOTBAR_MODE,%hotbar_v)" params="hotbar_proc_horiz"/>
726 <action handler="proc" cond="eq(@UI:SAVE:HOTBAR_MODE,%hotbar_v)" params="hotbar_proc_vert"/>
729 <proc id="hotbar_proc_vert">
730 <action handler="set" params="target='ui:interface:hotbar_menu:horiz:active'|value=1"/>
731 <action handler="set" params="target='ui:interface:hotbar_menu:vert:active'|value=0"/>
733 <action handler="set" params="target='ui:interface:inv_hotbar:w'|value=70"/>
734 <action handler="set" params="target='ui:interface:inv_hotbar:h'|value=246"/>
736 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar1:x|value='0'"/>
737 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar2:x|value='-42'"/>
738 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar2:y|value='-48'"/>
739 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar3:x|value='-42'"/>
740 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar3:y|value='-48'"/>
741 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar4:x|value='-42'"/>
742 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar4:y|value='-48'"/>
743 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar5:x|value='-42'"/>
744 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar5:y|value='-48'"/>
747 <proc id="hotbar_proc_horiz">
748 <action handler="set" params="target='ui:interface:hotbar_menu:horiz:active'|value=0"/>
749 <action handler="set" params="target='ui:interface:hotbar_menu:vert:active'|value=1"/>
751 <action handler="set" params="target='ui:interface:inv_hotbar:w'|value=246"/>
752 <action handler="set" params="target='ui:interface:inv_hotbar:h'|value=150"/>
754 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar1:x|value='0'"/>
755 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar2:x|value='2'"/>
756 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar2:y|value='0'"/>
757 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar3:x|value='2'"/>
758 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar3:y|value='0'"/>
759 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar4:x|value='2'"/>
760 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar4:y|value='0'"/>
761 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar5:x|value='2'"/>
762 <action handler="set" params="target_property=ui:interface:inv_hotbar:content:hotbar:hotbar5:y|value='0'"/>
765 <group type="menu" id="hotbar_menu" extends="base_menu_with_color">
766 <action id="horiz" name="uiHorizontal" handler="proc" params="hotbar_proc_set|%hotbar_h"/>
767 <action id="vert" name="uiVertical" handler="proc" params="hotbar_proc_set|%hotbar_v"/>
772 <group type="container"
779 group_onclick_r="active_menu"
780 group_params_r="menu=ui:interface:hotbar_menu"
784 header_color="UI:SAVE:WIN:COLORS:INV"
786 on_active_params="hotbar_proc_active"
788 on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:INV_HOTBAR|value=0">
791 child_resize_h="true"
792 child_resize_hmargin="10">
793 <instance template="tinv_hotbar" posref="TR TL" y="-1"/>
795 <link expr="depends(@UI:SAVE:HOTBAR_MODE)" action="proc" params="gestionsets_proc_mode" />
797 <tree node="inv_hotbar" />
798 <!-- Inventory Player Bag -->
799 <group style="inv_container"
801 title="uiInventoryTitle"
802 header_color="UI:SAVE:WIN:COLORS:INV"
804 on_active_params="dblink=UI:VARIABLES:ISACTIVE:INV_BAG|value=1"
806 on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:INV_BAG|value=0"
807 title_class="formated">
808 <group id="header_closed"
812 posref="TL TL"></group>
813 <group id="header_opened"
818 group_onclick_r="active_menu"
819 group_params_r="menu=ui:interface:base_menu_with_color">
820 <instance template="tinv_nbslots_bulk_weight"
825 inv_bulk_max="%bag_bulk_max" />
830 <instance template="tinv_item_list"
832 inv_branch_nb="%max_bag_invslot"
837 inv_type="INV_BAG" />
844 hardtext="uiMoneyTitle"
847 <instance template="argent"
849 posparent="moneyTitle"
856 <tree node="inv_bag" />
857 <!-- Inventory Player Room -->
858 <group style="inv_container"
860 title="uiInvRoomTitle"
861 header_color="UI:SAVE:WIN:COLORS:TRADE"
863 on_active_params="dblink=UI:VARIABLES:ISACTIVE:INV_ROOM|value=1"
865 on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:INV_ROOM|value=0">
867 <group id="header_closed"
871 posref="TL TL"></group>
872 <group id="header_opened"
877 group_onclick_r="active_menu"
878 group_params_r="menu=ui:interface:base_menu_with_color">
879 <instance template="tinv_nbslots_bulk_weight"
882 inv_branch="%room_inv_dbentry"
883 inv_bulk_max="%room_inv_bulk_max" />
888 <instance template="tinv_item_list"
890 inv_branch_nb="%max_room_invslot"
894 inv_branch="%room_inv_dbentry"
895 inv_type="INV_ROOM" />
898 <tree node="inv_room" />
899 <!-- ********************* -->
900 <!-- * GROUPED INVENTORY * -->
901 <!-- ********************* -->
902 <template name="tinv_animal"
914 <instance template="tinv_nbslots_bulk_weight"
917 inv_branch_nb="%max_animal_invslot"
918 inv_branch="#bag_entry"
919 inv_bulk_max="#info_entry:BULK_MAX" />
920 <instance template="tinv_item_list"
925 inv_branch_nb="%max_animal_invslot"
926 inv_branch="#bag_entry"
928 animal_status="#info_entry:STATUS" />
934 color="255 255 255 255"
937 <link expr="getAnimalInventoryStateText(@#info_entry:STATUS)"
938 target="disable_txt:hardtext" />
941 <!-- FAKE SOLUTION -->
942 <proc id="inventory_focus">
943 <action handler="set" params="target='ui:interface:inventory:pop_min_w'|value=380" />
944 <action handler="set" params="target='ui:interface:inventory:content:expand_button:active'|value=0" />
946 <proc id="equip_focus">
947 <action handler="set" params="target='ui:interface:inventory:pop_min_w'|value=290" />
948 <action handler="set" params="target='ui:interface:inventory:content:expand_button:active'|value=1" />
949 <action handler="lua" params="game:updateEquipOnResize('inventory', true)" />
951 <proc id="inventory_active">
952 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:INVENTORY|value=1" />
953 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:INV_EQUIP_3D|value=1" />
955 <proc id="inventory_deactive">
956 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:INVENTORY|value=0" />
957 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:INV_EQUIP_3D|value=0" />
959 <proc id="expand_equip">
960 <action handler="set" params="target='ui:interface:inventory:w'|value=451" />
961 <action handler="set" params="target='ui:interface:inventory:h'|value=346" />
962 <action handler="lua" params="game:updateEquipOnResize('inventory', false)" />
964 <proc id="expand_equip2">
965 <action handler="set" params="target='ui:interface:inv_equip:w'|value=451" />
966 <action handler="set" params="target='ui:interface:inv_equip:h'|value=346" />
967 <action handler="lua" params="game:updateEquipOnResize('inv_equip', false)" />
969 <group type="container"
971 header_active="false"
984 global_color_over="true"
986 on_active_params="inventory_active"
988 on_deactive_params="inventory_deactive"
990 on_resize_params="game:updateEquipOnResize('inventory', false)"
991 resizer_top_size="5">
992 <group id="header_opened"
998 group_onclick_r="active_menu"
999 group_params_r="menu=ui:interface:base_menu_with_color">
1003 child_resize_w="true"
1008 <ctrl style="tab_button_new"
1013 hardtext="uitabInvBag"
1018 params_l="inventory_focus" />
1019 <ctrl style="tab_button_new"
1022 group="content:equip"
1023 hardtext="uitabInvEquip"
1026 params_r="inv_equip"
1028 params_l="equip_focus" />
1029 <!-- MAX_INVENTORY_ANIMAL -->
1030 <ctrl style="tab_button_new"
1034 hardtext="uitabInvPAMount0"
1039 params_l="inventory_focus" />
1040 <ctrl style="tab_button_new"
1044 hardtext="uitabInvPAMount1"
1049 params_l="inventory_focus" />
1050 <ctrl style="tab_button_new"
1054 hardtext="uitabInvPAMount2"
1059 params_l="inventory_focus" />
1060 <ctrl style="tab_button_new"
1064 hardtext="uitabInvPAMount3"
1069 params_l="inventory_focus" />
1070 <ctrl style="tab_button_new"
1074 hardtext="uitabInvPAZig1"
1079 params_l="inventory_focus" />
1080 <ctrl style="tab_button_new"
1084 hardtext="uitabInvPAZig2"
1089 params_l="inventory_focus" />
1090 <ctrl style="tab_button_new"
1094 hardtext="uitabInvPAZig3"
1099 params_l="inventory_focus" />
1100 <ctrl style="tab_button_new"
1103 group="content:guild"
1104 hardtext="uitabInvGuild"
1107 params_r="dblink=UI:SAVE:INVENTORY_GUILD_WANT_POPUP|value=1"
1109 params_l="inventory_focus" />
1110 <ctrl style="tab_button_new"
1113 group="content:room"
1114 hardtext="uitabInvRoom"
1119 params_l="inventory_focus" />
1120 <link expr="not(@UI:VARIABLES:ISACTIVE:INV_BAG)"
1121 target="tab0:active" />
1122 <link expr="not(@UI:VARIABLES:ISACTIVE:INV_EQUIP)"
1123 target="tab1:active" />
1124 <!-- MAX_INVENTORY_ANIMAL -->
1125 <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA0), isAnimalStatusPresent(@%pa_beast0:STATUS))"
1126 target="tab2:active" />
1127 <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA1), isAnimalStatusPresent(@%pa_beast1:STATUS))"
1128 target="tab3:active" />
1129 <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA2), isAnimalStatusPresent(@%pa_beast2:STATUS))"
1130 target="tab4:active" />
1131 <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA3), isAnimalStatusPresent(@%pa_beast3:STATUS))"
1132 target="tab5:active" />
1133 <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA4), isAnimalStatusPresent(@%pa_beast4:STATUS))"
1134 target="tab6:active" />
1135 <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA5), isAnimalStatusPresent(@%pa_beast5:STATUS))"
1136 target="tab7:active" />
1137 <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA6), isAnimalStatusPresent(@%pa_beast6:STATUS))"
1138 target="tab8:active" />
1139 <!-- MAX_INVENTORY_ANIMAL -->
1140 <link expr="switch(@%pa_beast0:TYPE, 'uitabInvPAMount0', 'uitabInvPAMount0', 'uitabInvPAPacker0', 'uitabInvPADemon0')"
1141 target="tab2:hardtext" />
1142 <link expr="switch(@%pa_beast1:TYPE, 'uitabInvPAMount1', 'uitabInvPAMount1', 'uitabInvPAPacker1', 'uitabInvPADemon1')"
1143 target="tab3:hardtext" />
1144 <link expr="switch(@%pa_beast2:TYPE, 'uitabInvPAMount2', 'uitabInvPAMount2', 'uitabInvPAPacker2', 'uitabInvPADemon2')"
1145 target="tab4:hardtext" />
1146 <link expr="switch(@%pa_beast3:TYPE, 'uitabInvPAMount3', 'uitabInvPAMount3', 'uitabInvPAPacker3', 'uitabInvPADemon3')"
1147 target="tab5:hardtext" />
1148 <link expr="and(%is_guild_present, not(@UI:SAVE:INVENTORY_GUILD_WANT_POPUP), @UI:TEMP:INVENTORY_GUILD_OPENED)"
1149 target="tab9:active" />
1150 <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_ROOM), @UI:TEMP:INVENTORY_ROOM_OPENED)"
1151 target="tab10:active" />
1155 posparent="inv_select"
1163 color="166 166 166 255" />
1170 <ctrl type="button" id="expand_button" button_type="push_button" posref="TR TR" x="-5" y="-8" scale="true" w="16" h="16"
1171 color="255 255 255 200" col_over="255 255 255 255" col_pushed="255 255 255 255" active="false"
1172 global_color_normal="false" global_color_pushed="false" global_color_over="false"
1173 onclick_l="proc" params_l="expand_equip" tx_over="w_button_12_over.tga" tx_normal="Switch_Ratio.tga" tx_pushed="Switch_Ratio.tga"
1174 over_when_pushed="false" tooltip="uiExpandWindow" />
1176 <instance template="tinv_equip" />
1185 <!-- Special Items -->
1186 <ctrl style="text_button_16"
1192 hardtext="uitabInvBag"
1193 tooltip="uitabInvBag"
1195 params_l="select_bag_items" />
1197 <ctrl style="text_button_16"
1200 posparent="bag_items"
1204 hardtext="uiSpecialLabo"
1205 tooltip="uiSpecialLabo"
1207 params_l="select_special_items" />
1209 <ctrl id="artefact_tab"
1212 posparent="special_items"
1216 instant_help="false"
1217 tx_normal="r2_palette_act.tga"
1218 tx_pushed="r2_palette_act.tga"
1219 tx_over="r2_palette_act.tga" />
1221 <group id="webitems" posref="TL TL" sizeref="wh" h="-35" w="0" x="-10" y="-15" active="0">
1222 <instance id="html" template="webig_html_noborder" x="0" home="https://app.ryzom.com/app_arcc/index.php?action=mItem_DisplayUserItems" browse_redo="" browse_undo="" browse_refresh="" />
1225 <group id="artefact_content" posref="TL TL" sizeref="wh" h="-35" w="0" x="-8" y="-15" active="0">
1226 <instance id="html" template="webig_html_noborder" x="0" home="" browse_redo="" browse_undo="" browse_refresh="" />
1228 <group id="artefact_bottom" posref="BR BR" sizeref="wh" h="0" w="0" x="0" y="0" global_color="false" active="0">
1231 button_type="push_button"
1235 tx_normal="W_win_popup.tga"
1236 tx_pushed="W_win_popup.tga"
1237 tx_over="W_button_16_over.tga"
1239 params_l="artefact_win_detach" />
1240 <instance template="check_box"
1246 tooltip="uiArtefactHelp"
1247 instant_help="false"
1248 dblink="UI:SAVE:TELEPORT:DO_PACT" />
1257 <instance template="tinv_nbslots_bulk_weight"
1261 inv_bulk_max="%bag_bulk_max" />
1262 <!-- y="-18" (because of webig buttons) messes filter icon placement (y should be "-16") -->
1263 <instance template="tinv_item_list"
1265 inv_branch_nb="%max_bag_invslot"
1270 inv_type="INV_BAG" />
1271 <instance template="argent"
1277 <instance template="elyps"
1286 <instance template="tinv_animal"
1288 info_entry="%pa_beast0"
1289 bag_entry="%pa_bag0"
1290 icon_db="INV_PA0" />
1292 <instance template="tinv_animal"
1294 info_entry="%pa_beast1"
1295 bag_entry="%pa_bag1"
1296 icon_db="INV_PA1" />
1298 <instance template="tinv_animal"
1300 info_entry="%pa_beast2"
1301 bag_entry="%pa_bag2"
1302 icon_db="INV_PA2" />
1304 <instance template="tinv_animal"
1306 info_entry="%pa_beast3"
1307 bag_entry="%pa_bag3"
1308 icon_db="INV_PA3" />
1310 <instance template="tinv_animal"
1312 info_entry="%pa_beast4"
1313 bag_entry="%pa_bag4"
1314 icon_db="INV_PA4" />
1316 <instance template="tinv_animal"
1318 info_entry="%pa_beast5"
1319 bag_entry="%pa_bag5"
1320 icon_db="INV_PA5" />
1322 <instance template="tinv_animal"
1324 info_entry="%pa_beast6"
1325 bag_entry="%pa_bag6"
1326 icon_db="INV_PA6" />
1335 <instance template="tinv_nbslots_bulk_weight"
1338 inv_branch="%guild_inv_dbentry"
1339 inv_bulk_max="%guild_inv_bulk_max" />
1340 <instance template="tinv_item_list"
1342 inv_branch_nb="%max_guild_invslot"
1346 inv_branch="%guild_inv_dbentry"
1347 inv_type="INV_GUILD" />
1348 <instance template="argent"
1353 value="%guild_inv_money" />
1354 <ctrl style="new_element_header"
1360 hardtext="uittGetMoney"
1362 params_l="guild_get_money" />
1363 <ctrl style="new_element_header"
1366 posparent="getmoney_but"
1369 hardtext="uittPutMoney"
1371 params_l="guild_put_money" />
1381 <instance template="tinv_nbslots_bulk_weight"
1384 inv_branch="%room_inv_dbentry"
1385 inv_bulk_max="%room_inv_bulk_max" />
1386 <instance template="tinv_item_list"
1388 inv_branch_nb="%max_room_invslot"
1392 inv_branch="%room_inv_dbentry"
1393 inv_type="INV_ROOM" />
1394 <instance template="argent"
1399 value="%room_inv_money" />
1403 <tree node="inventory" />
1405 <anim id="anim_inventory_char_rotate" duration="30" disable_buttons="false" on_finish="proc" on_finish_params="inventory_char_rotate" >
1406 <track type="linear" target="inventory:content:char3d:char:rotz">
1407 <key time="0.0" value="0" />
1408 <key time="30.0" value="360" />
1412 <!-- *********************** -->
1413 <!-- * TEMPORARY INVENTORY * -->
1414 <!-- *********************** -->
1415 <proc id="temp_inventory_activated">
1416 <action handler="proc"
1417 params="memorize_inventory_state" />
1418 <action handler="context_help_html"
1419 params="inventory" />
1421 <!-- Make the temp inventory modal parent on faber execution, so the faber can not be done if temp inventory opened
1422 Same For Missions selection or Mission selection validation
1424 <group id="temp_inventory"
1434 right_button="false"
1440 win_priority="%win_priority_high"
1442 on_active_params="temp_inventory_activated"
1444 on_deactive_params="restore_inventory_state"
1445 modal_parent="phrase_faber_execution|bot_chat_missions|bot_chat_accept_mission">
1447 <group id="header_closed"
1451 posref="TL TL"></group>
1452 <group id="header_opened"
1457 group_onclick_r="active_menu"
1458 group_params_r="menu=ui:interface:base_menu_with_color">
1463 texture="W_weight.tga"
1464 global_color="false" />
1471 color="255 255 255 255"
1472 global_color="false"
1475 <link expr="identity(getItemsWeight('%temp_inv_dbentry',0,%max_temp_invslot),@%temp_inv_dbentry)"
1476 target="weight_txt:hardtext" />
1481 <group id="list_of_items"
1488 <!-- The H should be "42+hspace" * Number of rows. Setup list.max_h too below -->
1489 <group type="list_sheet_text"
1494 child_resize_h="false"
1504 maxitem="%max_temp_invslot"
1506 value="%temp_inv_dbentry"
1508 selection_group="buy_selection"
1509 onclick_r="open_item_help"
1510 onclick_l="inv_temp_to_bag"
1511 over_color="%bot_chat_sheet_selection_normal"
1512 over_col_pushed="%bot_chat_sheet_selection_pushed"
1513 over_col_over="%bot_chat_sheet_selection_over"
1514 color="255 255 255 255"
1518 multi_line_space="0">
1519 <ctrl style="skin_scroll"
1522 target_stepy="44" />
1525 max_sizeparent="parent"
1538 posparent="list_of_items"
1544 texture="W_line_hor.tga" />
1545 <instance template="button_ok_cancel"
1549 onclick_ok="inv_temp_all"
1550 ok_text="uittTakeAll"
1551 onclick_cancel="inv_temp_none"
1552 cancel_text="uittDropAll" />
1553 <!-- Gray the OK button if the inventory is empty -->
1554 <link expr="@UI:TEMP_INV:ALL_EMPTY"
1555 target="ok_cancel:ok:frozen" />
1558 <tree node="temp_inventory" />
1562 <proc id="memory_phrase_check"></proc>
1563 <!-- context menu for memory button -->
1565 id="cm_memory_phrase"
1567 on_active="phrase_check_can_cristalize">
1569 name="uimCristalize"
1570 handler="phrase_cristalize"
1571 icon="cristal_spell.tga" />
1572 <!-- The erase phrase on the memory is possible only if the phrase composition is not active, and the current phrase is not executed -->
1575 handler="delete_phrase_or_forget_macro"
1576 cond="and(eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0),isPhraseMenuNotExecuting())"
1577 icon="r2ed_not_current_act.tga" />
1578 <!-- The edit direct on the memory is possible only if the phrase composition is not active, and the current phrase is not executed -->
1580 name="uimPhraseEdit"
1581 handler="phrase_edit"
1582 cond="and(eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0),isPhraseMenuNotExecuting())"
1583 icon="r2ed_edit_dialog.tga" />
1586 handler="open_phraseid_help"
1587 icon="brick_default.tga" />
1590 handler="phrase_memory_copy"
1592 icon="ico_extracting.tga" />
1595 handler="phrase_memory_copy"
1596 icon="r2ed_tool_copy.tga" />
1598 <!-- context menu for memory button, when slot is empty -->
1600 id="cm_memory_phrase_empty"
1601 extends="base_menu">
1602 <!-- The new direct on the memory is possible only if the phrase composition is not active -->
1605 handler="phrase_new"
1606 cond="eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0)"
1607 icon="curs_create.tga" />
1610 handler="memorize_phrase_or_macro"
1611 icon="r2ed_tool_paste.tga" />
1613 <!-- context menu for memory button when it is a macro-->
1615 id="cm_memory_macro"
1617 on_active="phrase_check_can_cristalize">
1619 name="uimForgetMacro"
1620 handler="delete_phrase_or_forget_macro"
1621 icon="r2ed_not_current_act.tga" />
1623 <!-- Defines memory ctrl -->
1624 <template name="ctrl_memory"
1633 value="UI:PHRASE:MEMORY:#index"
1639 posparent="#posparent"
1640 tx_noitem="#tx_noitem"
1641 oncandrop="can_memorize_phrase_or_macro"
1642 ondrop="memorize_phrase_or_macro"
1644 menu_r="ui:interface:cm_memory_phrase"
1645 menu_r_empty_slot="ui:interface:cm_memory_phrase_empty"
1648 onclick_r="phrase_memory_before_menu"
1649 onclick_l="cast_phrase_or_create_new"
1650 tooltip_parent="win"
1651 tooltip_posref="BL TL"
1652 tooltip_posref_alt="TL TR" />
1653 <link expr="eq(@UI:SAVE:GESTIONSETS:DRAGDROP,1)"
1654 target="s#index:dragable" />
1656 <!-- Defines memory ctrl -->
1657 <template name="ctrl_alt_memory"
1666 value="UI:PHRASE:MEMORY_ALT:#index"
1672 posparent="#posparent"
1673 tx_noitem="#tx_noitem"
1674 oncandrop="can_memorize_phrase_or_macro"
1675 ondrop="memorize_phrase_or_macro"
1677 menu_r="ui:interface:cm_memory_phrase"
1678 menu_r_empty_slot="ui:interface:cm_memory_phrase_empty"
1681 onclick_r="phrase_memory_before_menu"
1682 onclick_l="cast_phrase_or_create_new"
1683 tooltip_parent="win"
1684 tooltip_posref="TR TL"
1685 tooltip_posref_alt="TL TR" />
1686 <link expr="eq(@UI:SAVE:GESTIONSETS2:DRAGDROP,1)"
1687 target="s#index:dragable" />
1689 <!-- System: must update the memory ctrls regen range BRICK_TICK_RANGE database is changed -->
1690 <link expr="@SERVER:FLAGS:BRICK_TICK_RANGE"
1691 action="phrase_update_all_memory_ctrl_regen_tick_range" />
1693 <!-- Defines memory lock ctrl -->
1694 <template name="lock_button"
1705 button_type="toggle_button"
1706 posparent="#posparent"
1711 tx_normal="W_button_spellock_off.tga"
1712 tx_pushed="W_button_spellock_on.tga"
1713 tx_over="W_button_spellock_over.tga" />
1716 <group type="container"
1721 header_active="false"
1722 right_button="false"
1723 group_onclick_r="active_menu"
1724 group_params_r="menu=ui:interface:gestionsets_menu"
1729 global_color="false"
1730 header_color="UI:SAVE:WIN:COLORS:INV"
1733 on_active_params="dblink=UI:VARIABLES:ISACTIVE:SETS|value=1"
1735 on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:SETS|value=0"
1736 help_page="interf_action_bar.html"
1737 on_move="lua:game:updateCurrentActionPosition()">
1738 <group id="header_closed"
1755 tx_noitem="hand_right.tga"
1756 selection_group="inventory_selection"
1758 params_l="inv_left_click_on_slot"
1760 menu_r="%self_item_modal_menu"
1763 params_drag="from_slot"
1764 oncannotdrop="inv_cannot_drop"
1765 oncandrop="inv_can_drop"
1767 item_slot="RIGHT_HAND"
1769 other_hand_slot="handl"
1771 tooltip_parent="win" />
1776 tx_noitem="hand_left.tga"
1777 selection_group="inventory_selection"
1779 params_l="inv_left_click_on_slot"
1781 menu_r="%self_item_modal_menu"
1784 params_drag="from_slot"
1785 oncannotdrop="inv_cannot_drop"
1786 oncandrop="inv_can_drop"
1788 item_slot="LEFT_HAND"
1790 other_hand_slot="handr"
1792 tooltip_parent="win" />
1793 <!-- Must update some things when the item equipped change -->
1794 <link expr="depends(@%bag:[%hand_r:INDEX_IN_BAG-1]:SHEET)"
1795 action="phrase_update_from_hand" />
1796 <link expr="depends(@%bag:[%hand_r:INDEX_IN_BAG-1]:QUALITY)"
1797 action="phrase_update_from_hand" />
1798 <link expr="depends(@%bag:[%hand_r:INDEX_IN_BAG-1]:ENCHANT)"
1799 action="phrase_update_from_hand" />
1801 <group id="shortcuts"
1807 <!-- The Shortcuts. Don't modify ids -->
1808 <instance template="ctrl_memory"
1812 tx_noitem="W_slot_shortcut_id0.tga" />
1813 <instance template="ctrl_memory"
1817 tx_noitem="W_slot_shortcut_id1.tga" />
1818 <instance template="ctrl_memory"
1822 tx_noitem="W_slot_shortcut_id2.tga" />
1823 <instance template="ctrl_memory"
1827 tx_noitem="W_slot_shortcut_id3.tga" />
1828 <instance template="ctrl_memory"
1832 tx_noitem="W_slot_shortcut_id4.tga" />
1833 <instance template="ctrl_memory"
1837 tx_noitem="W_slot_shortcut_id5.tga" />
1838 <instance template="ctrl_memory"
1842 tx_noitem="W_slot_shortcut_id6.tga" />
1843 <instance template="ctrl_memory"
1847 tx_noitem="W_slot_shortcut_id7.tga" />
1848 <instance template="ctrl_memory"
1852 tx_noitem="W_slot_shortcut_id8.tga" />
1853 <instance template="ctrl_memory"
1857 tx_noitem="W_slot_shortcut_id9.tga" />
1858 <instance template="ctrl_memory"
1862 tx_noitem="W_slot_shortcut_shift_id0.tga" />
1863 <instance template="ctrl_memory"
1867 tx_noitem="W_slot_shortcut_shift_id1.tga" />
1868 <instance template="ctrl_memory"
1872 tx_noitem="W_slot_shortcut_shift_id2.tga" />
1873 <instance template="ctrl_memory"
1877 tx_noitem="W_slot_shortcut_shift_id3.tga" />
1878 <instance template="ctrl_memory"
1882 tx_noitem="W_slot_shortcut_shift_id4.tga" />
1883 <instance template="ctrl_memory"
1887 tx_noitem="W_slot_shortcut_shift_id5.tga" />
1888 <instance template="ctrl_memory"
1892 tx_noitem="W_slot_shortcut_shift_id6.tga" />
1893 <instance template="ctrl_memory"
1897 tx_noitem="W_slot_shortcut_shift_id7.tga" />
1898 <instance template="ctrl_memory"
1902 tx_noitem="W_slot_shortcut_shift_id8.tga" />
1903 <instance template="ctrl_memory"
1907 tx_noitem="W_slot_shortcut_shift_id9.tga" />
1908 <!-- The NextAction and CyclingAction Markers. Don't modify ids. They are posparented in code to the good ctrl -->
1910 id="view_next_action"
1911 texture="action_next.tga"
1912 global_color="false"
1919 id="view_cycle_action"
1920 texture="action_cycle.tga"
1921 global_color="false"
1927 <!-- They are hid special accouting to server state -->
1928 <link expr="@SERVER:EXECUTE_PHRASE:NEXT_COUNTER"
1929 action="phrase_counter_update"
1930 params="cyclic=0" />
1931 <link expr="@SERVER:EXECUTE_PHRASE:CYCLE_COUNTER"
1932 action="phrase_counter_update"
1933 params="cyclic=1" />
1934 <link expr="@UI:VARIABLES:CURRENT_TIME"
1935 action="phrase_debug_client" />
1937 <group type="select_number"
1939 value="UI:PHRASE:SELECT_MEMORY"
1947 posparent="shortcuts"
1953 texture="W_slot_number.tga" />
1956 posparent="slot_number"
1960 color="255 255 255 255"
1964 global_color="false" />
1967 button_type="push_button"
1971 tx_normal="W_arrow_up_1.tga"
1972 tx_pushed="W_arrow_up_1.tga"
1973 tx_over="W_button_12_over.tga"
1974 tooltip="uittHandSet"
1975 tooltip_parent="win" />
1978 button_type="push_button"
1982 tx_normal="W_arrow_down_1.tga"
1983 tx_pushed="W_arrow_down_1.tga"
1984 tx_over="W_button_12_over.tga"
1985 tooltip="uittHandSet"
1986 tooltip_parent="win" />
1988 <link expr="@UI:PHRASE:SELECT_MEMORY"
1989 action="phrase_select_memory"
1990 params="value=add(@UI:PHRASE:SELECT_MEMORY,-1)" />
1992 <tree node="gestionsets" />
1994 <!-- second hands bar -->
1995 <define id="gestionsets_h" value="1" />
1996 <define id="gestionsets_v" value="2" />
1998 <variable entry="UI:SAVE:GESTIONSETS:DRAGDROP" type="sint32" value="1" />
1999 <variable entry="UI:SAVE:GESTIONSETS2:DRAGDROP" type="sint32" value="1" />
2000 <variable entry="UI:SAVE:GESTIONSETS2_MODE" type="sint32" value="0" />
2002 <proc id="gestionsets2_proc_active">
2003 <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:SETS2|value=1"/>
2004 <action handler="proc" params="gestionsets2_proc_mode" />
2007 <proc id="gestionsets2_proc_set">
2008 <action handler="set" params="dblink=UI:SAVE:GESTIONSETS2_MODE|value=@0"/>
2009 <action handler="proc" params="gestionsets2_proc_mode" />
2012 <proc id="gestionsets2_proc_mode">
2013 <action handler="proc" cond="eq(@UI:SAVE:GESTIONSETS2_MODE,%gestionsets_h)" params="gestionsets2_proc_horiz"/>
2014 <action handler="proc" cond="ne(@UI:SAVE:GESTIONSETS2_MODE,%gestionsets_h)" params="gestionsets2_proc_vert"/>
2017 <proc id="gestionsets2_proc_vert">
2018 <action handler="set" params="target='ui:interface:gestionsets2_menu:horiz:active'|value=1"/>
2019 <action handler="set" params="target='ui:interface:gestionsets2_menu:vert:active'|value=0"/>
2021 <action handler="set" params="target='ui:interface:gestionsets2:w'|value=68"/>
2022 <action handler="set" params="target='ui:interface:gestionsets2:h'|value=300"/>
2024 <action handler="set" params="target='ui:interface:gestionsets2:select_memory:active'|value=1"/>
2025 <action handler="set" params="target='ui:interface:gestionsets2:select_memory_h:active'|value=0"/>
2027 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:w'|value=68"/>
2028 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:h'|value=300"/>
2030 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:w'|value=68"/>
2031 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:h'|value=300"/>
2033 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s0:x'|value=0"/>
2034 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s0:y'|value=0"/>
2036 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s1:x'|value=0"/>
2037 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s1:y'|value=-28"/>
2039 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s2:x'|value=0"/>
2040 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s2:y'|value=-56"/>
2042 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s3:x'|value=0"/>
2043 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s3:y'|value=-84"/>
2045 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s4:x'|value=0"/>
2046 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s4:y'|value=-112"/>
2048 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s5:x'|value=0"/>
2049 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s5:y'|value=-140"/>
2051 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s6:x'|value=0"/>
2052 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s6:y'|value=-168"/>
2054 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s7:x'|value=0"/>
2055 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s7:y'|value=-196"/>
2057 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s8:x'|value=0"/>
2058 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s8:y'|value=-224"/>
2060 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s9:x'|value=0"/>
2061 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s9:y'|value=-252"/>
2063 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s10:x'|value=26"/>
2064 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s10:y'|value=0"/>
2066 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s11:x'|value=26"/>
2067 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s11:y'|value=-28"/>
2069 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s12:x'|value=26"/>
2070 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s12:y'|value=-56"/>
2072 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s13:x'|value=26"/>
2073 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s13:y'|value=-84"/>
2075 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s14:x'|value=26"/>
2076 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s14:y'|value=-112"/>
2078 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s15:x'|value=26"/>
2079 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s15:y'|value=-140"/>
2081 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s16:x'|value=26"/>
2082 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s16:y'|value=-168"/>
2084 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s17:x'|value=26"/>
2085 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s17:y'|value=-196"/>
2087 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s18:x'|value=26"/>
2088 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s18:y'|value=-224"/>
2090 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s19:x'|value=26"/>
2091 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s19:y'|value=-252"/>
2094 <proc id="gestionsets2_proc_horiz">
2095 <action handler="set" params="target='ui:interface:gestionsets2_menu:horiz:active'|value=0"/>
2096 <action handler="set" params="target='ui:interface:gestionsets2_menu:vert:active'|value=1"/>
2098 <action handler="set" params="target='ui:interface:gestionsets2:w'|value=315"/>
2099 <action handler="set" params="target='ui:interface:gestionsets2:h'|value=52"/>
2101 <action handler="set" params="target='ui:interface:gestionsets2:select_memory:active'|value=0"/>
2102 <action handler="set" params="target='ui:interface:gestionsets2:select_memory_h:active'|value=1"/>
2104 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:w'|value=315"/>
2105 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:h'|value=52"/>
2107 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:w'|value=315"/>
2108 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:h'|value=52"/>
2110 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s0:x'|value=0"/>
2111 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s0:y'|value=0"/>
2113 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s1:x'|value=28"/>
2114 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s1:y'|value=0"/>
2116 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s2:x'|value=56"/>
2117 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s2:y'|value=0"/>
2119 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s3:x'|value=84"/>
2120 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s3:y'|value=0"/>
2122 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s4:x'|value=112"/>
2123 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s4:y'|value=0"/>
2125 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s5:x'|value=140"/>
2126 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s5:y'|value=0"/>
2128 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s6:x'|value=168"/>
2129 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s6:y'|value=0"/>
2131 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s7:x'|value=196"/>
2132 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s7:y'|value=0"/>
2134 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s8:x'|value=224"/>
2135 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s8:y'|value=0"/>
2137 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s9:x'|value=252"/>
2138 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s9:y'|value=0"/>
2140 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s10:x'|value=0"/>
2141 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s10:y'|value=-26"/>
2143 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s11:x'|value=28"/>
2144 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s11:y'|value=-26"/>
2146 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s12:x'|value=56"/>
2147 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s12:y'|value=-26"/>
2149 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s13:x'|value=84"/>
2150 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s13:y'|value=-26"/>
2152 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s14:x'|value=112"/>
2153 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s14:y'|value=-26"/>
2155 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s15:x'|value=140"/>
2156 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s15:y'|value=-26"/>
2158 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s16:x'|value=168"/>
2159 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s16:y'|value=-26"/>
2161 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s17:x'|value=196"/>
2162 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s17:y'|value=-26"/>
2164 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s18:x'|value=224"/>
2165 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s18:y'|value=-26"/>
2167 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s19:x'|value=252"/>
2168 <action handler="set" params="target='ui:interface:gestionsets2:header_closed:shortcuts:s19:y'|value=-26"/>
2171 <!-- show/hide menu options -->
2172 <proc id="proc_gestionsets_menu_iconlock">
2173 <action handler="set" params="target='ui:interface:gestionsets_menu:enable_dragdrop:active'|value=not(@UI:SAVE:GESTIONSETS:DRAGDROP)" />
2174 <action handler="set" params="target='ui:interface:gestionsets_menu:disable_dragdrop:active'|value=@UI:SAVE:GESTIONSETS:DRAGDROP" />
2177 <proc id="proc_gestionsets2_menu_iconlock">
2178 <action handler="set" params="target='ui:interface:gestionsets2_menu:enable_dragdrop:active'|value=not(@UI:SAVE:GESTIONSETS2:DRAGDROP)" />
2179 <action handler="set" params="target='ui:interface:gestionsets2_menu:disable_dragdrop:active'|value=@UI:SAVE:GESTIONSETS2:DRAGDROP" />
2183 <group type="menu" id="gestionsets_menu" extends="base_menu_with_color">
2184 <action id="enable_dragdrop" name="uiUnlockIcons" handler="set" params="dblink=UI:SAVE:GESTIONSETS:DRAGDROP|value=1" />
2185 <action id="disable_dragdrop" name="uiLockIcons" handler="set" params="dblink=UI:SAVE:GESTIONSETS:DRAGDROP|value=0" />
2189 <group type="menu" id="gestionsets2_menu" extends="base_menu_with_color">
2190 <action id="enable_dragdrop" name="uiUnlockIcons" handler="set" params="dblink=UI:SAVE:GESTIONSETS2:DRAGDROP|value=1" />
2191 <action id="disable_dragdrop" name="uiLockIcons" handler="set" params="dblink=UI:SAVE:GESTIONSETS2:DRAGDROP|value=0" />
2193 <action id="horiz" name="uiHorizontal" handler="proc" params="gestionsets2_proc_set|%gestionsets_h"/>
2194 <action id="vert" name="uiVertical" handler="proc" params="gestionsets2_proc_set|%gestionsets_v"/>
2198 <group type="container"
2203 header_active="false"
2204 right_button="false"
2205 group_onclick_r="active_menu"
2206 group_params_r="menu=ui:interface:gestionsets2_menu"
2211 global_color="false"
2212 header_color="UI:SAVE:WIN:COLORS:INV"
2215 on_active_params="gestionsets2_proc_active"
2217 on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:SETS2|value=0"
2218 help_page="interf_action_bar.html">
2219 <group id="header_closed"
2225 <group id="shortcuts"
2230 <!-- The Shortcuts. Don't modify ids -->
2231 <instance template="ctrl_alt_memory"
2235 tx_noitem="W_slot_shortcut_id0.tga" />
2236 <instance template="ctrl_alt_memory"
2240 tx_noitem="W_slot_shortcut_id1.tga" />
2241 <instance template="ctrl_alt_memory"
2245 tx_noitem="W_slot_shortcut_id2.tga" />
2246 <instance template="ctrl_alt_memory"
2250 tx_noitem="W_slot_shortcut_id3.tga" />
2251 <instance template="ctrl_alt_memory"
2255 tx_noitem="W_slot_shortcut_id4.tga" />
2256 <instance template="ctrl_alt_memory"
2260 tx_noitem="W_slot_shortcut_id5.tga" />
2261 <instance template="ctrl_alt_memory"
2265 tx_noitem="W_slot_shortcut_id6.tga" />
2266 <instance template="ctrl_alt_memory"
2270 tx_noitem="W_slot_shortcut_id7.tga" />
2271 <instance template="ctrl_alt_memory"
2275 tx_noitem="W_slot_shortcut_id8.tga" />
2276 <instance template="ctrl_alt_memory"
2280 tx_noitem="W_slot_shortcut_id9.tga" />
2281 <instance template="ctrl_alt_memory"
2285 tx_noitem="W_slot_shortcut_shift_id0.tga" />
2286 <instance template="ctrl_alt_memory"
2290 tx_noitem="W_slot_shortcut_shift_id1.tga" />
2291 <instance template="ctrl_alt_memory"
2295 tx_noitem="W_slot_shortcut_shift_id2.tga" />
2296 <instance template="ctrl_alt_memory"
2300 tx_noitem="W_slot_shortcut_shift_id3.tga" />
2301 <instance template="ctrl_alt_memory"
2305 tx_noitem="W_slot_shortcut_shift_id4.tga" />
2306 <instance template="ctrl_alt_memory"
2310 tx_noitem="W_slot_shortcut_shift_id5.tga" />
2311 <instance template="ctrl_alt_memory"
2315 tx_noitem="W_slot_shortcut_shift_id6.tga" />
2316 <instance template="ctrl_alt_memory"
2320 tx_noitem="W_slot_shortcut_shift_id7.tga" />
2321 <instance template="ctrl_alt_memory"
2325 tx_noitem="W_slot_shortcut_shift_id8.tga" />
2326 <instance template="ctrl_alt_memory"
2330 tx_noitem="W_slot_shortcut_shift_id9.tga" />
2333 <!-- Mofications Cyrillas for bar1 related selection -->
2334 <group type="select_number"
2336 value="UI:PHRASE:SELECT_MEMORY_2"
2344 posparent="shortcuts"
2350 texture="W_slot_number.tga" />
2353 posparent="slot_number"
2357 color="255 255 255 255"
2361 global_color="false" />
2364 button_type="push_button"
2368 tx_normal="W_arrow_left_0.tga"
2369 tx_pushed="W_arrow_left_0.tga"
2370 tx_over="W_button_12_over.tga"
2371 tooltip="uittHandSet"
2372 tooltip_parent="win" />
2375 button_type="push_button"
2379 tx_normal="W_arrow_right_0.tga"
2380 tx_pushed="W_arrow_right_0.tga"
2381 tx_over="W_button_12_over.tga"
2382 tooltip="uittHandSet"
2383 tooltip_parent="win" />
2385 <group type="select_number"
2386 id="select_memory_h"
2387 value="UI:PHRASE:SELECT_MEMORY_2"
2396 posparent="shortcuts"
2402 texture="W_slot_number.tga" />
2405 posparent="slot_number"
2409 color="255 255 255 255"
2413 global_color="false" />
2416 button_type="push_button"
2418 posparent="slot_number"
2421 tx_normal="W_arrow_up_1.tga"
2422 tx_pushed="W_arrow_up_1.tga"
2423 tx_over="W_button_12_over.tga"
2424 tooltip="uittHandSet"
2425 tooltip_parent="win" />
2428 button_type="push_button"
2430 posparent="slot_number"
2433 tx_normal="W_arrow_down_1.tga"
2434 tx_pushed="W_arrow_down_1.tga"
2435 tx_over="W_button_12_over.tga"
2436 tooltip="uittHandSet"
2437 tooltip_parent="win" />
2439 <link expr="@UI:PHRASE:SELECT_MEMORY_2"
2440 action="phrase_select_memory_2"
2441 params="value=add(@UI:PHRASE:SELECT_MEMORY_2,-1)" />
2442 <link expr="depends(@UI:SAVE:GESTIONSETS2_MODE)"
2444 params="gestionsets_proc_mode" />
2445 <link expr="depends(@UI:SAVE:GESTIONSETS:DRAGDROP)"
2447 params="proc_gestionsets_menu_iconlock" />
2448 <link expr="depends(@UI:SAVE:GESTIONSETS2:DRAGDROP)"
2450 params="proc_gestionsets2_menu_iconlock" />
2452 <tree node="gestionsets2" />
2454 <!-- ************************* -->
2455 <!-- ** TEAM SHARING SYSTEM ** -->
2456 <!-- ************************* -->
2457 <!-- Used to share item or phrase in mission rewards -->
2458 <template name="t_team_share_member"
2466 <view type="text_id"
2471 posparent="#posparent"
2474 textid="LOCAL:INVENTORY:SHARE:TM_#memberid:NAME"
2475 dynamic_string="false" />
2481 posparent="#posparent"
2482 texture="w_answer_16_valid.tga"
2483 global_color="false" />
2484 <link expr="ne(@LOCAL:INVENTORY:SHARE:TM_#memberid:NAME,0)"
2485 target="t_#id:active,v_#id:active" />
2486 <link expr="ifthenelse(eq(@LOCAL:INVENTORY:SHARE:TM_#memberid:VALID,0), '', 'w_answer_16_valid.tga')"
2487 target="v_#id:texture" />
2489 <group id="team_share"
2499 right_button="false"
2501 win_priority="%win_priority_high"
2502 title="uiTeamShareTitle"
2503 header_color="UI:SAVE:WIN:COLORS:MEM"
2504 global_color="false">
2505 <group id="header_closed"
2509 posref="TL TL"></group>
2510 <group id="header_opened"
2515 group_onclick_r="active_menu"
2516 group_params_r="menu=ui:interface:base_menu_with_color">
2517 <group id="top_menu"
2533 global_color="false" />
2542 texture="W_line_ver.tga" />
2551 texture="W_line_ver.tga" />
2560 texture="W_line_ver.tga" />
2569 texture="W_line_ver.tga" />
2576 hardtext="uiTeamShareItems"
2578 global_color="false" />
2585 hardtext="uiTeamShareAsks"
2587 global_color="false" />
2594 hardtext="uiTeamShareChance"
2596 global_color="false" />
2603 hardtext="uiTeamShareValid"
2605 global_color="false" />
2611 <group id="separators"
2625 global_color="false" />
2634 texture="W_line_hor.tga" />
2644 texture="W_line_ver.tga" />
2654 texture="W_line_ver.tga" />
2664 texture="W_line_ver.tga" />
2674 texture="W_line_ver.tga" />
2683 texture="W_line_hor.tga" />
2685 <group id="list_of_items"
2691 <!-- The H should be "42+hspace" * Number of rows. Setup list.max_h too below -->
2692 <group type="list_sheet_share"
2708 icon_wanted="W_opacity_on.tga"
2709 icon_not_wanted="w_slot_on.tga"
2718 value="SERVER:INVENTORY:SHARE"
2719 selection_group="buy_selection"
2720 onclick_r="open_item_help"
2721 onclick_l="team_share_choose"
2722 over_color="%bot_chat_sheet_selection_normal"
2723 over_col_pushed="%bot_chat_sheet_selection_pushed"
2724 over_col_over="%bot_chat_sheet_selection_over"
2725 color="255 255 255 255"
2729 multi_line_space="0"
2731 <ctrl style="skin_scroll"
2734 target_stepy="44" />
2745 <group id="list_of_members"
2751 <instance template="t_team_share_member"
2756 <instance template="t_team_share_member"
2761 <instance template="t_team_share_member"
2766 <instance template="t_team_share_member"
2771 <instance template="t_team_share_member"
2776 <instance template="t_team_share_member"
2781 <instance template="t_team_share_member"
2786 <instance template="t_team_share_member"
2792 <group id="tooltips"
2798 <ctrl type="tooltip"
2800 tooltip="uiTS_Select"
2801 color="255 255 255 255"
2807 <ctrl type="tooltip"
2809 tooltip="uiTS_Items"
2810 posparent="ttselect"
2811 color="255 255 255 255"
2815 <ctrl type="tooltip"
2817 tooltip="uiTS_Times"
2819 color="255 255 255 255"
2823 <ctrl type="tooltip"
2825 tooltip="uiTS_Chances"
2827 color="255 255 255 255"
2831 <ctrl type="tooltip"
2833 tooltip="uiTS_Valids"
2834 posparent="ttchance"
2835 color="255 255 255 255"
2840 <ctrl style="button_ok"
2843 onclick_l="team_share_valid"
2844 hardtext="uiValidate" />
2847 <tree node="team_share" />
2848 <!-- ************* -->
2849 <!-- ** DEFENSE ** -->
2850 <!-- ************* -->
2851 <proc id="defense_active">
2852 <action handler="set"
2853 params="dblink=UI:VARIABLES:ISACTIVE:DEFENSE|value=1" />
2855 <proc id="defense_deactive">
2856 <action handler="set"
2857 params="dblink=UI:VARIABLES:ISACTIVE:DEFENSE|value=0" />
2859 <style style="defense_armor"
2861 menu_r="%self_item_modal_menu"
2862 selection_group="inventory_selection"
2863 auto_grayed="false" />
2864 <template name="defense_value"
2880 posparent="#posparent">
2888 global_color="false" />
2889 <view type="text_number"
2894 color="255 255 255 255"
2896 global_color="false"
2898 value="#val_defense" />
2904 color="152 211 72 255"
2907 global_color="false"
2910 <link expr="gt(@#val_defense,0)"
2911 target="sign:active" />
2912 <link expr="ifthenelse(lt(@#val_defense,0),'-2',
2913 ifthenelse(gt(@#val_defense,0),'1','0'))"
2915 <link expr="ifthenelse(lt(@#val_defense,0),'236 74 36 255',
2916 ifthenelse(gt(@#val_defense,0),'152 211 72 255', '255 255 255 255'))"
2917 target="value:color" />
2920 <group type="container"
2924 title="uiDefenseTitle"
2931 header_active="true"
2937 global_color="false"
2938 header_color="UI:SAVE:WIN:COLORS:INV"
2939 title_class="formated"
2941 on_active_params="defense_active"
2943 on_deactive_params="defense_deactive">
2944 <group id="header_closed"
2948 posref="TL TL"></group>
2949 <group id="header_opened"
2955 group_onclick_r="active_menu"
2956 group_params_r="menu=ui:interface:base_menu_with_color">
2963 <ctrl style="defense_style_button"
2970 <ctrl style="defense_style_button"
2977 <link expr="eq(@SERVER:DEFENSE:DEFENSE_MODE,0)"
2978 target="style1:pushed" />
2979 <link expr="eq(@SERVER:DEFENSE:DEFENSE_MODE,1)"
2980 target="style2:pushed" />
2988 <ctrl style="defense_armor"
2993 tx_noitem="W_AR_helmet.tga"
2996 tooltip="uittDefenseHead" />
2997 <ctrl style="defense_armor"
3003 tx_noitem="W_AR_gilet.tga"
3006 tooltip="uittDefenseChest" />
3007 <ctrl style="defense_armor"
3013 tx_noitem="W_AR_pantabotte.tga"
3016 tooltip="uittDefenseLegs" />
3017 <ctrl style="defense_armor"
3023 tx_noitem="W_AR_botte.tga"
3026 tooltip="uittDefenseFeet" />
3027 <ctrl style="defense_armor"
3033 tx_noitem="W_AR_armpad.tga"
3036 tooltip="uittDefenseArms" />
3037 <ctrl style="defense_armor"
3043 tx_noitem="W_AR_hand.tga"
3046 tooltip="uittDefenseHands" />
3047 <!-- BUTTONS TO DEFINE DEFENSE TARGET -->
3050 button_type="radio_button"
3054 tx_normal="w_defense_normal"
3055 tx_pushed="w_defense"
3060 hardtext="uiDefenseReset"
3061 color="255 255 255 255"
3062 col_over="255 255 255 255"
3063 col_pushed="255 190 0 255"
3064 global_color_normal="true"
3065 global_color_over="true"
3066 global_color_pushed="false"
3067 text_color_normal="255 255 255 160"
3068 text_color_pushed="255 255 255 255"
3069 text_color_over="255 255 255 255"
3070 text_shadow_color_normal="0 0 0 255"
3071 text_shadow_color_pushed="0 0 0 255"
3072 text_shadow_color_over="0 0 0 255"
3073 text_global_color_normal="true"
3074 text_global_color_pushed="false"
3075 text_global_color_over="true"
3076 onclick_l="select_protected_slot"
3077 params_l="UNDEFINED" />
3078 <ctrl style="defense_button"
3082 onclick_l="select_protected_slot"
3084 <ctrl style="defense_button"
3088 onclick_l="select_protected_slot"
3090 <ctrl style="defense_button"
3094 onclick_l="select_protected_slot"
3096 <ctrl style="defense_button"
3100 onclick_l="select_protected_slot"
3102 <ctrl style="defense_button"
3106 onclick_l="select_protected_slot"
3108 <ctrl style="defense_button"
3112 onclick_l="select_protected_slot"
3114 <link expr="eq(@SERVER:DEFENSE:PROTECTED_SLOT,0)"
3115 target="all:pushed" />
3116 <link expr="eq(@SERVER:DEFENSE:PROTECTED_SLOT,1)"
3117 target="head_button:pushed" />
3118 <link expr="eq(@SERVER:DEFENSE:PROTECTED_SLOT,2)"
3119 target="chest_button:pushed" />
3120 <link expr="eq(@SERVER:DEFENSE:PROTECTED_SLOT,3)"
3121 target="arms_button:pushed" />
3122 <link expr="eq(@SERVER:DEFENSE:PROTECTED_SLOT,4)"
3123 target="hands_button:pushed" />
3124 <link expr="eq(@SERVER:DEFENSE:PROTECTED_SLOT,5)"
3125 target="legs_button:pushed" />
3126 <link expr="eq(@SERVER:DEFENSE:PROTECTED_SLOT,6)"
3127 target="feet_button:pushed" />
3128 <instance template="defense_value"
3131 val_defense="SERVER:DEFENSE:SLOTS:0:MODIFIER" />
3132 <instance template="defense_value"
3135 val_defense="SERVER:DEFENSE:SLOTS:1:MODIFIER" />
3136 <instance template="defense_value"
3139 val_defense="SERVER:DEFENSE:SLOTS:2:MODIFIER" />
3140 <instance template="defense_value"
3143 val_defense="SERVER:DEFENSE:SLOTS:3:MODIFIER" />
3144 <instance template="defense_value"
3147 val_defense="SERVER:DEFENSE:SLOTS:4:MODIFIER" />
3148 <instance template="defense_value"
3151 val_defense="SERVER:DEFENSE:SLOTS:5:MODIFIER" />
3158 <tree node="defense" />
3159 <!-- ********************************************************************* -->
3160 <!-- ** CUSTOM TEXT EDITION AND DISPLAY ** -->
3161 <!-- ********************************************************************* -->
3162 <!-- :NOTE: ids are groupName+"_suffix", change them with group name -->
3163 <!-- element/type -->
3164 <define id="edit_custom_edit_large"
3165 value="ui:interface:edit_custom:content:scroll_text:edit_large" />
3167 <define id="edit_custom_edit_box_large"
3168 value="ui:interface:edit_custom:content:scroll_text:edit_large:eb" />
3169 <!-- group/edit_box -->
3170 <define id="edit_custom_edit_short"
3171 value="ui:interface:edit_custom:content:scroll_text:edit_short" />
3173 <define id="edit_custom_edit_box_short"
3174 value="ui:interface:edit_custom:content:scroll_text:edit_short:eb" />
3175 <!-- group/edit_box -->
3176 <define id="edit_custom_display"
3177 value="ui:interface:edit_custom:content:scroll_text:display" />
3179 <define id="edit_custom_edit_buttons"
3180 value="ui:interface:edit_custom:content:buttons_edit" />
3182 <define id="edit_custom_close_button"
3183 value="ui:interface:edit_custom:content:button_close" />
3184 <!-- ctrl/button -->
3185 <define id="edit_custom_background"
3186 value="ui:interface:edit_custom:content:scroll_text:background" />
3187 <!-- view/bitmap -->
3188 <!-- To know if EditCustom phrase is opened or not -->
3189 <variable entry="UI:VARIABLES:ISACTIVE:PHRASE_EDIT_CUSTOM"
3192 <proc id="proc_phrase_edit_custom_opened">
3193 <action handler="set"
3194 params="dblink=UI:VARIABLES:ISACTIVE:PHRASE_EDIT_CUSTOM|value=1" />
3196 <proc id="proc_phrase_edit_custom_closed">
3197 <action handler="set"
3198 params="dblink=UI:VARIABLES:ISACTIVE:PHRASE_EDIT_CUSTOM|value=0" />
3199 <action handler="on_close_edit_custom" />
3201 <group type="container"
3205 title="uiItemTextEdition"
3206 global_color="false"
3207 line_at_bottom="false"
3214 header_color="UI:SAVE:WIN:COLORS:INFOS"
3216 on_active_params="proc_phrase_edit_custom_opened"
3218 on_deactive_params="proc_phrase_edit_custom_closed"
3223 <group id="header_closed"
3226 child_resize_w="true"
3229 <group id="header_opened"
3232 child_resize_w="true"
3250 <group id="scroll_text"
3256 child_resize_h="true"
3257 child_resize_hmargin="4"
3259 max_sizeparent="crop"
3272 global_color="false"
3278 color="255 255 255 160"
3284 multi_line_space="0" />
3285 <instance template="edit_box_widget_multiline"
3286 max_num_chars="1024"
3294 child_resize_h="true"
3302 enter_loose_focus="true"
3303 enter_recover_focus="false"
3305 reset_focus_on_hide="true"
3310 <instance template="edit_box_widget_multiline"
3319 child_resize_h="true"
3327 enter_loose_focus="true"
3328 enter_recover_focus="false"
3330 reset_focus_on_hide="true"
3336 <ctrl style="skin_scroll"
3337 id="scroll_bar_theme"
3339 target="scroll_text"
3354 texture="W_line_hor.tga" />
3355 <instance id="buttons_edit"
3356 template="button_ok_cancel"
3361 onclick_ok="validate_edit_custom"
3362 onclick_ok_param="ui:interface:edit_custom"
3363 onclick_cancel="hide"
3364 onclick_cancel_param="ui:interface:edit_custom" />
3365 <ctrl id="button_close"
3366 style="button_cancel"
3372 params_l="ui:interface:edit_custom"
3373 hardtext="uittClose"
3374 tooltip="uittClose" />
3377 <tree node="edit_custom" />