8 <lua file="player.lua" />
9 <lua file="taskbar.lua" />
13 <variable entry="UI:TEMP:ACTIONVAL"
16 <variable entry="UI:VARIABLES:DISPLAYBARSTOTAL"
19 <variable entry="UI:TEMP:PVP_FACTION:TAG_PVP"
22 <variable entry="UI:TEMP:PVP_FACTION:DSP_MODE"
25 <variable entry="UI:TEMP:PVP_FACTION:DSP_PUSHED"
28 <variable entry="UI:TEMP:PVP_FACTION:DSP_TIMER"
31 <define id="user_name_id"
32 value="SERVER:Entities:E0:P6" />
33 <!-- jauges with tooltips -->
34 <template name="jauges_player"
44 value1="%player_focus_percent"
45 range1="%player_percent_max"
47 value2="%player_sap_percent"
48 range2="%player_percent_max"
50 value3="%player_sta_percent"
51 range3="%player_percent_max" />
54 on_tooltip="player_tt_stamina"
65 on_tooltip="player_tt_sap"
76 on_tooltip="player_tt_focus"
86 <!-- the Main Group -->
87 <proc id="player_active">
89 params="dblink=UI:VARIABLES:ISACTIVE:PLAYER|value=1" />
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" />
97 <proc id="player_cam_position">
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'))" />
103 <anim id="anim_refresh_player"
105 disable_buttons="false"
107 on_finish_params="player_cam_position"></anim>
108 <template name="jauge_score"
124 posparent="#posparent"
130 <group id="jauge_bar"
139 global_color="false" />
146 color="255 255 255 255"
151 <view type="text_number"
156 color="255 255 255 255"
168 color="255 255 255 255"
173 <view type="text_number"
179 color="255 255 255 255"
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" />
190 <instance template="text_tt"
193 tooltip_parent="win" />
195 <!-- ******************** -->
196 <!-- AFFICHAGE DES BARRES -->
197 <!-- ******************** -->
199 id="player_jauge_menu"
200 extends="base_menu_with_color">
201 <action id="sap_bardisplay"
202 name="uiSapBarDisplay"
204 params="dblink=UI:SAVE:PLAYER:DISP_SAP|value=not(@UI:SAVE:PLAYER:DISP_SAP)" />
205 <action id="sta_bardisplay"
206 name="uiStaBarDisplay"
208 params="dblink=UI:SAVE:PLAYER:DISP_STA|value=not(@UI:SAVE:PLAYER:DISP_STA)" />
209 <action id="foc_bardisplay"
210 name="uiFocBarDisplay"
212 params="dblink=UI:SAVE:PLAYER:DISP_FOC|value=not(@UI:SAVE:PLAYER:DISP_FOC)" />
214 <link expr="depends(@UI:SAVE:PLAYER:DISP_SAP, @UI:SAVE:PLAYER:DISP_STA, @UI:SAVE:PLAYER:DISP_FOC)"
216 params="game:updatePlayerBars()" />
217 <link expr="depends(@SERVER:CHARACTER_INFO:PVP_FACTION_TAG)"
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"
227 <variable entry="UI:PHRASE:EXECUTE_NEXT:PHRASE"
230 <variable entry="UI:PHRASE:EXECUTE_NEXT:ISCYCLIC"
233 <link expr="depends(@UI:VARIABLES:CURRENT_SMOOTH_SERVER_TICK)"
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)"
239 params="dblink=UI:PHRASE:ACT_BAR_LEN|value=0" />
240 <!-- The template (instanciated 2 times) -->
241 <template name="t_current_action_bar"
247 tooltip_special_parent=""
261 texture="slot_brick.tga"
262 color="255 255 255 100"
263 inherit_gc_alpha="false" />
268 texture="slot_brick.tga"
269 color="255 255 255 100"
270 inherit_gc_alpha="false" />
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 -->
284 id="execute_phrase_next"
286 value="UI:PHRASE:EXECUTE_NEXT"
287 posparent="slot_action2"
291 tooltip="uittNextExecutingPhrase"
292 tooltip_parent="#tooltip_parent"
293 tooltip_special_parent="#tooltip_special_parent" />
295 id="view_cycle_action"
296 texture="action_cycle.tga"
299 posparent="execute_phrase_next"
304 <link expr="@UI:PHRASE:EXECUTE_NEXT:ISCYCLIC"
305 target="view_cycle_action:active" />
306 <!-- Action in progress -->
310 value="SERVER:EXECUTE_PHRASE"
311 posparent="slot_action1"
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', '')" />
320 id="execute_special_action"
322 value="SERVER:EXECUTE_PHRASE"
323 posparent="execute_phrase"
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" />
334 <group id="action_bar"
336 posparent="progression"
342 texture="jauge_action.tga"
343 color="255 255 255 255"
344 global_color="false" />
346 <link expr="@UI:PHRASE:ACT_BAR_LEN"
347 target="action_bar:w" />
350 <!-- The Current Action bar Window -->
351 <group type="container"
357 global_color_over="true"
359 header_active="false"
368 <group id="header_closed"
373 <group id="header_opened"
379 <instance template="t_current_action_bar"
384 tooltip_parent="special"
385 tooltip_special_parent="ui:interface:milko_pad" />
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
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 <!-- ************* -->
408 <template name="t_pvp_tag_button"
416 posparent="#posparent"
417 button_type="toggle_button"
424 tx_over="W_button_24_over.tga"
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()"
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" />
441 <!-- Player container -->
442 <group type="container"
448 global_color_over="true"
450 header_active="false"
457 on_active_params="player_active"
459 on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:PLAYER|value=0"
461 on_open_params="dblink=%inventory_touched|value=1"
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">
472 global_color="false" />
473 <group id="header_closed"
478 group_onclick_l="self_target"></group>
479 <group id="header_opened"
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 -->
493 color="255 255 255 255"
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"
507 <instance template="t_pvp_tag_button"
508 id="pvp_tag_button_1"
509 posparent="slot_fake_pvp"
513 <instance template="t_pvp_tag_button"
514 id="pvp_tag_button_2"
515 posparent="slot_fake_pvp"
519 <!-- PVP Tag special overed pushed icon. pushed == over rotated !!. (NB: Ugly to save icon space) -->
529 texture="W_button_24_over.tga"
530 color="255 255 255 255"
532 global_color="false" />
533 <link expr="@UI:TEMP:PVP_FACTION:DSP_PUSHED"
534 target="pvp_tag_pushed:active" />
535 <!-- PVP Tag timer -->
556 color="32 220 32 255"
558 <link expr="@UI:TEMP:PVP_FACTION:DSP_TIMER"
559 target="pvp_timer_bg:active, pvp_timer:active" />
566 child_resize_h="true"
568 group_onclick_l="self_target">
574 texture="slot_jauge.tga"
575 inherit_gc_alpha="false" />
579 texture="slot_jauge.tga"
580 inherit_gc_alpha="false" />
584 texture="slot_jauge.tga"
585 inherit_gc_alpha="false" />
589 texture="slot_jauge.tga"
590 inherit_gc_alpha="false" />
591 <instance template="jauge_score"
595 color="255 93 38 255"
596 color_gray="160 42 5 255"
599 maxval="%player_hp_max"
600 val_bar="%player_hp_percent"
601 tooltip="uittGaugesHP" />
602 <instance template="jauge_score"
606 color="100 255 40 255"
607 color_gray="100 141 3 255"
610 maxval="%player_sap_max"
611 val_bar="%player_sap_percent"
612 tooltip="uittGaugesSap" />
613 <instance template="jauge_score"
617 color="255 37 254 255"
618 color_gray="151 50 114 255"
621 maxval="%player_sta_max"
622 val_bar="%player_sta_percent"
623 tooltip="uittGaugesSta" />
624 <instance template="jauge_score"
628 color="60 159 255 255"
629 color_gray="23 116 147 255"
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"
642 <link expr="eq(@UI:SAVE:ACT_BAR_OUT,0)"
643 target="current_action:active" />
646 <tree node="player" />
647 <!-- ************************* -->
648 <!-- * BONUS MALUS * -->
649 <!-- ************************* -->
651 <define id="num_server_bonus_malus"
653 <define id="num_local_bonus_malus"
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"
660 size="%num_local_bonus_malus" />
661 <variable entry="UI:VARIABLES:BONUS:$i:DISABLED"
664 size="%num_local_bonus_malus" />
665 <variable entry="UI:VARIABLES:BONUS:$i:SPECIAL_TOOLTIP"
668 size="%num_local_bonus_malus" />
669 <variable entry="UI:VARIABLES:MALUS:$i:SHEET"
672 size="%num_local_bonus_malus" />
673 <variable entry="UI:VARIABLES:MALUS:$i:DISABLED"
676 size="%num_local_bonus_malus" />
677 <variable entry="UI:VARIABLES:MALUS:$i:SPECIAL_TOOLTIP"
680 size="%num_local_bonus_malus" />
681 <variable entry="UI:VARIABLES:SHOW_BONUS"
684 <variable entry="UI:VARIABLES:SHOW_MALUS"
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"
695 child_resize_w="true"
696 child_resize_h="true"
697 child_resize_wmargin="1"
698 child_resize_hmargin="1"
702 avoid_resize_parent="true"
704 <!-- seconds shadow for better readibility (fake bold) -->
716 multi_line_maxw_only="true" />
728 multi_line_maxw_only="true" />
740 multi_line_maxw_only="true" />
752 multi_line_maxw_only="true" />
753 <!-- standard text. 2 for more readibility -->
758 color="255 255 255 255"
765 multi_line_maxw_only="true" />
770 color="255 255 255 255"
777 multi_line_maxw_only="true" />
780 <!-- The Bonus Malus Window -->
781 <group type="container"
787 global_color_over="true"
789 header_active="false"
796 on_active_params="dblink=UI:VARIABLES:ISACTIVE:BONUS_MALUS|value=1"
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"
802 <group id="header_closed"
807 <group id="header_opened"
811 child_resize_h="true"
812 child_resize_hmargin="7"
814 <!-- WINDOW TOOLTIP -->
815 <!-- display the tooltip only when the window is empty (so players understand what it is) -->
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" />
835 child_resize_h="true"
837 <!-- Special list_sheet that display some disable bitmap if needed according to DB -->
838 <group type="list_sheet_bonus_malus"
842 value="UI:VARIABLES:BONUS"
847 maxitem="%num_local_bonus_malus"
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"
870 <instance template="t_text_bonus"
874 <instance template="t_text_bonus"
878 <instance template="t_text_bonus"
882 <!-- Always display at least a line here, for better readability of malus (always under) -->
883 <!--<link expr="@UI:VARIABLES:SHOW_BONUS" target="active" />-->
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"
909 child_resize_h="true"
910 posparent="dummy_pos"
912 <!-- Special list_sheet that display some disable bitmap if needed according to DB -->
913 <group type="list_sheet_bonus_malus"
917 value="UI:VARIABLES:MALUS"
922 maxitem="%num_local_bonus_malus"
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"
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 -->
953 extends="base_menu_with_color"
954 on_active="animal_menu_option">
957 handler="beast_order"
958 params="order=follow|beast_index=@UI:BEAST_SELECTED" />
961 handler="beast_order"
962 params="order=stop|beast_index=@UI:BEAST_SELECTED" />
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" />
977 <!-- Each Option is enabled/disabled at open according to the animal selected -->
981 on_active="animal_menu_option">
984 handler="beast_order"
985 params="order=follow|beast_index=@UI:BEAST_SELECTED" />
988 handler="beast_order"
989 params="order=stop|beast_index=@UI:BEAST_SELECTED" />
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" />
1004 handler="beast_order"
1005 params="order=mount|beast_index=@UI:BEAST_SELECTED" />
1008 handler="beast_order"
1009 params="order=unmount|beast_index=@UI:BEAST_SELECTED" />
1011 <!-- temp variable to store the animal selected
1013 1 to 5: Pack animals
1015 <variable entry="UI:BEAST_SELECTED"
1018 <group type="container"
1022 title="uiAnimalsTitle"
1033 on_active_params="dblink=UI:VARIABLES:ISACTIVE:ANIMAL_GLOBAL|value=1"
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"
1045 group_onclick_r="active_menu"
1046 group_params_r="menu=ui:interface:base_menu_with_color">
1048 <group id="header_opened"
1053 group_onclick_r="proc"
1054 group_params_r="right_click_on_animal_proc|0"></group>
1058 child_resize_h="true">
1059 <group id="no_available_animals"
1071 child_resize_h="true"
1078 hardtext="uiNoAvailableAnimals"
1080 continuous_update="true" />
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" />
1103 <!-- ****************** -->
1104 <!-- * PA TEMPLATE * -->
1105 <!-- ****************** -->
1106 <template name="pa_template"
1112 <group type="container"
1115 title="uiPATitleMount#index"
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"
1129 posref="TL TL"></group>
1130 <group id="header_opened"
1133 group_onclick_r="proc"
1134 group_params_r="right_click_on_animal_proc|#index">
1140 color1="%bulk_color"
1141 range1="#beast_db_entry:BULK_MAX"
1142 color2="255 255 255 255"
1143 value2="#beast_db_entry:HUNGER"
1146 value3="#bars_entry:HP"
1148 <ctrl type="tooltip"
1156 tooltip="uittAnimalBar"
1157 tooltip_parent="win" />
1158 <!-- if animal is dead, display despawn timer bar instead of jauges -->
1164 color="255 255 255 255"
1165 value="#beast_db_entry:DESPAWN"
1167 <ctrl type="tooltip"
1170 posparent="death_timer"
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 -->
1181 id="animal_alive_landscape"
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" />
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" />
1215 texture="MP_skull.tga" />
1216 <instance template="text_tt"
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" />
1226 texture="W_weight.tga" />
1227 <ctrl type="tooltip"
1236 tooltip="uittAnimalWeight"
1237 tooltip_parent="win" />
1244 color="255 255 255 255"
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 -->
1259 button_type="push_button"
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"
1273 tooltip="uittAnimalInv"
1274 tooltip_parent="win" />
1275 <!-- BIG TRANSPARENT BUTTON TO TARGET THE PACK_ANIMAL. w="-16" to let the "inventory" button work -->
1278 button_type="push_button"
1284 tx_normal="blank_n.tga"
1285 tx_pushed="blank_n.tga"
1286 tx_over="blank_n.tga"
1288 col_pushed="0 0 0 0"
1289 col_over="255 255 255 32"
1290 onclick_l="animal_target"
1291 params_l="#index" />
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),
1297 target="title_color" />
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" />
1304 <!-- MAX_INVENTORY_ANIMAL -->
1305 <instance template="pa_template"
1307 bars_entry="UI:VARIABLES:BARS:ANIMAL:0"
1308 beast_db_entry="%pa_beast0"
1309 bag_path="%pa_bag0" />
1310 <instance template="pa_template"
1312 bars_entry="UI:VARIABLES:BARS:ANIMAL:1"
1313 beast_db_entry="%pa_beast1"
1314 bag_path="%pa_bag1" />
1315 <instance template="pa_template"
1317 bars_entry="UI:VARIABLES:BARS:ANIMAL:2"
1318 beast_db_entry="%pa_beast2"
1319 bag_path="%pa_bag2" />
1320 <instance template="pa_template"
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"
1337 global_color="false"
1338 global_color_over="true"
1343 right_button="false"
1344 header_active="false">
1356 texture="MP_skull.tga" />
1357 <ctrl type="tooltip"
1358 id="dead_animal_tooltip"
1360 on_tooltip="animal_dead_popup_tooltip"
1362 posparent="dead_animal_bp"
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"
1385 <group style="inv_container"
1387 title="uiPABagTitleMount#title"
1388 header_color="UI:SAVE:WIN:COLORS:ANI"
1390 on_active_params="dblink=UI:VARIABLES:ISACTIVE:#icon_db|value=1"
1392 on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:#icon_db|value=0">
1394 <group id="header_closed"
1396 posref="TL TL"></group>
1397 <!-- Animal Header Info -->
1398 <group id="header_opened"
1403 group_onclick_r="active_menu"
1404 group_params_r="menu=ui:interface:base_menu_with_color">
1406 <instance template="tinv_nbslots_bulk_weight"
1409 inv_branch_nb="%max_animal_invslot"
1410 inv_branch="#bag_entry"
1411 inv_bulk_max="#info_entry:BULK_MAX" />
1416 <instance template="tinv_item_list"
1421 inv_branch_nb="%max_animal_invslot"
1422 inv_branch="#bag_entry"
1424 animal_status="#info_entry:STATUS" />
1425 <!-- Text To say why the inventory is disabled or not. Middle to be visible -->
1431 color="255 255 255 255"
1434 <!-- According to the beast state, display text -->
1435 <link expr="getAnimalInventoryStateText(@#info_entry:STATUS)"
1436 target="disable_txt:hardtext" />
1438 <!-- Hide The window if the STATUS become "Not Present" -->
1439 <link expr="@#info_entry:STATUS"
1441 cond="not(isAnimalStatusPresent(@#info_entry:STATUS))"
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 -->
1450 <!-- Pack Animals (packer, mount, demon) Instanciation -->
1451 <!-- MAX_INVENTORY_ANIMAL -->
1452 <instance template="animal_inventory_template"
1455 info_entry="%pa_beast0"
1456 bag_entry="%pa_bag0"
1457 icon_db="INV_PA0" />
1458 <instance template="animal_inventory_template"
1461 info_entry="%pa_beast1"
1462 bag_entry="%pa_bag1"
1463 icon_db="INV_PA1" />
1464 <instance template="animal_inventory_template"
1467 info_entry="%pa_beast2"
1468 bag_entry="%pa_bag2"
1469 icon_db="INV_PA2" />
1470 <instance template="animal_inventory_template"
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" />