Fix classique titles display
[ryzomcore.git] / ryzom / client / mods / syui_v3 / syui / player.xml
blob6e4becc1c95b7199507a42316fe9513741685773
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="player.lua" />
9   <lua file="taskbar.lua" />
10   <!-- ********** -->
11   <!-- * PLAYER * -->
12   <!-- ********** -->
13   <variable entry="UI:TEMP:ACTIONVAL"
14             type="sint64"
15             value="0" />
16   <variable entry="UI:VARIABLES:DISPLAYBARSTOTAL"
17             type="sint64"
18             value="3" />
19   <variable entry="UI:TEMP:PVP_FACTION:TAG_PVP"
20             type="bool"
21             value="0" />
22   <variable entry="UI:TEMP:PVP_FACTION:DSP_MODE"
23             type="sint32"
24             value="0" />
25   <variable entry="UI:TEMP:PVP_FACTION:DSP_PUSHED"
26             type="sint32"
27             value="0" />
28   <variable entry="UI:TEMP:PVP_FACTION:DSP_TIMER"
29             type="sint32"
30             value="0" />
31   <define id="user_name_id"
32           value="SERVER:Entities:E0:P6" />
33   <!-- jauges with tooltips -->
34   <template name="jauges_player"
35             x="0"
36             y="0"
37             posref="TR TR">
38     <view type="bar3"
39           id="jauges"
40           posref="#posref"
41           x="#x"
42           y="#y"
43           color1="%focus_color"
44           value1="%player_focus_percent"
45           range1="%player_percent_max"
46           color2="%sap_color"
47           value2="%player_sap_percent"
48           range2="%player_percent_max"
49           color3="%sta_color"
50           value3="%player_sta_percent"
51           range3="%player_percent_max" />
52     <ctrl type="tooltip"
53           id="tt1"
54           on_tooltip="player_tt_stamina"
55           color="%sta_color"
56           posparent="jauges"
57           posref="TL TL"
58           x="0"
59           y="-1"
60           sizeref="wh3"
61           w="0"
62           h="0" />
63     <ctrl type="tooltip"
64           id="tt2"
65           on_tooltip="player_tt_sap"
66           color="%sap_color"
67           posparent="tt1"
68           posref="BL TL"
69           x="0"
70           y="0"
71           sizeref="wh"
72           w="0"
73           h="0" />
74     <ctrl type="tooltip"
75           id="tt3"
76           on_tooltip="player_tt_focus"
77           color="%focus_color"
78           posparent="tt2"
79           posref="BL TL"
80           x="0"
81           y="0"
82           sizeref="wh"
83           w="0"
84           h="0" />
85   </template>
86   <!-- the Main Group -->
87   <proc id="player_active">
88     <action handler="set"
89             params="dblink=UI:VARIABLES:ISACTIVE:PLAYER|value=1" />
90     <!--  
91       <action handler="set" params="target_property=ui:interface:player:char3d:char:anim|value=0" />
92       <action handler="set" params="target_property=ui:interface:player:char3d:cam:posz|value=add(0.15,getprop('ui:interface:player:char3d:char:headz'))" />
93       <action handler="set" params="target_property=ui:interface:player:char3d:cam:tgtz|value=add(0.15,getprop('ui:interface:player:char3d:char:headz'))" />
94       <action handler="anim_start" params="anim=anim_refresh_player" />
95     -->
96   </proc>
97   <proc id="player_cam_position">
98     <action handler="set"
99             params="target_property=ui:interface:player:char3d:cam:posz|value=add(0.12,getprop('ui:interface:player:char3d:char:headz'))" />
100     <action handler="set"
101             params="target_property=ui:interface:player:char3d:cam:tgtz|value=add(0.12,getprop('ui:interface:player:char3d:char:headz'))" />
102   </proc>
103   <anim id="anim_refresh_player"
104         duration="0.1"
105         disable_buttons="false"
106         on_finish="proc"
107         on_finish_params="player_cam_position"></anim>
108   <template name="jauge_score"
109             posparent="parent"
110             x="0"
111             y="0"
112             h="16"
113             posref="TL TL"
114             id=""
115             w="156"
116             color=""
117             color_gray=""
118             text=""
119             val=""
120             maxval=""
121             val_bar=""
122             tooltip="">
123     <group id="#id"
124            posparent="#posparent"
125            posref="#posref"
126            w="#w"
127            h="#h"
128            x="#x"
129            y="#y">
130       <group id="jauge_bar"
131              posref="TL TL"
132              w="#w"
133              h="#h">
134         <view type="bitmap"
135               id="jauge_graph"
136               posref="TL TL"
137               texture="jauge.tga"
138               color="#color"
139               global_color="false" />
140       </group>
141       <view type="text"
142             id="t"
143             posref="TL TL"
144             x="6"
145             y="-5"
146             color="255 255 255 255"
147             global_color="false"
148             fontsize="11"
149             shadow="true"
150             hardtext="#text" />
151       <view type="text_number"
152             id="max"
153             posref="MR MR"
154             x="-6"
155             y="-4"
156             color="255 255 255 255"
157             shadow="true"
158             global_color="false"
159             fontsize="11"
160             value="#maxval"
161             positive="true" />
162       <view type="text"
163             id="sep"
164             posparent="max"
165             posref="TL TR"
166             x="-1"
167                         y="0"
168             color="255 255 255 255"
169             shadow="true"
170             global_color="false"
171             fontsize="11"
172             hardtext="/" />
173       <view type="text_number"
174             id="val"
175             posparent="max"
176             posref="TL TR"
177             x="-10"
178                         y="0"
179             color="255 255 255 255"
180             shadow="true"
181             global_color="false"
182             fontsize="11"
183             value="#val"
184             positive="true" />
185       <link expr="div(mul(abs(@#val_bar), #w), %player_percent_max)"
186             target="jauge_bar:w" />
187       <link expr="ifthenelse(le(@#val_bar,0), '#color_gray', '#color')"
188             target="jauge_bar:jauge_graph:color" />
189     </group>
190     <instance template="text_tt"
191               posparent="#id"
192               tooltip="#tooltip"
193               tooltip_parent="win" />
194   </template>
195   <!-- ******************** -->
196   <!-- AFFICHAGE DES BARRES -->
197   <!-- ******************** -->
198   <group type="menu"
199          id="player_jauge_menu"
200          extends="base_menu_with_color">
201     <action id="sap_bardisplay"
202             name="uiSapBarDisplay"
203             handler="set"
204             params="dblink=UI:SAVE:PLAYER:DISP_SAP|value=not(@UI:SAVE:PLAYER:DISP_SAP)" />
205     <action id="sta_bardisplay"
206             name="uiStaBarDisplay"
207             handler="set"
208             params="dblink=UI:SAVE:PLAYER:DISP_STA|value=not(@UI:SAVE:PLAYER:DISP_STA)" />
209     <action id="foc_bardisplay"
210             name="uiFocBarDisplay"
211             handler="set"
212             params="dblink=UI:SAVE:PLAYER:DISP_FOC|value=not(@UI:SAVE:PLAYER:DISP_FOC)" />
213   </group>
214   <link expr="depends(@UI:SAVE:PLAYER:DISP_SAP, @UI:SAVE:PLAYER:DISP_STA, @UI:SAVE:PLAYER:DISP_FOC)"
215         action="lua"
216         params="game:updatePlayerBars()" />
217   <link expr="depends(@SERVER:CHARACTER_INFO:PVP_FACTION_TAG)"
218         action="lua"
219         params="game:updatePvpTag()" />
220   <!-- ************** -->
221   <!-- CURRENT ACTION -->
222   <!-- ************** -->
223   <!-- Must pass through an other DB, to allow multiple instances of the action bar template -->
224   <variable entry="UI:PHRASE:ACT_BAR_LEN"
225             type="sint32"
226             value="0" />
227   <variable entry="UI:PHRASE:EXECUTE_NEXT:PHRASE"
228             type="sint32"
229             value="0" />
230   <variable entry="UI:PHRASE:EXECUTE_NEXT:ISCYCLIC"
231             type="sint32"
232             value="0" />
233   <link expr="depends(@UI:VARIABLES:CURRENT_SMOOTH_SERVER_TICK)"
234         action="set"
235         cond="and(ne(@SERVER:USER:ACT_TEND,0),ne(sub(@%player_act_end,@%player_act_start),0))"
236         params="dblink=UI:PHRASE:ACT_BAR_LEN|value=div(mul(sub(@UI:VARIABLES:CURRENT_SMOOTH_SERVER_TICK,@%player_act_start), 94), sub(@%player_act_end,@%player_act_start))" />
237   <link expr="eq(@SERVER:USER:ACT_TEND,0)"
238         action="set"
239         params="dblink=UI:PHRASE:ACT_BAR_LEN|value=0" />
240   <!-- The template (instanciated 2 times) -->
241   <template name="t_current_action_bar"
242             id=""
243             x=""
244             y=""
245             posref="TL TL"
246             tooltip_parent=""
247             tooltip_special_parent=""
248             active="true">
249     <group id="#id"
250            x="#x"
251            y="#y"
252            posref="#posref"
253            w="166"
254            h="32"
255            active="#active">
256       <!-- Backs -->
257       <view type="bitmap"
258             id="slot_action1"
259             posref="TL TL"
260             y="-3"
261             texture="slot_brick.tga"
262                         color="255 255 255 100"
263             inherit_gc_alpha="false" />
264       <view type="bitmap"
265             id="slot_action2"
266             posref="TR TR"
267             y="-3"
268             texture="slot_brick.tga"
269                         color="255 255 255 100"
270             inherit_gc_alpha="false" />
271       <view type="bitmap"
272             id="progression"
273             posref="TM TM"
274             y="-12"
275             texture="slot_jauge_action.tga"
276             inherit_gc_alpha="false" />
277       <instance template="text_tt"
278                 tooltip="uittGaugesActionBar"
279                 posparent="progression"
280                 tooltip_parent="#tooltip_parent"
281                 tooltip_special_parent="#tooltip_special_parent" />
282       <!-- Next Action + Cycle bmp -->
283       <ctrl type="sheet"
284             id="execute_phrase_next"
285             nature="sphraseid"
286             value="UI:PHRASE:EXECUTE_NEXT"
287             posparent="slot_action2"
288             posref="TL TL"
289             x="1"
290             y="-1"
291             tooltip="uittNextExecutingPhrase"
292             tooltip_parent="#tooltip_parent"
293             tooltip_special_parent="#tooltip_special_parent" />
294       <view type="bitmap"
295             id="view_cycle_action"
296             texture="action_cycle.tga"
297             global_color="false"
298             active="false"
299             posparent="execute_phrase_next"
300             posref="TL TL"
301             x="0"
302             y="0"
303             render_layer="3" />
304       <link expr="@UI:PHRASE:EXECUTE_NEXT:ISCYCLIC"
305             target="view_cycle_action:active" />
306       <!-- Action in progress -->
307       <ctrl type="sheet"
308             id="execute_phrase"
309             nature="sphraseid"
310             value="SERVER:EXECUTE_PHRASE"
311             posparent="slot_action1"
312             posref="TL TL"
313             x="1"
314             y="-1"
315             tooltip_parent="#tooltip_parent"
316             tooltip_special_parent="#tooltip_special_parent"
317             onclick_l="phrase_cancel_cast"
318             on_tooltip="lua:game:getMilkoTooltipWithKey('', 'uittExecutingPhrase', 'uittExecutingPhrase', 'phrase_cancel_cast', '')" />
319       <ctrl type="sheet"
320             id="execute_special_action"
321             nature="sbrick"
322             value="SERVER:EXECUTE_PHRASE"
323             posparent="execute_phrase"
324             posref="BL BL"
325             x="0"
326             y="0"
327             tooltip_parent="#tooltip_parent"
328             tooltip_special_parent="#tooltip_special_parent"
329             onclick_l="phrase_cancel_cast"
330             on_tooltip="lua:game:getMilkoTooltipWithKey('', 'uittExecutingPhrase', 'uittExecutingPhrase', 'phrase_cancel_cast', '')" />
331       <link expr="@SERVER:EXECUTE_PHRASE:SHEET"
332             target="execute_special_action:active" />
333       <!-- Action Bar -->
334       <group id="action_bar"
335              posref="TL TL"
336              posparent="progression"
337              w="0"
338              h="20">
339         <view type="bitmap"
340               id="jauge_graph"
341               posref="TL TL"
342               texture="jauge_action.tga"
343               color="255 255 255 255"
344               global_color="false" />
345       </group>
346       <link expr="@UI:PHRASE:ACT_BAR_LEN"
347             target="action_bar:w" />
348     </group>
349   </template>
350   <!-- The Current Action bar Window -->
351   <group type="container"
352          id="current_action"
353          w="166"
354          h="40"
355          title=""
356          global_color="false"
357          global_color_over="true"
358          resizer="false"
359          header_active="false"
360          right_button="false"
361          movable="false"
362          active="false"
363          opened="true"
364          openable="false"
365          options="compass"
366          locked="false"
367          savable="false">
368     <group id="header_closed"
369            x="0"
370            y="0"
371            h="0"
372            posref="TL TL" />
373     <group id="header_opened"
374            x="0"
375            y="0"
376            w="182"
377            h="40"
378            posref="TL TL">
379       <instance template="t_current_action_bar"
380                 id="current_action"
381                 x="0"
382                 y="0"
383                 posref="MM MM"
384                 tooltip_parent="special"
385                 tooltip_special_parent="ui:interface:milko_pad" />
386     </group>
387   </group>
388   <tree node="current_action" />
389   <!-- Display the current action bar if wanted and usefull. update its position under memory bar. Usefull if: 
390                 - some special action casted
391                 - some phrase casted
392                 - some phrase casted next
393                 - some action bar setuped
394                 - if the player is in combat mode
396   <link expr="and(eq(@UI:SAVE:ACT_BAR_OUT,1), eq(@UI:VARIABLES:ISACTIVE:SETS,1), or(
397                         ne(@SERVER:EXECUTE_PHRASE:SHEET,0), 
398                         ne(@SERVER:EXECUTE_PHRASE:PHRASE,0),
399                         ne(@UI:PHRASE:EXECUTE_NEXT:PHRASE,0),
400                         ne(@SERVER:USER:ACT_TEND,0),
401                         eq(@SERVER:Entities:E0:P8,3)) )"
402         target="current_action:active"
403         action="lua:game:updateCurrentActionPosition()" />
404   <!-- ************* -->
405   <!-- JAUGES PLAYER -->
406   <!-- ************* -->
407   <!-- Tag Button -->
408   <template name="t_pvp_tag_button"
409             id=""
410                         posparent=""
411             tx=""
412             mode=""
413                         render_layer="" >
414     <ctrl type="button"
415           id="#id"
416                   posparent="#posparent"
417           button_type="toggle_button"
418           posref="TR TR"
419           x="0"
420           y="0"
421           active="false"
422           tx_normal="#tx"
423           tx_pushed="#tx"
424           tx_over="W_button_24_over.tga"
425           w="24"
426           h="24"
427           scale="false"
428           global_color_normal="false"
429           global_color_over="false"
430           global_color_pushed="false"
431           over_when_pushed="false"
432           onclick_l="lua:game:pvpTag()"
433           on_tooltip="lua:game:playerTTPvp()"
434           tooltip_parent="win"
435           render_layer="#render_layer"  />
436     <link expr="eq(@UI:TEMP:PVP_FACTION:DSP_MODE, #mode)"
437           target="#id:active" />
438     <link expr="@UI:TEMP:PVP_FACTION:DSP_PUSHED"
439           target="#id:pushed" />
440   </template>
441   <!-- Player container -->
442   <group type="container"
443          id="player"
444          w="182"
445          h="512"
446          title=""
447          global_color="false"
448          global_color_over="true"
449          resizer="false"
450          header_active="false"
451          right_button="false"
452          movable="true"
453          active="false"
454          opened="true"
455          openable="false"
456          on_active="proc"
457          on_active_params="player_active"
458          on_deactive="set"
459          on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:PLAYER|value=0"
460          on_open="set"
461          on_open_params="dblink=%inventory_touched|value=1"
462          on_close="set"
463          on_close_params="dblink=%inventory_touched|value=1"
464          help_page="interf_my_gauges.html"
465          title_delta_max_w="-42"
466          title_over_extend_view_text="true"
467          group_onclick_l="self_target"
468          on_begin_move="self_target">
469         <view type="bitmap"
470           id="frame_bg"
471           posref="TL TL"
472           global_color="false" />
473     <group id="header_closed"
474            x="0"
475            y="0"
476            h="34"
477            posref="TL TL"
478            group_onclick_l="self_target"></group>
479     <group id="header_opened"
480            x="0"
481            y="0"
482            h="32"
483            posref="TL TL"
484            group_onclick_r="active_menu"
485            group_params_r="menu=ui:interface:player_jauge_menu"
486            group_onclick_l="self_target">
487       <!-- The Player Name -->
488       <view type="text"
489             id="player_title"
490             posref="BL BL"
491             x="0"
492             y="0"
493             color="255 255 255 255"
494             global_color="true"
495             fontsize="10"
496             shadow="true"
497             hardtext="Refugee"
498             line_maxw="140"
499             over_extend_view_text="true" />
500       <!-- PVP Tag Button -->
501       <instance template="t_pvp_tag_button"
502                 id="pvp_tag_button_0"
503                                 posparent="slot_fake_pvp"
504                 tx="no_pvp.tga"
505                 mode="0"
506                 render_layer="2" />
507       <instance template="t_pvp_tag_button"
508                 id="pvp_tag_button_1"
509                                 posparent="slot_fake_pvp"
510                 tx="pvp_tag.tga"
511                 mode="1"
512                                 render_layer="2" />
513       <instance template="t_pvp_tag_button"
514                 id="pvp_tag_button_2"
515                                 posparent="slot_fake_pvp"
516                 tx="pvp_flag.tga"
517                 mode="2"
518                                 render_layer="2" />
519       <!-- PVP Tag special overed pushed icon. pushed == over rotated !!. (NB: Ugly to save icon space) -->
520           <view type="bitmap"
521             id="pvp_tag_pushed"
522             posref="TR TR"
523             x="0"
524             y="0"
525             w="24"
526             h="24"
527             scale="true"
528             rot="2"
529             texture="W_button_24_over.tga"
530             color="255 255 255 255"
531             active="false"
532             global_color="false" />
533       <link expr="@UI:TEMP:PVP_FACTION:DSP_PUSHED"
534             target="pvp_tag_pushed:active" />
535       <!-- PVP Tag timer -->
536       <view type="bitmap"
537             id="pvp_timer_bg"
538             posref="TR TL"
539             x="-24"
540             y="-25"
541             w="24"
542             h="4"
543             scale="true"
544             texture="blank.tga"
545             color="8 60 8 255"
546             active="false" />
547       <view type="bitmap"
548             id="pvp_timer"
549             posref="TR TL"
550             x="-24"
551             y="-26"
552             w="24"
553             h="2"
554             scale="true"
555             texture="blank.tga"
556             color="32 220 32 255"
557             active="false" />
558       <link expr="@UI:TEMP:PVP_FACTION:DSP_TIMER"
559             target="pvp_timer_bg:active, pvp_timer:active" />
560     </group>
561     <group id="content"
562            x="0"
563            y="-6"
564            w="166"
565                    h="552"
566            child_resize_h="true"
567            posref="TL TL"
568            group_onclick_l="self_target">
569       <!-- new Jauges -->
570       <view type="bitmap"
571             id="b_lif"
572             posref="TL TL"
573                         y="0"
574             texture="slot_jauge.tga"
575             inherit_gc_alpha="false" />
576       <view type="bitmap"
577             id="b_sap"
578             posref="TL TL"
579             texture="slot_jauge.tga"
580             inherit_gc_alpha="false" />
581           <view type="bitmap"
582             id="b_sta"
583             posref="TL TL"
584             texture="slot_jauge.tga"
585             inherit_gc_alpha="false" />
586           <view type="bitmap"
587             id="b_foc"
588             posref="TL TL"
589             texture="slot_jauge.tga"
590             inherit_gc_alpha="false" />
591       <instance template="jauge_score"
592                 id="jlife"
593                 posparent="b_lif"
594                 posref="TL TL"
595                 color="255 93 38 255"
596                 color_gray="160 42 5 255"
597                 text="uiHP"
598                 val="%player_hp"
599                 maxval="%player_hp_max"
600                 val_bar="%player_hp_percent"
601                 tooltip="uittGaugesHP" />
602       <instance template="jauge_score"
603                 id="jsap"
604                 posparent="b_sap"
605                 posref="TL TL"
606                 color="100 255 40 255"
607                 color_gray="100 141 3 255"
608                 text="uiSap"
609                 val="%player_sap"
610                 maxval="%player_sap_max"
611                 val_bar="%player_sap_percent"
612                 tooltip="uittGaugesSap" />
613       <instance template="jauge_score"
614                 id="jsta"
615                 posparent="b_sta"
616                 posref="TL TL"
617                 color="255 37 254 255"
618                 color_gray="151 50 114 255"
619                 text="uiStamina"
620                 val="%player_sta"
621                 maxval="%player_sta_max"
622                 val_bar="%player_sta_percent"
623                 tooltip="uittGaugesSta" />
624       <instance template="jauge_score"
625                 id="jfoc"
626                 posparent="b_foc"
627                 posref="TL TL"
628                 color="60 159 255 255"
629                 color_gray="23 116 147 255"
630                 text="uiFocus"
631                 val="%player_focus"
632                 maxval="%player_focus_max"
633                 val_bar="%player_focus_percent"
634                 tooltip="uittGaugesFoc" />
635       <!-- Action Progression (display only if user wants to). Important to set active by default, to have correct reset.xml behaviour -->
636       <instance template="t_current_action_bar"
637                 id="current_action"
638                 x="0"
639                 y="-65"
640                 tooltip_parent="win"
641                 active="false" />
642       <link expr="eq(@UI:SAVE:ACT_BAR_OUT,0)"
643             target="current_action:active" />
644     </group>
645   </group>
646   <tree node="player" />
647   <!-- ************************* -->
648   <!-- *  BONUS MALUS  * -->
649   <!-- ************************* -->
650   <!-- constants -->
651   <define id="num_server_bonus_malus"
652           value="12" />
653   <define id="num_local_bonus_malus"
654           value="16" />
655   <!-- server + DeathPenalty/XPCat/RingXPCat/PVP Outpost -->
656   <!-- Temp DB that may contains other static bonus (XPcatalyzer, RingXPcatalyzer, PVP Outpost) -->
657   <variable entry="UI:VARIABLES:BONUS:$i:SHEET"
658             type="sint32"
659             value="0"
660             size="%num_local_bonus_malus" />
661   <variable entry="UI:VARIABLES:BONUS:$i:DISABLED"
662             type="sint32"
663             value="0"
664             size="%num_local_bonus_malus" />
665   <variable entry="UI:VARIABLES:BONUS:$i:SPECIAL_TOOLTIP"
666             type="sint32"
667             value="0"
668             size="%num_local_bonus_malus" />
669   <variable entry="UI:VARIABLES:MALUS:$i:SHEET"
670             type="sint32"
671             value="0"
672             size="%num_local_bonus_malus" />
673   <variable entry="UI:VARIABLES:MALUS:$i:DISABLED"
674             type="sint32"
675             value="0"
676             size="%num_local_bonus_malus" />
677   <variable entry="UI:VARIABLES:MALUS:$i:SPECIAL_TOOLTIP"
678             type="sint32"
679             value="0"
680             size="%num_local_bonus_malus" />
681   <variable entry="UI:VARIABLES:SHOW_BONUS"
682             type="sint32"
683             value="0" />
684   <variable entry="UI:VARIABLES:SHOW_MALUS"
685             type="sint32"
686             value="0" />
687   <!-- Link that copy server DB to local DB -->
688   <link expr="depends(@SERVER:USER:DEATH_XP_MALUS, @SERVER:CHARACTER_INFO:XP_CATALYSER, @SERVER:CHARACTER_INFO:RING_XP_CATALYSER, @SERVER:CHARACTER_INFO:PVP_OUTPOST, @%malus, @%bonus)"
689         action="lua:game:updatePlayerBonusMalus()" />
690   <template name="t_text_bonus"
691             id=""
692             x=""
693             y="">
694     <group id="#id"
695            child_resize_w="true"
696            child_resize_h="true"
697            child_resize_wmargin="1"
698            child_resize_hmargin="1"
699            posref="TL TM"
700            x="#x"
701            y="#y"
702            avoid_resize_parent="true"
703            active="false">
704       <!-- seconds shadow for better readibility (fake bold) -->
705       <view type="text"
706             id="shade0"
707             x="0"
708             y="1"
709             color="0 0 0 255"
710             global_color="false"
711             fontsize="9"
712             shadow="false"
713             hardtext=""
714             multi_line="true"
715             multi_line_space="0"
716             multi_line_maxw_only="true" />
717       <view type="text"
718             id="shade1"
719             x="2"
720             y="1"
721             color="0 0 0 255"
722             global_color="false"
723             fontsize="9"
724             shadow="false"
725             hardtext=""
726             multi_line="true"
727             multi_line_space="0"
728             multi_line_maxw_only="true" />
729       <view type="text"
730             id="shade2"
731             x="1"
732             y="2"
733             color="0 0 0 255"
734             global_color="false"
735             fontsize="9"
736             shadow="false"
737             hardtext=""
738             multi_line="true"
739             multi_line_space="0"
740             multi_line_maxw_only="true" />
741       <view type="text"
742             id="shade3"
743             x="1"
744             y="0"
745             color="0 0 0 255"
746             global_color="false"
747             fontsize="9"
748             shadow="false"
749             hardtext=""
750             multi_line="true"
751             multi_line_space="0"
752             multi_line_maxw_only="true" />
753       <!-- standard text. 2 for more readibility -->
754       <view type="text"
755             id="text"
756             x="1"
757             y="1"
758             color="255 255 255 255"
759             global_color="false"
760             fontsize="9"
761             shadow="false"
762             hardtext=""
763             multi_line="true"
764             multi_line_space="0"
765             multi_line_maxw_only="true" />
766       <view type="text"
767             id="text2"
768             x="1"
769             y="1"
770             color="255 255 255 255"
771             global_color="false"
772             fontsize="9"
773             shadow="false"
774             hardtext=""
775             multi_line="true"
776             multi_line_space="0"
777             multi_line_maxw_only="true" />
778     </group>
779   </template>
780   <!-- The Bonus Malus Window -->
781   <group type="container"
782          id="bonus_malus"
783          w="116"
784          h="80"
785          title=""
786          global_color="false"
787          global_color_over="true"
788          resizer="false"
789          header_active="false"
790          right_button="false"
791          movable="true"
792          active="true"
793          opened="true"
794          openable="false"
795          on_active="set"
796          on_active_params="dblink=UI:VARIABLES:ISACTIVE:BONUS_MALUS|value=1"
797          on_deactive="set"
798          on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:BONUS_MALUS|value=0"
799          group_onclick_r="active_menu"
800          group_params_r="menu=ui:interface:base_menu_with_color"
801          options="compass">
802     <group id="header_closed"
803            x="0"
804            y="0"
805            h="0"
806            posref="TL TL" />
807     <group id="header_opened"
808            x="0"
809            y="0"
810            w="116"
811            child_resize_h="true"
812            child_resize_hmargin="7"
813            posref="TL TL">
814       <!-- WINDOW TOOLTIP -->
815       <!-- display the tooltip only when the window is empty (so players understand what it is) -->
816       <ctrl type="tooltip"
817             id="tt_empty"
818             instant_help="true"
819             posref="TM TM"
820             x="0"
821             y="-3"
822             sizeref="w"
823             w="-6"
824             h="22"
825             tooltip="uittBonusMalusWindow"
826             tooltip_parent="win" />
827       <link expr="and(not(@UI:VARIABLES:SHOW_BONUS), not(@UI:VARIABLES:SHOW_MALUS))"
828             target="tt_empty:active" />
829       <!-- BONUS -->
830       <group id="bonus"
831              x="2"
832              y="-4"
833              sizeref="w"
834              w="0"
835              child_resize_h="true"
836              posref="TL TL">
837         <!-- Special list_sheet that display some disable bitmap if needed according to DB -->
838         <group type="list_sheet_bonus_malus"
839                id="bonuses"
840                sizeref="w"
841                w="0"
842                value="UI:VARIABLES:BONUS"
843                posref="TL TL"
844                y="0"
845                wspace="2"
846                hspace="12"
847                maxitem="%num_local_bonus_malus"
848                rowmin="1"
849                rowmax="4"
850                nature="sbrick"
851                array="false"
852                lmargin="0"
853                rmargin="0"
854                tmargin="0"
855                bmargin="1"
856                column_max="4"
857                column_center="false"
858                disable_texture="MG_suppression.tga"
859                onclick_r="open_sbrick_help"
860                params_r="test_aura_disabled=1"
861                onclick_l="lua:game:onLeftClickBonus()"
862                on_tooltip="aura_modifier_tooltip"
863                child_resize_h="true"
864                tooltip_parent="win"></group>
865         <!-- small texts under icons. For now do only the first 4th bonus. Do it later for other if needed -->
866         <instance template="t_text_bonus"
867                   id="text0"
868                   x="13"
869                   y="-26" />
870         <instance template="t_text_bonus"
871                   id="text1"
872                   x="41"
873                   y="-26" />
874         <instance template="t_text_bonus"
875                   id="text2"
876                   x="69"
877                   y="-26" />
878         <instance template="t_text_bonus"
879                   id="text3"
880                   x="97"
881                   y="-26" />
882         <!-- Always display at least a line here, for better readability of malus (always under) -->
883         <!--<link expr="@UI:VARIABLES:SHOW_BONUS" target="active" />-->
884       </group>
885       <!-- sep -->
886       <view type="bitmap"
887             id="sep"
888             sizeparent="parent"
889             sizeref="w"
890             w="0"
891             h="2"
892             posparent="bonus"
893             posref="BL TL"
894             scale="true"
895             texture="W_line_hor.tga" />
896       <link expr="and(@UI:VARIABLES:SHOW_BONUS, @UI:VARIABLES:SHOW_MALUS)"
897             target="sep:active" />
898       <group id="dummy_pos"
899              posparent="sep"
900              posref="TL TL"
901              sizeref="w"
902              h="2" />
903       <!-- MALUS -->
904       <group id="malus"
905              y="-2"
906              sizeparent="parent"
907              sizeref="w"
908              w="0"
909              child_resize_h="true"
910              posparent="dummy_pos"
911              posref="BL TL">
912         <!-- Special list_sheet that display some disable bitmap if needed according to DB -->
913         <group type="list_sheet_bonus_malus"
914                id="maluses"
915                sizeref="w"
916                w="0"
917                value="UI:VARIABLES:MALUS"
918                posref="TL TL"
919                y="0"
920                wspace="2"
921                hspace="12"
922                maxitem="%num_local_bonus_malus"
923                rowmin="1"
924                rowmax="4"
925                nature="sbrick"
926                array="false"
927                lmargin="0"
928                rmargin="0"
929                tmargin="0"
930                bmargin="0"
931                column_max="4"
932                column_center="false"
933                disable_texture="MG_suppression.tga"
934                onclick_r="open_sbrick_help"
935                params_r="test_aura_disabled=1"
936                onclick_l="lua:game:onLeftClickMalus()"
937                on_tooltip="aura_modifier_tooltip"
938                child_resize_h="true"
939                tooltip_parent="win"></group>
940         <link expr="@UI:VARIABLES:SHOW_MALUS"
941               target="active" />
942       </group>
943     </group>
944   </group>
945   <tree node="bonus_malus" />
946   <!-- ************************* -->
947   <!-- *  ANIMALS GLOBAL  * -->
948   <!-- ************************* -->
949   <!-- Animals MENU -->
950   <!-- Each Option is enabled/disabled at open according to the animal selected -->
951   <group type="menu"
952          id="animal_menu_all"
953          extends="base_menu_with_color"
954          on_active="animal_menu_option">
955     <action id="follow"
956             name="uimFollowMe"
957             handler="beast_order"
958             params="order=follow|beast_index=@UI:BEAST_SELECTED" />
959     <action id="stop"
960             name="uimStop"
961             handler="beast_order"
962             params="order=stop|beast_index=@UI:BEAST_SELECTED" />
963     <action id="free"
964             name="uimFree"
965             handler="beast_order"
966             params="order=free|beast_index=@UI:BEAST_SELECTED" />
967     <action id="enter_stable"
968             name="uimEnterStable"
969             handler="beast_order"
970             params="order=enter_stable|beast_index=@UI:BEAST_SELECTED" />
971     <action id="leave_stable"
972             name="uimLeaveStable"
973             handler="beast_order"
974             params="order=leave_stable|beast_index=@UI:BEAST_SELECTED" />
975     <separator />
976   </group>
977   <!-- Each Option is enabled/disabled at open according to the animal selected -->
978   <group type="menu"
979          id="animal_menu"
980          extends="base_menu"
981          on_active="animal_menu_option">
982     <action id="follow"
983             name="uimFollowMe"
984             handler="beast_order"
985             params="order=follow|beast_index=@UI:BEAST_SELECTED" />
986     <action id="stop"
987             name="uimStop"
988             handler="beast_order"
989             params="order=stop|beast_index=@UI:BEAST_SELECTED" />
990     <action id="free"
991             name="uimFree"
992             handler="beast_order"
993             params="order=free|beast_index=@UI:BEAST_SELECTED" />
994     <action id="enter_stable"
995             name="uimEnterStable"
996             handler="beast_order"
997             params="order=enter_stable|beast_index=@UI:BEAST_SELECTED" />
998     <action id="leave_stable"
999             name="uimLeaveStable"
1000             handler="beast_order"
1001             params="order=leave_stable|beast_index=@UI:BEAST_SELECTED" />
1002     <action id="mount"
1003             name="uimMount"
1004             handler="beast_order"
1005             params="order=mount|beast_index=@UI:BEAST_SELECTED" />
1006     <action id="unseat"
1007             name="uimUnmount"
1008             handler="beast_order"
1009             params="order=unmount|beast_index=@UI:BEAST_SELECTED" />
1010   </group>
1011   <!-- temp variable to store the animal selected 
1012         0: All animals
1013         1 to 5: Pack animals
1015   <variable entry="UI:BEAST_SELECTED"
1016             type="sint64"
1017             value="0" />
1018   <group type="container"
1019          id="animal_global"
1020          w="236"
1021          h="96"
1022          title="uiAnimalsTitle"
1023          opened="true"
1024          openable="false"
1025          resizer="false"
1026          movable="true"
1027          active="false"
1028          pop_min_h="62"
1029          pop_max_h="512"
1030          min_w="236"
1031          max_w="236"
1032          on_active="set"
1033          on_active_params="dblink=UI:VARIABLES:ISACTIVE:ANIMAL_GLOBAL|value=1"
1034          on_deactive="set"
1035          on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:ANIMAL_GLOBAL|value=0"
1036          global_color="false"
1037          global_color_over="true"
1038          header_color="UI:SAVE:WIN:COLORS:ANI"
1039          help_page="interf_animals.html">
1040     <group id="header_closed"
1041            x="0"
1042            y="0"
1043            h="16"
1044            posref="TL TL"
1045            group_onclick_r="active_menu"
1046            group_params_r="menu=ui:interface:base_menu_with_color">
1047            </group>
1048     <group id="header_opened"
1049            x="0"
1050            y="0"
1051            h="16"
1052            posref="TL TL"
1053            group_onclick_r="proc"
1054            group_params_r="right_click_on_animal_proc|0"></group>
1055     <group id="content"
1056            h="0"
1057            posref="TR TR"
1058            child_resize_h="true">
1059       <group id="no_available_animals"
1060              x="0"
1061              y="0"
1062              sizeref="w"
1063              w="0"
1064              h="70"
1065              posref="TL TL"
1066              active="false">
1067         <group id="main"
1068                sizeref="w"
1069                w="-16"
1070                posref="MM MM"
1071                child_resize_h="true"
1072                y="-8">
1073           <view type="text"
1074                 id="text"
1075                 global_color="true"
1076                 fontsize="14"
1077                 shadow="true"
1078                 hardtext="uiNoAvailableAnimals"
1079                 multi_line="true"
1080                 continuous_update="true" />
1081         </group>
1082       </group>
1083     </group>
1084   </group>
1085   <!-- proc : right click on a animal -->
1086   <proc id="right_click_on_animal_proc">
1087     <!-- set index of current animal -->
1088     <action handler="set"
1089             params="dblink=UI:BEAST_SELECTED|value=@0" />
1090     <!-- If ALL MENU, display the menu. Only if some animal present -->
1091     <!-- MAX_INVENTORY_ANIMAL -->
1092     <action cond="and(eq(@0,0), or( isAnimalStatusPresent(@%pa_beast0:STATUS), 
1093                                                                         isAnimalStatusPresent(@%pa_beast1:STATUS), 
1094                                                                         isAnimalStatusPresent(@%pa_beast2:STATUS), 
1095                                                                         isAnimalStatusPresent(@%pa_beast3:STATUS) ) )"
1096             handler="active_menu"
1097             params="menu=ui:interface:animal_menu_all" />
1098     <!-- If SINGLE MENU, display the menu -->
1099     <action cond="ne(@0,0)"
1100             handler="active_menu"
1101             params="menu=ui:interface:animal_menu" />
1102   </proc>
1103   <!-- ****************** -->
1104   <!-- *  PA TEMPLATE   * -->
1105   <!-- ****************** -->
1106   <template name="pa_template"
1107             index=""
1108             beast_db_entry=""
1109             bars_entry=""
1110             startitem=""
1111             bag_path="">
1112     <group type="container"
1113            id="userpa#index"
1114            w="220"
1115            title="uiPATitleMount#index"
1116            resizer="false"
1117            opened="true"
1118            openable="false"
1119            active_savable="false"
1120            global_color="false"
1121            global_color_over="true"
1122            header_color="UI:SAVE:WIN:COLORS:ANI"
1123            title_delta_max_w="-150"
1124            title_over_extend_view_text="true"
1125                    on_tooltip="userpa_name_tooltip"
1126                    on_tooltip_params="#index">
1127       <group id="header_closed"
1128              h="12"
1129              posref="TL TL"></group>
1130       <group id="header_opened"
1131              h="14"
1132              posref="TL TL"
1133              group_onclick_r="proc"
1134              group_params_r="right_click_on_animal_proc|#index">
1135         <view type="bar3"
1136               id="jauges"
1137               posref="MR MR"
1138               mini="true"
1139               x="-16"
1140               color1="%bulk_color"
1141               range1="#beast_db_entry:BULK_MAX"
1142               color2="255 255 255 255"
1143               value2="#beast_db_entry:HUNGER"
1144               range2="31"
1145               color3="%hp_color"
1146               value3="#bars_entry:HP"
1147               range3="127" />
1148         <ctrl type="tooltip"
1149               id="tt"
1150               instant_help="true"
1151               posparent="jauges"
1152               posref="TL TL"
1153               x="0"
1154               y="0"
1155               sizeref="wh"
1156               tooltip="uittAnimalBar"
1157               tooltip_parent="win" />
1158         <!-- if animal is dead, display despawn timer bar instead of jauges -->
1159         <view type="bar"
1160               id="death_timer"
1161               posref="MR MR"
1162               mini="true"
1163               x="-16"
1164               color="255 255 255 255"
1165               value="#beast_db_entry:DESPAWN"
1166               range="71" />
1167         <ctrl type="tooltip"
1168               id="tt_death_timer"
1169               instant_help="true"
1170               posparent="death_timer"
1171               posref="TL TL"
1172               x="0"
1173               y="0"
1174               sizeref="wh"
1175               tooltip="uittDeathTimer"
1176               tooltip_parent="win" />
1177         <link expr="isAnimalStatusDead(@#beast_db_entry:STATUS)"
1178               target="death_timer:active,tt_death_timer:active" />
1179         <!-- animal status icon -->
1180         <view type="bitmap"
1181               id="animal_alive_landscape"
1182               posref="MR MR"
1183               x="-124"
1184               w="14"
1185               h="14"
1186               scale="true"
1187               texture="mektoub_map.tga" />
1188         <instance template="text_tt"
1189                   tooltip="uittAliveLandscape"
1190                   posparent="animal_alive_landscape"
1191                   tooltip_parent="win" />
1192         <link expr="and(isAnimalStatusAlive(@#beast_db_entry:STATUS),not(isAnimalStatusInStable(@#beast_db_entry:STATUS)))"
1193               target="animal_alive_landscape:active,tt_animal_alive_landscape:active" />
1194         <view type="bitmap"
1195               id="animal_stable"
1196               posref="MR MR"
1197               x="-124"
1198               w="14"
1199               h="14"
1200               scale="true"
1201               texture="building_state2.tga" />
1202         <instance template="text_tt"
1203                   tooltip="uittStable"
1204                   posparent="animal_stable"
1205                   tooltip_parent="win" />
1206         <link expr="isAnimalStatusInStable(@#beast_db_entry:STATUS)"
1207               target="animal_stable:active,tt_animal_stable:active" />
1208         <view type="bitmap"
1209               id="animal_dead"
1210               posref="MR MR"
1211               x="-124"
1212               w="14"
1213               h="14"
1214               scale="true"
1215               texture="MP_skull.tga" />
1216         <instance template="text_tt"
1217                   tooltip="uittDead"
1218                   posparent="animal_dead"
1219                   tooltip_parent="win" />
1220         <link expr="isAnimalStatusDead(@#beast_db_entry:STATUS)"
1221               target="animal_dead:active,tt_animal_dead:active" />
1222         <view type="bitmap"
1223               id="weight"
1224               posref="MR MR"
1225               x="-84"
1226               texture="W_weight.tga" />
1227         <ctrl type="tooltip"
1228               id="tt_weight"
1229               posparent="weight"
1230               posref="MR MR"
1231               x="0"
1232               y="0"
1233               sizeref="wh"
1234               w="28"
1235               h="14"
1236               tooltip="uittAnimalWeight"
1237               tooltip_parent="win" />
1238         <view type="text"
1239               id="weight_txt"
1240               posparent="weight"
1241               posref="TL TR"
1242               x="-2"
1243               y="-2"
1244               color="255 255 255 255"
1245               shadow="true"
1246               fontsize="8" />
1247         <!-- set the weight -->
1248         <link expr="identity(getItemsWeight('#bag_path', 0, %max_animal_invslot), @#bag_path)"
1249               target="weight_txt:hardtext" />
1250         <!-- set the bulk bar -->
1251         <link expr="identity(getItemsBulk('#bag_path', 0, %max_animal_invslot), @#bag_path)"
1252               target="jauges:value1" />
1253         <!-- if animal is dead we don't display the jauges and weight -->
1254         <link expr="not(isAnimalStatusDead(@#beast_db_entry:STATUS))"
1255               target="jauges:active,weight:active,weight_txt:active" />
1256         <!-- Open Inventory button -->
1257         <ctrl type="button"
1258               id="open_inv"
1259               button_type="push_button"
1260               posref="MR MR"
1261               x="-1"
1262               w="14"
1263               h="14"
1264               scale="true"
1265               tx_normal="animal_inventory.tga"
1266               tx_pushed="animal_inventory.tga"
1267               tx_over="W_button_14_over.tga"
1268               global_color_normal="false"
1269               global_color_over="true"
1270               global_color_pushed="false"
1271               onclick_l="animal_open_inventory"
1272               params_l="#index"
1273               tooltip="uittAnimalInv"
1274               tooltip_parent="win" />
1275         <!-- BIG TRANSPARENT BUTTON TO TARGET THE PACK_ANIMAL. w="-16" to let the "inventory" button work -->
1276         <ctrl type="button"
1277               id="select_button"
1278               button_type="push_button"
1279               posref="ML ML"
1280               sizeref="wh"
1281               w="-16"
1282               h="0"
1283               scale="true"
1284               tx_normal="blank_n.tga"
1285               tx_pushed="blank_n.tga"
1286               tx_over="blank_n.tga"
1287               color="0 0 0 0"
1288               col_pushed="0 0 0 0"
1289               col_over="255 255 255 32"
1290               onclick_l="animal_target"
1291               params_l="#index" />
1292       </group>
1293       <!-- links to change the name color if it is the target -->
1294       <link expr="ifthenelse(eq(@#beast_db_entry:UID,@UI:VARIABLES:TARGET:UID),
1295                                                         '255 0 0 255',
1296                                                         '255 255 255 255')"
1297             target="title_color" />
1298     </group>
1299     <link expr="isAnimalStatusPresent(@#beast_db_entry:STATUS)"
1300           target="userpa#index:active" />
1301     <link expr="switch(@#beast_db_entry:TYPE, 'uiPATitleMount#index', 'uiPATitleMount#index', 'uiPATitlePacker#index', 'uiPATitleDemon#index')"
1302           target="userpa#index:title" />
1303   </template>
1304   <!-- MAX_INVENTORY_ANIMAL -->
1305   <instance template="pa_template"
1306             index="1"
1307             bars_entry="UI:VARIABLES:BARS:ANIMAL:0"
1308             beast_db_entry="%pa_beast0"
1309             bag_path="%pa_bag0" />
1310   <instance template="pa_template"
1311             index="2"
1312             bars_entry="UI:VARIABLES:BARS:ANIMAL:1"
1313             beast_db_entry="%pa_beast1"
1314             bag_path="%pa_bag1" />
1315   <instance template="pa_template"
1316             index="3"
1317             bars_entry="UI:VARIABLES:BARS:ANIMAL:2"
1318             beast_db_entry="%pa_beast2"
1319             bag_path="%pa_bag2" />
1320   <instance template="pa_template"
1321             index="4"
1322             bars_entry="UI:VARIABLES:BARS:ANIMAL:3"
1323             beast_db_entry="%pa_beast3"
1324             bag_path="%pa_bag3" />
1325   <!-- ***************************** -->
1326   <!-- *   ANIMAL(S) DEAD WINDOW   * -->
1327   <!-- ***************************** -->
1328   <group type="container"
1329          id="animal_dead_popup"
1330          w="80"
1331          h="60"
1332          min_w="60"
1333          max_w="120"
1334          min_h="45"
1335          max_h="180"
1336          resizer="false"
1337          global_color="false"
1338          global_color_over="true"
1339          movable="true"
1340          active="false"
1341          opened="true"
1342          openable="false"
1343          right_button="false"
1344          header_active="false">
1345     <group id="content"
1346            x="0"
1347            y="0"
1348            w="80"
1349            h="60"
1350            posref="MM MM">
1351       <view type="bitmap"
1352             id="dead_animal_bp"
1353             x="0"
1354             y="8"
1355             posref="MM MM"
1356             texture="MP_skull.tga" />
1357       <ctrl type="tooltip"
1358             id="dead_animal_tooltip"
1359             tooltip=""
1360             on_tooltip="animal_dead_popup_tooltip"
1361             color="0 0 0 255"
1362             posparent="dead_animal_bp"
1363             posref="TL TL"
1364             x="0"
1365             y="0"
1366             sizeref="wh" />
1367     </group>
1368   </group>
1369   <tree node="animal_dead_popup" />
1370   <link expr="or( ne(@SERVER:PACK_ANIMAL:BEAST0:DESPAWN,0),
1371                                 ne(@SERVER:PACK_ANIMAL:BEAST1:DESPAWN,0),
1372                                 ne(@SERVER:PACK_ANIMAL:BEAST2:DESPAWN,0),
1373                                 ne(@SERVER:PACK_ANIMAL:BEAST3:DESPAWN,0)))"
1374         target="ui:interface:animal_dead_popup:active" />
1375   <!-- *************************** -->
1376   <!-- *   ANIMALS INVENTORIES   * -->
1377   <!-- *************************** -->
1378   <!-- The Template Animal Inventory -->
1379   <template name="animal_inventory_template"
1380             id=""
1381             title=""
1382             info_entry=""
1383             bag_entry=""
1384             icon_db="">
1385     <group style="inv_container"
1386            id="#id"
1387            title="uiPABagTitleMount#title"
1388            header_color="UI:SAVE:WIN:COLORS:ANI"
1389            on_active="set"
1390            on_active_params="dblink=UI:VARIABLES:ISACTIVE:#icon_db|value=1"
1391            on_deactive="set"
1392            on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:#icon_db|value=0">
1394       <group id="header_closed"
1395              h="12"
1396              posref="TL TL"></group>
1397       <!-- Animal Header Info -->
1398       <group id="header_opened"
1399              x="0"
1400              y="0"
1401              h="16"
1402              posref="TL TL"
1403              group_onclick_r="active_menu"
1404              group_params_r="menu=ui:interface:base_menu_with_color">
1405              
1406         <instance template="tinv_nbslots_bulk_weight"
1407                   id="ibw"
1408                   x="-16"
1409                   inv_branch_nb="%max_animal_invslot"
1410                   inv_branch="#bag_entry"
1411                   inv_bulk_max="#info_entry:BULK_MAX" />
1412       </group>
1413       <group id="content"
1414              posref="TL TL"
1415              h="218">
1416         <instance template="tinv_item_list"
1417                   id="iil"
1418                   y="-8"
1419                   sizeref="wh"
1420                   h="-8"
1421                   inv_branch_nb="%max_animal_invslot"
1422                   inv_branch="#bag_entry"
1423                   inv_type="#icon_db"
1424                   animal_status="#info_entry:STATUS" />
1425         <!-- Text To say why the inventory is disabled or not. Middle to be visible -->
1426         <view type="text"
1427               id="disable_txt"
1428               posref="BL BL"
1429               x="2"
1430               y="2"
1431               color="255 255 255 255"
1432               shadow="true"
1433               fontsize="10" />
1434         <!-- According to the beast state, display text -->
1435         <link expr="getAnimalInventoryStateText(@#info_entry:STATUS)"
1436               target="disable_txt:hardtext" />
1437       </group>
1438       <!-- Hide The window if the STATUS become "Not Present" -->
1439       <link expr="@#info_entry:STATUS"
1440             action="hide"
1441             cond="not(isAnimalStatusPresent(@#info_entry:STATUS))"
1442             params="#id" />
1443     </group>
1444     <!-- Title name depends on the type of the animal -->
1445     <link expr="switch(@#info_entry:TYPE, 'uiPABagTitleMount#title', 'uiPABagTitleMount#title', 'uiPABagTitlePacker#title', 'uiPABagTitleDemon#title')"
1446           target="#id:title" />
1447     <!-- Create the node here -->
1448     <tree node="#id" />
1449   </template>
1450   <!-- Pack Animals (packer, mount, demon) Instanciation -->
1451   <!-- MAX_INVENTORY_ANIMAL -->
1452   <instance template="animal_inventory_template"
1453             id="inv_pa0"
1454             title="0"
1455             info_entry="%pa_beast0"
1456             bag_entry="%pa_bag0"
1457             icon_db="INV_PA0" />
1458   <instance template="animal_inventory_template"
1459             id="inv_pa1"
1460             title="1"
1461             info_entry="%pa_beast1"
1462             bag_entry="%pa_bag1"
1463             icon_db="INV_PA1" />
1464   <instance template="animal_inventory_template"
1465             id="inv_pa2"
1466             title="2"
1467             info_entry="%pa_beast2"
1468             bag_entry="%pa_bag2"
1469             icon_db="INV_PA2" />
1470   <instance template="animal_inventory_template"
1471             id="inv_pa3"
1472             title="3"
1473             info_entry="%pa_beast3"
1474             bag_entry="%pa_bag3"
1475             icon_db="INV_PA3" />
1476   <tree node="animal_global">
1477     <!-- MAX_INVENTORY_ANIMAL -->
1478     <tree node="userpa1" />
1479     <tree node="userpa2" />
1480     <tree node="userpa3" />
1481     <tree node="userpa4" />
1482   </tree>
1483 </interface_config>