Add infos into target window
[ryzomcore.git] / ryzom / client / data / gamedev / interfaces_v3 / inventory.xml
blob9789045b86a0943b69d1190ff995c7a1aa744734
1 <interface_config>
2   <root id="interface"
3         x="0"
4         y="0"
5         w="800"
6         h="600"
7         active="true" />
8   <lua file="inventory.lua" />
9   <!-- ************* -->
10   <!-- * INVENTORY * -->
11   <!-- ************* -->
12   <!-- ******** -->
13   <!-- * Data * -->
14   <!-- ******** -->
15   <variable entry="UI:TEMP_INV:ALL_EMPTY"
16             type="sint32"
17             value="1" />
18   <variable entry="UI:PHRASE:SELECT_MEMORY"
19             type="sint32"
20             value="0" />
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" />
28   </proc>
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" />
33   </proc>
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" />
44   </proc>
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()" />
54   </proc>
55   <!-- ************* -->
56   <!-- * EQUIPMENT * -->
57   <!-- ************* -->
58   <style style="armor_jewelry_item"
59          type="sheet"
60          menu_r="%self_item_modal_menu"
61          selection_group="inventory_selection"
62          dragable="true"
63          ondrag="inv_drag"
64          params_drag="from_slot"
65          oncandrop="inv_can_drop"
66          oncannotdrop="inv_cannot_drop"
67          ondrop="inv_drop"
68          col_noitem="true"
69          onclick_l="proc"
70          params_l="inv_left_click_on_slot"
71          auto_grayed="false" />
73   <!-- ************* -->
74   <!-- * HOTBAR * -->
75   <!-- ************* -->
76   <style style="hotbar_item"
77          type="sheet"
78          menu_r="%hotbar_item_modal_menu"
79          selection_group="inventory_selection"
80          dragable="true"
81          ondrag="inv_drag"
82          params_drag="from_slot"
83          oncandrop="can_drop_to_hotbar"
84          oncannotdrop="inv_cannot_drop"
85          ondrop="inv_drop"
86          col_noitem="true"
87          onclick_l="proc"
88          params_l="hotbar_left_click_on_slot"
89          auto_grayed="false" />
91   <template name="img_button"
92             id="image_button"
93             ok_text="uittOK"
94             tx_over="blank.tga"
95             cancel_text="uittCancel"
96             posparent="parent"
97             posref="BM TM"
98             onclick_ok=""
99             onclick_ok_param=""
100             x="0"
101             y="0"
102             keep="true"
103             tooltip_ok=""
104             avoid_resize_parent="false">
105     <group id="#id"
106            posparent="#posparent"
107            posref="#posref"
108            child_resize_w="true"
109            child_resize_h="true"
110            x="#x"
111            y="#y"
112            avoid_resize_parent="#avoid_resize_parent">
113       <ctrl style="button_ok"
114             id="bb"
115             x="0"
116             y="0"
117             posref="TL TL"
118             text_y="-2"
119             onclick_l="#onclick_ok"
120             params_l="#onclick_ok_param"
121             hardtext="#ok_text"
122             tooltip="#tooltip_ok" />
123       <ctrl type="button"
124             id="button"
125             button_type="push_button"
126             posref="TL TL"
127             x="0"
128             y="0"
129             scale="false"
130             tx_over="#tx_over"
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" />
136     </group>
137   </template>
139   <template name="image_button"
140       tx_over="blank.tga"
141       onclick_l=""
142       params_l=""  >
143     <group id="#id"
144            posref="TL TL"
145            x="0"
146            y="0"
147            sizeref="wh"
148            w="0"
149            h="0">
150       <ctrl type="button"
151             id=""
152             button_type="push_button"
153             posref=""
154             posparent=""
155             x=""
156             y=""
157             scale="false"
158             tx_over="#tx_over"
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" />
164     </group>
165   </template>
167   <template name="itemgroups_item"
168             keep="true"
169             posparent="parent"
170             posref="TL TL"
171             h="24"
172             id="">
173     <group id="#id"
174            sizeref="w"
175            h="#h"
176            max_height="#h"
177            posparent="#posparent"
178            posref="#posref">
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"/>
181         <view type="text"
182             id="name"
183             x="4"
184             y="-5"
185             line_maxw="70"
186             over_extend_view_text="true"
187             posref="TL TL"
188             shadow_x="0" 
189             shadow_y="0"
190             fontsize="10" />
191         <ctrl type="button"
192               id="delete_button"
193               button_type="push_button"
194               posref="MR MR"
195               x="-4"
196               h="16"
197               w="16"
198               scale="true"
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" />
208         <ctrl type="button"
209               id="equip_button"
210               button_type="push_button"
211               posref="ML MR"
212               posparent="delete_button"
213               x="-6"
214               h="16"
215               w="16"
216               scale="true"
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" />
226     </group>
227   </template>
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="" />
234   </group>
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=''" />
240   </proc>
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'" />
260   
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'" />
265       
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" />
269   </proc>
271   <template name="tinv_equip">
272       <group id="equip"
273            posref="MM MM"
274            sizeref="w"
275            child_resize_h="true"
276            child_resize_hmargin="20"
277            x="0"
278            y="-10">
279       <!-- Midsection -->
280       <group id="midsection"
281              posref="TM TM"
282              w="140"
283              h="200"
284              x="22"
285              y="0">
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" />
290                         </group>
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" />
292                 </group>
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"/>
296                   <!-- 3d preview -->
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" />
314                         </scene3d>
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" />
316                   </group>
317                   <!-- Itemgroups -->
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"/>
322                               <group type="list"
323                                     id="itemgroups_list"
324                                     posref="TR TR"
325                                     over="true"
326                                     sizeref="h"
327                                     w="119" h="-6" x="-2" y="-3">
328                               </group>
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"/>
331                         </group>
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" />
337                         </group>
338                   </group>
339             </group>
340       </group>
341       <!-- Armor -->
342       <group id="armors"
343              posref="TR TL"
344              posparent="midsection"
345              child_resize_w="true"
346              h="192"
347              x="20"
348              y="-5">
349         <view type="text"
350             id="armTitle"
351             posref="TL TL"
352             hardtext="uiArmorTitle"
353             fontsize="10"
354             shadow="true" />
355         <ctrl style="armor_jewelry_item"
356               id="head"
357               posref="BL TL"
358               posparent="armTitle"
359               x="0"
360               y="-2"
361               tx_noitem="W_AR_helmet.tga"
362               item_slot="HEAD"
363               value="%head"
364               tooltip="uittHelmet" />
365         <ctrl style="armor_jewelry_item"
366               id="chest"
367               posref="BL TL"
368               posparent="head"
369               x="0"
370               y="-2"
371               tx_noitem="W_AR_gilet.tga"
372               item_slot="CHEST"
373               value="%chest"
374               tooltip="uittChest" />
375         <ctrl style="armor_jewelry_item"
376               id="legs"
377               posref="BL TL"
378               posparent="chest"
379               x="0"
380               y="-2"
381               tx_noitem="W_AR_pantabotte.tga"
382               item_slot="LEGS"
383               value="%legs"
384               tooltip="uittLegs" />
385         <ctrl style="armor_jewelry_item"
386               id="feet"
387               posref="BL TL"
388               posparent="legs"
389               x="0"
390               y="-2"
391               tx_noitem="W_AR_botte.tga"
392               item_slot="FEET"
393               value="%feet"
394               tooltip="uittFeet" />
395         <ctrl style="armor_jewelry_item"
396               id="arms"
397               posref="TR TL"
398               posparent="chest"
399               x="2"
400               y="11"
401               tx_noitem="W_AR_armpad.tga"
402               item_slot="ARMS"
403               value="%arms"
404               tooltip="uittArms" />
405         <ctrl style="armor_jewelry_item"
406               id="hands"
407               posref="BL TL"
408               posparent="arms"
409               x="0"
410               y="-2"
411               tx_noitem="W_AR_hand.tga"
412               item_slot="HANDS"
413               value="%hands"
414               tooltip="uittHands" />
415       </group>
416       <!-- Jewelry -->
417       <group id="jewelry"
418              posref="TL TR"
419              posparent="midsection"
420              child_resize_w="true"
421              h="192"
422              x="-20"
423              y="-5">
424         <view type="text"
425             id="jewTitle"
426             posref="TR TR"
427             hardtext="uiJewelryTitle"
428             fontsize="10"
429             shadow="true" />
430         <ctrl style="armor_jewelry_item"
431               id="earing_r"
432               posref="BR TR"
433               posparent="jewTitle"
434               y="-2"
435               tx_noitem="W_PA_earring.tga"
436               item_slot="EARS"
437               value="%earr"
438               tooltip="uittEarr" />
439         <ctrl style="armor_jewelry_item"
440               id="bracelet_r"
441               posparent="earing_r"
442               posref="BL TL"
443               y="-2"
444               tx_noitem="W_PA_bracelet.tga"
445               item_slot="WRIST"
446               value="%wristr"
447               tooltip="uittWristr" />
448         <ctrl style="armor_jewelry_item"
449               id="ring_r"
450               posparent="bracelet_r"
451               posref="BL TL"
452               y="-2"
453               tx_noitem="W_PA_ring.tga"
454               item_slot="FINGERS"
455               value="%fingerr"
456               tooltip="uittFingerr" />
457         <ctrl style="armor_jewelry_item"
458               id="anklet_r"
459               posparent="ring_r"
460               posref="BL TL"
461               y="-2"
462               tx_noitem="W_PA_anklet.tga"
463               item_slot="ANKLE"
464               value="%ankler"
465               tooltip="uittAnkler" />
466         <ctrl style="armor_jewelry_item"
467               id="earing_l"
468               posref="TL TR"
469               posparent="earing_r"
470               x="-2"
471               y="0"
472               tx_noitem="W_PA_earring.tga"
473               item_slot="EARS"
474               value="%earl"
475               tooltip="uittEarl" />
476         <ctrl style="armor_jewelry_item"
477               id="bracelet_l"
478               posparent="earing_l"
479               posref="BL TL"
480               y="-2"
481               tx_noitem="W_PA_bracelet.tga"
482               item_slot="WRIST"
483               value="%wristl"
484               tooltip="uittWristl" />
485         <ctrl style="armor_jewelry_item"
486               id="ring_l"
487               posparent="bracelet_l"
488               posref="BL TL"
489               y="-2"
490               tx_noitem="W_PA_ring.tga"
491               item_slot="FINGERS"
492               value="%fingerl"
493               tooltip="uittFingerl" />
494         <ctrl style="armor_jewelry_item"
495               id="anklet_l"
496               posparent="ring_l"
497               posref="BL TL"
498               y="-2"
499               tx_noitem="W_PA_anklet.tga"
500               item_slot="ANKLE"
501               value="%anklel"
502               tooltip="uittAnklel" />
503         <ctrl style="armor_jewelry_item"
504               id="headdress"
505               posparent="bracelet_l"
506               posref="TL TR"
507               x="-2"
508               y="11"
509               tx_noitem="W_PA_diadem.tga"
510               item_slot="HEADDRESS"
511               value="%headdress"
512               tooltip="uittHeaddress" />
513         <ctrl style="armor_jewelry_item"
514               id="neck"
515               posparent="headdress"
516               posref="BL TL"
517               x="0"
518               y="-2"
519               tx_noitem="W_PA_pendant.tga"
520               item_slot="NECKLACE"
521               value="%necklace"
522               tooltip="uittNeck" />
523       </group>
524       <group id="hotbar_c"
525            posref="TM TM"
526            x="0"
527            y="-230"
528            child_resize_w="true"
529            child_resize_h="true">
530             <instance template="tinv_hotbar"/>
531       </group>
532       <view type="text"
533             id="hotbarTitle"
534             posref="TL BL"
535             posparent="hotbar_c"
536             hardtext="uiHotbarTitle"
537             fontsize="10"
538             y="2"
539             shadow="true" />
540       <ctrl type="sheet"
541             id="handl"
542             x="-12"
543             y="0"
544             w="86"
545             h="44"
546             posref="TL TR"
547             posparent="hotbar_c"
548             tx_noitem="hand_left.tga"
549             selection_group="inventory_selection"
550             onclick_l="proc"
551             params_l="inv_left_click_on_slot"
552             tooltip="uittHandL"
553             menu_r="%self_item_modal_menu"
554             dragable="true"
555             ondrag="inv_drag"
556             params_drag="from_slot"
557             oncannotdrop="inv_cannot_drop"
558             oncandrop="inv_can_drop"
559             ondrop="inv_drop"
560             item_slot="LEFT_HAND"
561             value="%hand_l"
562             other_hand_slot="handr"
563             auto_grayed="false" />
564       <ctrl type="sheet"
565             id="handr"
566             x="12"
567             y="0"
568             w="86"
569             h="44"
570             posref="TR TL"
571             posparent="hotbar_c"
572             tx_noitem="hand_right.tga"
573             selection_group="inventory_selection"
574             onclick_l="proc"
575             params_l="inv_left_click_on_slot"
576             tooltip="uittHandR"
577             menu_r="%self_item_modal_menu"
578             dragable="true"
579             ondrag="inv_drag"
580             params_drag="from_slot"
581             oncannotdrop="inv_cannot_drop"
582             oncandrop="inv_can_drop"
583             ondrop="inv_drop"
584             item_slot="RIGHT_HAND"
585             value="%hand_r"
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" />
595     </group>
596   </template>
598   <template name="tinv_hotbar" x="0" y="0">
599       <group id="hotbar"
600             posref="MM MM"
601             child_resize_w="true"
602             child_resize_h="true"
603             x="#x"
604             y="#y">
605       <ctrl style="hotbar_item"
606             id="hotbar1"
607             posref="TL TL"
608             x="0"
609             y="0"
610             tx_noitem="W_hotbar1.tga"
611             value="%hotbar:0"
612             tooltip="uittHotbarItem1" />
613       <ctrl style="hotbar_item"
614             id="hotbar2"
615             posref="TR TL"
616             posparent="hotbar1"
617             x="2"
618             y="0"
619             tx_noitem="W_hotbar2.tga"
620             value="%hotbar:1"
621             tooltip="uittHotbarItem2" />
622       <ctrl style="hotbar_item"
623             id="hotbar3"
624             posref="TR TL"
625             posparent="hotbar2"
626             x="2"
627             y="0"
628             tx_noitem="W_hotbar3.tga"
629             value="%hotbar:2"
630             tooltip="uittHotbarItem3" />
631       <ctrl style="hotbar_item"
632             id="hotbar4"
633             posref="TR TL"
634             posparent="hotbar3"
635             x="2"
636             y="0"
637             tx_noitem="W_hotbar4.tga"
638             value="%hotbar:3"
639             tooltip="uittHotbarItem4" />
640       <ctrl style="hotbar_item"
641             id="hotbar5"
642             posref="TR TL"
643             posparent="hotbar4"
644             x="2"
645             y="0"
646             tx_noitem="W_hotbar5.tga"
647             value="%hotbar:4"
648             tooltip="uittHotbarItem5" />
649       </group>
650   </template>
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)" />
657   </proc>
658   <!-- Equipment -->
659   <group type="container"
660          id="inv_equip"
661          w="380"
662          h="265"
663          title="uiInvEquipTitle"
664          locked="true"
665          resizer="true"
666          pop_min_w="290"
667          pop_min_h="265"
668          pop_max_w="800"
669          pop_max_h="600"
670          movable="true"
671          active="false"
672          opened="true"
673          openable="false"
674          global_color="false"
675          header_color="UI:SAVE:WIN:COLORS:INV"
676          on_active="proc"
677          on_active_params="inv_equip_active"
678          on_deactive="set"
679          on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:INV_EQUIP|value=0"
680          on_resize="lua"
681          on_resize_params="game:updateEquipOnResize('inv_equip', false)"
682          title_class="text">
683     <group id="header_opened"
684            x="0"
685            y="0"
686            w="0"
687            h="12"
688            posref="TL TL"
689            group_onclick_r="active_menu"
690            group_params_r="menu=ui:interface:base_menu_with_color">
691            </group>
692     <group id="content"
693            posref="TL TL"
694            x="0"
695            y="0"
696            w="0"
697            h="0">
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" />
704     </group>
705   </group>
706   <tree node="inv_equip" />
707   
708   <!-- hotbar -->
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" />
717   </proc>
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" />
722   </proc>
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"/>
727   </proc>
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'"/>
745   </proc>
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'"/>
763   </proc>
764   
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"/>
768     <separator />
769   </group>
771   <!-- Hotbar -->
772   <group type="container"
773          id="inv_hotbar"
774          w="246"
775          h="150"
776          resizer="false"
777          openable="false"
778          opened="true"
779          group_onclick_r="active_menu"
780          group_params_r="menu=ui:interface:hotbar_menu"
781          movable="true"
782          active="false"
783          global_color="false"
784          header_color="UI:SAVE:WIN:COLORS:INV"
785          on_active="proc"
786          on_active_params="hotbar_proc_active"
787          on_deactive="set"
788          on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:INV_HOTBAR|value=0">
789       <group id="content"
790            posref="TL TL"
791            child_resize_h="true"
792            child_resize_hmargin="10">
793             <instance template="tinv_hotbar" posref="TR TL" y="-1"/>
794       </group>
795     <link expr="depends(@UI:SAVE:HOTBAR_MODE)" action="proc" params="gestionsets_proc_mode" />
796   </group>
797   <tree node="inv_hotbar" />
798   <!-- Inventory Player Bag -->
799   <group style="inv_container"
800          id="inv_bag"
801          title="uiInventoryTitle"
802          header_color="UI:SAVE:WIN:COLORS:INV"
803          on_active="set"
804          on_active_params="dblink=UI:VARIABLES:ISACTIVE:INV_BAG|value=1"
805          on_deactive="set"
806          on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:INV_BAG|value=0"
807          title_class="formated">
808     <group id="header_closed"
809            x="0"
810            y="0"
811            h="12"
812            posref="TL TL"></group>
813     <group id="header_opened"
814            x="0"
815            y="0"
816            h="16"
817            posref="TL TL"
818            group_onclick_r="active_menu"
819            group_params_r="menu=ui:interface:base_menu_with_color">
820       <instance template="tinv_nbslots_bulk_weight"
821                 id="ibw"
822                 x="-16"
823                 y="2"
824                 inv_branch="%bag"
825                 inv_bulk_max="%bag_bulk_max" />
826     </group>
827     <group id="content"
828            h="394"
829            posref="TR TR">
830       <instance template="tinv_item_list"
831                 id="iil"
832                 inv_branch_nb="%max_bag_invslot"
833                 y="-8"
834                 sizeref="wh"
835                 h="-8"
836                 inv_branch="%bag"
837                 inv_type="INV_BAG" />
838       <!-- Money -->
839       <view type="text"
840             id="moneyTitle"
841             posref="BL BL"
842             x="12"
843             y="2"
844             hardtext="uiMoneyTitle"
845             fontsize="10"
846             shadow="true" />
847       <instance template="argent"
848                 id="money"
849                 posparent="moneyTitle"
850                 posref="TR TL"
851                 x="4"
852                 y="4"
853                 value="%money" />
854     </group>
855   </group>
856   <tree node="inv_bag" />
857   <!-- Inventory Player Room -->
858   <group style="inv_container"
859          id="inv_room"
860          title="uiInvRoomTitle"
861          header_color="UI:SAVE:WIN:COLORS:TRADE"
862          on_active="set"
863          on_active_params="dblink=UI:VARIABLES:ISACTIVE:INV_ROOM|value=1"
864          on_deactive="set"
865          on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:INV_ROOM|value=0">
867     <group id="header_closed"
868            x="0"
869            y="0"
870            h="12"
871            posref="TL TL"></group>
872     <group id="header_opened"
873            x="0"
874            y="0"
875            h="16"
876            posref="TL TL"
877            group_onclick_r="active_menu"
878            group_params_r="menu=ui:interface:base_menu_with_color">
879       <instance template="tinv_nbslots_bulk_weight"
880                 id="ibw"
881                 x="-16"
882                 inv_branch="%room_inv_dbentry"
883                 inv_bulk_max="%room_inv_bulk_max" />
884     </group>
885     <group id="content"
886            h="214"
887            posref="TR TR">
888       <instance template="tinv_item_list"
889                 id="iil"
890                 inv_branch_nb="%max_room_invslot"
891                 y="-8"
892                 sizeref="wh"
893                 h="-8"
894                 inv_branch="%room_inv_dbentry"
895                 inv_type="INV_ROOM" />
896     </group>
897   </group>
898   <tree node="inv_room" />
899   <!-- ********************* -->
900   <!-- * GROUPED INVENTORY * -->
901   <!-- ********************* -->
902   <template name="tinv_animal"
903             id=""
904             bag_entry=""
905             info_entry=""
906             icon_db="">
907     <group id="#id"
908            posref="TL TL"
909            x="0"
910            y="0"
911            sizeref="wh"
912            w="0"
913            h="0">
914       <instance template="tinv_nbslots_bulk_weight"
915                 id="ibw"
916                 x="0"
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"
921                 id="iil"
922                 y="-16"
923                 sizeref="wh"
924                 h="-16"
925                 inv_branch_nb="%max_animal_invslot"
926                 inv_branch="#bag_entry"
927                 inv_type="#icon_db"
928                 animal_status="#info_entry:STATUS" />
929       <view type="text"
930             id="disable_txt"
931             posref="BL BL"
932             x="2"
933             y="2"
934             color="255 255 255 255"
935             shadow="true"
936             fontsize="10" />
937       <link expr="getAnimalInventoryStateText(@#info_entry:STATUS)"
938             target="disable_txt:hardtext" />
939     </group>
940   </template>
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" />
945   </proc>
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)" />
950   </proc>
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" />
954   </proc>
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" />
958   </proc>
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)" />
963   </proc>
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)" />
968   </proc>
969   <group type="container"
970          id="inventory"
971          header_active="false"
972          resizer="true"
973          pop_min_w="380"
974          pop_min_h="265"
975          pop_max_w="920"
976          pop_max_h="1600"
977          w="380"
978          h="265"
979          movable="true"
980          active="false"
981          opened="true"
982          openable="false"
983          global_color="false"
984          global_color_over="true"
985          on_active="proc"
986          on_active_params="inventory_active"
987          on_deactive="proc"
988          on_deactive_params="inventory_deactive"
989          on_resize="lua"
990          on_resize_params="game:updateEquipOnResize('inventory', false)"
991          resizer_top_size="5">
992     <group id="header_opened"
993            x="0"
994            y="0"
995            w="100"
996            h="28"
997            posref="TL TL"
998            group_onclick_r="active_menu"
999            group_params_r="menu=ui:interface:base_menu_with_color">
1001       <group type="tab"
1002              id="inv_select"
1003              child_resize_w="true"
1004              h="24"
1005              posref="TL TL"
1006              x="0"
1007              y="-4">
1008         <ctrl style="tab_button_new"
1009               id="tab0"
1010               x="0"
1011               posref="TL TL"
1012               group="content:bag"
1013               hardtext="uitabInvBag"
1014               tooltip="uiTabInfo"
1015               onclick_r=""
1016               params_r=""
1017               onclick_l="proc"
1018               params_l="inventory_focus" />
1019         <ctrl style="tab_button_new"
1020               id="tab1"
1021               posparent="tab0"
1022               group="content:equip"
1023               hardtext="uitabInvEquip"
1024               tooltip="uiTabInfo"
1025               onclick_r="show"
1026               params_r="inv_equip"
1027               onclick_l="proc"
1028               params_l="equip_focus" />
1029         <!-- MAX_INVENTORY_ANIMAL -->
1030         <ctrl style="tab_button_new"
1031               id="tab2"
1032               posparent="tab1"
1033               group="content:pa0"
1034               hardtext="uitabInvPAMount0"
1035               tooltip="uiTabInfo"
1036               onclick_r="show"
1037               params_r="inv_pa0"
1038               onclick_l="proc"
1039               params_l="inventory_focus" />
1040         <ctrl style="tab_button_new"
1041               id="tab3"
1042               posparent="tab2"
1043               group="content:pa1"
1044               hardtext="uitabInvPAMount1"
1045               tooltip="uiTabInfo"
1046               onclick_r="show"
1047               params_r="inv_pa1"
1048               onclick_l="proc"
1049               params_l="inventory_focus" />
1050         <ctrl style="tab_button_new"
1051               id="tab4"
1052               posparent="tab3"
1053               group="content:pa2"
1054               hardtext="uitabInvPAMount2"
1055               tooltip="uiTabInfo"
1056               onclick_r="show"
1057               params_r="inv_pa2"
1058               onclick_l="proc"
1059               params_l="inventory_focus" />
1060         <ctrl style="tab_button_new"
1061               id="tab5"
1062               posparent="tab4"
1063               group="content:pa3"
1064               hardtext="uitabInvPAMount3"
1065               tooltip="uiTabInfo"
1066               onclick_r="show"
1067               params_r="inv_pa3"
1068               onclick_l="proc"
1069               params_l="inventory_focus" />
1070         <ctrl style="tab_button_new"
1071               id="tab6"
1072               posparent="tab5"
1073               group="content:pa4"
1074               hardtext="uitabInvPAZig1"
1075               tooltip="uiTabInfo"
1076               onclick_r="show"
1077               params_r="inv_pa4"
1078               onclick_l="proc"
1079               params_l="inventory_focus" />
1080         <ctrl style="tab_button_new"
1081               id="tab7"
1082               posparent="tab6"
1083               group="content:pa5"
1084               hardtext="uitabInvPAZig2"
1085               tooltip="uiTabInfo"
1086               onclick_r="show"
1087               params_r="inv_pa5"
1088               onclick_l="proc"
1089               params_l="inventory_focus" />
1090         <ctrl style="tab_button_new"
1091               id="tab8"
1092               posparent="tab7"
1093               group="content:pa6"
1094               hardtext="uitabInvPAZig3"
1095               tooltip="uiTabInfo"
1096               onclick_r="show"
1097               params_r="inv_pa6"
1098               onclick_l="proc"
1099               params_l="inventory_focus" />
1100         <ctrl style="tab_button_new"
1101               id="tab9"
1102               posparent="tab8"
1103               group="content:guild"
1104               hardtext="uitabInvGuild"
1105               tooltip="uiTabInfo"
1106               onclick_r="set"
1107               params_r="dblink=UI:SAVE:INVENTORY_GUILD_WANT_POPUP|value=1"
1108               onclick_l="proc"
1109               params_l="inventory_focus" />
1110         <ctrl style="tab_button_new"
1111               id="tab10"
1112               posparent="tab9"
1113               group="content:room"
1114               hardtext="uitabInvRoom"
1115               tooltip="uiTabInfo"
1116               onclick_r="show"
1117               params_r="inv_room"
1118               onclick_l="proc"
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" />
1152       </group>
1153       <view type="bitmap"
1154             id="sep"
1155             posparent="inv_select"
1156             posref="BR BL"
1157             sizeparent="parent"
1158             sizeref="w"
1159             w="0"
1160             h="1"
1161             scale="true"
1162             texture="blank.tga"
1163             color="166 166 166 255" />
1164     </group>
1165     <group id="content"
1166            x="0"
1167            y="0"
1168            h="170"
1169            posref="TL TL">
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" />
1175       <!-- equip -->
1176       <instance template="tinv_equip" />
1177       <!-- bag -->
1178       <group id="bag"
1179              posref="TL TL"
1180              x="0"
1181              y="0"
1182              sizeref="wh"
1183              w="0"
1184              h="0">
1185         <!-- Special Items -->
1186         <ctrl style="text_button_16"
1187           id="bag_items"
1188           posref="TL TL"
1189           y="-2"
1190           x="10"
1191           wmargin="8"
1192           hardtext="uitabInvBag"
1193           tooltip="uitabInvBag"
1194           onclick_l="proc"
1195           params_l="select_bag_items" />
1197         <ctrl style="text_button_16"
1198           id="special_items"
1199           posref="TR TL"
1200           posparent="bag_items"
1201           y="0"
1202           x="2"
1203           wmargin="8"
1204           hardtext="uiSpecialLabo"
1205           tooltip="uiSpecialLabo"
1206           onclick_l="proc"
1207           params_l="select_special_items" />
1209         <ctrl id="artefact_tab"
1210           type="button"
1211           posref="TR TL"
1212           posparent="special_items"
1213           y="0" x="2"
1214           active="0"
1215           tooltip="Artefact"
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="" />
1223         </group>
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="" />
1227         </group>
1228         <group id="artefact_bottom" posref="BR BR" sizeref="wh" h="0" w="0" x="0" y="0" global_color="false" active="0">
1229             <ctrl id="detach"
1230                 type="button"
1231                 button_type="push_button"
1232                 posref="BR MR"
1233                 y="30"
1234                 x="-4"
1235                 tx_normal="W_win_popup.tga"
1236                 tx_pushed="W_win_popup.tga"
1237                 tx_over="W_button_16_over.tga"
1238                 onclick_l="proc"
1239                 params_l="artefact_win_detach" />
1240             <instance template="check_box"
1241                 id="autopact_cb"
1242                 posref="BR MR"
1243                 y="10"
1244                 x="-1"
1245                 fontsize="9"
1246                 tooltip="uiArtefactHelp"
1247                 instant_help="false"
1248                 dblink="UI:SAVE:TELEPORT:DO_PACT" />
1249             <view type="text"
1250                 id="autopact_vt"
1251                 posref="BR MR"
1252                 x="-23"
1253                 y="10"
1254                 hardtext="" />
1255         </group>
1257         <instance template="tinv_nbslots_bulk_weight"
1258                   id="ibw"
1259                   x="0"
1260                   inv_branch="%bag"
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"
1264                   id="iil"
1265                   inv_branch_nb="%max_bag_invslot"
1266                   y="-18"
1267                   sizeref="wh"
1268                   h="-16"
1269                   inv_branch="%bag"
1270                   inv_type="INV_BAG" />
1271         <instance template="argent"
1272                   id="money"
1273                   posref="BL BL"
1274                   x="4"
1275                   y="2"
1276                   value="%money" />
1277         <instance template="elyps"
1278                   id="elyps"
1279                   active="false"
1280                   posref="BL BL"
1281                   x="4"
1282                   y="2"
1283                   value="%elyps" />
1284       </group>
1285       <!-- pa0 -->
1286       <instance template="tinv_animal"
1287                 id="pa0"
1288                 info_entry="%pa_beast0"
1289                 bag_entry="%pa_bag0"
1290                 icon_db="INV_PA0" />
1291       <!-- pa1 -->
1292       <instance template="tinv_animal"
1293                 id="pa1"
1294                 info_entry="%pa_beast1"
1295                 bag_entry="%pa_bag1"
1296                 icon_db="INV_PA1" />
1297       <!-- pa2 -->
1298       <instance template="tinv_animal"
1299                 id="pa2"
1300                 info_entry="%pa_beast2"
1301                 bag_entry="%pa_bag2"
1302                 icon_db="INV_PA2" />
1303       <!-- pa3 -->
1304       <instance template="tinv_animal"
1305                 id="pa3"
1306                 info_entry="%pa_beast3"
1307                 bag_entry="%pa_bag3"
1308                 icon_db="INV_PA3" />
1309       <!-- pa4 -->
1310       <instance template="tinv_animal"
1311                 id="pa4"
1312                 info_entry="%pa_beast4"
1313                 bag_entry="%pa_bag4"
1314                 icon_db="INV_PA4" />
1315       <!-- pa5 -->
1316       <instance template="tinv_animal"
1317                 id="pa5"
1318                 info_entry="%pa_beast5"
1319                 bag_entry="%pa_bag5"
1320                 icon_db="INV_PA5" />
1321       <!-- pa6 -->
1322       <instance template="tinv_animal"
1323                 id="pa6"
1324                 info_entry="%pa_beast6"
1325                 bag_entry="%pa_bag6"
1326                 icon_db="INV_PA6" />
1327       <!-- guild -->
1328       <group id="guild"
1329              posref="TL TL"
1330              x="0"
1331              y="0"
1332              sizeref="wh"
1333              w="0"
1334              h="0">
1335         <instance template="tinv_nbslots_bulk_weight"
1336                   id="ibw"
1337                   x="0"
1338                   inv_branch="%guild_inv_dbentry"
1339                   inv_bulk_max="%guild_inv_bulk_max" />
1340         <instance template="tinv_item_list"
1341                   id="iil"
1342                   inv_branch_nb="%max_guild_invslot"
1343                   y="-18"
1344                   sizeref="wh"
1345                   h="-16"
1346                   inv_branch="%guild_inv_dbentry"
1347                   inv_type="INV_GUILD" />
1348         <instance template="argent"
1349                   id="money"
1350                   posref="BL BL"
1351                   x="4"
1352                   y="2"
1353                   value="%guild_inv_money" />
1354         <ctrl style="new_element_header"
1355               id="getmoney_but"
1356               posref="MR ML"
1357               posparent="money"
1358               x="4"
1359               wmargin="8"
1360               hardtext="uittGetMoney"
1361               onclick_l="proc"
1362               params_l="guild_get_money" />
1363         <ctrl style="new_element_header"
1364               id="putmoney_but"
1365               posref="MR ML"
1366               posparent="getmoney_but"
1367               x="4"
1368               wmargin="8"
1369               hardtext="uittPutMoney"
1370               onclick_l="proc"
1371               params_l="guild_put_money" />
1372       </group>
1373       <!-- room -->
1374       <group id="room"
1375              posref="TL TL"
1376              x="0"
1377              y="0"
1378              sizeref="wh"
1379              w="0"
1380              h="0">
1381         <instance template="tinv_nbslots_bulk_weight"
1382                   id="ibw"
1383                   x="-4"
1384                   inv_branch="%room_inv_dbentry"
1385                   inv_bulk_max="%room_inv_bulk_max" />
1386         <instance template="tinv_item_list"
1387                   id="iil"
1388                   inv_branch_nb="%max_room_invslot"
1389                   y="-18"
1390                   sizeref="wh"
1391                   h="-16"
1392                   inv_branch="%room_inv_dbentry"
1393                   inv_type="INV_ROOM" />
1394         <instance template="argent"
1395                   id="money"
1396                   posref="BL BL"
1397                   x="4"
1398                   y="2"
1399                   value="%room_inv_money" />
1400       </group>
1401     </group>
1402   </group>
1403   <tree node="inventory" />
1404   <!--
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" />
1409         </track>
1410 </anim>
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" />
1420   </proc>
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"
1425          type="container"
1426          posref="MM MM"
1427          w="242"
1428          h="136"
1429          active="false"
1430          openable="false"
1431          opened="true"
1432          resizer="true"
1433          savable="true"
1434          right_button="false"
1435          movable="true"
1436          pop_min_w="243"
1437          pop_min_h="136"
1438          pop_max_w="242"
1439          pop_max_h="418"
1440          win_priority="%win_priority_high"
1441          on_active="proc"
1442          on_active_params="temp_inventory_activated"
1443          on_deactive="proc"
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"
1448            x="0"
1449            y="0"
1450            h="12"
1451            posref="TL TL"></group>
1452     <group id="header_opened"
1453            x="0"
1454            y="0"
1455            h="16"
1456            posref="TL TL"
1457            group_onclick_r="active_menu"
1458            group_params_r="menu=ui:interface:base_menu_with_color">
1459       <view type="bitmap"
1460             id="weight"
1461             posref="MR MR"
1462             x="-20"
1463             texture="W_weight.tga"
1464             global_color="false" />
1465       <view type="text"
1466             id="weight_txt"
1467             posparent="weight"
1468             posref="ML MR"
1469             y="-2"
1470             x="-2"
1471             color="255 255 255 255"
1472             global_color="false"
1473             shadow="true"
1474             fontsize="10" />
1475       <link expr="identity(getItemsWeight('%temp_inv_dbentry',0,%max_temp_invslot),@%temp_inv_dbentry)"
1476             target="weight_txt:hardtext" />
1477     </group>
1478     <group id="content"
1479            h="136"
1480            posref="TL TL">
1481       <group id="list_of_items"
1482              posref="TL TL"
1483              x="0"
1484              y="-6"
1485              sizeref="wh"
1486              w="0"
1487              h="-32">
1488         <!-- The H should be "42+hspace" * Number of rows. Setup list.max_h too below -->
1489         <group type="list_sheet_text"
1490                sizeref="wh"
1491                w="-10"
1492                h="0"
1493                id="lootcontent"
1494                child_resize_h="false"
1495                posref="TL TL"
1496                x="0"
1497                y="0"
1498                xitem="2"
1499                yitem="-2"
1500                xtext="46"
1501                ytext="0"
1502                hspace="2"
1503                array="false"
1504                maxitem="%max_temp_invslot"
1505                startitem="0"
1506                value="%temp_inv_dbentry"
1507                selection="false"
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"
1515                fontsize="10"
1516                shadow="true"
1517                multi_line="true"
1518                multi_line_space="0">
1519           <ctrl style="skin_scroll"
1520                 id="scroll_row"
1521                 posref="TL TL"
1522                 target_stepy="44" />
1523           <group id="list"
1524                  max_sizeref="h"
1525                  max_sizeparent="parent"
1526                  max_h="0"
1527                  sizeref="w"
1528                  posref="TL TL"
1529                  x="8"
1530                  y="0"
1531                  w="-16" />
1532         </group>
1533       </group>
1534       <view type="bitmap"
1535             id="sep"
1536             x="0"
1537             y="0"
1538             posparent="list_of_items"
1539             posref="BR TR"
1540             scale="true"
1541             h="2"
1542             sizeparent="parent"
1543             sizeref="w"
1544             texture="W_line_hor.tga" />
1545       <instance template="button_ok_cancel"
1546                 posref="BR BR"
1547                 x="-4"
1548                 y="4"
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" />
1556     </group>
1557   </group>
1558   <tree node="temp_inventory" />
1559   <!-- ********* -->
1560   <!-- * HANDS * -->
1561   <!-- ********* -->
1562   <proc id="memory_phrase_check"></proc>
1563   <!-- context menu for memory button -->
1564   <group type="menu"
1565          id="cm_memory_phrase"
1566          extends="base_menu"
1567          on_active="phrase_check_can_cristalize">
1568     <action id="cri"
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 -->
1573     <action id="for"
1574             name="uimPhraseDel"
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 -->
1579     <action id="edi"
1580             name="uimPhraseEdit"
1581             handler="phrase_edit"
1582             cond="and(eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0),isPhraseMenuNotExecuting())"
1583             icon="r2ed_edit_dialog.tga" />
1584     <action id="inf"
1585             name="uimInfos"
1586             handler="open_phraseid_help"
1587             icon="brick_default.tga" />
1588     <action id="cut"
1589             name="uiEditCut"
1590             handler="phrase_memory_copy"
1591             params="mode=cut"
1592             icon="ico_extracting.tga" />
1593     <action id="copy"
1594             name="uiEditCopy"
1595             handler="phrase_memory_copy"
1596             icon="r2ed_tool_copy.tga" />
1597   </group>
1598   <!-- context menu for memory button, when slot is empty -->
1599   <group type="menu"
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 -->
1603     <action id="new"
1604             name="uimPhraseNew"
1605             handler="phrase_new"
1606             cond="eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0)"
1607             icon="curs_create.tga" />
1608     <action id="paste"
1609             name="uiEditPaste"
1610             handler="memorize_phrase_or_macro"
1611             icon="r2ed_tool_paste.tga" />
1612   </group>
1613   <!-- context menu for memory button when it is a macro-->
1614   <group type="menu"
1615          id="cm_memory_macro"
1616          extends="base_menu"
1617          on_active="phrase_check_can_cristalize">
1618     <action id="for"
1619             name="uimForgetMacro"
1620             handler="delete_phrase_or_forget_macro"
1621             icon="r2ed_not_current_act.tga" />
1622   </group>
1623   <!-- Defines memory ctrl -->
1624   <template name="ctrl_memory"
1625             index=""
1626             posref="TL TL"
1627             posparent="parent"
1628             x="0"
1629             y="0"
1630             tx_noitem="">
1631     <ctrl type="sheet"
1632           id="s#index"
1633           value="UI:PHRASE:MEMORY:#index"
1634           nature="sphraseid"
1635           brick_over="true"
1636           x="#x"
1637           y="#y"
1638           posref="#posref"
1639           posparent="#posparent"
1640           tx_noitem="#tx_noitem"
1641           oncandrop="can_memorize_phrase_or_macro"
1642           ondrop="memorize_phrase_or_macro"
1643           dragable="true"
1644           menu_r="ui:interface:cm_memory_phrase"
1645           menu_r_empty_slot="ui:interface:cm_memory_phrase_empty"
1646           is_shortcut="true"
1647           drag_copy="true"
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" />
1655   </template>
1656   <!-- Defines memory ctrl -->
1657   <template name="ctrl_alt_memory"
1658             index=""
1659             posref="TL TL"
1660             posparent="parent"
1661             x="0"
1662             y="0"
1663             tx_noitem="">
1664     <ctrl type="sheet"
1665           id="s#index"
1666           value="UI:PHRASE:MEMORY_ALT:#index"
1667           nature="sphraseid"
1668           brick_over="true"
1669           x="#x"
1670           y="#y"
1671           posref="#posref"
1672           posparent="#posparent"
1673           tx_noitem="#tx_noitem"
1674           oncandrop="can_memorize_phrase_or_macro"
1675           ondrop="memorize_phrase_or_macro"
1676           dragable="true"
1677           menu_r="ui:interface:cm_memory_phrase"
1678           menu_r_empty_slot="ui:interface:cm_memory_phrase_empty"
1679           is_shortcut="false"
1680           drag_copy="true"
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" />
1688   </template>
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"
1695             id=""
1696             posparent="parent"
1697             posref="TL TL"
1698             x="0"
1699             y="0"
1700             w="24"
1701             h="9"
1702             active="true">
1703     <ctrl type="button"
1704           id="#id"
1705           button_type="toggle_button"
1706           posparent="#posparent"
1707           x="#x"
1708           y="#y"
1709           posref="#posref"
1710           active="#active"
1711           tx_normal="W_button_spellock_off.tga"
1712           tx_pushed="W_button_spellock_on.tga"
1713           tx_over="W_button_spellock_over.tga" />
1714   </template>
1715   <!-- The Hands -->
1716   <group type="container"
1717          id="gestionsets"
1718          w="410"
1719          h="48"
1720          resizer="false"
1721          header_active="false"
1722          right_button="false"
1723          group_onclick_r="active_menu"
1724          group_params_r="menu=ui:interface:gestionsets_menu"
1725          movable="true"
1726          active="false"
1727          opened="false"
1728          openable="false"
1729          global_color="false"
1730          header_color="UI:SAVE:WIN:COLORS:INV"
1731          locked="true"
1732          on_active="set"
1733          on_active_params="dblink=UI:VARIABLES:ISACTIVE:SETS|value=1"
1734          on_deactive="set"
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"
1739            x="0"
1740            y="0"
1741            h="48"
1742            w="394"
1743            posref="TL TL" />
1744     <group id="hands"
1745            x="9"
1746            y="0"
1747            w="392"
1748            h="68"
1749            posref="ML ML"
1750            setnumber="1">
1751       <ctrl type="sheet"
1752             id="handr"
1753             posref="MR MR"
1754             x="0"
1755             tx_noitem="hand_right.tga"
1756             selection_group="inventory_selection"
1757             onclick_l="proc"
1758             params_l="inv_left_click_on_slot"
1759             tooltip="uittHandR"
1760             menu_r="%self_item_modal_menu"
1761             dragable="true"
1762             ondrag="inv_drag"
1763             params_drag="from_slot"
1764             oncannotdrop="inv_cannot_drop"
1765             oncandrop="inv_can_drop"
1766             ondrop="inv_drop"
1767             item_slot="RIGHT_HAND"
1768             value="%hand_r"
1769             other_hand_slot="handl"
1770             auto_grayed="false"
1771             tooltip_parent="win" />
1772       <ctrl type="sheet"
1773             id="handl"
1774             posref="ML ML"
1775             x="0"
1776             tx_noitem="hand_left.tga"
1777             selection_group="inventory_selection"
1778             onclick_l="proc"
1779             params_l="inv_left_click_on_slot"
1780             tooltip="uittHandL"
1781             menu_r="%self_item_modal_menu"
1782             dragable="true"
1783             ondrag="inv_drag"
1784             params_drag="from_slot"
1785             oncannotdrop="inv_cannot_drop"
1786             oncandrop="inv_can_drop"
1787             ondrop="inv_drop"
1788             item_slot="LEFT_HAND"
1789             value="%hand_l"
1790             other_hand_slot="handr"
1791             auto_grayed="false"
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" />
1800     </group>
1801     <group id="shortcuts"
1802            x="-8"
1803            w="278"
1804            h="52"
1805            posparent="hands"
1806            posref="MM MM">
1807       <!-- The Shortcuts. Don't modify ids  -->
1808       <instance template="ctrl_memory"
1809                 index="0"
1810                 x="0"
1811                 y="0"
1812                 tx_noitem="W_slot_shortcut_id0.tga" />
1813       <instance template="ctrl_memory"
1814                 index="1"
1815                 x="28"
1816                 y="0"
1817                 tx_noitem="W_slot_shortcut_id1.tga" />
1818       <instance template="ctrl_memory"
1819                 index="2"
1820                 x="56"
1821                 y="0"
1822                 tx_noitem="W_slot_shortcut_id2.tga" />
1823       <instance template="ctrl_memory"
1824                 index="3"
1825                 x="84"
1826                 y="0"
1827                 tx_noitem="W_slot_shortcut_id3.tga" />
1828       <instance template="ctrl_memory"
1829                 index="4"
1830                 x="112"
1831                 y="0"
1832                 tx_noitem="W_slot_shortcut_id4.tga" />
1833       <instance template="ctrl_memory"
1834                 index="5"
1835                 x="140"
1836                 y="0"
1837                 tx_noitem="W_slot_shortcut_id5.tga" />
1838       <instance template="ctrl_memory"
1839                 index="6"
1840                 x="168"
1841                 y="0"
1842                 tx_noitem="W_slot_shortcut_id6.tga" />
1843       <instance template="ctrl_memory"
1844                 index="7"
1845                 x="196"
1846                 y="0"
1847                 tx_noitem="W_slot_shortcut_id7.tga" />
1848       <instance template="ctrl_memory"
1849                 index="8"
1850                 x="224"
1851                 y="0"
1852                 tx_noitem="W_slot_shortcut_id8.tga" />
1853       <instance template="ctrl_memory"
1854                 index="9"
1855                 x="252"
1856                 y="0"
1857                 tx_noitem="W_slot_shortcut_id9.tga" />
1858       <instance template="ctrl_memory"
1859                 index="10"
1860                 x="0"
1861                 y="-26"
1862                 tx_noitem="W_slot_shortcut_shift_id0.tga" />
1863       <instance template="ctrl_memory"
1864                 index="11"
1865                 x="28"
1866                 y="-26"
1867                 tx_noitem="W_slot_shortcut_shift_id1.tga" />
1868       <instance template="ctrl_memory"
1869                 index="12"
1870                 x="56"
1871                 y="-26"
1872                 tx_noitem="W_slot_shortcut_shift_id2.tga" />
1873       <instance template="ctrl_memory"
1874                 index="13"
1875                 x="84"
1876                 y="-26"
1877                 tx_noitem="W_slot_shortcut_shift_id3.tga" />
1878       <instance template="ctrl_memory"
1879                 index="14"
1880                 x="112"
1881                 y="-26"
1882                 tx_noitem="W_slot_shortcut_shift_id4.tga" />
1883       <instance template="ctrl_memory"
1884                 index="15"
1885                 x="140"
1886                 y="-26"
1887                 tx_noitem="W_slot_shortcut_shift_id5.tga" />
1888       <instance template="ctrl_memory"
1889                 index="16"
1890                 x="168"
1891                 y="-26"
1892                 tx_noitem="W_slot_shortcut_shift_id6.tga" />
1893       <instance template="ctrl_memory"
1894                 index="17"
1895                 x="196"
1896                 y="-26"
1897                 tx_noitem="W_slot_shortcut_shift_id7.tga" />
1898       <instance template="ctrl_memory"
1899                 index="18"
1900                 x="224"
1901                 y="-26"
1902                 tx_noitem="W_slot_shortcut_shift_id8.tga" />
1903       <instance template="ctrl_memory"
1904                 index="19"
1905                 x="252"
1906                 y="-26"
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 -->
1909       <view type="bitmap"
1910             id="view_next_action"
1911             texture="action_next.tga"
1912             global_color="false"
1913             active="false"
1914             posref="TL TL"
1915             x="0"
1916             y="0"
1917             render_layer="3" />
1918       <view type="bitmap"
1919             id="view_cycle_action"
1920             texture="action_cycle.tga"
1921             global_color="false"
1922             active="false"
1923             posref="TL TL"
1924             x="0"
1925             y="0"
1926             render_layer="3" />
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" />
1936     </group>
1937     <group type="select_number"
1938            id="select_memory"
1939            value="UI:PHRASE:SELECT_MEMORY"
1940            loop="true"
1941            min="1"
1942            max="10"
1943            x="9"
1944            y="0"
1945            w="297"
1946            h="52"
1947            posparent="shortcuts"
1948            posref="MM MM"
1949            delta="1">
1950       <view type="bitmap"
1951             id="slot_number"
1952             posref="MR MR"
1953             texture="W_slot_number.tga" />
1954       <view type="text"
1955             id="number"
1956             posparent="slot_number"
1957             posref="MM MM"
1958             x="0"
1959             y="0"
1960             color="255 255 255 255"
1961             fontsize="10"
1962             shadow="true"
1963             hardtext="0"
1964             global_color="false" />
1965       <ctrl type="button"
1966             id="arrow_up"
1967             button_type="push_button"
1968             posref="TR TR"
1969             x="-2"
1970             y="-6"
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" />
1976       <ctrl type="button"
1977             id="arrow_down"
1978             button_type="push_button"
1979             posref="BR BR"
1980             x="-2"
1981             y="6"
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" />
1987     </group>
1988     <link expr="@UI:PHRASE:SELECT_MEMORY"
1989           action="phrase_select_memory"
1990           params="value=add(@UI:PHRASE:SELECT_MEMORY,-1)" />
1991   </group>
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" />
2005   </proc>
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" />
2010   </proc>
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"/>
2015   </proc>
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"/>
2092   </proc>
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"/>
2169   </proc>
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" />
2175   </proc>
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" />
2180   </proc>
2182   <!-- menu -->
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" />
2186     <separator />
2187   </group>
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" />
2192     <separator />
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"/>
2195     <separator />
2196   </group>
2198   <group type="container"
2199          id="gestionsets2"
2200          w="68"
2201          h="300"
2202          resizer="false"
2203          header_active="false"
2204          right_button="false"
2205          group_onclick_r="active_menu"
2206          group_params_r="menu=ui:interface:gestionsets2_menu"
2207          movable="true"
2208          active="true"
2209          opened="false"
2210          openable="false"
2211          global_color="false"
2212          header_color="UI:SAVE:WIN:COLORS:INV"
2213          locked="true"
2214          on_active="proc"
2215          on_active_params="gestionsets2_proc_active"
2216          on_deactive="set"
2217          on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:SETS2|value=0"
2218          help_page="interf_action_bar.html">
2219     <group id="header_closed"
2220            x="0"
2221            y="0"
2222            w="68"
2223            h="300"
2224            posref="TL TL">
2225     <group id="shortcuts"
2226                    y="-1"
2227            w="68"
2228            h="300"
2229            posref="TL TL">
2230       <!-- The Shortcuts. Don't modify ids  -->
2231       <instance template="ctrl_alt_memory"
2232                 index="0"
2233                 x="0"
2234                 y="0"
2235                 tx_noitem="W_slot_shortcut_id0.tga" />
2236       <instance template="ctrl_alt_memory"
2237                 index="1"
2238                 y="-28"
2239                 x="0"
2240                 tx_noitem="W_slot_shortcut_id1.tga" />
2241       <instance template="ctrl_alt_memory"
2242                 index="2"
2243                 y="-56"
2244                 x="0"
2245                 tx_noitem="W_slot_shortcut_id2.tga" />
2246       <instance template="ctrl_alt_memory"
2247                 index="3"
2248                 y="-84"
2249                 x="0"
2250                 tx_noitem="W_slot_shortcut_id3.tga" />
2251       <instance template="ctrl_alt_memory"
2252                 index="4"
2253                 y="-112"
2254                 x="0"
2255                 tx_noitem="W_slot_shortcut_id4.tga" />
2256       <instance template="ctrl_alt_memory"
2257                 index="5"
2258                 y="-140"
2259                 x="0"
2260                 tx_noitem="W_slot_shortcut_id5.tga" />
2261       <instance template="ctrl_alt_memory"
2262                 index="6"
2263                 y="-168"
2264                 x="0"
2265                 tx_noitem="W_slot_shortcut_id6.tga" />
2266       <instance template="ctrl_alt_memory"
2267                 index="7"
2268                 y="-196"
2269                 x="0"
2270                 tx_noitem="W_slot_shortcut_id7.tga" />
2271       <instance template="ctrl_alt_memory"
2272                 index="8"
2273                 y="-224"
2274                 x="0"
2275                 tx_noitem="W_slot_shortcut_id8.tga" />
2276       <instance template="ctrl_alt_memory"
2277                 index="9"
2278                 y="-252"
2279                 x="0"
2280                 tx_noitem="W_slot_shortcut_id9.tga" />
2281       <instance template="ctrl_alt_memory"
2282                 index="10"
2283                 y="-0"
2284                 x="26"
2285                 tx_noitem="W_slot_shortcut_shift_id0.tga" />
2286       <instance template="ctrl_alt_memory"
2287                 index="11"
2288                 y="-28"
2289                 x="26"
2290                 tx_noitem="W_slot_shortcut_shift_id1.tga" />
2291       <instance template="ctrl_alt_memory"
2292                 index="12"
2293                 y="-56"
2294                 x="26"
2295                 tx_noitem="W_slot_shortcut_shift_id2.tga" />
2296       <instance template="ctrl_alt_memory"
2297                 index="13"
2298                 y="-84"
2299                 x="26"
2300                 tx_noitem="W_slot_shortcut_shift_id3.tga" />
2301       <instance template="ctrl_alt_memory"
2302                 index="14"
2303                 y="-112"
2304                 x="26"
2305                 tx_noitem="W_slot_shortcut_shift_id4.tga" />
2306       <instance template="ctrl_alt_memory"
2307                 index="15"
2308                 y="-140"
2309                 x="26"
2310                 tx_noitem="W_slot_shortcut_shift_id5.tga" />
2311       <instance template="ctrl_alt_memory"
2312                 index="16"
2313                 y="-168"
2314                 x="26"
2315                 tx_noitem="W_slot_shortcut_shift_id6.tga" />
2316       <instance template="ctrl_alt_memory"
2317                 index="17"
2318                 y="-196"
2319                 x="26"
2320                 tx_noitem="W_slot_shortcut_shift_id7.tga" />
2321       <instance template="ctrl_alt_memory"
2322                 index="18"
2323                 y="-224"
2324                 x="26"
2325                 tx_noitem="W_slot_shortcut_shift_id8.tga" />
2326       <instance template="ctrl_alt_memory"
2327                 index="19"
2328                 y="-252"
2329                 x="26"
2330                 tx_noitem="W_slot_shortcut_shift_id9.tga" />
2331      </group>
2332     </group>
2333 <!-- Mofications Cyrillas for bar1 related selection -->
2334       <group type="select_number"
2335              id="select_memory"
2336              value="UI:PHRASE:SELECT_MEMORY_2"
2337              loop="true"
2338              min="1"
2339              max="10"
2340              x="0"
2341              y="0"
2342              w="68"
2343              h="300"
2344              posparent="shortcuts"
2345              posref="MM MM"
2346              delta="1">
2347         <view type="bitmap"
2348               id="slot_number"
2349               posref="BM BM"
2350               texture="W_slot_number.tga" />
2351         <view type="text"
2352               id="number"
2353               posparent="slot_number"
2354               posref="MM MM"
2355               x="0"
2356               y="0"
2357               color="255 255 255 255"
2358               fontsize="12"
2359               shadow="true"
2360               hardtext="0"
2361               global_color="false" />
2362         <ctrl type="button"
2363               id="arrow_down"
2364               button_type="push_button"
2365               posref="BL BL"
2366               x="10"
2367               y="0"
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" />
2373         <ctrl type="button"
2374               id="arrow_up"
2375               button_type="push_button"
2376               posref="BR BR"
2377               x="-9"
2378               y="0"
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" />
2384       </group>
2385       <group type="select_number"
2386              id="select_memory_h"
2387              value="UI:PHRASE:SELECT_MEMORY_2"
2388              loop="true"
2389              min="1"
2390              max="10"
2391              x="0"
2392              y="0"
2393              w="300"
2394              h="52"
2395              active="false"
2396              posparent="shortcuts"
2397              posref="MM MM"
2398              delta="1">
2399         <view type="bitmap"
2400               id="slot_number"
2401               posref="MR MR"
2402               texture="W_slot_number.tga" />
2403         <view type="text"
2404               id="number"
2405               posparent="slot_number"
2406               posref="MM MM"
2407               x="0"
2408               y="0"
2409               color="255 255 255 255"
2410               fontsize="12"
2411               shadow="true"
2412               hardtext="0"
2413               global_color="false" />
2414         <ctrl type="button"
2415               id="arrow_up"
2416               button_type="push_button"
2417               posref="TM BM"
2418               posparent="slot_number"
2419               x="0"
2420               y="0"
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" />
2426         <ctrl type="button"
2427               id="arrow_down"
2428               button_type="push_button"
2429               posref="BM TM"
2430               posparent="slot_number"
2431               x="0"
2432               y="0"
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" />
2438       </group>
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)"
2443             action="proc"
2444             params="gestionsets_proc_mode" />
2445       <link expr="depends(@UI:SAVE:GESTIONSETS:DRAGDROP)"
2446             action="proc"
2447             params="proc_gestionsets_menu_iconlock" />
2448       <link expr="depends(@UI:SAVE:GESTIONSETS2:DRAGDROP)"
2449             action="proc"
2450             params="proc_gestionsets2_menu_iconlock" />
2451   </group>
2452   <tree node="gestionsets2" />
2453   <!-- hands -->
2454   <!-- ************************* -->
2455   <!-- ** TEAM SHARING SYSTEM ** -->
2456   <!-- ************************* -->
2457   <!-- Used to share item or phrase in mission rewards -->
2458   <template name="t_team_share_member"
2459             id=""
2460             memberid=""
2461             x="0"
2462             y="0"
2463             y1="0"
2464             posref="TL TL"
2465             posparent="parent">
2466     <view type="text_id"
2467           id="t_#id"
2468           x="#x"
2469           y="#y"
2470           posref="TL TL"
2471           posparent="#posparent"
2472           fontsize="10"
2473           shadow="true"
2474           textid="LOCAL:INVENTORY:SHARE:TM_#memberid:NAME"
2475           dynamic_string="false" />
2476     <view type="bitmap"
2477           id="v_#id"
2478           x="-2"
2479           y="#y1"
2480           posref="TR TR"
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" />
2488   </template>
2489   <group id="team_share"
2490          type="container"
2491          posref="MM MM"
2492          w="454"
2493          h="136"
2494          active="false"
2495          openable="false"
2496          opened="true"
2497          resizer="false"
2498          savable="false"
2499          right_button="false"
2500          movable="true"
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"
2506            x="0"
2507            y="0"
2508            h="12"
2509            posref="TL TL"></group>
2510     <group id="header_opened"
2511            x="0"
2512            y="0"
2513            h="32"
2514            posref="TL TL"
2515            group_onclick_r="active_menu"
2516            group_params_r="menu=ui:interface:base_menu_with_color">
2517       <group id="top_menu"
2518              sizeref="w"
2519              w="0"
2520              h="18"
2521              y="-17"
2522              posref="TL TL">
2523         <view type="bitmap"
2524               id="back"
2525               x="274"
2526               y="0"
2527               posref="TL TL"
2528               scale="true"
2529               w="162"
2530               sizeref="h"
2531               texture="blank.tga"
2532               color="0 0 0 64"
2533               global_color="false" />
2534         <view type="bitmap"
2535               id="sep1"
2536               x="208"
2537               y="0"
2538               posref="TL TL"
2539               scale="true"
2540               w="2"
2541               sizeref="h"
2542               texture="W_line_ver.tga" />
2543         <view type="bitmap"
2544               id="sep2"
2545               x="236"
2546               y="0"
2547               posref="TL TL"
2548               scale="true"
2549               w="2"
2550               sizeref="h"
2551               texture="W_line_ver.tga" />
2552         <view type="bitmap"
2553               id="sep3"
2554               x="272"
2555               y="0"
2556               posref="TL TL"
2557               scale="true"
2558               w="2"
2559               sizeref="h"
2560               texture="W_line_ver.tga" />
2561         <view type="bitmap"
2562               id="sep4"
2563               x="0"
2564               y="0"
2565               posref="TR TR"
2566               scale="true"
2567               w="2"
2568               sizeref="h"
2569               texture="W_line_ver.tga" />
2570         <view type="text"
2571               id="items"
2572               x="10"
2573               y="0"
2574               posref="BL BL"
2575               fontsize="10"
2576               hardtext="uiTeamShareItems"
2577               shadow="true"
2578               global_color="false" />
2579         <view type="text"
2580               id="Nbr"
2581               x="220"
2582               y="0"
2583               posref="BL BL"
2584               fontsize="12"
2585               hardtext="uiTeamShareAsks"
2586               shadow="true"
2587               global_color="false" />
2588         <view type="text"
2589               id="chances"
2590               x="252"
2591               y="-1"
2592               posref="BL BL"
2593               fontsize="12"
2594               hardtext="uiTeamShareChance"
2595               shadow="true"
2596               global_color="false" />
2597         <view type="text"
2598               id="valids"
2599               x="276"
2600               y="0"
2601               posref="BL BL"
2602               fontsize="10"
2603               hardtext="uiTeamShareValid"
2604               shadow="true"
2605               global_color="false" />
2606       </group>
2607     </group>
2608     <group id="content"
2609            h="214"
2610            posref="TR TR">
2611       <group id="separators"
2612              posref="TL TL"
2613              sizeref="wh"
2614              h="-22">
2615         <view type="bitmap"
2616               id="back"
2617               x="274"
2618               y="0"
2619               posref="TL TL"
2620               scale="true"
2621               w="162"
2622               h="190"
2623               texture="blank.tga"
2624               color="0 0 0 64"
2625               global_color="false" />
2626         <view type="bitmap"
2627               id="sep0"
2628               x="0"
2629               y="0"
2630               posref="TL TL"
2631               scale="true"
2632               h="2"
2633               sizeref="w"
2634               texture="W_line_hor.tga" />
2635         <view type="bitmap"
2636               id="sep1"
2637               x="208"
2638               y="-2"
2639               posref="TL TL"
2640               scale="true"
2641               w="2"
2642               sizeref="h"
2643               h="-4"
2644               texture="W_line_ver.tga" />
2645         <view type="bitmap"
2646               id="sep2"
2647               x="236"
2648               y="-2"
2649               posref="TL TL"
2650               scale="true"
2651               w="2"
2652               sizeref="h"
2653               h="-4"
2654               texture="W_line_ver.tga" />
2655         <view type="bitmap"
2656               id="sep3"
2657               x="272"
2658               y="-2"
2659               posref="TL TL"
2660               scale="true"
2661               w="2"
2662               sizeref="h"
2663               h="-4"
2664               texture="W_line_ver.tga" />
2665         <view type="bitmap"
2666               id="sep4"
2667               x="436"
2668               y="-2"
2669               posref="TL TL"
2670               scale="true"
2671               w="2"
2672               sizeref="h"
2673               h="-4"
2674               texture="W_line_ver.tga" />
2675         <view type="bitmap"
2676               id="sep5"
2677               x="0"
2678               y="0"
2679               posref="BL BL"
2680               scale="true"
2681               h="2"
2682               sizeref="w"
2683               texture="W_line_hor.tga" />
2684       </group>
2685       <group id="list_of_items"
2686              posref="TL TL"
2687              x="0"
2688              y="-6"
2689              w="272"
2690              h="184">
2691         <!-- The H should be "42+hspace" * Number of rows. Setup list.max_h too below -->
2692         <group type="list_sheet_share"
2693                sizeref="w"
2694                w="0"
2695                h="184"
2696                id="content"
2697                posref="TM TM"
2698                x="0"
2699                y="0"
2700                xitem="18"
2701                yitem="-2"
2702                xtext="62"
2703                ytext="-2"
2704                selection="false"
2705                nature="auto"
2706                x_nbmember="212"
2707                y_nbmember="-20"
2708                icon_wanted="W_opacity_on.tga"
2709                icon_not_wanted="w_slot_on.tga"
2710                x_wanted="2"
2711                y_wanted="-17"
2712                x_chance="240"
2713                y_chance="-20"
2714                hspace="4"
2715                array="false"
2716                maxitem="16"
2717                startitem="0"
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"
2726                fontsize="8"
2727                shadow="true"
2728                multi_line="true"
2729                multi_line_space="0"
2730                line_maxw="136">
2731           <ctrl style="skin_scroll"
2732                 id="scroll_row"
2733                 posref="TL TL"
2734                 target_stepy="44" />
2735           <group id="list"
2736                  sizeref="w"
2737                  posref="TL TL"
2738                  max_h="184"
2739                  x="8"
2740                  y="0"
2741                  w="-8"
2742                  h="0" />
2743         </group>
2744       </group>
2745       <group id="list_of_members"
2746              posref="TR TR"
2747              x="0"
2748              y="-6"
2749              w="156"
2750              h="184">
2751         <instance template="t_team_share_member"
2752                   id="tsm1"
2753                   memberid="0"
2754                   y="0"
2755                   y1="4" />
2756         <instance template="t_team_share_member"
2757                   id="tsm2"
2758                   memberid="1"
2759                   y="-20"
2760                   y1="-16" />
2761         <instance template="t_team_share_member"
2762                   id="tsm3"
2763                   memberid="2"
2764                   y="-40"
2765                   y1="-36" />
2766         <instance template="t_team_share_member"
2767                   id="tsm4"
2768                   memberid="3"
2769                   y="-60"
2770                   y1="-56" />
2771         <instance template="t_team_share_member"
2772                   id="tsm5"
2773                   memberid="4"
2774                   y="-80"
2775                   y1="-76" />
2776         <instance template="t_team_share_member"
2777                   id="tsm6"
2778                   memberid="5"
2779                   y="-100"
2780                   y1="-96" />
2781         <instance template="t_team_share_member"
2782                   id="tsm7"
2783                   memberid="6"
2784                   y="-120"
2785                   y1="-116" />
2786         <instance template="t_team_share_member"
2787                   id="tsm8"
2788                   memberid="7"
2789                   y="-140"
2790                   y1="-136" />
2791       </group>
2792       <group id="tooltips"
2793              posref="TL TL"
2794              x="0"
2795              y="0"
2796              sizeref="w"
2797              h="190">
2798         <ctrl type="tooltip"
2799               id="ttselect"
2800               tooltip="uiTS_Select"
2801               color="255 255 255 255"
2802               posref="TL TL"
2803               x="8"
2804               y="0"
2805               w="18"
2806               h="190" />
2807         <ctrl type="tooltip"
2808               id="ttitems"
2809               tooltip="uiTS_Items"
2810               posparent="ttselect"
2811               color="255 255 255 255"
2812               posref="TR TL"
2813               w="183"
2814               h="190" />
2815         <ctrl type="tooltip"
2816               id="tttimes"
2817               tooltip="uiTS_Times"
2818               posparent="ttitems"
2819               color="255 255 255 255"
2820               posref="TR TL"
2821               w="28"
2822               h="190" />
2823         <ctrl type="tooltip"
2824               id="ttchance"
2825               tooltip="uiTS_Chances"
2826               posparent="tttimes"
2827               color="255 255 255 255"
2828               posref="TR TL"
2829               w="36"
2830               h="190" />
2831         <ctrl type="tooltip"
2832               id="ttvalid"
2833               tooltip="uiTS_Valids"
2834               posparent="ttchance"
2835               color="255 255 255 255"
2836               posref="TR TL"
2837               w="161"
2838               h="190" />
2839       </group>
2840       <ctrl style="button_ok"
2841             posref="BM BM"
2842             y="2"
2843             onclick_l="team_share_valid"
2844             hardtext="uiValidate" />
2845     </group>
2846   </group>
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" />
2854   </proc>
2855   <proc id="defense_deactive">
2856     <action handler="set"
2857             params="dblink=UI:VARIABLES:ISACTIVE:DEFENSE|value=0" />
2858   </proc>
2859   <style style="defense_armor"
2860          type="sheet"
2861          menu_r="%self_item_modal_menu"
2862          selection_group="inventory_selection"
2863          auto_grayed="false" />
2864   <template name="defense_value"
2865             x="0"
2866             y="1"
2867             w="40"
2868             h="12"
2869             posref="BM BM"
2870             keep="true"
2871             id=""
2872             val_defense=""
2873             parent="">
2874     <group id="#id"
2875            posref="#posref"
2876            w="#w"
2877            h="#h"
2878            x="#x"
2879            y="#y"
2880            posparent="#posparent">
2881       <view type="bitmap"
2882             id="back"
2883             posref="TL TL"
2884             texture="blank.tga"
2885             scale="true"
2886             sizeref="wh"
2887             color="0 0 0 80"
2888             global_color="false" />
2889       <view type="text_number"
2890             id="value"
2891             posref="TM TM"
2892             x="2"
2893             y="-2"
2894             color="255 255 255 255"
2895             shadow="true"
2896             global_color="false"
2897             fontsize="10"
2898             value="#val_defense" />
2899       <view type="text"
2900             id="sign"
2901             posref="ML MR"
2902             x="1"
2903             y="0"
2904             color="152 211 72 255"
2905             posparent="value"
2906             shadow="true"
2907             global_color="false"
2908             fontsize="10"
2909             hardtext="+" />
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'))"
2914             target="value:x" />
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" />
2918     </group>
2919   </template>
2920   <group type="container"
2921          id="defense"
2922          w="94"
2923          h="256"
2924          title="uiDefenseTitle"
2925          min_w="94"
2926          max_w="94"
2927          min_h="236"
2928          max_h="236"
2929          resizer="false"
2930          locked="true"
2931          header_active="true"
2932          right_button="true"
2933          movable="true"
2934          active="false"
2935          opened="true"
2936          openable="false"
2937          global_color="false"
2938          header_color="UI:SAVE:WIN:COLORS:INV"
2939          title_class="formated"
2940          on_active="proc"
2941          on_active_params="defense_active"
2942          on_deactive="proc"
2943          on_deactive_params="defense_deactive">
2944     <group id="header_closed"
2945            x="0"
2946            y="0"
2947            h="12"
2948            posref="TL TL"></group>
2949     <group id="header_opened"
2950            x="0"
2951            y="0"
2952            w="86"
2953            h="248"
2954            posref="TL TL"
2955            group_onclick_r="active_menu"
2956            group_params_r="menu=ui:interface:base_menu_with_color">
2957       <group id="styles"
2958              posref="TM TM"
2959              y="-20"
2960              sizeref="w"
2961              w="0"
2962              h="50">
2963         <ctrl style="defense_style_button"
2964               id="style1"
2965               posref="TM TM"
2966               y="0"
2967               hardtext="uiStyle1"
2968               onclick_l="dodge"
2969               params_l="" />
2970         <ctrl style="defense_style_button"
2971               id="style2"
2972               posref="BM BM"
2973               y="0"
2974               hardtext="uiStyle2"
2975               onclick_l="parry"
2976               params_l="" />
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" />
2981       </group>
2982       <group id="armors"
2983              posref="BR BR"
2984              w="86"
2985              h="174"
2986              x="0"
2987              y="0">
2988         <ctrl style="defense_armor"
2989               id="head"
2990               posref="TL TL"
2991               x="0"
2992               y="0"
2993               tx_noitem="W_AR_helmet.tga"
2994               item_slot="HEAD"
2995               value="%head"
2996               tooltip="uittDefenseHead" />
2997         <ctrl style="defense_armor"
2998               id="chest"
2999               posref="BL TL"
3000               posparent="head"
3001               x="0"
3002               y="-2"
3003               tx_noitem="W_AR_gilet.tga"
3004               item_slot="CHEST"
3005               value="%chest"
3006               tooltip="uittDefenseChest" />
3007         <ctrl style="defense_armor"
3008               id="legs"
3009               posref="BL TL"
3010               posparent="chest"
3011               x="0"
3012               y="-2"
3013               tx_noitem="W_AR_pantabotte.tga"
3014               item_slot="LEGS"
3015               value="%legs"
3016               tooltip="uittDefenseLegs" />
3017         <ctrl style="defense_armor"
3018               id="feet"
3019               posref="BL TL"
3020               posparent="legs"
3021               x="0"
3022               y="-2"
3023               tx_noitem="W_AR_botte.tga"
3024               item_slot="FEET"
3025               value="%feet"
3026               tooltip="uittDefenseFeet" />
3027         <ctrl style="defense_armor"
3028               id="arms"
3029               posref="TR TL"
3030               posparent="chest"
3031               x="2"
3032               y="11"
3033               tx_noitem="W_AR_armpad.tga"
3034               item_slot="ARMS"
3035               value="%arms"
3036               tooltip="uittDefenseArms" />
3037         <ctrl style="defense_armor"
3038               id="hands"
3039               posref="BL TL"
3040               posparent="arms"
3041               x="0"
3042               y="-2"
3043               tx_noitem="W_AR_hand.tga"
3044               item_slot="HANDS"
3045               value="%hands"
3046               tooltip="uittDefenseHands" />
3047         <!-- BUTTONS TO DEFINE DEFENSE TARGET -->
3048         <ctrl id="all"
3049               type="text_button"
3050               button_type="radio_button"
3051               posref="BR BR"
3052               wmin="42"
3053               y="0"
3054               tx_normal="w_defense_normal"
3055               tx_pushed="w_defense"
3056               tx_over="w_defense"
3057               text_y="-2"
3058               fontsize="12"
3059               shadow="true"
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"
3079               id="head_button"
3080               posparent="head"
3081               posref="MM MM"
3082               onclick_l="select_protected_slot"
3083               params_l="Head" />
3084         <ctrl style="defense_button"
3085               id="chest_button"
3086               posparent="chest"
3087               posref="MM MM"
3088               onclick_l="select_protected_slot"
3089               params_l="Body" />
3090         <ctrl style="defense_button"
3091               id="arms_button"
3092               posparent="arms"
3093               posref="MM MM"
3094               onclick_l="select_protected_slot"
3095               params_l="Arms" />
3096         <ctrl style="defense_button"
3097               id="hands_button"
3098               posparent="hands"
3099               posref="MM MM"
3100               onclick_l="select_protected_slot"
3101               params_l="Hands" />
3102         <ctrl style="defense_button"
3103               id="legs_button"
3104               posparent="legs"
3105               posref="MM MM"
3106               onclick_l="select_protected_slot"
3107               params_l="Legs" />
3108         <ctrl style="defense_button"
3109               id="feet_button"
3110               posparent="feet"
3111               posref="MM MM"
3112               onclick_l="select_protected_slot"
3113               params_l="Feet" />
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"
3129                   id="head_val"
3130                   posparent="head"
3131                   val_defense="SERVER:DEFENSE:SLOTS:0:MODIFIER" />
3132         <instance template="defense_value"
3133                   id="chest_val"
3134                   posparent="chest"
3135                   val_defense="SERVER:DEFENSE:SLOTS:1:MODIFIER" />
3136         <instance template="defense_value"
3137                   id="arms_val"
3138                   posparent="arms"
3139                   val_defense="SERVER:DEFENSE:SLOTS:2:MODIFIER" />
3140         <instance template="defense_value"
3141                   id="hands_val"
3142                   posparent="hands"
3143                   val_defense="SERVER:DEFENSE:SLOTS:3:MODIFIER" />
3144         <instance template="defense_value"
3145                   id="legs_val"
3146                   posparent="legs"
3147                   val_defense="SERVER:DEFENSE:SLOTS:4:MODIFIER" />
3148         <instance template="defense_value"
3149                   id="feet_val"
3150                   posparent="feet"
3151                   val_defense="SERVER:DEFENSE:SLOTS:5:MODIFIER" />
3152       </group>
3153     </group>
3154     <group id="content"
3155            w="0"
3156            h="0" />
3157   </group>
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" />
3166   <!-- group/ -->
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" />
3172   <!-- group/ -->
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" />
3178   <!-- view/text -->
3179   <define id="edit_custom_edit_buttons"
3180           value="ui:interface:edit_custom:content:buttons_edit" />
3181   <!-- group/ -->
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"
3190             type="sint32"
3191             value="0" />
3192   <proc id="proc_phrase_edit_custom_opened">
3193     <action handler="set"
3194             params="dblink=UI:VARIABLES:ISACTIVE:PHRASE_EDIT_CUSTOM|value=1" />
3195   </proc>
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" />
3200   </proc>
3201   <group type="container"
3202          id="edit_custom"
3203          w="432"
3204          h="400"
3205          title="uiItemTextEdition"
3206          global_color="false"
3207          line_at_bottom="false"
3208          movable="true"
3209          active="false"
3210          opened="true"
3211          openable="false"
3212          resizer="true"
3213          savable="false"
3214          header_color="UI:SAVE:WIN:COLORS:INFOS"
3215          on_active="proc"
3216          on_active_params="proc_phrase_edit_custom_opened"
3217          on_deactive="proc"
3218          on_deactive_params="proc_phrase_edit_custom_closed"
3219          pop_min_w="432"
3220          pop_min_h="128"
3221          pop_max_w="800"
3222          pop_max_h="600">
3223     <group id="header_closed"
3224            x="0"
3225            y="0"
3226            child_resize_w="true"
3227            h="16"
3228            posref="TL TL" />
3229     <group id="header_opened"
3230            x="0"
3231            y="0"
3232            child_resize_w="true"
3233            h="16"
3234            posref="TL TL" />
3235     <group id="content"
3236            x="0"
3237            y="0"
3238            sizeref="wh"
3239            w="0"
3240            h="0"
3241            posref="TL TL">
3242       <group id="crop"
3243              posref="TR TR"
3244              x="0"
3245              y="-8"
3246              sizeref="wh"
3247              w="-16"
3248              h="-32" />
3249       <!-- THEME -->
3250       <group id="scroll_text"
3251              posparent="crop"
3252              posref="TM TM"
3253              x="0"
3254              y="-4"
3255              sizeref="w"
3256              child_resize_h="true"
3257              child_resize_hmargin="4"
3258              w="-4"
3259              max_sizeparent="crop"
3260              max_sizeref="h"
3261              max_h="-4"
3262              active="true">
3263         <view type="bitmap"
3264               id="background"
3265               posref="TL TL"
3266               sizeref="w"
3267               x="0"
3268               y="-8"
3269               txtwidth="300"
3270               txtheight="360"
3271               texture=""
3272               global_color="false"
3273               render_layer="0" />
3274         <view type="text"
3275               id="display"
3276               posref="TL TL"
3277               sizeref="w"
3278               color="255 255 255 160"
3279               x="2"
3280               y="-4"
3281               fontsize="12"
3282               shadow="true"
3283               multi_line="true"
3284               multi_line_space="0" />
3285         <instance template="edit_box_widget_multiline"
3286                   max_num_chars="1024"
3287                   max_num_return="50"
3288                   id="edit_large"
3289                   posref="TL TL"
3290                   x="4"
3291                   y="-8"
3292                   sizeref="w"
3293                   sizeref_eb="w"
3294                   child_resize_h="true"
3295                   w="-8"
3296                   h="-30"
3297                   text_x="0"
3298                   text_y="0"
3299                   text_ref="TL TL"
3300                   fontsize="12"
3301                   multi_line="true"
3302                   enter_loose_focus="true"
3303                   enter_recover_focus="false"
3304                   prompt=""
3305                   reset_focus_on_hide="true"
3306                   want_return="true"
3307                   active="false"
3308                   render_layer="1"
3309                   scale="false" />
3310         <instance template="edit_box_widget_multiline"
3311                   max_num_chars="256"
3312                   max_num_return="16"
3313                   id="edit_short"
3314                   posref="TL TL"
3315                   x="4"
3316                   y="-8"
3317                   sizeref="w"
3318                   sizeref_eb="w"
3319                   child_resize_h="true"
3320                   w="-8"
3321                   h="-30"
3322                   text_x="0"
3323                   text_y="0"
3324                   text_ref="TL TL"
3325                   fontsize="12"
3326                   multi_line="true"
3327                   enter_loose_focus="true"
3328                   enter_recover_focus="false"
3329                   prompt=""
3330                   reset_focus_on_hide="true"
3331                   want_return="true"
3332                   active="false"
3333                   render_layer="1"
3334                   scale="false" />
3335       </group>
3336       <ctrl style="skin_scroll"
3337             id="scroll_bar_theme"
3338             align="T"
3339             target="scroll_text"
3340             posparent="crop"
3341             posref="TL TR"
3342             x="-8"
3343             y="0" />
3344       <view type="bitmap"
3345             id="sep"
3346             x="0"
3347             y="-2"
3348             posparent="crop"
3349             posref="BR TR"
3350             scale="true"
3351             h="2"
3352             sizeparent="parent"
3353             sizeref="w"
3354             texture="W_line_hor.tga" />
3355       <instance id="buttons_edit"
3356                 template="button_ok_cancel"
3357                 posref="BR BR"
3358                 x="-4"
3359                 y="2"
3360                 active="false"
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"
3367             x="-4"
3368             y="2"
3369             posref="BR BR"
3370             text_y="-2"
3371             onclick_l="hide"
3372             params_l="ui:interface:edit_custom"
3373             hardtext="uittClose"
3374             tooltip="uittClose" />
3375     </group>
3376   </group>
3377   <tree node="edit_custom" />
3378 </interface_config>