Merge branch 'master' of ssh://git.khaganat.net:1022/khaganat/khanat-data-client

This commit is contained in:
yannk 2016-09-17 21:52:23 +02:00
commit cd4d3a3cf9
12 changed files with 88 additions and 88 deletions

View file

@ -2130,21 +2130,21 @@ This MUST follow the Enum MISSION_DESC::TIconId
<define id="player_hp_base"
value="SERVER:CHARACTER_INFO:SCORES0:Base" />
<define id="player_sta"
value="UI:VARIABLES:USER:STA" />
value="UI:VARIABLES:USER:ChaScore2" />
<!-- Local because sent by impulse -->
<define id="player_sta_max"
value="SERVER:CHARACTER_INFO:SCORES1:Max" />
<define id="player_sta_base"
value="SERVER:CHARACTER_INFO:SCORES1:Base" />
<define id="player_sap"
value="UI:VARIABLES:USER:SAP" />
value="UI:VARIABLES:USER:ChaScore3" />
<!-- Local because sent by impulse -->
<define id="player_sap_max"
value="SERVER:CHARACTER_INFO:SCORES2:Max" />
<define id="player_sap_base"
value="SERVER:CHARACTER_INFO:SCORES2:Base" />
<define id="player_focus"
value="UI:VARIABLES:USER:FOCUS" />
value="UI:VARIABLES:USER:ChaScore4" />
<!-- Local because sent by impulse -->
<define id="player_focus_max"
value="SERVER:CHARACTER_INFO:SCORES3:Max" />

View file

@ -373,7 +373,7 @@
posref="TL TL"
color="214 56 7 255"
text="uiHP"
val="%target_hp" />
val="%target_ChaScore1" />
<instance template="text_tt"
posparent="jlife"
tooltip="uittTargetHp"
@ -1511,14 +1511,14 @@
mini="true"
x="-16"
color1="%sta_color"
value1="UI:VARIABLES:BARS:TEAM:#team_mate_index:STA"
value1="UI:VARIABLES:BARS:TEAM:#team_mate_index:ChaScore1"
range1="UI:CONST:127"
color2="%sap_color"
value2="UI:VARIABLES:BARS:TEAM:#team_mate_index:SAP"
value2="UI:VARIABLES:BARS:TEAM:#team_mate_index:ChaScore2"
range2="UI:CONST:127"
color3="%hp_color"
color3_negative="%hp_color_neg"
value3="UI:VARIABLES:BARS:TEAM:#team_mate_index:HP"
value3="UI:VARIABLES:BARS:TEAM:#team_mate_index:ChaScore1"
range3="UI:CONST:127" />
<view type="bitmap"
id="lead"

View file

@ -738,11 +738,11 @@
-->
<instance template="box_widget" id="box_cost" posref="BL BL" w="81" h="13" />
<view type="text_number" id="hp_cost" posparent="box_cost" posref="ML MM" x="14" y="-2" fontsize="8" shadow="true" value="SERVER:EXECUTE_PHRASE:LINK:#index:HP_COST" color="%hp_color" global_color="false" />
<view type="text_number" id="ChaScore1_cost" posparent="box_cost" posref="ML MM" x="14" y="-2" fontsize="8" shadow="true" value="SERVER:EXECUTE_PHRASE:LINK:#index:ChaScore1_COST" color="%hp_color" global_color="false" />
<view type="text" id="sep1" posparent="box_cost" posref="ML MM" x="27" y="-1" shadow="true" fontsize="10" hardtext="/" color="255 255 255 255" />
<view type="text_number" id="sap_cost" posparent="box_cost" posref="MM MM" x="0" y="-2" fontsize="8" shadow="true" value="SERVER:EXECUTE_PHRASE:LINK:#index:SAP_COST" color="%sap_color" global_color="false" />
<view type="text_number" id="ChaScore3_cost" posparent="box_cost" posref="MM MM" x="0" y="-2" fontsize="8" shadow="true" value="SERVER:EXECUTE_PHRASE:LINK:#index:ChaScore3_COST" color="%sap_color" global_color="false" />
<view type="text" id="sep2" posparent="box_cost" posref="ML MM" x="54" y="-1" shadow="true" fontsize="10" hardtext="/" color="255 255 255 255" />
<view type="text_number" id="sta_cost" posparent="box_cost" posref="MR MM" x="-14" y="-2" fontsize="8" shadow="true" value="SERVER:EXECUTE_PHRASE:LINK:#index:STA_COST" color="%sta_color" global_color="false" />
<view type="text_number" id="ChaScore2_cost" posparent="box_cost" posref="MR MM" x="-14" y="-2" fontsize="8" shadow="true" value="SERVER:EXECUTE_PHRASE:LINK:#index:ChaScore2_COST" color="%sta_color" global_color="false" />
</group>
<link expr="eq(@UI:VARIABLES:LINKS_INFOS, 0)" target="name_cost:active" />
@ -756,9 +756,9 @@
<view type="text_id" id="name" posref="TL TL" x="0" y="-1" h="10" shadow="true" fontsize="10" textid="SERVER:EXECUTE_PHRASE:LINK:#index:TARGET_NAME" />
<!-- Jauges Target -->
<view type="bar3" id="jauges" posref="BL BL" mini="true" y="1"
color1="%sta_color" value1="SERVER:EXECUTE_PHRASE:LINK:#index:TARGET_STA" range1="UI:CONST:127"
color2="%sap_color" value2="SERVER:EXECUTE_PHRASE:LINK:#index:TARGET_SAP" range2="UI:CONST:127"
color3="%hp_color" value3="SERVER:EXECUTE_PHRASE:LINK:#index:TARGET_HP" range3="UI:CONST:127" />
color1="%sta_color" value1="SERVER:EXECUTE_PHRASE:LINK:#index:TARGET_ChaScore2" range1="UI:CONST:127"
color2="%sap_color" value2="SERVER:EXECUTE_PHRASE:LINK:#index:TARGET_ChaScore3" range2="UI:CONST:127"
color3="%hp_color" value3="SERVER:EXECUTE_PHRASE:LINK:#index:TARGET_ChaScore1" range3="UI:CONST:127" />
</group>
<link expr="ifthenelse(eq(@UI:VARIABLES:LINKS_INFOS, 0), 154, 40)" target="target:x" />

View file

@ -47,57 +47,57 @@ end
-- Update player bars in function of what we wants to display (we can hide each one of the 3 bars : sap,stamina and focus)
function game:updatePlayerBars()
local dispSap = getDbProp('UI:SAVE:PLAYER:DISP_SAP');
local dispSta = getDbProp('UI:SAVE:PLAYER:DISP_STA');
local dispFoc = getDbProp('UI:SAVE:PLAYER:DISP_FOC');
local dispChaScore3 = getDbProp('UI:SAVE:PLAYER:DISP_ChaScore3');
local dispChaScore2 = getDbProp('UI:SAVE:PLAYER:DISP_ChaScore2');
local dispChaScore4 = getDbProp('UI:SAVE:PLAYER:DISP_ChaScore4');
local ui = getUI('ui:interface:player:content');
-- active ui in function of what is displayed
ui.b_sap.active = (dispSap == 1);
ui.jsap.active = (dispSap == 1);
ui.b_ChaScore3.active = (dispChaScore3 == 1);
ui.jChaScore3.active = (dispChaScore3 == 1);
ui.b_sta.active = (dispSta == 1);
ui.jsta.active = (dispSta == 1);
ui.b_ChaScore2.active = (dispChaScore2 == 1);
ui.jChaScore2.active = (dispChaScore2 == 1);
ui.b_foc.active = (dispFoc == 1);
ui.jfoc.active = (dispFoc == 1);
ui.b_ChaScore4.active = (dispChaScore4 == 1);
ui.jChaScore4.active = (dispChaScore4 == 1);
-- choose good y-position
local totalBarDisp = dispSap + dispSta + dispFoc;
if (totalBarDisp == 3) then
ui.b_sap.y = -20;
ui.b_sta.y = -35;
ui.b_foc.y = -50;
ui.b_ChaScore3.y = -20;
ui.b_ChaScore2.y = -35;
ui.b_ChaScore4.y = -50;
ui.current_action.y = -65;
elseif (totalBarDisp == 2) then
if (dispSap == 0) then
ui.b_sta.y = -20;
if (dispChaScore3 == 0) then
ui.b_ChaScore2.y = -20;
ui.b_ChaScore4.y = -35;
end
if (dispChaScore2 == 0) then
ui.b_ChaScore3.y = -20;
ui.b_foc.y = -35;
end
if (dispSta == 0) then
ui.b_sap.y = -20;
ui.b_foc.y = -35;
end
if (dispFoc == 0) then
ui.b_sap.y = -20;
ui.b_sta.y = -35;
if (dispChaScore4 == 0) then
ui.b_ChaScore3.y = -20;
ui.b_ChaScore2.y = -35;
end
ui.current_action.y = -50;
elseif (totalBarDisp == 1) then
ui.b_sta.y = -20;
ui.b_foc.y = -20;
ui.b_sta.y = -20;
ui.b_ChaScore2.y = -20;
ui.b_ChaScore4.y = -20;
ui.b_ChaScore2.y = -20;
ui.current_action.y = -35;
@ -864,10 +864,10 @@ function game:updatePhraseTooltip(phrase)
text = concatUCString(text, "@{CCCF}")
end
-- IMPORTANT : the following getters on 'phrase' take in account the 'total action malus' for the timebeing
self:setPhraseTooltipCarac(ttWin, "hp_cost", phrase:getHpCost())
self:setPhraseTooltipCarac(ttWin, "sta_cost", phrase:getStaCost())
self:setPhraseTooltipCarac(ttWin, "sap_cost", phrase:getSapCost())
self:setPhraseTooltipCarac(ttWin, "focus_cost", phrase:getFocusCost())
self:setPhraseTooltipCarac(ttWin, "ChaScore1_cost", phrase:getChaScore1Cost())
self:setPhraseTooltipCarac(ttWin, "ChaScore3_cost", phrase:getChaScore3Cost())
self:setPhraseTooltipCarac(ttWin, "ChaScore2_cost", phrase:getChaScore2Cost())
self:setPhraseTooltipCarac(ttWin, "ChaScore4_cost", phrase:getChascore4Cost())
self:setPhraseTooltipCarac(ttWin, "cast_time", phrase:getCastTime(), concatUCString(string.format("%.1f", phrase:getCastTime()), i18n.get("uittSeconds")))
local castRange = phrase:getCastRange()
if not phrase:isMagicPhrase() then
@ -935,10 +935,10 @@ function game:updateBuffItemTooltip(buffItem)
local ttWin = getUI("ui:interface:buff_item_context_help")
local text = buffItem:getName()
self:setPhraseTooltipCarac(ttWin, "hp_buff", buffItem:getHpBuff())
self:setPhraseTooltipCarac(ttWin, "sta_buff", buffItem:getStaBuff())
self:setPhraseTooltipCarac(ttWin, "sap_buff", buffItem:getSapBuff())
self:setPhraseTooltipCarac(ttWin, "focus_buff", buffItem:getFocusBuff())
self:setPhraseTooltipCarac(ttWin, "ChaScore1_buff", buffItem:getChaScore1Buff())
self:setPhraseTooltipCarac(ttWin, "ChaScore2_buff", buffItem:getChaScore2Buff())
self:setPhraseTooltipCarac(ttWin, "ChaScore3_buff", buffItem:getChaScore3Buff())
self:setPhraseTooltipCarac(ttWin, "ChaScore4_buff", buffItem:getChaScore4Buff())
updateTooltipCoords()
return text

View file

@ -199,17 +199,17 @@
<action id="sap_bardisplay"
name="uiSapBarDisplay"
handler="set"
params="dblink=UI:SAVE:PLAYER:DISP_SAP|value=not(@UI:SAVE:PLAYER:DISP_SAP)" />
params="dblink=UI:SAVE:PLAYER:DISP_ChaScore3|value=not(@UI:SAVE:PLAYER:DISP_ChaScore3)" />
<action id="sta_bardisplay"
name="uiStaBarDisplay"
handler="set"
params="dblink=UI:SAVE:PLAYER:DISP_STA|value=not(@UI:SAVE:PLAYER:DISP_STA)" />
params="dblink=UI:SAVE:PLAYER:DISP_ChaScore2|value=not(@UI:SAVE:PLAYER:DISP_ChaScore2)" />
<action id="foc_bardisplay"
name="uiFocBarDisplay"
handler="set"
params="dblink=UI:SAVE:PLAYER:DISP_FOC|value=not(@UI:SAVE:PLAYER:DISP_FOC)" />
params="dblink=UI:SAVE:PLAYER:DISP_ChaScore4|value=not(@UI:SAVE:PLAYER:DISP_ChaScore4)" />
</group>
<link expr="depends(@UI:SAVE:PLAYER:DISP_SAP, @UI:SAVE:PLAYER:DISP_STA, @UI:SAVE:PLAYER:DISP_FOC)"
<link expr="depends(@UI:SAVE:PLAYER:DISP_ChaScore3, @UI:SAVE:PLAYER:DISP_ChaScore2, @UI:SAVE:PLAYER:DISP_ChaScore4)"
action="lua"
params="game:updatePlayerBars()" />
<link expr="depends(@SERVER:CHARACTER_INFO:PVP_FACTION_TAG)"
@ -1126,7 +1126,7 @@
value2="#beast_db_entry:HUNGER"
range2="31"
color3="%hp_color"
value3="#bars_entry:HP"
value3="#bars_entry:ChaScore1"
range3="127" />
<ctrl type="tooltip"
id="tt"

View file

@ -158,10 +158,10 @@
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:NAME|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:TITLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:GUILD_NAME|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:HP|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:STA|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:SAP|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:FOCUS|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:ChaScore1|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:ChaScore2|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:ChaScore3|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:ChaScore4|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:ACTION|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:MESSAGES|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:PVP_LOGO|value=1" />
@ -169,10 +169,10 @@
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:NAME|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:TITLE|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:GUILD_NAME|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:HP|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:STA|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:SAP|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:FOCUS|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:ChaScore1|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:ChaScore3|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:ChaScore2|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:ChaScore4|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:MESSAGES|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:PVP_LOGO|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:NPCNAME|value=1" />
@ -183,7 +183,7 @@
<action handler="set" params="dblink=UI:SAVE:INSCENE:ENEMY:NAME|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:ENEMY:TITLE|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:ENEMY:GUILD_NAME|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:ENEMY:HP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:ENEMY:ChaScore1|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:ENEMY:MESSAGES|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:ENEMY:PVP_LOGO|value=1" />
@ -233,9 +233,9 @@
<action handler="set" params="dblink=UI:SAVE:NIGHT_COLOR|value=makeRGB(127,190,254)" />
<action handler="set" params="dblink=UI:SAVE:SHOW_3D_ITEM_PREVIEW|value=1" />
<action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_SAP|value=1" />
<action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_STA|value=1" />
<action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_FOC|value=1" />
<action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_ChaScore3|value=1" />
<action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_ChaScore2|value=1" />
<action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_ChaScore4|value=1" />
<action handler="set" params="dblink=UI:SAVE:ACT_BAR_OUT|value=1" />
<action handler="set" params="dblink=UI:SAVE:CHAT:FONT_SIZE|value=10" />

View file

@ -2042,7 +2042,7 @@
x="0"
y="-4" />
<instance template="tgcw_checkbox"
id="is_user_hp"
id="is_user_ChaScore1"
text="uiHP"
tooltip="uittHP"
posref="BL TL"
@ -2054,7 +2054,7 @@
text="uiSAP"
tooltip="uittSAP"
posref="BL TL"
posparent="is_user_hp"
posparent="is_user_ChaScore1"
x="0"
y="-4" />
<instance template="tgcw_checkbox"
@ -2159,7 +2159,7 @@
x="0"
y="-4" />
<instance template="tgcw_checkbox"
id="is_friend_hp"
id="is_friend_ChaScore1"
text="uiHP"
tooltip="uittHP"
posref="BL TL"
@ -2171,7 +2171,7 @@
text="uiSAP"
tooltip="uittSTA"
posref="BL TL"
posparent="is_friend_hp"
posparent="is_friend_ChaScore1"
x="0"
y="-4" />
<instance template="tgcw_checkbox"
@ -2300,7 +2300,7 @@
x="0"
y="-4" />
<instance template="tgcw_checkbox"
id="is_enemy_hp"
id="is_enemy_ChaScore1"
text="uiHP"
tooltip="uittHP"
posref="BL TL"
@ -2312,7 +2312,7 @@
text="uiPvpLogo"
tooltip="uittPvpLogo"
posref="BL TL"
posparent="is_enemy_hp"
posparent="is_enemy_ChaScore1"
x="0"
y="-4" />
</group>
@ -3548,25 +3548,25 @@
widget="boolbut"
link="UI:SAVE:INSCENE:USER:GUILD_NAME"
realtime="true" />
<param ui="in_scene_user:is_user_hp:c"
<param ui="in_scene_user:is_user_ChaScore1:c"
type="db"
widget="boolbut"
link="UI:SAVE:INSCENE:USER:HP"
link="UI:SAVE:INSCENE:USER:ChaScore1"
realtime="true" />
<param ui="in_scene_user:is_user_sap:c"
type="db"
widget="boolbut"
link="UI:SAVE:INSCENE:USER:SAP"
link="UI:SAVE:INSCENE:USER:ChaScore3"
realtime="true" />
<param ui="in_scene_user:is_user_sta:c"
type="db"
widget="boolbut"
link="UI:SAVE:INSCENE:USER:STA"
link="UI:SAVE:INSCENE:USER:ChaScore2"
realtime="true" />
<param ui="in_scene_user:is_user_focus:c"
type="db"
widget="boolbut"
link="UI:SAVE:INSCENE:USER:FOCUS"
link="UI:SAVE:INSCENE:USER:ChaScore4"
realtime="true" />
<param ui="in_scene_user:is_user_action:c"
type="db"
@ -3603,25 +3603,25 @@
widget="boolbut"
link="UI:SAVE:INSCENE:FRIEND:GUILD_NAME"
realtime="true" />
<param ui="in_scene_friend:is_friend_hp:c"
<param ui="in_scene_friend:is_friend_ChaScore1:c"
type="db"
widget="boolbut"
link="UI:SAVE:INSCENE:FRIEND:HP"
link="UI:SAVE:INSCENE:FRIEND:ChaScore1"
realtime="true" />
<param ui="in_scene_friend:is_friend_sap:c"
type="db"
widget="boolbut"
link="UI:SAVE:INSCENE:FRIEND:SAP"
link="UI:SAVE:INSCENE:FRIEND:ChaScore3"
realtime="true" />
<param ui="in_scene_friend:is_friend_sta:c"
type="db"
widget="boolbut"
link="UI:SAVE:INSCENE:FRIEND:STA"
link="UI:SAVE:INSCENE:FRIEND:ChaScore2"
realtime="true" />
<param ui="in_scene_friend:is_friend_focus:c"
type="db"
widget="boolbut"
link="UI:SAVE:INSCENE:FRIEND:FOCUS"
link="UI:SAVE:INSCENE:FRIEND:ChaScore4"
realtime="true" />
<param ui="in_scene_friend:is_friend_pvp_logo:c"
type="db"
@ -3673,10 +3673,10 @@
widget="boolbut"
link="UI:SAVE:INSCENE:ENEMY:GUILD_NAME"
realtime="true" />
<param ui="in_scene_enemy:is_enemy_hp:c"
<param ui="in_scene_enemy:is_enemy_ChaScore1:c"
type="db"
widget="boolbut"
link="UI:SAVE:INSCENE:ENEMY:HP"
link="UI:SAVE:INSCENE:ENEMY:ChaScore1"
realtime="true" />
<param ui="in_scene_enemy:is_ennemy_pvp_logo:c"
type="db"

View file

@ -1467,7 +1467,7 @@
<group type="webig_html"
id="html"
posref="TL TL"
url="http://app.ryzom.com/app_rpjobs/index.php"
url="http://app.khaganat.net"
title_prefix=""
sizeref="wh"
x="0"
@ -1502,7 +1502,7 @@
checkbox_bitmap_pushed="w_opacity_on.tga"
checkbox_bitmap_over=""
background_bitmap_view="black2"
home="http://app.ryzom.com/app_rpjobs/index.php"
home="http://app.khaganat.net"
browse_next_time="true"
form_text_area_group="edit_box_widget_multiline">
<group id="black"
@ -1602,7 +1602,7 @@
id="html"
posref="TL TL"
posparent="parent"
url="http://app.ryzom.com/app_profile/index.php"
url="http://app.khaganat.net"
title_prefix=""
sizeref="wh"
x="0"
@ -1637,7 +1637,7 @@
checkbox_bitmap_pushed="w_opacity_on.tga"
checkbox_bitmap_over=""
background_bitmap_view="black2"
home="http://app.ryzom.com/app_profile/index.php"
home="http://app.khaganat.net"
browse_next_time="true"
form_text_area_group="edit_box_widget_multiline">
<group id="black"

Binary file not shown.

View file

@ -173,7 +173,7 @@
sendto="EGS"
format="u8"
description="the client select a new slot to defend (or none)" />
<leaf name="FLYING_HP_DELTA"
<leaf name="FLYING_ChaScore1_DELTA"
description="add a flying text to an entity (u32 entity, u32 rgba, s16 delta)" />
<leaf name="FLYING_TEXT_ISE"
description="add a flying text to an entity (u32 entity, u32 rgba, u8 effect, s32 param)" />