3 <root id="interface" x="0" y="0" w="800" h="600" active="true" />
6 <!-- TRAP : Previous version. Now all is unified through the temp_inventory -->
12 <proc id="end_loot_proc">
13 <action handler="end_harvest" params="loot"/>
14 <action handler="set" params="dblink=pickup_inventory:0:SHEET|value=0"/>
15 <action handler="set" params="dblink=pickup_inventory:1:SHEET|value=0"/>
16 <action handler="set" params="dblink=pickup_inventory:2:SHEET|value=0"/>
17 <action handler="set" params="dblink=pickup_inventory:3:SHEET|value=0"/>
18 <action handler="set" params="target_property=ui:interface:loot:active|value=0"/>
22 <group id="loot" exit_click_out="false" posref="MM MM" w="196" h="90" mouse_pos="false" active="false"
24 on_active_params="memorize_inventory_state"
26 on_deactive_params="restore_inventory_state"
29 <instance template="modal_border" posparent="parent"/>
30 <view type="bitmap" id="back" posref="MM MM" scale="true" sizeref="wh" w="-8" h="-8" texture="w_modal_blank.tga" />
32 <view type="text" id="text" posref="TL TL" x="7" y="-4" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiLoot" global_color="false"/>
33 <ctrl type="button" id="close" button_type="push_button" posref="TR TR" x="-8" y="-5" tx_normal="W_close_1.tga" tx_pushed="W_close_1.tga" tx_over="W_button_12_over.tga"
34 onclick_l="proc" params_l="end_loot_proc" tooltip="uittClose" />
36 <! - can swap item only to an empty slot => setup 'buy_selection' to make it work with slot_can_drop - >
37 <group type="list_sheet" id="lootcontent" value="%pickup_inventory" w="180" posref="TM TM" y="-20" wspace="4" hspace="4"
38 maxitem="4" startitem="0" rowmin="1" rowmax="1" dragable="true"
39 selection_group="buy_selection"
42 <view type="text" id="drag_to_inventory" posref="BM TM" posparent="lootcontent" y="-4" color="255 255 255 255" fontsize="14" shadow="true" hardtext="uiDragToInventory"/>
46 <! - put an observer to display the window if any item has been harvested. The window is removed when there's no more item - >
47 <link expr="or(ne(@%pickup_inventory:0:SHEET, 0),
48 ne(@%pickup_inventory:1:SHEET, 0),
49 ne(@%pickup_inventory:2:SHEET, 0),
50 ne(@%pickup_inventory:3:SHEET, 0))"
51 target="loot:active"/>
54 <!--****************-->
56 <!--****************-->
59 <proc id="end_harvest_proc">
60 <action handler="end_harvest" params="harvest"/>
61 <action handler="set" params="dblink=pickup_inventory:0:SHEET|value=0"/>
62 <action handler="set" params="dblink=pickup_inventory:1:SHEET|value=0"/>
63 <action handler="set" params="dblink=pickup_inventory:2:SHEET|value=0"/>
64 <action handler="set" params="dblink=pickup_inventory:3:SHEET|value=0"/>
65 <action handler="set" params="target_property=ui:interface:harvest:active|value=0"/>
69 <group id="harvest" exit_click_out="false" posref="MM MM" w="196" h="95" y="-95" mouse_pos="false" active="false"
71 on_active_params="memorize_inventory_state"
73 on_deactive_params="restore_inventory_state"
75 <instance template="modal_border" posparent="parent"/>
76 <view type="bitmap" id="back" posref="MM MM" scale="true" sizeref="wh" w="-8" h="-8" texture="w_modal_blank.tga" />
78 <view type="text" id="text" posref="TL TL" x="7" y="-4" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiHarvest" global_color="false"/>
79 <ctrl type="button" id="close" button_type="push_button" posref="TR TR" x="-8" y="-5" tx_normal="W_close_1.tga" tx_pushed="W_close_1.tga" tx_over="W_button_12_over.tga"
80 onclick_l="proc" params_l="end_harvest_proc" tooltip="uittClose"/>
82 <! - Don't display the quality because unknown - >
83 <group type="list_sheet" id="lootcontent" value="%harvest_inventory" w="180" posref="TM TM" y="-20" wspace="4" hspace="4"
84 maxitem="4" startitem="0" rowmin="1" rowmax="1" onclick_l="harvest_item" use_quality="false">
86 <view type="text" id="drag_to_inventory" posref="BM TM" posparent="lootcontent" y="-4" color="255 255 255 255" fontsize="14" shadow="true" hardtext="uiDragToInventory"/>
89 <! - put an observer to display the window if any item has been harvested. The window is removed when there's no more item - >
90 <link expr="or(ne(@%harvest_inventory:0:SHEET, 0),
91 ne(@%harvest_inventory:1:SHEET, 0),
92 ne(@%harvest_inventory:2:SHEET, 0),
93 ne(@%harvest_inventory:3:SHEET, 0))"
94 target="harvest:active"/>
101 <tree node="harvest">