Fix
[ryzomcore.git] / ryzom / client / data / gamedev / interfaces_v3 / info_player.xml
blob0b5af31f3e924fabaf363315b67823ff6c592cd8
1 <interface_config>
2     <root id="interface" x="0" y="0" w="800" h="600" active="true" />
3     <lua file="info_player.lua" />
4     <variable entry="UI:SAVE:CAP_ID" type="sint32" value="0" />
5     <variable entry="UI:SAVE:CAP_SCRIPT_ID" type="sint32" value="0" />
6     <variable entry="UI:VARIABLES:FAME_DETAIL" type="sint32" value="0" />
7     <variable entry="UI:VARIABLES:TOTAL_MALUS_EQUIP" type="sint32" value="0" />
8     <variable entry="UI:VARIABLES:TOTAL_MAGIC_ABSORB" type="sint32" value="0" />
9     <!-- <variable entry="UI:VARIABLES:CDB_INIT_IN_PROGRESS"        type="bool"   value="1" /> -->
10     <!-- Link to compute the Total_Magic absorb, in local, according to
11         - jewels weared  (=> EQUIP and BAG)
12         - absorb factor
13         - max baseskilllevel of the player
14 -->
15     <link expr="depends(                 @LOCAL:INVENTORY:EQUIP,                 @LOCAL:INVENTORY:BAG,                 @%player_protect_absorbfactor,                 @UI:VARIABLES:TRACK_SKILL_CHANGE)" action="lua:game:computeMagicProtectTotalAbsorb()" />
16     <!--**************************-->
17     <!--*   info_player_skills   *-->
18     <!--**************************-->
19     <!-- Do not show skills but the progression of the player through its characs -->
20     <!-- Display characs and scores -->
21     <template name="tipc_score" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" text="" val="" maxval="" baseval="" tooltip="">
22         <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref">
23             <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
24             <view type="text_number" id="max" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" value="#maxval" positive="true" />
25             <view type="text" id="sep" posparent="max" posref="TL TR" x="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="/" />
26             <view type="text_number" id="val" posparent="max" posref="TL TR" x="-10" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" />
27             <link expr="ifthenelse(lt(@#maxval,@#baseval),          '182 39 0 255',                                                 ifthenelse(gt(@#maxval,@#baseval),      '180 165 0 255', '255 255 255 255'))" target="max:color" />
28             <ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipScore('#baseval', '#maxval','#tooltip')" />
29         </group>
30     </template>
31     <!-- Dodge and Parry specific -->
32     <template name="tipc_scoreEP" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" text="" val="" maxval="" baseval="" level="" mod="" tooltip="">
33         <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref">
34             <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
35             <view type="text_number" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" />
36             <link expr="ifthenelse(lt(@#val,@#baseval),             '182 39 0 255',                                                 ifthenelse(gt(@#val,@#baseval), '180 165 0 255', '255 255 255 255'))" target="val:color" />
37             <ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipScoreEP('#baseval', '#val','#tooltip','#level','#mod')" />
38         </group>
39     </template>
40     <template name="tipc_charac" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" text="" val="" suffix="" tooltip="">
41         <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref">
42             <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
43             <view type="text_number" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" suffix="#suffix" />
44             <ctrl type="tooltip" id="tt" sizeref="wh" tooltip="#tooltip" />
45         </group>
46     </template>
47     <template name="tipc_characReg" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" text="" val="" baseval="" suffix="" tooltip="">
48         <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref">
49             <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
50             <view type="text_number" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" suffix="#suffix" />
51             <link expr="ifthenelse(lt(@#val,@#baseval),             '182 39 0 255',                                                 ifthenelse(gt(@#val,@#baseval), '180 165 0 255', '255 255 255 255'))" target="val:color" />
52             <ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipScore('#baseval', '#val','#tooltip')" />
53         </group>
54     </template>
55     <!-- Magic Protection -->
56     <template name="tipc_magic_protect" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" val="" tooltip="">
57         <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref">
58             <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiProtect_#id" />
59             <view type="text" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="" />
60             <ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipMagicProtect('#val','uittProtect_#id')" />
61             <!-- change text when db change -->
62             <link expr="depends(@#val,@%player_protect_maxratio)" action="lua:game:displayMagicProtect('#val')" />
63         </group>
64     </template>
65     <!-- Magic Resistance -->
66     <template name="tipc_magic_resist" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" val="" tooltip="">
67         <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref">
68             <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiResist_#id" />
69             <view type="text" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="" />
70             <ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipMagicResist('#val','uittResist_#id')" />
71             <!-- change text when db change. NB: resist depends also on skill -->
72             <link expr="depends(@#val,@%player_resist_maxratio,@UI:VARIABLES:TRACK_SKILL_CHANGE)" action="lua:game:displayMagicResist('#val')" />
73         </group>
74     </template>
75     <!-- Display ecosystem points -->
76     <template name="ecosystem_points" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" text="">
77         <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref">
78             <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
79             <view type="text" id="max" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="0" />
80             <view type="text" id="sep" posref="MR MR" x="-20" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="/" />
81             <view type="text" id="val" posref="MR MR" x="-37" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="0" />
82             <ctrl type="tooltip" id="tt" sizeref="wh" />
83         </group>
84     </template>
85     <!-- Display RRPS -->
86     <template name="level_rrps" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" text="" val="" tooltip="">
87         <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref">
88             <view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
89             <view type="text" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="0" />
90             <ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:RingPlayerInfo:tooltipRRPs('#val','#tooltip')" />
91             <link expr="@#val" action="lua:RingPlayerInfo:updateRRPSLevel('#val', '#tooltip')" />
92         </group>
93     </template>
94     <template name="jauge_rating" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" w="156" color="" color_gray="" text="" val="" maxval="">
95         <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y">
96             <group id="jauge_bar" posref="TL TL" w="#w" h="16">
97                 <view type="bitmap" id="jauge_graph" posref="TL TL" texture="jauge.tga" color="#color" global_color="false" />
98             </group>
99             <view type="text" id="t" posref="TL TL" x="16" y="2" color="255 255 255 255" global_color="false" fontsize="10" shadow="true" hardtext="#text" />
100             <!--
101          <view type="text_number" id="max" posref="MR MR" x="-12" y="-2" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" value="#maxval" positive="true" />
102          <view type="text" id="sep" posparent="max" posref="TL TR" x="-1" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="/" />
103          <view type="text_number" id="val" posparent="max" posref="TL TR" x="-10" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" value="#val" positive="true" />
104                  -->
105             <!--
106          <link expr="div(mul(abs(@#val_bar), #w), %player_percent_max)" target="jauge_bar:w" />
107          <link expr="ifthenelse(le(@#val_bar,0), '#color_gray', '#color')" target="jauge_bar:jauge_graph:color" />
108                  -->
109         </group>
110     </template>
111     <!-- Display Ring Rating -->
112     <template name="ring_rating" posparent="parent" x="0" y="0" h="20" posref="TL TL" id="" sizeref="w" w="0" text="">
113         <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref">
114             <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
115             <view type="bitmap" id="b_jauge_rating" posref="MR MR" y="0" texture="slot_jauge.tga" inherit_gc_alpha="false" />
116             <instance template="jauge_rating" id="jauge_rating" posref="MR MR" color="214 56 7 255" color_gray="160 42 5 255" text="" val="0" maxval="1" />
117             <view type="bitmap" id="level_rating" posparent="jauge_rating" scale="true" w="16" h="16" posref="BL BR" x="-10" texture="" inherit_gc_alpha="false" />
118             <ctrl type="tooltip" id="tt" sizeref="wh" />
119         </group>
120     </template>
121     <proc id="progression_proc_active">
122         <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:CAREERS|value=1" />
123         <action handler="title_init_combobox" />
124         <action handler="lua" params="RingPlayerInfo:initRingStatPlayer()" />
125     </proc>
126     <proc id="progression_proc_deactive">
127         <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:CAREERS|value=0" />
128     </proc>
129     <variable entry="UI:TITLE" type="sint64" value="-1" />
130     <group type="container" id="info_player_skills" w="540" title="uiSkillsTitle" global_color="false" header_color="UI:SAVE:WIN:COLORS:PLA" min_w="350" max_w="540" min_h="550" max_h="1600" pop_max_h="800" on_active="proc" on_active_params="progression_proc_active" on_deactive="proc" on_deactive_params="progression_proc_deactive" open_button="false" force_open_out="true" title_bar_open="false" lockable="true" openable="false" opened="true" movable="true" resizer="false" active="true" title_class="formated" help_page="interf_identity.html">
131         <group id="header_closed" x="0" y="0" h="12" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color"></group>
132         <group id="header_opened" x="0" y="0" w="100" h="48" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color">
133             <group type="tab" id="info_player_skills_tabs" child_resize_w="true" h="24" posref="TL TL" x="0" y="-24">
134                 <ctrl style="tab_button_new" id="tab0" x="0" posref="TL TL" group="content:basics_skills" hardtext="uiR2EDBasicSkills" onclick_r="" params_r="" onclick_l="" params_l="" />
135                 <ctrl style="tab_button_new" id="tab1" posparent="tab0" group="content:ring_skills" hardtext="uiR2EDRingSkills" onclick_r="" params_r="" onclick_l="" params_l="" />
136                 <ctrl style="tab_button_new" id="tab2" posparent="tab1" group="content:rpjobs" hardtext="uiRpJobs" onclick_r="" params_r="" />
137                 <ctrl style="tab_button_new" id="tab3" posparent="tab2" group="content:webinfos" hardtext="uiPlayerInfos" onclick_r="" params_r="" onclick_l="" params_l="" />
138             </group>
139             <view type="bitmap" id="sep" posparent="info_player_skills_tabs" posref="BR BL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" />
140         </group>
141         <group id="content" x="0" y="0" h="550" posref="TL TL">
142             <group id="basics_skills" sizeref="wh" w="0" y="0" h="0" posref="TL TL">
143                 <view type="text" id="character_race_title" posparent="basics_skills" posref="TL TL" x="0" y="-10" hardtext="uiRaceBold" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
144                 <view type="text" id="character_race_name" posparent="character_race_title" posref="TR TL" shadow="true" color="255 200 55 255" global_color="false" x="2" fontsize="12" hardtext="" />
145                 <group id="guild" posref="TL TL" sizeref="w" h="14" y="-30">
146                     <view type="text" id="guild_title" posref="TL TL" x="0" y="0" hardtext="uiGuildMembership" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
147                     <view type="text_id" id="name" posparent="guild_title" posref="TR TL" shadow="true" color="255 200 55 255" global_color="false" x="2" fontsize="12" textid="SERVER:GUILD:NAME" dynamic_string="false" />
148                 </group>
149                 <group id="scores" posref="TL TL" sizeref="w5" w="-1" h="188" y="-52">
150                     <view type="text" id="Skill_t" posref="TL TL" x="0" y="0" hardtext="uiScoreTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
151                     <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="172" inherit_gc_alpha="true">
152                         <view type="text" id="values" posref="TL TL" x="4" y="-4" hardtext="uiValues" shadow="true" fontsize="10" color="255 255 255 255" />
153                         <instance template="tipc_score" id="lif" posref="TL TL" x="8" y="-20" w="-8" tooltip="uittIdentityHP" text="uiHP" val="%player_hp" maxval="%player_hp_max" baseval="%player_hp_base" />
154                         <instance template="tipc_score" id="sap" posparent="lif" posref="BL TL" y="0" tooltip="uittIdentitySap" text="uiSap" val="%player_sap" maxval="%player_sap_max" baseval="%player_sap_base" />
155                         <instance template="tipc_score" id="sta" posparent="sap" posref="BL TL" y="0" tooltip="uittIdentitySta" text="uiStamina" val="%player_sta" maxval="%player_sta_max" baseval="%player_sta_base" />
156                         <instance template="tipc_score" id="foc" posparent="sta" posref="BL TL" y="0" tooltip="uittIdentityFoc" text="uiFocus" val="%player_focus" maxval="%player_focus_max" baseval="%player_focus_base" />
157                         <view type="text" id="Regen" posref="TL TL" x="4" y="-90" hardtext="uiRegeneration" shadow="true" fontsize="10" color="255 255 255 255" />
158                         <instance template="tipc_characReg" id="hpreg" posref="TL TL" x="8" y="-105" w="-8" text="uiHP" val="%player_hpreg" baseval="%player_hpreg_base" tooltip="uittIdentityHPReg" />
159                         <instance template="tipc_characReg" id="sapreg" posparent="hpreg" posref="BL TL" y="0" text="uiSap" val="%player_sapreg" baseval="%player_sapreg_base" tooltip="uittIdentitySapReg" />
160                         <instance template="tipc_characReg" id="stareg" posparent="sapreg" posref="BL TL" y="0" text="uiStamina" val="%player_stareg" baseval="%player_stareg_base" tooltip="uittIdentityStaReg" />
161                         <instance template="tipc_characReg" id="focreg" posparent="stareg" posref="BL TL" y="0" text="uiFocus" val="%player_focreg" baseval="%player_focreg_base" tooltip="uittIdentityFocReg" />
162                     </group>
163                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
164                 </group>
165                 <group id="caracs" posref="TM TL" sizeref="w5" w="-1" x="1" h="188" y="-52">
166                     <view type="text" id="Skill_t" posref="TL TL" x="0" y="0" hardtext="uiCaracsTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
167                     <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="172" inherit_gc_alpha="true">
168                         <instance template="tipc_charac" id="hpmax" posref="TL TL" x="8" y="-20" w="-8" text="uiCarac_HpMax" val="%player_carac_hpmax" tooltip="uittIdentityCons" />
169                         <instance template="tipc_charac" id="sapmax" posparent="hpmax" posref="BL TL" y="0" text="uiCarac_SapMax" val="%player_carac_sapmax" tooltip="uittIdentityInt" />
170                         <instance template="tipc_charac" id="stamax" posparent="sapmax" posref="BL TL" y="0" text="uiCarac_StaMax" val="%player_carac_stamax" tooltip="uittIdentityStr" />
171                         <instance template="tipc_charac" id="focmax" posparent="stamax" posref="BL TL" y="0" text="uiCarac_WishMax" val="%player_carac_wishmax" tooltip="uittIdentityDex" />
172                         <instance template="tipc_charac" id="hpreg" posref="TL TL" x="8" y="-105" w="-8" text="uiCarac_HpReg" val="%player_carac_hpreg" tooltip="uittIdentityMeta" />
173                         <instance template="tipc_charac" id="sapreg" posparent="hpreg" posref="BL TL" y="0" text="uiCarac_SapReg" val="%player_carac_sapreg" tooltip="uittIdentityWis" />
174                         <instance template="tipc_charac" id="stareg" posparent="sapreg" posref="BL TL" y="0" text="uiCarac_StaReg" val="%player_carac_stareg" tooltip="uittIdentityWB" />
175                         <instance template="tipc_charac" id="focreg" posparent="stareg" posref="BL TL" y="0" text="uiCarac_WishReg" val="%player_carac_wishreg" tooltip="uittIdentityWill" />
176                     </group>
177                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
178                 </group>
179                 <group id="skillpoints" posref="TL TL" sizeref="w5" w="-1" h="83" y="-248">
180                     <view type="text" id="sp" posref="TL TL" x="0" y="0" hardtext="uiSkillPoints" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
181                     <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="67" inherit_gc_alpha="true">
182                         <instance template="skill_points_widget" id="sp0" global_color="true" posref="TL TL" x="0" y="-4" hardtext="uiSkillPoints0" value="%skill_points_0" tooltip="uittIdentitySkillFight" fontsize_text="12" fontsize_number="12" />
183                         <instance template="skill_points_widget" id="sp1" posparent="sp0" global_color="true" posref="BL TL" x="0" hardtext="uiSkillPoints1" value="%skill_points_1" tooltip="uittIdentitySkillMagic" fontsize_text="12" fontsize_number="12" />
184                         <instance template="skill_points_widget" id="sp2" posparent="sp1" global_color="true" posref="BL TL" x="0" hardtext="uiSkillPoints2" value="%skill_points_2" tooltip="uittIdentitySkillCraft" fontsize_text="12" fontsize_number="12" />
185                         <instance template="skill_points_widget" id="sp3" posparent="sp2" global_color="true" posref="BL TL" x="0" hardtext="uiSkillPoints3" value="%skill_points_3" tooltip="uittIdentitySkillHarvest" fontsize_text="12" fontsize_number="12" />
186                     </group>
187                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
188                 </group>
189                 <group id="misc" posref="TM TL" sizeref="w5" w="-1" x="1" h="83" y="-248">
190                     <view type="text" id="cm" posref="TL TL" x="0" y="0" hardtext="uiCaracMisc" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
191                     <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="67" inherit_gc_alpha="true">
192                         <!-- Total Malus: Must multiply by 2 the Equip Malus that is in Server DB, to have it in percentage -->
193                         <instance template="tipc_charac" id="total_malus" posref="TL TL" x="8" y="-4" w="-8" text="uiTotalMalus" val="UI:VARIABLES:TOTAL_MALUS_EQUIP" tooltip="uittIdentityTotalMalus" />
194                         <link expr="depends(@SERVER:MODIFIERS:TOTAL_MALUS_EQUIP)" action="set" params="dblink=UI:VARIABLES:TOTAL_MALUS_EQUIP|value=mul(@SERVER:MODIFIERS:TOTAL_MALUS_EQUIP,2)" />
195                         <!-- Bag Bulk special: Current / Max -->
196                         <group id="bag_bulk" posparent="total_malus" posref="BL TL" w="0" h="16" x="0" y="0" sizeref="w">
197                             <view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiBagBulk" />
198                             <view type="text" id="val" posref="MR MR" x="-4" y="-2" color="255 255 255 255" shadow="true" fontsize="12" hardtext="0/0" />
199                             <link expr="identity(getBulkStr('%bag', @%bag_bulk_max), @%bag)" target="val:hardtext" />
200                         </group>
201                         <instance template="text_tt" posparent="bag_bulk" tooltip="uittIdentitBagBulk" />
202                         <!-- Weight Speed Factor -->
203                         <instance template="tipc_charac" id="speed_factor" posparent="bag_bulk" posref="BL TL" y="0" tooltip="uittIdentitySpeedFactor" text="uiWeightSpeedFactor" val="%player_speed_factor" suffix="%" />
204                         <!-- Code: when the Total Malus Equip change, must update Phrase InfoWindow -->
205                         <link expr="@UI:VARIABLES:TOTAL_MALUS_EQUIP" action="phrase_update_from_action_malus" />
206                     </group>
207                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
208                 </group>
209                 <group id="resists" posref="TL TL" sizeref="w5" w="-1" h="157" y="-338">
210                     <view type="text" id="resists_t" posref="TL TL" x="0" y="0" hardtext="uiResistsTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
211                     <instance template="text_tt" posparent="resists_t" tooltip="uittMagicResistTable" />
212                     <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="140" inherit_gc_alpha="true">
213                         <instance template="tipc_magic_resist" id="Desert" posref="TL TL" x="8" y="-8" w="-8" val="%player_resist_desert" />
214                         <instance template="tipc_magic_resist" id="Forest" posparent="Desert" posref="BL TL" y="0" val="%player_resist_forest" />
215                         <instance template="tipc_magic_resist" id="Lacustre" posparent="Forest" posref="BL TL" y="0" val="%player_resist_lacustre" />
216                         <instance template="tipc_magic_resist" id="Jungle" posparent="Lacustre" posref="BL TL" y="0" val="%player_resist_jungle" />
217                         <instance template="tipc_magic_resist" id="PrimRoot" posparent="Jungle" posref="BL TL" y="0" val="%player_resist_primroot" />
218                     </group>
219                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
220                 </group>
221                 <group id="magic_protect" posref="TM TL" sizeref="w5" w="-1" h="158" y="-337">
222                     <view type="text" id="protections_t" posref="TL TL" x="0" y="0" hardtext="uiMagicProtectTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
223                     <instance template="text_tt" posparent="protections_t" tooltip="uittMagicProtectTable" />
224                     <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="140" inherit_gc_alpha="true">
225                         <instance template="tipc_magic_protect" id="Acid" posref="TL TL" x="8" y="-8" w="-8" val="%player_protect_acid" />
226                         <instance template="tipc_magic_protect" id="Cold" posparent="Acid" posref="BL TL" y="0" val="%player_protect_cold" />
227                         <instance template="tipc_magic_protect" id="Rot" posparent="Cold" posref="BL TL" y="0" val="%player_protect_rot" />
228                         <instance template="tipc_magic_protect" id="Fire" posparent="Rot" posref="BL TL" y="0" val="%player_protect_fire" />
229                         <instance template="tipc_magic_protect" id="Shockwave" posparent="Fire" posref="BL TL" y="0" val="%player_protect_shockwave" />
230                         <instance template="tipc_magic_protect" id="Poison" posparent="Shockwave" posref="BL TL" y="0" val="%player_protect_poison" />
231                         <instance template="tipc_magic_protect" id="Electricity" posparent="Poison" posref="BL TL" y="0" val="%player_protect_electricity" />
232                         <instance template="tipc_charac" id="MaxAbsorb" posparent="Electricity" posref="BL TL" y="0" text="uiProtect_MaxAbsorb" val="UI:VARIABLES:TOTAL_MAGIC_ABSORB" tooltip="uittProtect_MaxAbsorb" />
233                     </group>
234                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
235                 </group>
236                 <group id="dodge" posref="TL TL" sizeref="w5" w="-1" h="42" y="-500">
237                     <view type="text" id="defense_t" posref="TL TL" x="0" y="0" hardtext="uiDefenseTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
238                     <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="24" inherit_gc_alpha="true">
239                         <instance template="tipc_scoreEP" id="dodge" posref="TL TL" x="8" y="-5" w="-8" text="uiDodge" val="%player_dodge_current" maxval="%player_dodge_base" baseval="%player_dodge_base" tooltip="uittIdentityDodge" level="%player_dodge_current" mod="%player_dodge_success_mod" />
240                     </group>
241                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
242                 </group>
243                 <group id="parry" posref="TM TL" sizeref="w5" w="-1" h="42" y="-500">
244                     <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="24" inherit_gc_alpha="true">
245                         <instance template="tipc_scoreEP" id="parry" posref="TL TL" x="8" y="-5" w="-8" text="uiParry" val="%player_parry_current" maxval="%player_parry_base" baseval="%player_parry_base" tooltip="uittIdentityParry" level="%player_parry_current" mod="%player_parry_success_mod" />
246                     </group>
247                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
248                 </group>
249             </group>
250             <group id="ring_skills" sizeref="wh" w="0" y="0" h="0" posref="TL TL">
251                 <instance template="ecosystem_points_widget" id="ep" posref="TL TL" x="0" y="-10" />
252                 <instance template="faction_points_widget" id="fp" posparent="ep" posref="BL TL" x="0" y="-10" />
253                 <instance template="org_points_widget" id="op" posparent="fp" posref="BL TL" x="0" y="-10" />
254                 <group id="pvp_points" posparent="op" posref="BL TL" sizeref="w" w="-1" h="50" y="-10">
255                     <view type="text" id="pvppoints_t" posref="TL TL" x="0" y="0" hardtext="uiPvpPoints" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
256                     <group id="black" posref="TL TL" x="0" sizeref="w" y="-18" w="0" h="30" inherit_gc_alpha="true">
257                         <view type="bitmap" id="icon" posref="ML ML" x="8" y="0" inherit_gc_alpha="false" texture="points_pvp_24.tga" global_color="false" />
258                         <view type="text" id="total" posref="ML ML" x="34" y="0" hardtext="uiPvpTotal" shadow="true" color="255 255 255 255" global_color="true" fontsize="12" />
259                         <view type="text_number" id="val" posref="MR MR" x="-8" y="0" color="255 255 255 255" global_color="true" fontsize="12" value="SERVER:USER:RRPS_LEVELS0:VALUE" shadow="true" />
260                     </group>
261                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
262                 </group>
263                 <group id="ark_points" posparent="pvp_points" posref="BL TL" sizeref="wh" h="200" w="0" y="-5">
264                     <view type="text" id="arkpoints_t" posref="TL TL" x="0" y="0" hardtext="uiR2EDRrpsLevelTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
265                     <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="210" inherit_gc_alpha="true">
266                         <group type="webig_html" id="html" posref="TL TL" url="https://app.ryzom.com/app_arcc/index.php?action=mScript_Run&amp;script_name=DisplayPoints&amp;no_html_header=1" title_prefix="" sizeref="wh" x="-5" y="5" w="0" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="100 255 100 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="10" paragraph_begin_space="1" multi_line_space_factor="0.25" td_begin_space="16" li_begin_space="4" ul_begin_space="12" li_indent="0" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="black2" home="https://app.ryzom.com/app_arcc/index.php?action=mScript_Run&amp;script_name=DisplayPoints&amp;no_html_header=1" browse_next_time="true" form_text_area_group="edit_box_widget_multiline">
267                             <group id="black" posref="BR BR" sizeref="hw" w="-12" h="-12" inherit_gc_alpha="true" />
268                             <view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
269                             <group active="1" type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
270                             <ctrl style="skin_scroll" id="scroll_bar" />
271                         </group>
272                     </group>
273                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
274                 </group>
275             </group>
276             <group h="0" id="rpjobs" posref="TL TL" sizeref="wh" w="0" y="0">
277                 <ctrl style="text_button_header" button_type="push_button" id="browse_home" posref="TR TR" x="-1" y="-2" hardtext="uiBrowseRefresh" tooltip="uittBrowseRefresh" onclick_l="browse_home" params_l="name=ui:interface:info_player_skills:content:rpjobs:html" />
278                 <group type="webig_html" id="html" posref="TL TL" url="http://app.ryzom.com/app_rpjobs/index.php" title_prefix="" sizeref="wh" x="0" y="-8" w="0" h="0" background_color="0 0 0 255" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="100 255 100 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="10" paragraph_begin_space="1" multi_line_space_factor="0.25" td_begin_space="16" li_begin_space="4" ul_begin_space="12" li_indent="0" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="black2" home="http://app.ryzom.com/app_rpjobs/index.php" browse_next_time="true" form_text_area_group="edit_box_widget_multiline">
279                     <group id="black" posref="BR BR" sizeref="hw" w="-12" h="-12" inherit_gc_alpha="true" />
280                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
281                     <view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
282                     <group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
283                     <ctrl style="skin_scroll" id="scroll_bar" />
284                 </group>
285             </group>
286             <group h="0" id="webinfos" posref="TL TL" sizeref="wh" w="0" y="0">
287                 <group id="title" posref="TL TL" sizeref="w" active="false" w="-1" h="24" y="-8">
288                     <view type="text" id="player_title_txt" posref="TL TL" x="8" y="-4" hardtext="uiPlayerTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
289                     <group type="combo_box" id="player_title" w="300" h="20" value="UI:TITLE" posparent="player_title_txt" posref="TR TL" x="4" y="4" on_select_start="title_combobox_button">
290                         <instance template="combo_box_def1" />
291                     </group>
292                     <instance template="text_tt" posparent="player_title" tooltip="uittIdentityTitle" />
293                     <link expr="@UI:TITLE" action="title_combobox_changed" />
294                 </group>
295                 <ctrl style="text_button_16" id="inf" posref="TR TR" active="false" y="-2" x="-70" hardtext="uiInfo" tooltip="uittIdentityInfo" onclick_l="open_title_help" params_l="from=user" />
296                 <ctrl style="text_button_header" button_type="push_button" id="browse_home" posref="TR TR" x="-1" y="-2" hardtext="uiBrowseRefresh" tooltip="uittBrowseRefresh" onclick_l="browse_home" params_l="name=ui:interface:info_player_skills:content:webinfos:html" />
297                 <group type="webig_html" id="html" posref="TL TL" url="http://app.ryzom.com/app_profile/index.php" title_prefix="" sizeref="wh" x="0" y="-8" w="0" h="0" background_color="0 0 0 255" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="100 255 100 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="10" paragraph_begin_space="1" multi_line_space_factor="0.25" td_begin_space="16" li_begin_space="4" ul_begin_space="12" li_indent="0" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="black2" home="http://app.ryzom.com/app_profile/index.php" browse_next_time="true" form_text_area_group="edit_box_widget_multiline">
298                     <group id="black" posref="BR BR" sizeref="hw" w="-12" h="-12" inherit_gc_alpha="true" />
299                     <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
300                     <view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
301                     <group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
302                     <ctrl style="skin_scroll" id="scroll_bar" />
303                 </group>
304             </group>
305             <view color="166 166 166 255" h="1" id="sep" posparent="info_player_skills_tabs" posref="BR BL" scale="true" sizeparent="parent" sizeref="w" texture="blank.tga" type="bitmap" w="0" />
306         </group>
307     </group>
308     <tree node="info_player_skills" />
309     <!--***********-->
310     <!--*   FAME  *-->
311     <!--***********-->
312     <!-- * FAME template * -->
313     <template name="fame_bar" x="0" y="0" w="204" h="28" posref="TL TL" keep="true" id="" path="">
314         <group id="#id" posref="#posref" w="#w" h="#h" x="#x" y="#y">
315             <instance template="inner_thin_border_group" inherit_gc_alpha="true" posref="BL BL" h="-4" />
316             <!-- Bars -->
317             <view type="bitmap" id="p0" texture="blank.tga" posref="BL BL" scale="true" x="0" w="10" h="16" y="4" global_color="false" />
318             <view type="bitmap" id="p1" texture="blank.tga" posref="BL BL" scale="true" x="0" w="10" h="16" y="4" global_color="false" />
319             <view type="bitmap" id="p2" texture="blank.tga" posref="BL BL" scale="true" x="0" w="10" h="16" y="4" global_color="false" />
320             <view type="bitmap" id="p3" texture="blank.tga" posref="BL BL" scale="true" x="0" w="10" h="16" y="4" global_color="false" />
321             <view type="bitmap" id="p4" texture="blank.tga" posref="BL BL" scale="true" x="0" w="10" h="16" y="4" global_color="false" />
322             <!-- beautiful 3D bar look -->
323             <group id="bar3d" posref="BL BL" x="0" y="4" w="0" h="16">
324                 <view type="bitmap" id="bar" texture="fame_bar_3d.tga" scale="true" sizeref="w" x="0" w="0" h="16" global_color="false" />
325             </group>
326             <!-- Tooltips above the Bars -->
327             <!-- For now, the KOS system does not work, so put instead no trade
328                 <ctrl type="tooltip" id="ttp0" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameKOS" />
329                 -->
330             <ctrl type="tooltip" id="ttp0" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameNoTrade" />
331             <ctrl type="tooltip" id="ttp1" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameNoTrade" />
332             <ctrl type="tooltip" id="ttp2" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameWeakTrade" />
333             <ctrl type="tooltip" id="ttp3" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameNormal" />
334             <!-- max limit -->
335             <view type="bitmap" id="m" texture="blank.tga" posref="BL BL" scale="true" x="0" w="4" h="24" y="0" global_color="false" />
336             <ctrl type="tooltip" id="ttm" posparent="m" x="0" y="0" sizeref="wh" w="0" h="0" on_tooltip="lua:game:updateFameBarTT('#path')" />
337             <view type="text" id="t" posref="BM BM" x="0" y="4" color="255 255 255 255" global_color="false" fontsize="12" value="#path:VALUE" shadow="true" />
338             <link expr="depends(@SERVER:FAME:THRESHOLD_TRADE, @SERVER:FAME:THRESHOLD_KOS, @#path:VALUE, @#path:THRESHOLD)" action="lua:game:updateFameBar('#path')" />
339         </group>
340     </template>
341     <template name="fame_tribe_line" x="0" y="0" w="400" h="28" posref="TL TL" keep="true" id="" path="">
342         <group id="#id" posref="#posref" w="#w" h="#h" x="#x" y="#y">
343             <view type="bitmap" id="bg" texture="blank.tga" posref="MM MM" scale="true" sizeref="wh" w="0" h="-2" global_color="false" color="255 255 255 10" />
344             <instance template="fame_bar" id="fb" x="180" y="2" path="#path" />
345             <view type="text" id="t" posref="ML ML" x="2" y="0" color="255 255 255 255" fontsize="10" value="xxx tribe name" shadow="true" />
346         </group>
347     </template>
348     <template name="fame_tribe_line_icon" x="0" y="0" w="400" h="28" posref="TL TL" posparent="" keep="true" id="" path="" hardtext="" icon="">
349         <group id="#id" posref="#posref" posparent="#posparent" w="#w" h="#h" x="#x" y="#y">
350             <instance template="fame_bar" id="fb" x="180" y="2" path="#path" />
351             <view type="bitmap" id="icon" posref="ML ML" x="0" y="0" color="255 255 255 255" texture="#icon" inherit_gc_alpha="false" global_color="false" />
352             <view type="text" id="t" posref="MR ML" posparent="icon" x="4" y="0" color="255 255 255 255" fontsize="10" hardtext="#hardtext" shadow="true" />
353         </group>
354     </template>
355     <!-- **************** -->
356     <proc id="fame_proc_active">
357         <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:FAME|value=1" />
358     </proc>
359     <proc id="fame_proc_deactive">
360         <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:FAME|value=0" />
361     </proc>
362     <group type="container" id="fame" title="uiFameTitle" global_color="false" header_color="UI:SAVE:WIN:COLORS:PLA" resizer="false" pop_min_w="435" pop_min_h="310" pop_max_w="435" pop_max_h="800" w="435" h="310" on_active="proc" on_active_params="fame_proc_active" on_deactive="proc" on_deactive_params="fame_proc_deactive" lockable="true" openable="false" opened="true" movable="true" active="false" title_class="formated">
363         <group id="header_closed" x="0" y="0" h="12" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color"></group>
364         <group id="header_opened" x="0" y="0" w="100" h="48" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color">
365             <group type="tab" id="fame_select" child_resize_w="true" h="24" posref="TL TL" x="0" y="-24">
366                 <ctrl style="tab_button_new" id="tab0" x="0" posref="TL TL" group="content:you" hardtext="uitabFameYou" onclick_r="" params_r="" onclick_l="" params_l="" />
367                 <ctrl style="tab_button_new" id="tab1" posparent="tab0" group="content:guild" hardtext="uitabFameGuild" onclick_r="" params_r="" onclick_l="" params_l="" />
368                 <ctrl style="tab_button_new" id="tab2" posparent="tab1" group="content:tribes" hardtext="uitabFameTribes" onclick_r="" params_r="" onclick_l="" params_l="" />
369                 <!-- TODO_SPIRE: when spire OK, uncomment. see TODO_SPIRE -->
370                 <!-- <ctrl style="tab_button_new" id="tab3" posparent="tab2"            group="content:pvp"             hardtext="uitabFamePvp"         onclick_r="" params_r="" onclick_l="" params_l="" /> -->
371                 <link expr="and(%is_guild_present)" target="tab1:active" />
372             </group>
373             <view type="bitmap" id="sep" posparent="fame_select" posref="BR BL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" />
374         </group>
375         <group id="content" x="0" y="0" h="330" posref="TL TL">
376             <group id="you" posref="TL TL" x="0" y="-4" sizeref="wh" w="0" h="0">
377                 <!-- Civilisation -->
378                 <instance template="fame_tribe_line_icon" x="8" y="-4" posref="TL TL" id="fyros" path="SERVER:FAME:PLAYER1" hardtext="uiFameFyros" icon="points_fyros_24.tga" />
379                 <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="matis" posparent="fyros" path="SERVER:FAME:PLAYER0" hardtext="uiFameMatis" icon="points_matis_24.tga" />
380                 <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="tryker" posparent="matis" path="SERVER:FAME:PLAYER2" hardtext="uiFameTryker" icon="points_tryker_24.tga" />
381                 <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="zorai" posparent="tryker" path="SERVER:FAME:PLAYER3" hardtext="uiFameZorai" icon="points_zorai_24.tga" />
382                 <group id="civ_allegiance_group" x="0" y="-8" posref="BL TL" posparent="zorai" child_resize_h="true" child_resize_w="true">
383                     <view type="text" id="civ_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCiv" />
384                     <view type="text" id="civ_allegiance_val" posparent="civ_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" />
385                     <link expr="@SERVER:FAME:CIV_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:FAME:CIV_ALLEGIANCE', 'civ_allegiance_val')" />
386                     <instance template="text_tt" posparent="parent" on_tooltip="lua:game:fameAllegianceTooltipCiv()" />
387                 </group>
388                 <ctrl style="text_button_16" id="neutral_civ" active="false" posparent="civ_allegiance_group" posref="MR ML" x="14" y="0" hardtext="uiFameAllegianceCivSetNeutral" tooltip="uiFameAllegianceCivSetNeutralTT" onclick_l="fame_set_neutral" params_l="type=civ|force=0" global_color="true" />
389                 <link expr="and(eq(@SERVER:FAME:CIV_ALLEGIANCE, 0),not(isDBInitInProgress()))" target="neutral_civ:active" />
390                 <!-- Cult -->
391                 <instance template="fame_tribe_line_icon" x="0" y="-14" posref="BL TL" id="kami" posparent="civ_allegiance_group" path="SERVER:FAME:PLAYER4" hardtext="uiFameKami" icon="points_kami_24.tga" />
392                 <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="karavan" posparent="kami" path="SERVER:FAME:PLAYER5" hardtext="uiFameKaravan" icon="points_karavan_24.tga" />
393                 <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="black_kami" posparent="karavan" path="SERVER:FAME:PLAYER6" hardtext="uiFameMarauders" icon="points_marauder_24.tga" />
394                 <group id="cult_allegiance_group" posref="BL TL" x="0" y="-8" posparent="black_kami" child_resize_h="true" child_resize_w="true">
395                     <view type="text" id="cult_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCult" />
396                     <view type="text" id="cult_allegiance_val" posparent="cult_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" />
397                     <link expr="@SERVER:FAME:CULT_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:FAME:CULT_ALLEGIANCE', 'cult_allegiance_val')" />
398                     <instance template="text_tt" posparent="parent" on_tooltip="lua:game:fameAllegianceTooltipCult()" />
399                 </group>
400                 <ctrl style="text_button_16" id="neutral_cult" active="false" posparent="cult_allegiance_group" posref="MR ML" x="14" y="0" hardtext="uiFameAllegianceCultSetNeutral" tooltip="uiFameAllegianceCultSetNeutralTT" onclick_l="fame_set_neutral" params_l="type=cult|force=0" global_color="true" />
401                 <link expr="and(eq(@SERVER:FAME:CULT_ALLEGIANCE, 0),not(isDBInitInProgress()))" target="neutral_cult:active" />
402                 <!-- Organization -->
403                 <view type="text" id="organization_text" posref="TL BL" posparent="organization" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiOrganization" />
404                 <group id="organization" posref="BL BL" x="8" y="8" h="34" w="-12" sizeref="w">
405                     <view type="text" id="name" posref="TL TL" x="2" y="-5" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" hardtext="" />
406                     <view type="text" id="text_points" posref="BL BL" x="4" y="2" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiPoints" />
407                     <view type="text" id="points" posparent="text_points" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" hardtext="0" />
408                     <view type="text" id="status" posref="BR BR" x="-4" y="2" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" hardtext="0" />
409                     <view type="text" id="text_status" posparent="status" posref="ML MR" x="-4" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiSkillJobLVL" />
410                     <link expr="@SERVER:USER:RRPS_LEVELS1" action="lua:game:updateOrganization('SERVER:USER:RRPS_LEVELS', 'name', 'status', 'points')" />
411                     <link expr="@SERVER:USER:RRPS_LEVELS2" action="lua:game:updateOrganization('SERVER:USER:RRPS_LEVELS', 'name', 'status', 'points')" />
412                     <link expr="@SERVER:USER:RRPS_LEVELS3" action="lua:game:updateOrganization('SERVER:USER:RRPS_LEVELS', 'name', 'status', 'points')" />
413                     <instance template="text_tt" posparent="parent" on_tooltip="lua:game:organizationTooltip()" />
414                     <instance template="inner_thin_border" inherit_gc_alpha="true" />
415                 </group>
416             </group>
417             <group id="guild" posref="TL TL" x="0" y="-4" sizeref="wh" w="0" h="0">
418                 <!-- Civilisation -->
419                 <instance template="fame_tribe_line_icon" x="8" y="-4" posref="TL TL" id="fyros" path="SERVER:GUILD:FAME:1" hardtext="uiFameFyros" icon="points_fyros_24.tga" />
420                 <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="matis" posparent="fyros" path="SERVER:GUILD:FAME:0" hardtext="uiFameMatis" icon="points_matis_24.tga" />
421                 <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="tryker" posparent="matis" path="SERVER:GUILD:FAME:2" hardtext="uiFameTryker" icon="points_tryker_24.tga" />
422                 <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="zorai" posparent="tryker" path="SERVER:GUILD:FAME:3" hardtext="uiFameZorai" icon="points_zorai_24.tga" />
423                 <group id="civ_allegiance_group" x="0" y="-8" posref="BL TL" posparent="zorai" child_resize_h="true" child_resize_w="true">
424                     <view type="text" id="civ_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCiv" />
425                     <view type="text" id="civ_allegiance_val" posparent="civ_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" />
426                     <link expr="@SERVER:GUILD:FAME:CIV_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:GUILD:FAME:CIV_ALLEGIANCE', 'civ_allegiance_val')" />
427                     <instance template="text_tt" posparent="parent" on_tooltip="lua:game:fameAllegianceTooltipCivGuild()" />
428                 </group>
429                 <ctrl style="text_button_16" id="neutral_civ" posparent="civ_allegiance_group" posref="MR ML" x="14" y="2" hardtext="uiFameAllegianceCivSetNeutral" tooltip="uiFameAllegianceCivSetNeutralGuildTT" onclick_l="fame_set_neutral" params_l="type=civ_guild|force=0" global_color="true" />
430                 <link expr="eq(@SERVER:GUILD:FAME:CIV_ALLEGIANCE, 0)" target="neutral_civ:active" />
431                 <link expr="ne(@UI:VARIABLES:USER:GUILD_GRADE, 0)" target="neutral_civ:frozen" />
432                 <!-- Cult -->
433                 <instance template="fame_tribe_line_icon" x="0" y="-14" posref="BL TL" id="kami" posparent="civ_allegiance_group" path="SERVER:GUILD:FAME:4" hardtext="uiFameKami" icon="points_kami_24.tga" />
434                 <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="karavan" posparent="kami" path="SERVER:GUILD:FAME:5" hardtext="uiFameKaravan" icon="points_karavan_24.tga" />
435                 <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="black_kami" posparent="karavan" path="SERVER:GUILD:FAME:6" hardtext="uiFameMarauders" icon="points_marauder_24.tga" />
436                 <group id="cult_allegiance_group" posref="BL TL" x="0" y="-8" posparent="black_kami" child_resize_h="true" child_resize_w="true">
437                     <view type="text" id="cult_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCult" />
438                     <view type="text" id="cult_allegiance_val" posparent="cult_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" />
439                     <link expr="@SERVER:GUILD:FAME:CULT_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:GUILD:FAME:CULT_ALLEGIANCE', 'cult_allegiance_val')" />
440                     <instance template="text_tt" posparent="parent" on_tooltip="lua:game:fameAllegianceTooltipCultGuild()" />
441                 </group>
442                 <ctrl style="text_button_16" id="neutral_cult" posparent="cult_allegiance_group" posref="MR ML" x="14" y="2" hardtext="uiFameAllegianceCultSetNeutral" tooltip="uiFameAllegianceCultSetNeutralGuildTT" onclick_l="fame_set_neutral" params_l="type=cult_guild|force=0" global_color="true" />
443                 <link expr="eq(@SERVER:GUILD:FAME:CULT_ALLEGIANCE, 0)" target="neutral_cult:active" />
444                 <link expr="ne(@UI:VARIABLES:USER:GUILD_GRADE, 0)" target="neutral_cult:frozen" />
445             </group>
446             <group id="tribes" posref="TL TL" x="0" y="-4" sizeref="wh" w="0" h="-10" lua_class="game:initFameTribe()">
447                 <group id="black" posparent="list" posref="TL TL" x="-4" sizeref="wh" w="-3" h="4" inherit_gc_alpha="true" />
448                 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
449                 <group id="list" type="list" posref="TL TL" x="16" y="-4" sizeref="wh" w="-12" h="-6">
450                     <vector template="fame_tribe_line" _size="%max_fame_tribe" _firstpos="TL TL" _nextpos="BL TL" index="$i" id="line$i" path="SERVER:FAME:TRIBE$i" />
451                 </group>
452                 <ctrl style="skin_scroll" id="scroll_bar" target="list" align="T" target_stepy="28" />
453             </group>
454             <!-- TODO_SPIRE: when spire OK, remove active="false". see TODO_SPIRE -->
455             <group id="pvp" posref="TL TL" x="0" y="-4" sizeref="wh" w="0" h="-10" active="false">
456                 <!-- Texts -->
457                 <view type="text" id="allegiance_header" posref="TL TL" x="4" y="-10" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpFameAllegiance" multi_line="true" multi_line_space="0" global_color="false" />
458                 <view type="text" id="cult_allegiance_pts" posparent="allegiance_header" posref="BL TL" x="0" y="-4" color="255 255 255 255" fontsize="10" shadow="true" hardtext="" multi_line="true" multi_line_space="0" />
459                 <view type="text" id="civ_allegiance_pts" posparent="cult_allegiance_pts" posref="BL TL" x="0" y="-8" color="255 255 255 255" fontsize="10" shadow="true" hardtext="" multi_line="true" multi_line_space="0" />
460                 <view type="text" id="pvpEffectsInfo" posparent="civ_allegiance_pts" posref="BL TL" x="0" y="0" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpEffectInfo" multi_line="true" multi_line_space="0" global_color="false" />
461                 <!-- Tooltips -->
462                 <instance template="text_tt" posparent="allegiance_header" tooltip="uittPvpFameAllegianceInfo" />
463                 <instance template="text_tt" posparent="pvpEffectsInfo" tooltip="uittPvpFameInfo" />
464                 <!-- Update allegiance faction points -->
465                 <link expr="depends(@SERVER:PVP_EFFECTS:PVP_FACTION_POINTS)" action="lua:game:getAllegiancePoints()" />
466                 <!-- Black background -->
467                 <group id="black" posref="TL TL" x="10" y="-85" sizeparent="parent" sizeref="wh" w="-14" h="-85" inherit_gc_alpha="true" />
468                 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
469                 <!-- Spire effects with scroll bar -->
470                 <group id="list" posref="TL TL" x="10" y="-88" sizeparent="parent" sizeref="w" w="-14" h="0" max_sizeparent="parent" max_sizeref="h" max_h="-91" child_resize_h="true" child_resize_hmargin="8">
471                     <view type="text" id="pvpEffectsBonusMalusInfo" posref="TL TL" x="4" y="-2" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpFameNoCivAllegiance" multi_line="true" multi_line_space="0" global_color="false" />
472                     <view type="text" id="pvpEffectsBonusMalus" posparent="pvpEffectsBonusMalusInfo" posref="BL TL" x="4" y="-4" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpFameNoCivAllegiance" multi_line="true" multi_line_space="0" />
473                     <!-- Update spire effects -->
474                     <link expr="depends(@SERVER:PVP_EFFECTS)" action="lua:game:getPvpEffects()" />
475                 </group>
476                 <ctrl style="skin_scroll" id="scroll_bar" target="list" align="T" target_stepy="11" />
477             </group>
478         </group>
479     </group>
480     <tree node="fame" />
481     <!--**************************-->
482     <!--*   info_player_journal  *-->
483     <!--**************************-->
484     <define id="ipj_nb_mission" value="15" />
485     <define id="ipj_last_title" value="title14" />
486     <define id="ipj_nb_group_mission" value="15" />
487     <define id="ipj_last_group_title" value="group_title14" />
488     <define id="ipj_nb_histo" value="30" />
489     <define id="ipj_nb_histo_minus_one" value="29" />
490     <define id="ipj_last_step" value="step0" />
491     <define id="ipj_last_histo" value="histo29" />
492     <define id="ipj_nb_goal" value="20" />
493     <define id="ipj_nb_goal_minus_one" value="19" />
494     <variable entry="UI:TEMP:MISSION_ABANDON_BUTTON" type="bool" value="1" />
495     <variable entry="UI:TEMP:MISSION_WAKE_BUTTON" type="bool" value="0" />
496     <variable entry="UI:SAVE:MISSION_SELECTED" type="sint32" value="-1" />
497     <!-- On Active -->
498     <proc id="mission_proc_active">
499         <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MISSIONS|value=1" />
500         <action handler="mission_choose_next_valid" />
501         <action handler="lua:game:onMissionJournalOpened()" />
502     </proc>
503     <!-- Change Title -->
504     <template name="t_mission_proc_title_step" nb="">
505         <!-- <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:step#nb:textid_dblink|value='SERVER:MISSIONS:@0:GOALS:#nb:TEXT'" /> -->
506         <action handler="remove_link" params="id=mission_link_step#nb" />
507         <action handler="add_link" params="id=mission_link_step#nb|expr=ne(@SERVER:MISSIONS:@0:GOALS:#nb:TEXT,0)|target=ui:interface:info_player_journal:content:desc:step#nb:active|action=lua|params=game:onNewMissionStepAdded(#nb)" />
508     </template>
509     <template name="t_mission_proc_title_histo" nb="">
510         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:histo#nb:textid_dblink|value='SERVER:MISSIONS:@0:HISTO:#nb:TEXT'" />
511         <action handler="remove_link" params="id=mission_link_histo#nb" />
512         <action handler="add_link" params="id=mission_link_histo#nb|expr=ne(@SERVER:MISSIONS:@0:HISTO:#nb:TEXT,0)|target=ui:interface:info_player_journal:content:desc:histo#nb:active" />
513     </template>
514     <proc id="mission_proc_title">
515         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:uppart:icon:sheet|value='SERVER:MISSIONS:@0'" />
516         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:uppart:logic:textid_dblink|value='SERVER:MISSIONS:@0:DETAIL_TEXT'" />
517         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:timer:b:range_dblink|value='SERVER:MISSIONS:@0:END_DATE'" />
518         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:timer:b:reference_dblink|value='SERVER:MISSIONS:@0:BEGIN_DATE'" />
519         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:close:onclick_l|value='mission_abandon'" />
520         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:close:params_l|value='@0'" />
521         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:wake:onclick_l|value='mission_wake'" />
522         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:wake:params_l|value='@0'" />
523         <action handler="remove_link" params="id=mission_abandon_text" />
524         <action handler="remove_link" params="id=mission_finished_bitmap" />
525         <action handler="remove_link" params="id=mission_abandon_active" />
526         <!--    <action handler="remove_link" params="id=mission_wake_text" /> -->
527         <action handler="remove_link" params="id=mission_wake_active" />
528         <action handler="add_link" params="id=mission_abandon_text|expr=ifthenelse(eq(@SERVER:MISSIONS:@0:FINISHED,0), 'uittMissionAbandon', 'uittMissionFinished')|target=ui:interface:info_player_journal:content:desc:close:hardtext" />
529         <action handler="add_link" params="id=mission_finished_bitmap|expr=switch(@SERVER:MISSIONS:@0:FINISHED, 'blank2.tga', 'ICO_Task_Done.tga', 'ICO_Task_Failed.tga')|target=ui:interface:info_player_journal:content:desc:uppart:over_icon:texture" />
530         <action handler="add_link" params="id=mission_abandon_active|expr=and(eq(@UI:TEMP:MISSION_ABANDON_BUTTON,1),ne(@UI:SAVE:MISSION_SELECTED,-1),or(eq(@SERVER:MISSIONS:@0:ABANDONNABLE,1),ne(@SERVER:MISSIONS:@0:FINISHED,0)))|target=ui:interface:info_player_journal:content:desc:close:active" />
531         <!--<action handler="add_link" params="id=mission_wake_text|expr=ne(@SERVER:MISSIONS:@0:SLEEP,0), 'uittMissionWake', |target=ui:interface:info_player_journal:content:desc:wake:hardtext" />-->
532         <action handler="add_link" params="id=mission_wake_active|expr=and(eq(@UI:TEMP:MISSION_WAKE_BUTTON,1),ne(@UI:SAVE:MISSION_SELECTED,-1),or(eq(@SERVER:MISSIONS:@0:SLEEP,1)))|target=ui:interface:info_player_journal:content:desc:wake:active" />
533         <action handler="remove_link" params="id=mission_timer_link" />
534         <action handler="remove_link" params="id=mission_time2_link" />
535         <action handler="add_link" params="id=mission_timer_link|expr=secondsToTimeString(div(sub(@SERVER:MISSIONS:@0:END_DATE,@UI:VARIABLES:CURRENT_SERVER_TICK),10))|target=ui:interface:info_player_journal:content:desc:timer:t:uc_hardtext" />
536         <action handler="add_link" params="id=mission_time2_link|expr=ne(@SERVER:MISSIONS:@0:END_DATE,0)|target=ui:interface:info_player_journal:content:desc:timer:active" />
537         <vector template="t_mission_proc_title_histo" _size="%ipj_nb_histo" nb="$i" />
538         <vector template="t_mission_proc_title_step" _size="%ipj_nb_goal" nb="$i" />
539         <action handler="set" params="dblink=UI:SAVE:MISSION_SELECTED|value=@0" />
540         <action handler="set" params="target_property=ui:interface:info_player_journal:content:mission_list:b_title@0:pushed|value=1" />
541         <action handler="lua" params="game:onMissionSelected(@0)" />
542     </proc>
543     <!-- Display template -->
544     <template name="t_mission_title" id="" stepindex="" x="0" posref="BL TL" posparent="parent" tooltip="">
545         <view type="bitmap" id="#id" posref="#posref" posparent="#posparent" x="#x" y="0" texture="Small_Task_Generic.tga" global_color="false" inherit_gc_alpha="false" />
546         <view type="text_id" id="title_#id" x="4" y="-1" posref="MR ML" posparent="#id" fontsize="10" textid="SERVER:MISSIONS:#stepindex:TITLE" over_extend_view_text="true" auto_clamp="true" />
547         <ctrl type="button" id="b_#id" button_type="radio_button" posref="TL TL" posparent="#id" sizeparent="parent" sizeref="w" w="0" h="16" tooltip="#tooltip" onclick_l="proc" params_l="mission_proc_title|#stepindex" click_when_pushed="true" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" scale="true" color="0 0 0 0" col_over="255 255 255 128" col_pushed="0 0 0 192" global_color_normal="true" global_color_over="true" global_color_pushed="true" text_color_normal="255 255 255 255" text_color_pushed="0 0 0 255" text_color_over="255 255 255 255" text_shadow_color_normal="0 0 0 255" text_shadow_color_pushed="0 0 0 255" text_shadow_color_over="0 0 0 255" text_global_color_normal="true" text_global_color_pushed="false" text_global_color_over="false" />
548         <!-- active the line if the mission slot is here -->
549         <link expr="ne(@SERVER:MISSIONS:#stepindex:TITLE,0)" target="#id:active,title_#id:active,b_#id:active" />
550         <!-- must set y to 0 if hole in the list -->
551         <link expr="ifthenelse(eq(@SERVER:MISSIONS:#stepindex:TITLE,0),0,-2)" target="#id:y" />
552         <!-- set the correct bitmap according to mission type -->
553         <link expr="ifthenelse(ne(@SERVER:MISSIONS:#stepindex:FINISHED,0),                                         ifthenelse(eq(@SERVER:MISSIONS:#stepindex:FINISHED,1),                                                  'Small_Task_Done.tga',                                                  'Small_Task_Failed.tga'),                                                 getMissionSmallIcon(@SERVER:MISSIONS:#stepindex:ICON) )" target="#id:texture" />
554     </template>
555     <!-- Same for Group Missions -->
556     <!-- Change Title -->
557     <template name="t_group_mission_proc_title_step" nb="">
558         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:step#nb:textid_dblink|value='SERVER:GROUP:MISSIONS:@0:GOALS:#nb:TEXT'" />
559         <action handler="remove_link" params="id=mission_link_step#nb" />
560         <action handler="add_link" params="id=mission_link_step#nb|expr=ne(@SERVER:GROUP:MISSIONS:@0:GOALS:#nb:TEXT,0)|target=ui:interface:info_player_journal:content:desc:step#nb:active|action=lua|params=game:onNewMissionStepAdded(#nb)" />
561     </template>
562     <template name="t_group_mission_proc_title_histo" nb="">
563         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:histo#nb:textid_dblink|value='SERVER:GROUP:MISSIONS:@0:HISTO:#nb:TEXT'" />
564         <action handler="remove_link" params="id=mission_link_histo#nb" />
565         <action handler="add_link" params="id=mission_link_histo#nb|expr=ne(@SERVER:GROUP:MISSIONS:@0:HISTO:#nb:TEXT,0)|target=ui:interface:info_player_journal:content:desc:histo#nb:active" />
566     </template>
567     <proc id="group_mission_proc_title">
568         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:uppart:icon:sheet|value='SERVER:GROUP:MISSIONS:@0'" />
569         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:uppart:logic:textid_dblink|value='SERVER:GROUP:MISSIONS:@0:DETAIL_TEXT'" />
570         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:timer:b:range_dblink|value='SERVER:GROUP:MISSIONS:@0:END_DATE'" />
571         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:timer:b:reference_dblink|value='SERVER:GROUP:MISSIONS:@0:BEGIN_DATE'" />
572         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:close:onclick_l|value='group_mission_abandon'" />
573         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:wake:onclick_l|value='group_mission_wake'" />
574         <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:close:params_l|value='@0'" />
575         <action handler="remove_link" params="id=mission_abandon_text" />
576         <action handler="remove_link" params="id=mission_finished_bitmap" />
577         <action handler="remove_link" params="id=mission_abandon_active" />
578         <action handler="remove_link" params="id=mission_wake_active" />
579         <action handler="add_link" params="id=mission_abandon_text|expr=ifthenelse(eq(@SERVER:GROUP:MISSIONS:@0:FINISHED,0), 'uittMissionAbandon', 'uittMissionFinished')|target=ui:interface:info_player_journal:content:desc:close:hardtext" />
580         <action handler="add_link" params="id=mission_finished_bitmap|expr=switch(@SERVER:GROUP:MISSIONS:@0:FINISHED, 'blank2.tga', 'ICO_Task_Done.tga', 'ICO_Task_Failed.tga')|target=ui:interface:info_player_journal:content:desc:uppart:over_icon:texture" />
581         <action handler="add_link" params="id=mission_abandon_active|expr=and(eq(@UI:TEMP:MISSION_ABANDON_BUTTON,1),ne(@UI:SAVE:MISSION_SELECTED,-1),or(eq(@SERVER:GROUP:MISSIONS:@0:ABANDONNABLE,1),ne(@SERVER:GROUP:MISSIONS:@0:FINISHED,0)))|target=ui:interface:info_player_journal:content:desc:close:active" />
582         <action handler="add_link" params="id=mission_wake_active|expr=and(eq(@UI:TEMP:MISSION_WAKE_BUTTON,1),ne(@UI:SAVE:MISSION_SELECTED,-1),or(eq(@SERVER:GROUP:MISSIONS:@0:SLEEP,1)))|target=ui:interface:info_player_journal:content:desc:wake:active" />
583         <action handler="remove_link" params="id=mission_timer_link" />
584         <action handler="remove_link" params="id=mission_time2_link" />
585         <action handler="add_link" params="id=mission_timer_link|expr=secondsToTimeString(div(sub(@SERVER:GROUP:MISSIONS:@0:END_DATE,@UI:VARIABLES:CURRENT_SERVER_TICK),10))|target=ui:interface:info_player_journal:content:desc:timer:t:uc_hardtext" />
586         <action handler="add_link" params="id=mission_time2_link|expr=ne(@SERVER:GROUP:MISSIONS:@0:END_DATE,0)|target=ui:interface:info_player_journal:content:desc:timer:active" />
587         <vector template="t_group_mission_proc_title_histo" _size="%ipj_nb_histo" nb="$i" />
588         <vector template="t_group_mission_proc_title_step" _size="%ipj_nb_goal" nb="$i" />
589         <action handler="set" params="dblink=UI:SAVE:MISSION_SELECTED|value=add(@0,%ipj_nb_mission)" />
590         <action handler="set" params="target_property=ui:interface:info_player_journal:content:mission_list:b_group_title@0:pushed|value=1" />
591         <action handler="lua" params="game:onGroupMissionSelected(@0)" />
592     </proc>
593     <!-- Display template -->
594     <template name="t_group_mission_title" id="" stepindex="" x="0" posref="BL TL" posparent="parent" tooltip="">
595         <view type="bitmap" id="#id" posref="#posref" posparent="#posparent" x="#x" y="0" texture="Small_Task_Generic.tga" global_color="false" inherit_gc_alpha="false" />
596         <view type="text_id" id="title_#id" x="4" y="-1" posref="MR ML" posparent="#id" fontsize="10" textid="SERVER:GROUP:MISSIONS:#stepindex:TITLE" over_extend_view_text="true" auto_clamp="true" />
597         <ctrl type="button" id="b_#id" button_type="radio_button" posref="TL TL" posparent="#id" sizeparent="parent" sizeref="w" w="0" h="16" tooltip="#tooltip" onclick_l="proc" params_l="group_mission_proc_title|#stepindex" click_when_pushed="true" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" scale="true" color="0 0 0 0" col_over="255 255 255 128" col_pushed="0 0 0 192" global_color_normal="true" global_color_over="true" global_color_pushed="true" text_color_normal="255 255 255 255" text_color_pushed="0 0 0 255" text_color_over="255 255 255 255" text_shadow_color_normal="0 0 0 255" text_shadow_color_pushed="0 0 0 255" text_shadow_color_over="0 0 0 255" text_global_color_normal="true" text_global_color_pushed="false" text_global_color_over="false" />
598         <!-- active the line if the mission slot is here -->
599         <link expr="ne(@SERVER:GROUP:MISSIONS:#stepindex:TITLE,0)" target="#id:active, title_#id:active, b_#id:active" />
600         <!-- must set y to 0 if hole in the list -->
601         <link expr="ifthenelse(eq(@SERVER:GROUP:MISSIONS:#stepindex:TITLE,0),0,-2)" target="#id:y" />
602         <!-- set the correct bitmap according to mission type -->
603         <link expr="ifthenelse(ne(@SERVER:GROUP:MISSIONS:#stepindex:FINISHED,0),                                         ifthenelse(eq(@SERVER:GROUP:MISSIONS:#stepindex:FINISHED,1),                                                  'Small_Task_Done.tga',                                                  'Small_Task_Failed.tga'),                                         getMissionSmallIcon(@SERVER:GROUP:MISSIONS:#stepindex:ICON) )" target="#id:texture" />
604     </template>
605     <!-- End of Group Missions -->
606     <template name="t_mission_step" id="" stepindex="" x="0" posref="BL TL" posparent="parent">
607         <view type="text_id" id="#id" x="#x" posref="#posref" posparent="#posparent" global_color="false" multi_line="true" multi_line_space="0" fontsize="10" />
608     </template>
609     <template name="t_mission_histo" id="" stepindex="" x="0" posref="BL TL" posparent="parent">
610         <view type="text_id" id="#id" x="#x" posref="#posref" posparent="#posparent" multi_line="true" multi_line_space="0" fontsize="10" color="160 160 160 255" />
611     </template>
612     <!-- mission combo box menu -->
613     <group id="mission_cb_menu" type="modal" mouse_pos="false" exit_click_out="true" w="300" h="300" active="false">
614         <group id="mission_list" active="true" posref="TL TL" x="6" y="-2" sizeref="w" w="-10" child_resize_h="true" child_resize_hmargin="2" max_sizeref="wh" max_w="-4" max_h="-4">
615             <vector template="t_mission_title" _size="%ipj_nb_mission" _firstpos="TL TL" _nextpos="BL TL" _xfirst="0" id="title$i" stepindex="$i" />
616             <vector template="t_group_mission_title" posparent="%ipj_last_title" _size="%ipj_nb_group_mission" _firstpos="BL TL" _nextpos="BL TL" _xfirst="0" id="group_title$i" stepindex="$i" />
617         </group>
618         <!--
619         <ctrl style="skin_scroll" id="sv" posref="TL TL" x="4" y="-8" target="mission_list"/>
620         -->
621     </group>
622     <!-- bind lua observers to know when :
623      - a new mission or group mission has been selected
624          - a mission title has changed (0 indicating it is not there anymore
625          -a mission 'finished' state has changed
626   -->
627     <link expr="depends(@UI:SAVE:MISSION_SELECTED)" action="lua:game:onMissionDBIndexChanged()" />
628     <template name="t_mission_title_changed_observer">
629         <link expr="depends(@#db_path:#index:#attr)" action="lua:game:#handler(#index)" />
630     </template>
631     <vector template="t_mission_title_changed_observer" _size="%ipj_nb_mission" index="$i" db_path="SERVER:MISSIONS" attr="TITLE" handler="onMissionTitleChanged" />
632     <vector template="t_mission_title_changed_observer" _size="%ipj_nb_mission" index="$i" db_path="SERVER:GROUP:MISSIONS" attr="TITLE" handler="onGroupMissionTitleChanged" />
633     <vector template="t_mission_title_changed_observer" _size="%ipj_nb_mission" index="$i" db_path="SERVER:MISSIONS" attr="FINISHED" handler="onMissionFinished" />
634     <vector template="t_mission_title_changed_observer" _size="%ipj_nb_mission" index="$i" db_path="SERVER:GROUP:MISSIONS" attr="FINISHED" handler="onGroupMissionFinished" />
635     <group type="menu" id="mission_journal_menu" extends="base_menu_with_color">
636         <action id="caption_toggle" name="uiCaptionToggle" handler="lua:game:toggleMissionJournalCaption()" icon="r2_icon_properties.tga" />
637     </group>
639     <!-- Main container : cap -->
640     <group type="container" id="cap" w="280" h="84" global_color="false" right_button="false" opened="true" openable="true" resizer="true" pop_min_h="84" pop_max_h="85" pop_min_w="292" pop_max_w="800" movable="true" active="false" on_resize="lua" on_resize_params="game:onCapResize()" on_active="set" on_active_params="dblink=UI:VARIABLES:ISACTIVE:CAP|value=1" on_deactive="set" on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:CAP|value=0">
641         <group id="header_closed" x="0" y="0" h="25" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:webig_menu" on_active="lua" on_active_params="game:closeCapHeader()">
642             <group id="cap_group" x="0" y="15" sizeref="wh" posref="TL TL">
643                 <view type="bitmap" id="cap_icon" w="15" h="15" scale="true" posref="TL TL" x="10" y="-15" texture="tb_encyclopedia.tga" global_color="false" inherit_gc_alpha="false" />
644                 <view type="text" id="cap_desc" x="2" y="0" shadow="true" global_color="false" posparent="cap_icon" posref="TR TL" color="255 189 0 255" fontsize="12" hardtext="uiWisdomChest" />
645                 <view type="bar" id="cap_progress" active="true" mini="false" posref="TL TL" x="2" y="-36" value="UI:TEMP:CAP_PROGRESS" range="100" />
646                 <view type="text" id="cap_infos" active="true" posparent="cap_progress" posref="MR ML" x="2" y="0" global_color="false" fontsize="10" hardtext="" />
647                 <ctrl type="button" id="cap_ctrl" button_type="push_button" posref="TL TL" w="800" h="15" x="-1" y="-34" col_over="255 255 255 90" tx_over="blank.tga" scale="true" onclick_l="lua:game:openInfosUrl()" tooltip_posref="TR TL"/>
648                 <ctrl type="button" button_type="push_button" id="cap_list" posparent="cap_ctrl" posref="BL TL"  w="800" h="15" x="1" y="-" color="0 0 0 90" tx_over="blank.tga" scale="true" onclick_l="lua:game:openFullCap()" tooltip="" tooltip_posref="TR TL"/>
649                 <view type="text" id="infos" x="0" y="0" shadow="true" global_color="false" posparent="cap_list" render_layer="2" posref="TL TL" color="255 255 255 255" fontsize="11" format_taged="true" multi_line="true" hardtext_format="" />
650             </group>
651         </group>
652         <group id="header_opened" x="0" y="0" w="280" h="70" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color"  on_active="lua" on_active_params="game:openCapHeader()">
653             <group id="cap_group" x="0" y="15" sizeref="wh" posref="TL TL">
654                 <view type="bitmap" id="cap_mini_icon" w="15" h="15" scale="true" posref="TL TL" x="10" y="-15" texture="ico_cap_mini.tga" global_color="false" inherit_gc_alpha="false" />
655                 <view type="text" id="cap_title" x="2" y="0" shadow="true" global_color="false" posparent="cap_mini_icon" posref="TR TL" color="255 189 0 255" fontsize="12" hardtext="uiWelcomeWhatTitle" />
656                 <view type="bitmap" id="cap_icon" w="32" h="32" x="-10" y="-4" posparent="cap_mini_icon"  posref="BL TL" scale="true" global_color="false" color="255 255 255 255" texture="tb_encyclopedia.tga" />
657                 <view type="text" id="cap_desc" x="4" y="0" global_color="false" posref="TR TL" posparent="cap_icon" fontsize="10" hardtext="uiWisdomChest" />
658                 <view type="bar" id="cap_progress" active="true" posparent="cap_desc" posref="BL TL" x="0" y="-4" value="UI:TEMP:CAP_PROGRESS" range="100" />
659                 <view type="text" id="cap_infos" active="true" posparent="cap_progress" posref="MR ML" x="2" y="0" global_color="false" fontsize="10" hardtext="" />
660                 <ctrl type="button" id="cap_ctrl" button_type="push_button"  posparent="cap_icon" posref="TL TL" w="800" h="34" x="-1" y="1" col_over="255 255 255 90" tx_over="blank.tga" scale="true" onclick_l="lua:game:openInfosUrl()" tooltip="" tooltip_posref="TR TL"/>
661                 <ctrl type="button" id="expand_mission_list" active="true" button_type="push_button" posparent="cap_ctrl" posref="TR TL" w="20" h="20" x="-1" y="-2" scale="true" color="192 192 192 255" tx_normal="w_pad_popup.tga" col_over="255 255 255 225" tx_over="w_pad_popup.tga" col_pushed="192 192 192 255" tx_pushed="w_pad_popup.tga" tooltip="uittShowCapPopup" onclick_l="lua:game:switchCapPopup()" />
662                 <ctrl type="button" id="show_in_map" active="true" button_type="push_button" posparent="cap_ctrl" posref="TR TL" w="20" h="20" x="-1" y="-24" scale="true" color="192 192 192 255" tx_normal="lm_mission.tga" col_over="255 255 255 225" tx_over="lm_mission.tga" col_pushed="192 192 192 255" tx_pushed="lm_mission.tga" tooltip="uittShowCapInMap" onclick_l="lua:game:showCapInMap()" />
664                 <view id="background_bitmap" type="bitmap" posref="BM BM" sizeref="wh" h="-67" w="-4" inherit_gc_alpha="true" scale="true" texture="blank.tga" color="0 0 0 125" global_color="false" />
665                 <view type="bitmap" id="right" w="15" h="15" scale="true" posparent="cap_icon" posref="BL TL" x="0" y="-3" texture="grey_0.tga" global_color="false" inherit_gc_alpha="false" />
666                 <ctrl type="button" button_type="push_button" id="cap_list" posparent="right" posref="TL TL"  w="800" h="15" x="1" y="0" col_over="255 255 255 90" tx_over="blank.tga" scale="true" onclick_l="lua:game:keepExpandCapWeb()" tooltip="" tooltip_posref="TR TL"/>
667                 <view type="text" id="infos" x="12" y="0" shadow="true" global_color="false" posparent="cap_list" posref="TL TL" color="255 255 255 255" fontsize="11" format_taged="true" multi_line="true" hardtext_format="" />
668                 <group type="webig_html" id="html" posref="BL BL" home="" title_prefix="" y="0" sizeref="h" h="-87" w="272" background_color="255 255 255 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="12" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="background_bitmap" browse_next_time="false" form_text_area_group="edit_box_widget_multiline" browse_refresh="" browse_undo="" browse_redo="">
669                     <group type="list" id="text_list" fontsize="9" posref="TL TL" x="5" y="-2" space="0" sizeref="hw" w="-12" h="-30" maxelements="2000" />
670                     <ctrl id="scroll_bar" style="skin_scroll" x="2" h="5" y="30" posref="TR TR" />
671                 </group>
673             </group>
674         </group>
675     </group>
677     <!-- Main container : info_player_journal -->
678     <group type="container" id="info_player_journal" w="280" h="382" title="uiJournalTitle" global_color="false" opened="true" openable="false" header_color="UI:SAVE:WIN:COLORS:PLA" resizer="true" pop_min_w="292" pop_min_h="137" pop_max_w="800" pop_max_h="800" movable="true" active="false" on_active="proc" on_active_params="mission_proc_active" on_deactive="set" on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:MISSIONS|value=0">
679         <group id="header_opened" x="0" y="0" w="0" h="16" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:mission_journal_menu"></group>
680         <group id="no_available_missions" x="0" y="0" sizeref="wh" w="0" h="0" posref="TL TL" active="false" group_onclick_r="active_menu" group_params_r="menu=ui:interface:mission_journal_menu">
681             <group id="main" sizeref="w" w="-16" posref="MM MM" child_resize_h="true">
682                 <view type="text" id="text" global_color="true" fontsize="14" shadow="true" hardtext="uiNoAvailableMissions" multi_line="true" continuous_update="true" posref="TL TL" />
683                 <group id="separator" posref="BL TL" posparent="text" sizeparent="parent" sizeref="w" w="0" h="8" x="0" y="0">
684                     <view type="bitmap" id="sep_lef" posref="TL TL" texture="Skin_Sep_L.tga" inherit_gc_alpha="false" />
685                     <view type="bitmap" id="sep_mid" posref="MM MM" scale="true" sizeref="w" w="-16" h="4" texture="Skin_Sep_M.tga" inherit_gc_alpha="false" />
686                     <view type="bitmap" id="sep_rig" posref="TR TR" texture="Skin_Sep_R.tga" inherit_gc_alpha="false" />
687                 </group>
688                 <view type="text" id="mission_fixed_entry" active="true" y="-2" posref="BL TL" posparent="separator" fontsize="10" hardtext="fixed entry" over_extend_view_text="true" auto_clamp="true" />
689             </group>
690         </group>
691         <group id="content" x="0" y="0" w="0" h="0" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:mission_journal_menu">
692             <group id="mission_combo" type="group_wheel" posref="TL TL" x="2" y="-5" sizeref="w" w="-26" h="24" on_wheel_up="lua" on_wheel_up_params="game:onMissionComboWheelUp()" on_wheel_down="lua" on_wheel_down_params="game:onMissionComboWheelDown()">
693                 <!-- DECORATION -->
694                 <instance template="box_widget" id="back" sizeref="wh" w="0" h="0" />
695                 <view type="bitmap" active="false" id="arrow" posref="MR MR" x="-2" texture="W_arrow_down_0.tga" />
696                 <view type="bitmap" active="false" id="mission_ico" posref="ML ML" x="4" y="0" texture="Small_Task_Generic.tga" global_color="false" inherit_gc_alpha="false" />
697                 <view type="text_id" active="false" id="mission_title" posparent="mission_ico" x="6" y="0" posref="MR ML" fontsize="10" textid="SERVER:MISSIONS:0:TITLE" over_extend_view_text="true" auto_clamp="true" auto_clamp_offset="16" />
698                 <ctrl type="button" active="false" button_type="push_button" id="select" sizeref="wh" w="0" h="0" col_over="255 255 255 90" tx_over="blank.tga" scale="true" onclick_l="lua:game:popMissionList()" tooltip="uittMissionCombo" />
699                 <view type="text" id="no_selected_mission" active="false" x="4" y="0" posref="ML ML" fontsize="10" hardtext="uiClickToSelectAMission" />
700                 <view type="text" id="no_available_mission" active="true" x="4" y="0" posref="ML ML" fontsize="10" hardtext="uiNoAvailableMission" />
701             </group>
702             <group id="mission_list" w="-32" active="false" posref="TL TL" x="6" y="-5" sizeref="w" child_resize_h="true" child_resize_hmargin="2" max_sizeref="wh5" max_w="-12" max_h="-42">
703                 <vector template="t_mission_title" _size="%ipj_nb_mission" _firstpos="TL TL" _nextpos="BL TL" _xfirst="0" id="title$i" stepindex="$i" tooltip="uittMissionJournal" />
704                 <vector template="t_group_mission_title" posparent="%ipj_last_title" _size="%ipj_nb_group_mission" _firstpos="BL TL" _nextpos="BL TL" _xfirst="0" id="group_title$i" stepindex="$i" tooltip="uittMissionJournal" />
705                 <view type="text" id="no_selected_mission" active="false" x="4" y="0" posref="ML ML" fontsize="10" hardtext="uiClickToSelectAMission" />
706                 <view type="text" id="no_available_mission" active="true" x="4" y="0" posref="ML ML" fontsize="10" hardtext="uiNoAvailableMission" />
707             </group>
708             <ctrl style="skin_scroll" id="sv" posref="TL TL" x="0" y="-5" target="mission_list" target_stepy="18" />
709             <ctrl type="button" active="true" button_type="push_button" id="expand_mission_list" w="20" h="20" x="-1" y="-5" scale="true" color="192 192 192 255" tx_normal="Switch_Ratio.tga" col_over="255 255 255 225" tx_over="Switch_Ratio.tga" col_pushed="192 192 192 255" tx_pushed="Switch_Ratio.tga" posref="TR TR" tooltip="uittExpandMissionList" onclick_l="lua:game:expandMissionList()" />
710             <group id="fake" posref="TL TL" x="0" y="0" sizeref="" w="0" h="42"></group>
711             <group id="separator" posref="BL TL" posparent="fake" sizeparent="parent" sizeref="w" w="0" h="8" x="0" y="-5">
712                 <view type="bitmap" id="sep_lef" posref="TL TL" texture="Skin_Sep_L.tga" inherit_gc_alpha="false" />
713                 <view type="bitmap" id="sep_mid" posref="MM MM" scale="true" sizeref="w" w="-16" h="4" texture="Skin_Sep_M.tga" inherit_gc_alpha="false" />
714                 <view type="bitmap" id="sep_rig" posref="TR TR" texture="Skin_Sep_R.tga" inherit_gc_alpha="false" />
715             </group>
716             <group id="desc" posref="BL TL" posparent="separator" x="9" y="0" sizeparent="parent" max_sizeref="wh" max_w="0" max_h="-5" sizeref="w" w="-12" child_resize_h="true" child_resize_hmargin="0" h="0">
717                 <group id="uppart" x="0" y="-4" sizeref="w" w="0" h="0" child_resize_h="true" posref="TL TL">
718                     <ctrl type="sheet" id="icon" nature="mission" posref="TL TL" x="0" y="0" value="SERVER:MISSIONS:0" global_color="false" />
719                     <view type="bitmap" id="over_icon" render_layer="1" posref="MM MM" x="0" y="0" posparent="icon" texture="blank2.tga" global_color="false" color="255 255 255 255" />
720                     <view type="text_id" id="logic" posref="TL TL" x="44" y="0" textid="SERVER:MISSIONS:0:DETAIL_TEXT" multi_line="true" multi_line_space="0" fontsize="10" />
721                 </group>
722                 <group id="web" w="0" h="64" posparent="uppart" posref="BL TL" y="-2" x="-5" sizeref="w">
723                     <view id="background_bitmap" type="bitmap" posref="MM MM" sizeref="wh" w="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" color="0 0 0 125" global_color="false" />
724                     <instance template="webig_html_noborder" home="#home" browse_redo="#browse_redo" browse_undo="#browse_undo" browse_refresh="#browse_refresh" x="-1" w="240" y="7" h="64"/>
725                 </group>
726                 <group id="timer" posparent="web" posref="BL TL" x="10" y="-5" child_resize_h="true" child_resize_w="true">
727                     <view type="bar" id="b" ultra_mini="true" posref="TL TL" color="255 255 255 255" value="UI:VARIABLES:CURRENT_SERVER_TICK" range="SERVER:MISSIONS:0:END_DATE" reference="SERVER:MISSIONS:0:BEGIN_DATE" />
728                     <view type="text" id="t" posparent="b" posref="TR TL" x="4" color="255 255 255 255" fontsize="8" shadow="true" hardtext="" />
729                 </group>
730                 <view type="bitmap" id="bottom_sizer" x="5" posparent="web" posref="BL TL" y="-22" texture="blank.tga" color="0 0 0 0" scale="false" global_color="false" />
731                 <view type="bitmap" id="mid_sep" posref="BL BL" y="4" posparent="bottom_sizer" sizeparent="parent" scale="true" sizeref="w" w="0" h="2" texture="W_line_hor.tga" />
732                 <!--zd old to recent -->
733                 <!--
734                         <vector template="t_mission_histo" posparent="bottom_sizer" _size="%ipj_nb_histo" _firstpos="BL TL" _nextpos="BL TL" _xfirst="0" id="histo$i" stepindex="$i" />
735                         <vector template="t_mission_step" posparent="%ipj_last_histo" _size="%ipj_nb_goal" _firstpos="BL TL" _nextpos="BL TL" _xfirst="0" id="step$i" stepindex="$i" />
736                         -->
737                 <!-- recent to old -->
738                 <vector template="t_mission_step" posparent="bottom_sizer" _firstindex="%ipj_nb_goal_minus_one" _size="%ipj_nb_goal" _step="-1" _firstpos="BL TL" _nextpos="BL TL" _xfirst="0" id="step$i" stepindex="$i" />
739                 <vector template="t_mission_histo" posparent="%ipj_last_step" _firstindex="%ipj_nb_histo_minus_one" _size="%ipj_nb_histo" _step="-1" _firstpos="BL TL" _nextpos="BL TL" _xfirst="0" id="histo$i" stepindex="$i" />
740                 <ctrl style="text_button_16" id="close" posparent="mid_sep" posref="TR BR" x="0" y="2" hardtext="uittMissionAbandon" onclick_l="mission_abandon" params_l="0" global_color="true" />
741                 <ctrl style="text_button_16" id="wake" posparent="close" posref="BL BR" x="-5" y="0" hardtext="uittMissionWake" onclick_l="mission_wake" params_l="0" global_color="true" />
742             </group>
743             <ctrl style="skin_scroll" id="sv_desc" posparent="separator" posref="BL TL" x="0" y="2" target="desc" />
744             <link expr="ne(@UI:SAVE:MISSION_SELECTED,-1)" target="desc:active" />
745             <link expr="depends(@SERVER:MISSIONS,@SERVER:GROUP:MISSIONS)" action="set" params="dblink=UI:TEMP:MISSION_ABANDON_BUTTON|value=1" />
746             <link expr="depends(@SERVER:MISSIONS,@SERVER:GROUP:MISSIONS)" action="set" params="dblink=UI:TEMP:MISSION_WAKE_BUTTON|value=1" />
747             <link expr="depends(@SERVER:MISSIONS,@SERVER:GROUP:MISSIONS)" action="mission_choose_next_valid" />
748         </group>
749     </group>
750     <tree node="cap" />
751     <tree node="info_player_journal" />
753         <group id="cap_popup" title=""  type="container" posref="MM MM" x="" y="" movable="false" pop_min_w="800" pop_max_w="800" resizer="true" opened="false" openable="false" options="compass" header_active="false" right_button="false">
754                 <group id="html" type="html" posref="TL TL" url="" title_prefix="uiQuickhelpTitle" sizeref="wh" x="0" y="0" w="0" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="patch_off.tga" checkbox_bitmap_pushed="patch_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline" >
755                         <group id="black" posref="BR BR" sizeref="hw" inherit_gc_alpha="true"/>
756                         <view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="0" h="0" inherit_gc_alpha="true" scale="true" color="0 0 0 0" texture="blank.tga" global_color="false"/>
757                         <group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="0" y="-8" space="0" sizeref="hw" w="0" h="0" maxelements="2000"/>
758                 </group>
759         </group>
760     <tree node="cap_popup" />
762     <!-- update ui when one goes from start island to mainland -->
763     <link expr="depends(@SERVER:USER:IS_NEWBIE)" action="lua:game:onMissionJournalOpened()" />
764     <link expr="depends(@SERVER:USER:IS_TRIAL)" action="lua:game:onMissionJournalOpened()" />
765     <!--<link expr="depends(@LOCAL:INVENTORY:BAG)" action="lua:game:getRPJobs()" />-->
766     <!--***********************-->
767     <!--*   POPUP  MESSAGES   *-->
768     <!--***********************-->
769     <define id="popup_pos_y" value="80" />
770     <define id="popup_pos_y_center" value="150" />
771     <!-- Message popup -->
772     <template name="message_popup" keep="true" posparent="parent" posref="BM BM" h="16" id="">
773         <group id="#id" h="#h" child_resize_w="true" posparent="#posparent" posref="#posref" win_priority="%win_priority_highest" use_cursor="false">
774             <!-- do not change id (used for setting right skill name) -->
775             <view type="text" id="name" fontsize="10" posref="TL TL" shadow="true" global_color="false" line_maxw="1000" />
776             <!-- Delta -->
777             <!--<view type="text" id="delta" posparent="name" posref="TR TL" x="30" global_color="false" fontsize="10" shadow="true" color="255 0 0 255"/>-->
778         </group>
779     </template>
780     <!-- Message popup center -->
781     <template name="message_popup_center" keep="true" posparent="parent" posref="BM BM" id="">
782         <group id="#id" child_resize_h="true" sizeref="w9" w="0" posparent="#posparent" posref="#posref" win_priority="%win_priority_highest" use_cursor="false">
783             <!-- do not change id (used for setting right skill name) -->
784             <view type="text" id="name" fontsize="16" posref="TM TM" shadow="true" global_color="false" line_maxw="1000" multi_line="true" justification="centered" />
785             <view type="bitmap" id="iconA" posparent="name" posref="ML MR" w="16" h="16" x="-5" color="255 255 255 255" render_layer="1" slot="false" texture="" global_color="false" />
786             <view type="bitmap" id="iconZ" posparent="name" posref="MR ML" w="16" h="16" x="5" color="255 255 255 255" render_layer="1" slot="false" texture="" global_color="false" />
787         </group>
788     </template>
789     <!-- Skill popup -->
790     <template name="skill_popup" keep="true" posparent="parent" posref="BM BM" h="16" id="" skillid="">
791         <group id="#id" h="#h" child_resize_w="true" posparent="#posparent" posref="#posref" win_priority="%win_priority_highest" use_cursor="false">
792             <!-- do not change id (used for setting right skill name) -->
793             <view type="text" id="name" fontsize="10" posref="TL TL" shadow="true" global_color="false" />
794             <!-- Show Value of the skill and the Max_Skill. Do not change id -->
795             <view type="text" id="lvl" posparent="name" posref="TR TL" x="10" fontsize="10" shadow="true" global_color="false" />
796             <view type="text" id="sep" posparent="lvl" posref="TR TL" x="10" fontsize="10" shadow="true" hardtext="/" global_color="false" />
797             <view type="text" id="max" posparent="sep" posref="TR TL" x="10" fontsize="10" shadow="true" global_color="false" />
798             <!-- Delta -->
799             <view type="text" id="delta" posparent="max" posref="TR TL" x="30" global_color="false" fontsize="10" shadow="true" color="255 0 0 255" />
800         </group>
801         <!--***********************-->
802         <!--*    RPJOB TEMPLATES  *-->
803         <!--***********************-->
804     </template>
805     <template h="48" id="" name="rpjob_title" posparent="parent" posref="TL TL" sizeref="w" suffix="" text="" tooltip="" val="" w="0" x="0" y="0">
806         <group h="#h" id="#id" posparent="#posparent" posref="#posref" sizeref="#sizeref" w="#w" x="#margin_x" y="#y">
807             <view global_color="false" id="icon" posref="TL TL" texture="#rpjob_icon" type="bitmap" x="4" y="-4" />
808             <view color="#color" fontsize="16" hardtext="#text" id="t" posref="MR ML" posparent="icon" shadow="true" type="text" x="5" />
809         </group>
810     </template>
811     <template h="48" id="" name="rpjob_infos" posparent="parent" posref="TL TL" sizeref="w" suffix="" text="" tooltip="" val="" w="0" x="0" y="0">
812         <group h="#h" id="#id" posparent="#posparent" posref="#posref" sizeref="#sizeref" w="#w" x="#margin_x" y="#y">
813             <view color="0 0 0 255" h="48" w="48" scale="true" global_color="false" id="bg" posref="TL TL" parent="#id" texture="blank.tga" type="bitmap" />
814             <view global_color="false" id="icon" posref="TL TL" texture="#rpjob_icon" type="bitmap" x="4" y="-4" />
815             <view global_color="false" color="255 255 255 255" fontsize="13" id="t" posref="TR TL" posparent="icon" shadow="true" w="#w" type="text" x="10" />
816             <group h="20" id="bar3d" posref="BR BL" posparent="icon" sizeref="w" w="340" x="8" y="0">
817                 <instance inherit_gc_alpha="true" posref="BL BL" y="1" w="370" x="5" template="frame_widget" h="18" />
818                 <view color="0 0 0 255" h="16" id="bar" posparent="bar3d" posref="BL BL" scale="true" texture="blank.tga" type="bitmap" w="368" x="5" y="2" />
819                 <view h="16" id="level" posparent="bar3d" posref="BL BL" scale="true" texture="blank.tga" type="bitmap" w="368" x="5" y="2" />
820                 <view global_color="false" fontsize="12" hardtext="" id="t" posref="MM MM" posparent="bar" shadow="false" w="#w" type="text" y="-2" />
821             </group>
822             <view global_color="false" color="255 255 155 255" fontsize="11" hardtext="" id="echelon_value" posref="TR TR" posparent="bar3d" shadow="true" w="#w" type="text" x="-5" y="20" />
823             <view fontsize="11" hardtext="uiEchelon" id="echelon" posref="TL TR" posparent="echelon_value" shadow="true" w="#w" type="text" x="2" />
824         </group>
825     </template>
826     <!--***********************-->
827     <!--*     NPC WEB PAGE    *-->
828     <!--***********************-->
829     <group type="container" id="npc_web_browser" w="480" h="400" title="???" global_color="false" open_button="false" force_open_out="true" header_color="UI:SAVE:WIN:COLORS:HELP" resizer="true" pop_min_w="220" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" title_bar_open="false" lockable="true" openable="true" opened="true" movable="true" active="false" on_active="proc" on_active_params="npc_web_browser_proc_active" on_deactive="proc" on_deactive_params="npc_web_browser_proc_deactive" localize="false" active_savable="false">
830         <group id="header_closed" x="0" y="0" h="12" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" on_active="lua" on_active_params="game:closeNpcWebBrowserHeader()"></group>
831         <group id="header_opened" x="0" y="0" w="480" h="16" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" on_active="lua" on_active_params="game:openNpcWebBrowserHeader()">
832             <!-- must be frozen by default cause no undo/redo at start -->
833             <ctrl style="text_button_header" button_type="push_button" id="browse_redo" posref="MR MR" x="-16" y="0" hardtext="uiBrowseRedoButton" tooltip="uittBrowseRedo" onclick_l="browse_redo" params_l="name=ui:interface:npc_web_browser:content:html" frozen="true" />
834             <ctrl style="text_button_header" button_type="push_button" id="browse_undo" posparent="browse_redo" posref="ML MR" x="-4" y="0" hardtext="uiBrowseUndoButton" tooltip="uittBrowseUndo" onclick_l="browse_undo" params_l="name=ui:interface:npc_web_browser:content:html" frozen="true" />
835             <ctrl style="text_button_header" active="false" id="browse_filter" x="-16" y="0" posref="ML MR" posparent="browse_undo" text_y="0" onclick_l="lua" params_l="game.RingAccessPointFilter:open()" hardtext="uiRingAccessPointFilter" fontsize="10" />
836             <ctrl style="text_button_header" active="false" id="browse_refresh" x="-4" y="0" posref="ML MR" posparent="browse_filter" text_y="0" onclick_l="lua" params_l="game.RingAccessPointFilter:validate()" hardtext="uiBotChatRefresh" fontsize="10" />
837         </group>
838         <group id="content" x="0" y="0" w="0" h="0" posref="TL TL">
839             <group type="webig_html" id="html" posref="TL TL" posparent="parent" url="home" title_prefix="" sizeref="wh" x="0" y="0" w="0" h="0" background_color="0 0 0 255" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="100 255 100 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="10" paragraph_begin_space="1" multi_line_space_factor="0.25" td_begin_space="16" li_begin_space="4" ul_begin_space="12" li_indent="0" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="black2" home="" browse_next_time="true" form_text_area_group="edit_box_widget_multiline" browse_undo="ui:interface:npc_web_browser:header_opened:browse_undo" browse_redo="ui:interface:npc_web_browser:header_opened:browse_redo" lua_class="game:initNpcWebPage()">
840                 <group id="black" posref="BR BR" sizeref="hw" w="-12" h="-12" inherit_gc_alpha="true" />
841                 <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
842                 <view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
843                 <group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
844                 <ctrl style="skin_scroll" id="scroll_bar" />
845             </group>
846         </group>
847     </group>
848     <tree node="npc_web_browser" />
850     <template name="ark_mission" w="45" h="45" ctrl_h="44" keep="true" icon="blank.tga" tooltip="" text1="" text2="" text3="" text1_color="255 255 255 255" text2_color="255 255 255 255" text3_color="255 255 255 255" color="0 0 0 0" color_over="255 255 255 50" shadow="true" bg="w_slot_item.tga" params_l="" params_r="" tx_over="blank.tga" icon_x="0" icon_y="0" text_x="4" text_y="0">
851         <group id="#id" posref="MM MM" w="0" h="#h" x="0" y="0" sizeref="w">
852             <view type="bitmap" id="back" posref="ML ML" x="0" y="0" h="#h" w="#w" scale="true" texture="#bg" color="#color" global_color="false" />
853             <view type="bitmap" id="icon" posref="ML ML" w="40" h="40" scale="true" x="4" y="0" render_layer="3" posparent="back" texture="#icon" global_color="false" />
854             <view type="text" id="text1" x="#text_x" y="#text_y" w="0" sizeref="w" posparent="icon" posref="TR TL" color="#text1_color" shadow="#shadow" fontsize="10" hardtext="#text1" global_color="false" multi_line="true" />
855             <view type="text" id="text2" x="0" y="0" w="0" sizeref="w" posparent="text1" color="#text2_color" posref="BL TL" shadow="#shadow" fontsize="10" hardtext="#text2" global_color="false" multi_line_space="0" multi_line="true"  />
856             <view type="text" id="text3" x="0" y="0" w="0" sizeref="w" posparent="text2" color="#text3_color" posref="BL TL" shadow="#shadow" fontsize="10" hardtext="#text3" global_color="false" multi_line="false" />
857             <ctrl type="button" id="ctrl" button_type="push_button" global_color_normal="false" posref="ML ML" w="-6" x="1" y="0" tx_normal="#tx_over" tx_pushed="#bg" tx_over="#tx_over" scale="true" sizeref="w" h="#ctrl_h" tooltip="#tooltip" color="#color" col_over="#color_over" col_pushed="255 255 255 0" onclick_l="lua" params_l="#params_l" onclick_r="lua" params_r="#params_r" />
858         </group>
859     </template>
861     <group type="container" id="ark_mission_catalog" active="false" w="950" h="700" pop_max_w="950" pop_max_h="700" pop_min_w="950" pop_min_h="700" header_color="UI:SAVE:WIN:COLORS:COM" posref="TL TL" title="Mission Catalog" global_color="true" global_color_over="true" right_button="true" movable="true" lockable="true" openable="true" opened="true" resizer="true" active_savable="false" >
862         <group id="header_closed" x="0" y="0" w="120" h="16" posref="TL TL" on_active="lua" on_active_params="WebBrowser:saveWindowPop()"></group>
863         <group id="header_opened" x="0" y="0" w="950" h="16" posref="TL TL" on_active="lua" on_active_params="WebBrowser:restoreWindowPop()"></group>
864         <group id="content" x="0" y="0" w="0" h="0" posref="TL TL">
865             <group id="htmlA" type="html" posref="ML ML" url="http://app.ryzom.com" title_prefix="" sizeref="h" x="-16" y="10" w="220" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline" >
866                 <group id="black" posref="BR BR" sizeref="hw" w="-16" h="-12" inherit_gc_alpha="true"/>
867                 <view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" color="255 255 255 0"/>
868                 <group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000"/>
869                 <ctrl style="skin_scroll" id="scroll_bar" x="8"/>
870             </group>
871             <group id="htmlB" type="html" posref="ML ML" url="http://app.ryzom.com" title_prefix="" sizeref="h" x="190" y="10" w="740" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline" >
872                 <group id="black" posref="BR BR" sizeref="hw" w="-16" h="-12" inherit_gc_alpha="true"/>
873                 <view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" color="255 255 255 0"/>
874                 <group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000"/>
875                 <ctrl style="skin_scroll" id="scroll_bar" x="8"/>
876             </group>
877         </group>
878     </group>
879     <tree node="ark_mission_catalog" />
881         <group type="container" id="storyline_window" active="true" w="0" h="0" pop_max_w="0" pop_max_h="0" pop_min_w="0" pop_min_h="0"></group>
882     <tree node="storyline_window" />
884 </interface_config>