mise a jour des bons fichiers sur le client khanat

This commit is contained in:
deed 2016-11-01 17:59:10 +01:00
parent 510b5672d3
commit 003480c4e9
15 changed files with 2175 additions and 1847 deletions

View file

@ -13,7 +13,16 @@
</proc>
<!-- Window for the background downloader -->
<group type="container" id="bg_downloader" title="uiBGD_WindowTitle" global_color="false" line_at_bottom="false"movable="true" opened="true" openable="false" pop_min_w="410" pop_min_h="100" pop_max_w="410" pop_max_h="100" h="100" w="410" active="false" savable="true" header_color="UI:SAVE:WIN:COLORS:OPT" on_deactive="proc" on_deactive_params="bg_downloader_deactive" on_active="proc" on_active_params="bg_downloader_active">
<group type="container" id="bg_downloader" title="uiBGD_WindowTitle" global_color="false" line_at_bottom="false"
movable="true" opened="true" openable="false"
pop_min_w="410" pop_min_h="100" pop_max_w="410" pop_max_h="100"
h="100"
w="410"
active="false"
savable="true"
header_color="UI:SAVE:WIN:COLORS:OPT"
on_deactive="proc" on_deactive_params="bg_downloader_deactive"
on_active="proc" on_active_params="bg_downloader_active">
<group id="header_closed" x="0" y="0" child_resize_w="true" h="16" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color">
</group>

View file

@ -583,11 +583,11 @@
<param name="title_offset_x"
value="8" />
<param name="title_offset_y"
value="-7" />
value="-10" />
<param name="title_offset_openable_x"
value="20" />
<param name="title_offset_openable_y"
value="-7" />
value="-10" />
<param name="scrollbar_offset_x"
value="6" />
<param name="scrollbar_size_w"
@ -732,11 +732,11 @@
<param name="title_offset_x"
value="56" />
<param name="title_offset_y"
value="-23" />
value="-26" />
<param name="title_offset_openable_x"
value="20" />
<param name="title_offset_openable_y"
value="-7" />
value="-10" />
<param name="scrollbar_offset_x"
value="6" />
<param name="scrollbar_size_w"
@ -873,11 +873,11 @@
<param name="title_offset_x"
value="28" />
<param name="title_offset_y"
value="-7" />
value="-10" />
<param name="title_offset_openable_x"
value="20" />
<param name="title_offset_openable_y"
value="-7" />
value="-10" />
<param name="scrollbar_offset_x"
value="6" />
<param name="scrollbar_size_w"
@ -1014,11 +1014,11 @@
<param name="title_offset_x"
value="8" />
<param name="title_offset_y"
value="-4" />
value="-6" />
<param name="title_offset_openable_x"
value="18" />
<param name="title_offset_openable_y"
value="-4" />
value="-6" />
<param name="header_h"
value="14" />
<param name="open_state_tx_opened"
@ -1109,11 +1109,11 @@
<param name="title_offset_x"
value="8" />
<param name="title_offset_y"
value="-3" />
value="-5" />
<param name="title_offset_openable_x"
value="20" />
<param name="title_offset_openable_y"
value="-3" />
value="-5" />
<param name="header_h"
value="12" />
<param name="open_state_tx_opened"
@ -1202,11 +1202,11 @@
<param name="title_offset_x"
value="8" />
<param name="title_offset_y"
value="-3" />
value="-5" />
<param name="title_offset_openable_x"
value="22" />
<param name="title_offset_openable_y"
value="-3" />
value="-5" />
<param name="header_h"
value="10" />
<param name="open_state_tx_opened"
@ -1295,11 +1295,11 @@
<param name="title_offset_x"
value="18" />
<param name="title_offset_y"
value="-3" />
value="-5" />
<param name="title_offset_openable_x"
value="24" />
<param name="title_offset_openable_y"
value="-3" />
value="-5" />
<param name="header_h"
value="10" />
<param name="open_state_tx_opened"
@ -1599,11 +1599,11 @@
<param name="title_offset_x"
value="8" />
<param name="title_offset_y"
value="-4" />
value="-6" />
<param name="title_offset_openable_x"
value="18" />
<param name="title_offset_openable_y"
value="-4" />
value="-6" />
<param name="header_h"
value="14" />
<!-- View state opened/closed (defined TL TL) -->
@ -1698,11 +1698,11 @@
<param name="title_offset_x"
value="8" />
<param name="title_offset_y"
value="0" />
value="-2" />
<param name="title_offset_openable_x"
value="40" />
<param name="title_offset_openable_y"
value="0" />
value="-2" />
<param name="header_h"
value="12" />
<!-- View state opened/closed (defined TL TL) -->
@ -2168,21 +2168,21 @@ This MUST follow the Enum MISSION_DESC::TIconId
value="SERVER:CHARACTER_INFO:SCORES3:Regen" />
<define id="player_ChaScore4reg_base"
value="SERVER:CHARACTER_INFO:SCORES3:BaseRegen" />
<define id="player_carac_ChaScore1max"
<define id="player_carac_Cha1max"
value="SERVER:CHARACTER_INFO:CHARACTERISTICS0:VALUE" />
<define id="player_carac_ChaScore1reg"
<define id="player_carac_Cha1Reg"
value="SERVER:CHARACTER_INFO:CHARACTERISTICS1:VALUE" />
<define id="player_carac_ChaScore3max"
<define id="player_carac_Cha3max"
value="SERVER:CHARACTER_INFO:CHARACTERISTICS2:VALUE" />
<define id="player_carac_ChaScore3reg"
<define id="player_carac_Cha3Reg"
value="SERVER:CHARACTER_INFO:CHARACTERISTICS3:VALUE" />
<define id="player_carac_ChaScore2max"
<define id="player_carac_Cha2max"
value="SERVER:CHARACTER_INFO:CHARACTERISTICS4:VALUE" />
<define id="player_carac_ChaScore2reg"
<define id="player_carac_Cha2Reg"
value="SERVER:CHARACTER_INFO:CHARACTERISTICS5:VALUE" />
<define id="player_carac_ChaScore4max"
<define id="player_carac_Cha4max"
value="SERVER:CHARACTER_INFO:CHARACTERISTICS6:VALUE" />
<define id="player_carac_ChaScore4reg"
<define id="player_carac_Cha4Reg"
value="SERVER:CHARACTER_INFO:CHARACTERISTICS7:VALUE" />
<define id="player_protect_acid"
value="SERVER:CHARACTER_INFO:MAGIC_PROTECTION:0:VALUE" />
@ -2767,9 +2767,6 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:SHOW_CLOCK"
type="bool"
value="false" />
<variable entry="UI:SAVE:SHOW_CLOCK_12H"
type="bool"
value="false" />
<variable entry="UI:SAVE:SHOW_RETICLE"
type="bool"
value="true" />
@ -2887,12 +2884,15 @@ This MUST follow the Enum MISSION_DESC::TIconId
type="bool"
value="true" />
<!-- Blend between day and night (lightLevel = 0 day) (lightLevel = 1 night) -->
<link expr="identity(ilinear(getLightLevel(), getRed(intToColor(@UI:SAVE:DAY_COLOR)), getRed(intToColor(@UI:SAVE:NIGHT_COLOR))), @UI:VARIABLES:CURRENT_TIME)"
target="@UI:SAVE:COLOR:R" />
<link expr="identity(ilinear(getLightLevel(), getGreen(intToColor(@UI:SAVE:DAY_COLOR)), getGreen(intToColor(@UI:SAVE:NIGHT_COLOR))), @UI:VARIABLES:CURRENT_TIME)"
target="@UI:SAVE:COLOR:G" />
<link expr="identity(ilinear(getLightLevel(), getBlue(intToColor(@UI:SAVE:DAY_COLOR)), getBlue(intToColor(@UI:SAVE:NIGHT_COLOR))), @UI:VARIABLES:CURRENT_TIME)"
target="@UI:SAVE:COLOR:B" />
<link expr="depends(@UI:VARIABLES:CURRENT_TIME)"
action="set"
params="dblink=UI:SAVE:COLOR:R|value=ilinear(getLightLevel(), getRed(intToColor(@UI:SAVE:DAY_COLOR)), getRed(intToColor(@UI:SAVE:NIGHT_COLOR)))" />
<link expr="depends(@UI:VARIABLES:CURRENT_TIME)"
action="set"
params="dblink=UI:SAVE:COLOR:G|value=ilinear(getLightLevel(), getGreen(intToColor(@UI:SAVE:DAY_COLOR)), getGreen(intToColor(@UI:SAVE:NIGHT_COLOR)))" />
<link expr="depends(@UI:VARIABLES:CURRENT_TIME)"
action="set"
params="dblink=UI:SAVE:COLOR:B|value=ilinear(getLightLevel(), getBlue(intToColor(@UI:SAVE:DAY_COLOR)), getBlue(intToColor(@UI:SAVE:NIGHT_COLOR)))" />
<!--<link expr="depends(@UI:VARIABLES:CURRENT_TIME)" action="set"
params="dblink=UI:SAVE:COLOR:A|value=ilinear(getLightLevel(), @UI:SAVE:DAY_COLOR:A, @UI:SAVE:NIGHT_COLOR:A)" />-->
<!-- The User Target Slot and UID -->
@ -3323,6 +3323,9 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:ISDETACHED:REGION_CHAT"
type="sint32"
value="0" />
<variable entry="UI:SAVE:ISDETACHED:YUBO_CHAT"
type="sint32"
value="0" />
<variable entry="UI:SAVE:ISENABLED:AROUND_ME"
type="sint32"
value="1" />
@ -3341,6 +3344,9 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:ISENABLED:SYSTEM_INFO"
type="sint32"
value="1" />
<variable entry="UI:SAVE:ISENABLED:YUBO_CHAT"
type="sint32"
value="1" />
<!-- List Menu 5 -->
<variable entry="UI:VARIABLES:ISACTIVE:BONUS_MALUS"
type="sint32"
@ -3701,13 +3707,27 @@ This MUST follow the Enum MISSION_DESC::TIconId
<define id="item_type_to_item_sheet_JOB_ELEMENT"
value="rpjob_elementary.sitem" />
<!-- ************************ -->
<!-- * YUBO CHAT * -->
<!-- ************************ -->
<!--
The Yubo Chat is a special telnet chat for Game Masters, same channel as the Yubo Klient
-->
<variable entry="UI:VARIABLES:ISACTIVE:YUBO_CHAT"
type="sint32"
value="0" />
<variable entry="UI:VARIABLES:YUBO_CHAT_PRESENT"
type="sint32"
value="0" />
<define id="is_yubo_chat_present"
value="ne(@UI:VARIABLES:YUBO_CHAT_PRESENT,0)" />
<!-- ************************ -->
<!-- * DYNAMIC CHAT * -->
<!-- ************************ -->
<define id="max_dyn_chan_per_player"
value_from_code="getMaxDynChanPerPlayer()" />
<variable entry="UI:SAVE:ISDETACHED:DYNAMIC_CHAT$i"
type="sint32"
value="0"
value="1"
size="%max_dyn_chan_per_player" />
<variable entry="UI:SAVE:ISENABLED:DYNAMIC_CHAT$i"
type="sint32"
@ -3751,7 +3771,7 @@ This MUST follow the Enum MISSION_DESC::TIconId
value_from_code="getMaxTeamMember()" />
<define id="max_fame_tribe"
value_from_code="lua:getNbTribeFameIndex()" />
<!-- Team Members (ChaScore4 not setuped) -->
<!-- Team Members (FOCUS not setuped) -->
<variable entry="UI:VARIABLES:BARS:TEAM:$i:ChaScore1"
type="sint32"
value="0"
@ -3764,7 +3784,7 @@ This MUST follow the Enum MISSION_DESC::TIconId
type="sint32"
value="0"
size="%max_team_member" />
<!-- Animal (only ChaScore1) -->
<!-- Animal (only HP) -->
<variable entry="UI:VARIABLES:BARS:ANIMAL:$i:ChaScore1"
type="sint32"
value="0"

View file

@ -183,7 +183,7 @@
posref="BL BL"
scale="true"
y="4"
w="110"
w="130"
h="2"
texture="W_line_hor2.tga" />
<view type="text"
@ -202,7 +202,7 @@
posref="MM MM"
x="0"
y="-1"
w="110"
w="130"
h="8"
vertical="false"
align="L"
@ -246,7 +246,7 @@
posref="BL BL"
scale="true"
y="4"
w="110"
w="130"
h="2"
texture="W_line_hor2.tga" />
<view type="text"
@ -265,7 +265,7 @@
posref="MM MM"
x="0"
y="-1"
w="110"
w="130"
h="8"
vertical="false"
align="L"

View file

@ -87,7 +87,7 @@
y="0"
fontsize="12"
shadow="true"
case_mode="%case_first_word_letter_up" />
case_mode="%case_normal" />
<view type="text"
id="grade"
x="158"

View file

@ -138,7 +138,7 @@
x="0"
y="6"
posref="BM BM"
text_y="-2"
text_y="-0"
onclick_l="proc"
params_l="welcome_close"
hardtext="uittOK" />
@ -199,7 +199,7 @@
x="-15"
y="10"
posref="BM BM"
text_y="-2"
text_y="-0"
onclick_l="proc"
params_l="active_hardware_cursor"
hardtext="uiYes" />
@ -208,7 +208,7 @@
y="0"
posparent="active_ok"
posref="BR BL"
text_y="-2"
text_y="-0"
onclick_l="proc"
params_l="close_hardware_cursor"
hardtext="uiNo" />
@ -316,7 +316,7 @@
x="0"
y="6"
posref="BM BM"
text_y="-2"
text_y="-0"
onclick_l="proc"
params_l="universe_chanel_warning_close"
hardtext="uittOK" />
@ -356,9 +356,9 @@
</proc>
<group type="container"
id="death_warning"
w="400"
pop_min_w="400"
pop_max_w="400"
w="500"
pop_min_w="500"
pop_max_w="500"
h="250"
pop_min_h="250"
pop_max_h="250"
@ -401,7 +401,7 @@
id="death_warning_text"
posref="TM TM"
x="0"
y="-20"
y="-10"
color="255 255 255 255"
fontsize="12"
shadow="true"
@ -416,6 +416,7 @@
y="30"
w="0"
h="16"
y_text="-5"
fontsize="10"
hardtext="uiDeathWarningAvoid"
dblink="UI:VARIABLES:TEMP_DEATH_WARNING_AVOID"
@ -424,7 +425,7 @@
x="0"
y="6"
posref="BM BM"
text_y="-2"
text_y="-0"
onclick_l="proc"
params_l="death_warning_close"
hardtext="uittOK" />
@ -463,9 +464,9 @@
</proc>
<group type="container"
id="night_warning"
w="400"
pop_min_w="400"
pop_max_w="400"
w="500"
pop_min_w="500"
pop_max_w="500"
h="250"
pop_min_h="250"
pop_max_h="250"
@ -508,7 +509,7 @@
id="night_warning_text"
posref="TM TM"
x="0"
y="-20"
y="-10"
color="255 255 255 255"
fontsize="12"
shadow="true"
@ -531,7 +532,7 @@
x="0"
y="6"
posref="BM BM"
text_y="-2"
text_y="-0"
onclick_l="proc"
params_l="night_warning_close"
hardtext="uittOK" />
@ -863,10 +864,8 @@
</group>
</group>
</group>
<!--<define id="cs_url"
value="http://app.ryzom.com/ticket_system/index.php?mode=load" />-->
<define id="cs_url"
value="http://lirria.khaganat.net/ams/" />
value="https://app.khaganat.net/ams/" />
<group type="container"
id="cs_browser"
w="410"
@ -907,22 +906,7 @@
group_params_r="menu=ui:interface:base_menu_with_color"
on_active="lua"
on_active_params="help:openCSBrowserHeader('cs_browser')">
<!--Quitta start-->
<ctrl style="text_button_header"
button_type="push_button"
id="browse_home"
posref="MR MR"
x="-16"
y="0"
hardtext="AMS-HOME"
tooltip="uittBrowseHome"
onclick_l="browse_home"
params_l="name=ui:interface:cs_browser:content:html"
frozen="false" />
<!--Quitta end-->
</group>
<group id="content"
x="0"
@ -937,9 +921,9 @@
url="home"
title_prefix="uiHelpTitle"
sizeref="wh"
x="2"
x="184"
y="0"
w="-4"
w="-190"
h="0"
background_color="0 0 0 255"
error_color="255 240 48 255"
@ -960,7 +944,7 @@
h6_font_size="12"
paragraph_begin_space="12"
multi_line_space_factor="0.25"
td_begin_space="10"
td_begin_space="0"
li_begin_space="4"
ul_begin_space="12"
li_indent="-10"
@ -1007,6 +991,43 @@
<ctrl style="skin_scroll"
id="scroll_bar" />
</group>
<group id="sbtree"
posref="TL TL"
x="0"
y="-12"
sizeref="h"
w="180"
h="-12">
<group id="black"
posref="BR BR"
sizeref="hw"
w="-12"
h="0"
inherit_gc_alpha="true" />
<instance template="inner_thin_border"
posparent="black"
inherit_gc_alpha="true" />
<group id="tree_list"
type="tree"
posref="TL TL"
x="16"
y="-4"
col_over="255 255 255 48"
col_select="255 255 255 80"
fontsize="10"
max_sizeparent="parent"
max_sizeref="wh"
max_w="-20"
max_h="-10">
<node name="uiCSBase"
handler="launch_help"
params="help_container=ui:interface:cs_browser|url=%cs_url" />
</group>
<ctrl style="skin_scroll"
id="scroll_bar"
align="T"
target="tree_list" />
</group>
</group>
</group>
<!--******************-->
@ -2809,7 +2830,7 @@
global_color_normal="true"
global_color_over="true"
global_color_pushed="true"
text_y="-2"
text_y="-0"
fontsize="10"
shadow="true"
case_mode="%case_upper"
@ -2868,21 +2889,21 @@
x="4"
y="0"
posref="TL TL"
text_y="-2"
text_y="-0"
onclick_l="proc"
params_l="proc_stat_report_yes"
hardtext="uiYes" />
<ctrl style="button_cancel"
x="4"
posparent="ok"
text_y="-2"
text_y="-0"
posref="TR TL"
onclick_l="leave_modal"
hardtext="uiNo" />
<ctrl style="button_always"
x="4"
posparent="cancel"
text_y="-2"
text_y="-0"
posref="TR TL"
onclick_l="proc"
params_l="proc_stat_report_always"

View file

@ -267,27 +267,27 @@ function game:onDrawNpcWebPage()
local available
if config.Local == 1 then
available = (NicoMagicURL ~= "")
else
available = isDynStringAvailable(self.NpcWebPage.UrlTextId)
else
available = isDynStringAvailable(self.NpcWebPage.UrlTextId)
end
if(available) then
if(available) then
local ucUrl
if config.Local == 1 then
ucUrl = ucstring(NicoMagicURL) -- for test in local mode
ucUrl = ucstring(NicoMagicURL) -- for test in local mode
else
ucUrl = getDynString(self.NpcWebPage.UrlTextId);
end
-- browse
local uiStr= getUIId(getUICaller());
-- if the url
-- if the url
local utf8Url = ucUrl:toUtf8()
local isRing = string.find(utf8Url, "ring_access_point=1") ~= nil
local isRing = string.find(utf8Url, "ring_access_point=1") ~= nil
if isRing then
getUI("ui:interface:npc_web_browser").active = false
runAH(nil, "context_ring_sessions", "")
return
else
local hideWindow = string.find(utf8Url, "_hideWindow=1") ~= nil
local hideWindow = string.find(utf8Url, "_hideWindow=1") ~= nil
if hideWindow then
getUI("ui:interface:npc_web_browser").active = false
end
@ -336,14 +336,14 @@ function game:startNpcWebPage()
end
------------------------------------------------------------------------------------------------------------
--
--
function game:closeNpcWebBrowserHeader()
local ui = getUI('ui:interface:npc_web_browser');
-- save size
ui_npc_web_browser_h = ui.h;
ui_npc_web_browser_w = ui.w;
-- reduce window size
ui.pop_min_h = 32;
ui.h = 0;
@ -351,7 +351,7 @@ function game:closeNpcWebBrowserHeader()
end
------------------------------------------------------------------------------------------------------------
--
--
function game:openNpcWebBrowserHeader()
local ui = getUI('ui:interface:npc_web_browser');
ui.pop_min_h = 96;
@ -360,7 +360,7 @@ function game:openNpcWebBrowserHeader()
if (ui_npc_web_browser_h ~= nil) then
ui.h = ui_npc_web_browser_h;
end
if (ui_npc_web_browser_w ~= nil) then
ui.w = ui_npc_web_browser_w;
end
@ -538,7 +538,7 @@ function game:updateFameBar(path)
uiMaxLimit.x = barX + barW * (fameMax + 100) / 200;
-- init bar3d
if (bar3dStart < bar3dLimit) then
if (bar3dStart < bar3dLimit) then
uiBar3d.x= bar3dStart;
uiBar3d.w= bar3dLimit-bar3dStart;
else
@ -553,7 +553,7 @@ function game:updateFameBarTT(path)
local fameMax = getDbProp(path .. ':THRESHOLD');
local text = i18n.get('uittFameMaxPossible');
text = findReplaceAll(text, '%famemax', tostring(fameMax));
text = findReplaceAll(text, '%famemax', tostring(fameMax));
setContextHelpText(text);
end
@ -564,12 +564,12 @@ function game:getPvpEffects()
local i;
local hasBonus = false;
local hasMalus = false;
local text = ''
local textBonus = '';
local textMalus = '';
local fmt;
-- check every malus and bonus
for i=0, n do
local path = formatUI('SERVER:PVP_EFFECTS:#1', i);
@ -611,7 +611,7 @@ function game:getPvpEffects()
end
------------------------------------------------------------------------------------------------------------
function game:getFactionName(id)
function game:getFactionName(id)
if (id == self.TPVPClan.Kami) then
return i18n.get('uiFameKami');
elseif (id == self.TPVPClan.Karavan) then
@ -636,10 +636,10 @@ function game:getAllegiancePoints()
local civPoints = getDbProp(path .. ':CIV_POINTS');
local cult = getDbProp(path .. ':CULT');
local cultPoints = getDbProp(path .. ':CULT_POINTS');
local text;
local uiGroup= getUICaller();
-- civ allegiance
if (civ == self.TPVPClan.None or civ == self.TPVPClan.Neutral) then
text = i18n.get('uiPvpFameNoCivAllegiance');
@ -647,9 +647,9 @@ function game:getAllegiancePoints()
text = i18n.get('uiPvpFameAllegiancePoints');
text = findReplaceAll(text, '%faction', self:getFactionName(civ));
text = findReplaceAll(text, '%points', tostring(civPoints));
end
end
uiGroup.civ_allegiance_pts.uc_hardtext_format = text;
-- cult allegiance
if (cult == self.TPVPClan.None or cult == self.TPVPClan.Neutral) then
text = i18n.get('uiPvpFameNoCultAllegiance');
@ -698,11 +698,11 @@ function game:fameAllegianceTooltipCultGuild()
end
------------------------------------------------------------------------------------------------------------
--
--
function game:tooltipDeltaValue(base, max)
-- Calculate delta
local val = max - base;
local text;
if (val == 0) then
text = concatUCString('@{FFFF}', tostring(max));
@ -729,37 +729,37 @@ function game:tooltipDeltaValue(base, max)
text = concatUCString(text, ')');
end
end
return text;
end
------------------------------------------------------------------------------------------------------------
--
--
function game:tooltipScore(dbBase, dbMax, ttFormat)
-- Get DB values
local base = getDbProp(dbBase);
local max = getDbProp(dbMax);
-- Tooltip text
local fmt = i18n.get(ttFormat);
local text = self:tooltipDeltaValue(base, max);
fmt = findReplaceAll(fmt, "%n", text );
-- Set tooltip
setContextHelpText(fmt);
end
------------------------------------------------------------------------------------------------------------
--
--
function game:tooltipScoreEP(dbBase, dbMax, ttFormat, dbLvl, dbMod)
-- Defender level
local defLvl= getDbProp(formatUI(dbLvl));
defLvl = math.max(0, defLvl);
-- Attacker level
local attLvl = getBaseSkillValueMaxChildren(getSkillIdFromName('SF'));
-- Get DB values
local base = getDbProp(dbBase);
local max = getDbProp(dbMax);
@ -774,7 +774,7 @@ function game:tooltipScoreEP(dbBase, dbMax, ttFormat, dbLvl, dbMod)
fmt = findReplaceAll(fmt, "%n", text );
fmt = findReplaceAll(fmt, "%l", tostring(attLvl));
fmt = findReplaceAll(fmt, "%p", textChance);
-- Set tooltip
setContextHelpText(fmt);
end
@ -786,7 +786,7 @@ end
---------------------------------- RING STATS ---------------------------------------------------
-------------------------------------------------------------------------------------------------------------
RingPlayerInfo =
RingPlayerInfo =
{
WaitingInfo = false,
LastRefreshTime = 0,
@ -810,7 +810,7 @@ end
--
function RingPlayerInfo:initRingStatPlayer()
setOnDraw(self:getWindow(), "RingPlayerInfo:onRingRatingPlayerDraw()")
setOnDraw(self:getWindow(), "RingPlayerInfo:onRingRatingPlayerDraw()")
end
--------------------------------------------------------------------------------------------------------------
@ -819,16 +819,16 @@ function RingPlayerInfo:onRingRatingPlayerDraw()
local timeInSec = nltime.getLocalTime() / 1000
if self.WaitingInfo then
if timeInSec - self.LastRefreshTime > self.WaitingPeriod then
if timeInSec - self.LastRefreshTime > self.WaitingPeriod then
self.WaitingInfo = false
self.LastRefreshTime = nltime.getLocalTime() / 1000
else
else
if not self.InfoReceived then
--debugInfo("No received info")
end
end
else
if timeInSec - self.LastRefreshTime > self.RefreshPeriod then
if timeInSec - self.LastRefreshTime > self.RefreshPeriod then
self:refresh()
else
--debugInfo("pas de refresh")
@ -844,7 +844,7 @@ function RingPlayerInfo:updatePendingRefresh()
if self.PendingRefresh then
local currTime = nltime.getLocalTime() / 1000
if currTime - self.LastRefreshQuerryTime > self.MinRefreshPeriod and game.getRingStats then
if currTime - self.LastRefreshQuerryTime > self.MinRefreshPeriod and game.getRingStats then
self.LastRefreshQuerryTime = currTime
self.PendingRefresh = false
game.getRingStats()
@ -924,10 +924,10 @@ end
--
function RingPlayerInfo:refresh()
self.PendingRefresh = true
self.PendingRefresh = true
self.LastRefreshTime = nltime.getLocalTime() / 1000
self.WaitingInfo = true
end
end
--------------------------------------------------------------------------------------------------------------
--
@ -937,7 +937,7 @@ function RingPlayerInfo:tooltipEcosystemPoints(rp, maxRp, ttFormat)
local fmt = i18n.get(ttFormat);
fmt = findReplaceAll(fmt, "%n", rp );
fmt = findReplaceAll(fmt, "%p", maxRp );
-- Set tooltip
return fmt;
end
@ -954,8 +954,8 @@ function RingPlayerInfo:updateRRPSLevel(dbVal, tooltip)
local ui= getUICaller();
local uiText= ui.val;
-- set the text
uiText.uc_hardtext= tostring(val)
-- set the text
uiText.uc_hardtext= tostring(val)
self:tooltipRRPs(dbVal, tooltip)
end
@ -970,7 +970,7 @@ function RingPlayerInfo:tooltipRRPs(dbBase, ttFormat)
local fmt = i18n.get(ttFormat);
local text = tostring(val)
fmt = findReplaceAll(fmt, "%n", text );
-- Set tooltip
setContextHelpText(fmt);
end
@ -1013,7 +1013,7 @@ end
--------------------------------------------------------------------------------------------------------------
--
function game:updateOrganization(path, uiOrgText, uiStatusText, uiPointsText)
local org = getDbProp(path.."1:VALUE")
getUICaller()[uiOrgText].uc_hardtext = i18n.get('uiOrganization_' .. org)
@ -1022,7 +1022,7 @@ function game:updateOrganization(path, uiOrgText, uiStatusText, uiPointsText)
local points = getDbProp(path.."3:VALUE")
getUICaller()[uiPointsText].uc_hardtext= points
end
------------------------------------------------------------------------------------------------------------
@ -1033,10 +1033,10 @@ end
--------------------------------------------------------------------------------------------------------------
function game:popMissionList()
local menu = getUI("ui:interface:mission_cb_menu")
function game:popMissionList()
local menu = getUI("ui:interface:mission_cb_menu")
enableModalWindow(getUICaller(), "ui:interface:mission_cb_menu")
self:updateMissionMenuSize()
self:updateMissionMenuSize()
end
@ -1053,12 +1053,12 @@ function game:getMissionDbPath(missionIndex)
return "SERVER:GROUP:MISSIONS:" .. tostring(missionIndex - numMissions)
else
return "SERVER:MISSIONS:" .. tostring(missionIndex)
end
end
end
--------------------------------------------------------------------------------------------------------------
function game:getCurrMissionIndex()
local result = getDbProp("UI:SAVE:MISSION_SELECTED")
function game:getCurrMissionIndex()
local result = getDbProp("UI:SAVE:MISSION_SELECTED")
return result
end
@ -1071,10 +1071,10 @@ end
function game:updateCurrMissionComboBox()
local numMissions = tonumber(getDefine("ipj_nb_mission"))
local missionFound = false
local cb = getUI("ui:interface:info_player_journal:content:mission_combo")
local missionList = getUI("ui:interface:info_player_journal:content:mission_list")
local cb = getUI("ui:interface:info_player_journal:content:mission_combo")
local missionList = getUI("ui:interface:info_player_journal:content:mission_list")
for i = 0, numMissions - 1 do
if getDbProp("SERVER:MISSIONS:" .. i .. ":TITLE") ~= 0
if getDbProp("SERVER:MISSIONS:" .. i .. ":TITLE") ~= 0
or getDbProp("SERVER:GROUP:MISSIONS:" .. i .. ":TITLE") ~= 0 then
missionFound = true
break
@ -1095,20 +1095,20 @@ function game:updateCurrMissionComboBox()
missionList.no_available_mission.active = false
cb.arrow.active = true
cb.select.active = true
local currMission = self:getCurrMissionIndex()
local currMission = self:getCurrMissionIndex()
local dbPath = self:getMissionDbPath(currMission)
--
local selected = (currMission ~= -1)
local dbPath = self:getMissionDbPath(currMission)
--
local selected = (currMission ~= -1)
if selected then
cb.mission_title.textid_dblink = dbPath .. ":TITLE"
selected = (tile ~= 0)
end
end
cb.mission_ico.active = selected
cb.mission_title.active = selected
cb.no_selected_mission.active = not selected
missionList.no_selected_mission.active = not selected
if selected then
if selected then
if getDbProp(dbPath .. ":FINISHED") == 0 then
cb.mission_ico.texture = runExpr("getMissionSmallIcon(" .. tostring(getDbProp(dbPath .. ":ICON") .. ")"))
elseif getDbProp(dbPath .. ":FINISHED") == 1 then
@ -1116,17 +1116,17 @@ function game:updateCurrMissionComboBox()
else
cb.mission_ico.texture = "Small_Task_Failed.tga"
end
end
end
end
--------------------------------------------------------------------------------------------------------------
function game:onMissionSelected(index)
function game:onMissionSelected(index)
disableModalWindow()
self:updateCurrMissionComboBox()
end
--------------------------------------------------------------------------------------------------------------
function game:onGroupMissionSelected(index)
function game:onGroupMissionSelected(index)
disableModalWindow()
self:updateCurrMissionComboBox()
end
@ -1138,33 +1138,33 @@ function game:onMissionDBIndexChanged()
-- if selection was made from the list, update the other list
if missionIndex >= self:getGroupMissionFirstIndex() then
local groupMissionIndex = missionIndex - self:getGroupMissionFirstIndex()
getUI("ui:interface:info_player_journal:content:mission_list:b_group_title" .. tostring(groupMissionIndex)).pushed = true
getUI("ui:interface:info_player_journal:content:mission_list:b_group_title" .. tostring(groupMissionIndex)).pushed = true
getUI("ui:interface:mission_cb_menu:mission_list:b_group_title" .. tostring(groupMissionIndex)).pushed = true
else
getUI("ui:interface:info_player_journal:content:mission_list:b_title" .. tostring(missionIndex)).pushed = true
getUI("ui:interface:info_player_journal:content:mission_list:b_title" .. tostring(missionIndex)).pushed = true
getUI("ui:interface:mission_cb_menu:mission_list:b_title" .. tostring(missionIndex)).pushed = true
end
end
--------------------------------------------------------------------------------------------------------------
function game:onMissionTitleChanged(index)
function game:onMissionTitleChanged(index)
-- if title is not nil then a new mission has been added -> if db initilization is over, then selected this new mission
if getDbProp(self:getMissionDbPath(index) .. ":TITLE") ~= 0 then
if game.InGameDbInitialized or config.Local then
if getDbProp(self:getMissionDbPath(index) .. ":TITLE") ~= 0 then
if game.InGameDbInitialized or config.Local then
self:setCurrentMission(index)
end
else
else
self:updateCurrMissionComboBox()
self:updateMissionMenuSize()
end
end
--------------------------------------------------------------------------------------------------------------
function game:onGroupMissionTitleChanged(index)
if getDbProp(self:getMissionDbPath(index + 15) .. ":TITLE") ~= 0 then
if game.InGameDbInitialized or config.Local then
function game:onGroupMissionTitleChanged(index)
if getDbProp(self:getMissionDbPath(index + 15) .. ":TITLE") ~= 0 then
if game.InGameDbInitialized or config.Local then
self:setCurrentMission(index + 15)
end
else
else
self:updateCurrMissionComboBox()
self:updateMissionMenuSize()
end
@ -1174,21 +1174,21 @@ end
function game:updateMissionMenuSize()
local parentCB = getUI("ui:interface:info_player_journal:content:mission_combo")
local menu = getUI("ui:interface:mission_cb_menu")
if not menu.active then return end
if not menu.active then return end
local maxNumMissions = 2 * self:getGroupMissionFirstIndex()
local missionCount = 0
local missionCount = 0
for k = 0, maxNumMissions - 1 do
if getDbProp(self:getMissionDbPath(k) .. ":TITLE") ~= 0 then
missionCount = missionCount + 1
missionCount = missionCount + 1
end
end
end
menu.h = 8 + missionCount * 18
menu.y = 0
menu:updateCoords()
local y = parentCB.y_real - menu.h_real - 1
if y < 0 then
y = parentCB.y_real + parentCB.h_real + 1
end
end
local scrW
local scrH
scrW, scrH = getWindowSize()
@ -1197,7 +1197,7 @@ function game:updateMissionMenuSize()
end
menu.w = parentCB.w_real
menu.y = y
menu.x = parentCB.x_real
menu.x = parentCB.x_real
menu.h = 8 + missionCount * 18
menu:invalidateCoords()
end
@ -1205,7 +1205,7 @@ end
--------------------------------------------------------------------------------------------------------------
--function game:updateMissionDescCloseButton(index)
-- local dbPath = self:getMissionDbPath(index)
-- if index == self:getCurrMissionIndex() then
-- if index == self:getCurrMissionIndex() then
-- local closeText = getUI("ui:interface:info_player_journal:content:desc:close")
-- local button = getUI("ui:interface:info_player_journal:content:desc:uppart:over_icon")
-- local finished = getDbProp(dbPath .. ":FINISHED")
@ -1224,29 +1224,29 @@ end
--end
--------------------------------------------------------------------------------------------------------------
function game:onMissionFinished(index)
self:updateCurrMissionComboBox()
function game:onMissionFinished(index)
self:updateCurrMissionComboBox()
--self:updateMissionDescCloseButton(index)
end
--------------------------------------------------------------------------------------------------------------
function game:onGroupMissionFinished(index)
function game:onGroupMissionFinished(index)
self:updateCurrMissionComboBox()
--self:updateMissionDescCloseButton(index + game:getGroupMissionFirstIndex())
end
--------------------------------------------------------------------------------------------------------------
function game:expandMissionList()
local missionCB = getUI("ui:interface:info_player_journal:content:mission_combo")
function game:expandMissionList()
local missionCB = getUI("ui:interface:info_player_journal:content:mission_combo")
missionCB.active = not missionCB.active
self:updateMissionWindowLayout()
end
--------------------------------------------------------------------------------------------------------------
function game:updateMissionWindowLayout()
function game:updateMissionWindowLayout()
if not isInRingMode() then
local missionCB = getUI("ui:interface:info_player_journal:content:mission_combo")
local missionList = getUI("ui:interface:info_player_journal:content:mission_list")
local missionList = getUI("ui:interface:info_player_journal:content:mission_list")
local fake = getUI("ui:interface:info_player_journal:content:fake")
local sepBis = getUI("ui:interface:info_player_journal:content:separator_bis")
local desc = getUI("ui:interface:info_player_journal:content:desc")
@ -1254,18 +1254,18 @@ function game:updateMissionWindowLayout()
local popMinH
local win = getUI("ui:interface:info_player_journal")
if missionCB.active then
sepBis.active = false
if missionCB.active then
sepBis.active = false
missionList.active = false
fake.sizeref=""
fake.y = -32
fake.h = 0
expanded = 0
expanded = 0
desc.max_sizeref ="wh"
desc.max_h= -42
win.pop_min_h = 152 - win.content_y_offset
else
sepBis.active = true
else
sepBis.active = true
missionList.active = true
fake.sizeref="wh5"
fake.y = -8
@ -1274,23 +1274,23 @@ function game:updateMissionWindowLayout()
desc.max_sizeref ="wh5"
desc.max_h=16
win.pop_min_h = 152 - win.content_y_offset
end
end
local fixedEntry = getUI("ui:interface:info_player_journal:content:mission_fixed_entry")
local fixedEntry = getUI("ui:interface:info_player_journal:content:mission_fixed_entry")
fixedEntry:updateCoords()
desc.max_h = desc.max_h - fixedEntry.h
setDbProp("UI:SAVE:EXPAND_MISSION_LIST", expanded)
getUI("ui:interface:info_player_journal"):invalidateCoords()
getUI("ui:interface:info_player_journal"):invalidateCoords()
end
end
--------------------------------------------------------------------------------------------------------------
function game:onMissionJournalOpened()
function game:onMissionJournalOpened()
local missionDesc = getUI("ui:interface:info_player_journal:content:desc")
missionDesc.active = getDbProp("UI:SAVE:MISSION_SELECTED") ~= -1
missionDesc.active = getDbProp("UI:SAVE:MISSION_SELECTED") ~= -1
local expandList = getDbProp("UI:SAVE:EXPAND_MISSION_LIST")
local expandList = getDbProp("UI:SAVE:EXPAND_MISSION_LIST")
self:updateMissionJournalMode()
if not isInRingMode() then
@ -1304,9 +1304,9 @@ function game:onMissionJournalOpened()
self:updateMissionJournalHeader()
self:updateMissionWindowLayout()
self:updateMissionJournalFixedEntry()
self:updateMissionJournalFixedEntry()
end
@ -1315,12 +1315,12 @@ function game:updateMissionJournalHeader()
local win = getUI("ui:interface:info_player_journal")
local headerActive = getDbProp("UI:SAVE:MISSION_JOURNAL_HEADER_ACTIVE") ~= 0
win.header_active = headerActive
win.right_button_enabled = headerActive
win.right_button_enabled = headerActive
if headerActive then
win.uc_title_opened = i18n.get("uiJournalTitle")
win.uc_title_opened = i18n.get("uiJournalTitle")
win.content_y_offset = 0
else
win.uc_title_opened = ucstring("")
win.uc_title_opened = ucstring("")
win.content_y_offset = win.header_opened.h_real + 3
end
end
@ -1329,13 +1329,13 @@ end
--------------------------------------------------------------------------------------------------------------
function game:updateMissionJournalFixedEntry()
-- update fixed entry text
local fixedEntryRing = getUI("ui:interface:info_player_journal:no_available_missions:main:mission_fixed_entry")
local fixedEntryRing = getUI("ui:interface:info_player_journal:no_available_missions:main:mission_fixed_entry")
local fixedEntryMain = getUI("ui:interface:info_player_journal:content:mission_fixed_entry")
fixedEntryRing.active = game.InGameDbInitialized and isInRingMode()
fixedEntryMain.active = game.InGameDbInitialized and not isInRingMode()
fixedEntryMain.active = game.InGameDbInitialized and not isInRingMode()
local id = "uiFixedMissionEntry"
@ -1346,22 +1346,22 @@ function game:updateMissionJournalFixedEntry()
end
if isPlayerFreeTrial() then
id = id .. "_Trial"
end
end
else
if isInRingMode() then
id = id .. "_R2"
else
if isInRingMode() then
id = id .. "_R2"
else
id = id .. "_Mainland_" .. getUserRace()
end
end
end
fixedEntryMain.uc_hardtext = i18n.get(id)
fixedEntryRing.uc_hardtext = i18n.get(id)
self:updateMissionWindowLayout()
end
--------------------------------------------------------------------------------------------------------------
function game:setCurrentMission(index)
function game:setCurrentMission(index)
mw = getMissionWindow()
mw.active = game.InGameDbInitialized
if index < self:getGroupMissionFirstIndex() then
@ -1372,7 +1372,7 @@ function game:setCurrentMission(index)
end
--------------------------------------------------------------------------------------------------------------
function game:onMissionComboWheelUp()
function game:onMissionComboWheelUp()
local currMissionIndex = self:getCurrMissionIndex()
while currMissionIndex > 0 do
currMissionIndex = currMissionIndex - 1
@ -1384,7 +1384,7 @@ function game:onMissionComboWheelUp()
end
--------------------------------------------------------------------------------------------------------------
function game:onMissionComboWheelDown()
function game:onMissionComboWheelDown()
local currMissionIndex = self:getCurrMissionIndex()
local maxNumMission = 2 * self:getGroupMissionFirstIndex()
while currMissionIndex < (maxNumMission - 1) do
@ -1399,37 +1399,37 @@ end
--------------------------------------------------------------------------------------------------------------
function game:toggleMissionJournalCaption()
local dbPath = "UI:SAVE:MISSION_JOURNAL_HEADER_ACTIVE"
function game:toggleMissionJournalCaption()
local dbPath = "UI:SAVE:MISSION_JOURNAL_HEADER_ACTIVE"
setDbProp(dbPath, 1 - getDbProp(dbPath))
local win = getUI("ui:interface:info_player_journal")
local win = getUI("ui:interface:info_player_journal")
self:updateMissionJournalHeader()
self:updateMissionWindowLayout()
end
--------------------------------------------------------------------------------------------------------------
-- handler called by C++ to tell that the main loop is about to begin
function game:onMainLoopBegin()
game.InGameDbInitialized = false
function game:onMainLoopBegin()
game.InGameDbInitialized = false
game.PrevSessionMission = getDbProp("UI:VARIABLES:MISSION_SELECTED_PREV_SESSION")
debugInfo("onMainLoopBegin()")
end
--------------------------------------------------------------------------------------------------------------
-- handler called by C++ to tell that all initial value have been set in the db
function game:onInGameDbInitialized()
function game:onInGameDbInitialized()
game.InGameDbInitialized = true
-- if the journal is opened, force an update for the fixed entry text
-- if the journal is opened, force an update for the fixed entry text
-- (says if we're in start island, paying account ...) need DB flags like
-- IS_NEWBIE & IS_TRIAL to be received
game:updateMissionJournalFixedEntry()
-- If a mission was previously selected, restore it
game:updateMissionJournalFixedEntry()
-- If a mission was previously selected, restore it
if game.PrevSessionMission ~= -1 then
self:setCurrentMission(game.PrevSessionMission)
self:setCurrentMission(game.PrevSessionMission)
end
game:setInfoPlayerCharacterRace()
end
@ -1437,7 +1437,7 @@ function game:onWebIgReady()
-- Call init webig
getUI("ui:interface:web_transactions:content:html"):browse("home")
getUI("ui:interface:webig:content:html"):browse("home")
end
--------------------------------------------------------------------------------------------------------------
@ -1464,7 +1464,7 @@ end
--------------------------------------------------------------------------------------------------------------
-- ring journal on / off
function game:setMissionJournalRingMode(isRing)
function game:setMissionJournalRingMode(isRing)
local journal = getUI("ui:interface:info_player_journal")
if isRing then
journal.content.expand_mission_list.active = false
@ -1480,7 +1480,7 @@ function game:setMissionJournalRingMode(isRing)
journal.no_available_missions.active = true
else
journal.content.expand_mission_list.active = true
journal.no_available_missions.active = false;
journal.no_available_missions.active = false;
journal.content.active = true;
--journal.content.mission_list.active = true;
journal.content.sv.active = true;
@ -1494,8 +1494,8 @@ end
--------------------------------------------------------------------------------------------------------------
-- update mission journal depending on wether we're in the ring or not
function game:updateMissionJournalMode()
--local isRing = r2~=nil and r2.Mode~=nil and r2.Mode=='r2ed_anim_test'
game:setMissionJournalRingMode(isInRingMode())
--local isRing = r2~=nil and r2.Mode~=nil and r2.Mode=='r2ed_anim_test'
game:setMissionJournalRingMode(isInRingMode())
end
@ -1521,22 +1521,22 @@ function game:onNewMissionStepAdded(stepIndex)
end
-- debugInfo("New Step")
if missionIndex < 15 then
if missionIndex < 15 then
dbPath = "SERVER:MISSIONS:" .. tostring(missionIndex) .. ":GOALS:" .. tostring(stepIndex) .. ":TEXT"
else
else
dbPath = "SERVER:GROUP:MISSIONS:" .. tostring(missionIndex - 15) .. ":GOALS:" .. tostring(stepIndex) .. ":TEXT"
end
end
local stringID = getDbProp(dbPath)
if stringID ~= 0 then
-- debugInfo(tostring(stringID))
table.insert(remainingMissionTextIDs, stringID)
setOnDraw(missionWnd, "game:ensureLastMissionStepVisibility0()")
else
setOnDraw(missionWnd, "game:ensureLastMissionStepVisibility0()")
else
end
end
function game:ensureLastMissionStepVisibility0()
local missing = false
for k, v in pairs(remainingMissionTextIDs) do
if not isDynStringAvailable(v) then
@ -1545,54 +1545,54 @@ function game:ensureLastMissionStepVisibility0()
end
end
local missionWnd = getMissionWindow()
if not missing then
if not missing then
remainingMissionTextIDs = {}
-- delay real update to newt frame
setOnDraw(missionWnd, "game:ensureLastMissionStepVisibility1()")
-- delay real update to newt frame
setOnDraw(missionWnd, "game:ensureLastMissionStepVisibility1()")
else
-- for debug : dump the list of remaining "dyn string"
-- for debug : dump the list of remaining "dyn string"
--local stringList = "{"
--for k, v in remainingMissionTextIDs do
-- if not isDynStringAvailable(v) then
-- if not isDynStringAvailable(v) then
-- stringList = stringList .. " " .. tostring(v)
-- end
--end
--stringList = stringList .. "}"
--stringList = stringList .. "}"
end
end
function game:ensureLastMissionStepVisibility1()
function game:ensureLastMissionStepVisibility1()
local missionWnd = getMissionWindow()
local scrollBar = missionWnd:find("sv_desc")
--scrollBar.trackPos = 20000 -- move upward
local scrollBar = missionWnd:find("sv_desc")
--scrollBar.trackPos = 20000 -- move upward
--scrollBar:updateCoords()
--setOnDraw(missionWnd, "")
local descWnd = missionWnd:find("desc")
--setOnDraw(missionWnd, "")
local descWnd = missionWnd:find("desc")
local maxNumSteps = getDefine("ipj_nb_goal")
local topStep
for stepIndex = 0, maxNumSteps -1 do
for stepIndex = 0, maxNumSteps -1 do
local currStep = descWnd["step" .. tostring(stepIndex)]
if currStep.active then
topStep = currStep
end
end
-- debugInfo("Found step : " .. topStep.hardtext)
if topStep == nil then
if topStep == nil then
return
end
end
scrollBar:ensureVisible(topStep, "M", "M")
--local wantedY = topStep.h_real / 2 - (descWnd.y_real - topStep.y_real)
--local wantedY = descWnd.y_real + descWnd.h_real - topStep.y_real
--local offsetY = wantedY - descWnd.max_h_real / 2
--if offsetY < 0 then offsetY = 0 end
--local wantedY = descWnd.y_real + descWnd.h_real - topStep.y_real
--local offsetY = wantedY - descWnd.max_h_real / 2
--if offsetY < 0 then offsetY = 0 end
--descWnd.ofsy = offsetY
--descWnd:invalidateCoords()
--descWnd:updateCoords()
setOnDraw(missionWnd, "")
setOnDraw(missionWnd, "")
end
--------------------------------------------------------------------------------------------------------------
@ -1606,9 +1606,9 @@ end
function game:addRpJob(jobtype, id, value, rpjobs)
local base_path = "ui:interface:info_player_skills:content:rpjobs:rpjob_"..jobtype.."_"..id..":rpjob_"..jobtype.."_infos_"..id
local group = getUI("ui:interface:info_player_skills:content:rpjobs:rpjob_"..jobtype.."_"..id)
if (value == nil) then
group.active = false
else
@ -1618,16 +1618,16 @@ function game:addRpJob(jobtype, id, value, rpjobs)
group.active = false
else
group.active = true
local echelon_value = rpjobs[sitem][1]
local quantity = rpjobs[sitem][2]
local maxlevel = (echelon_value*6)-30
if (quantity > maxlevel) then
quantity = maxlevel
end
local base = getUI(base_path..":t")
base.hardtext = i18n.get(name):toUtf8()
local ui = getUI(base_path..":icon")
@ -1657,7 +1657,7 @@ function game:getRPJobs()
rpjobs_elementary = {}
rpjobs_roleplay = {}
rpjobs = {}
for i = 0, 499, 1 do
local sheet = getDbProp("SERVER:INVENTORY:BAG:"..tostring(i)..":SHEET")
if (sheet ~= 0) then
@ -1665,7 +1665,7 @@ function game:getRPJobs()
if (string.sub(name, 0, 6) == "rpjob_") then
local quality = getDbProp("SERVER:INVENTORY:BAG:"..tostring(i)..":QUALITY")
local quantity = getDbProp("SERVER:INVENTORY:BAG:"..tostring(i)..":QUANTITY")
if (name == "rpjob_advanced.sitem") then
table.insert(rpjobs_advanced, quality)
else
@ -1688,7 +1688,7 @@ function game:getRPJobs()
end
end
end
for id=1,2,1 do
game:addRpJob("advanced", id, rpjobs_advanced[id], rpjobs)
end

View file

@ -763,8 +763,8 @@
x="8"
y="-20"
w="-8"
tooltip="uittIdentityChaScore1"
text="uiChaScore1"
tooltip="uittIdentityHP"
text="uiHP"
val="%player_ChaScore1"
maxval="%player_ChaScore1_max"
baseval="%player_ChaScore1_base" />
@ -773,8 +773,8 @@
posparent="ChaScore1"
posref="BL TL"
y="0"
tooltip="uittIdentityChaScore3"
text="uiChaScore3"
tooltip="uittIdentitySap"
text="uiSap"
val="%player_ChaScore3"
maxval="%player_ChaScore3_max"
baseval="%player_ChaScore3_base" />
@ -783,8 +783,8 @@
posparent="ChaScore3"
posref="BL TL"
y="0"
tooltip="uittIdentityChaScore2"
text="uiChaScore2"
tooltip="uittIdentitySta"
text="uiStamina"
val="%player_ChaScore2"
maxval="%player_ChaScore2_max"
baseval="%player_ChaScore2_base" />
@ -793,8 +793,8 @@
posparent="ChaScore2"
posref="BL TL"
y="0"
tooltip="uittIdentityChaScore4"
text="uiChaScore4"
tooltip="uittIdentityFoc"
text="uiFocus"
val="%player_ChaScore4"
maxval="%player_ChaScore4_max"
baseval="%player_ChaScore4_base" />
@ -813,37 +813,37 @@
x="8"
y="-105"
w="-8"
text="uiChaScore1"
text="uiHP"
val="%player_ChaScore1reg"
baseval="%player_ChaScore1reg_base"
tooltip="uittIdentityChaScore1Reg" />
tooltip="uittIdentityHPReg" />
<instance template="tipc_characReg"
id="ChaScore3reg"
posparent="ChaScore1reg"
posref="BL TL"
y="0"
text="uiChaScore3"
text="uiSap"
val="%player_ChaScore3reg"
baseval="%player_ChaScore3reg_base"
tooltip="uittIdentityChaScore3Reg" />
tooltip="uittIdentitySapReg" />
<instance template="tipc_characReg"
id="ChaScore2reg"
posparent="ChaScore3reg"
posref="BL TL"
y="0"
text="uiChaScore2"
text="uiStamina"
val="%player_ChaScore2reg"
baseval="%player_ChaScore2reg_base"
tooltip="uittIdentityChaScore2Reg" />
tooltip="uittIdentityStaReg" />
<instance template="tipc_characReg"
id="ChaScore4reg"
posparent="ChaScore2reg"
posref="BL TL"
y="0"
text="uiChaScore4"
text="uiFocus"
val="%player_ChaScore4reg"
baseval="%player_ChaScore4reg_base"
tooltip="uittIdentityChaScore4Reg" />
tooltip="uittIdentityFocReg" />
</group>
<instance template="inner_thin_border"
posparent="black"
@ -875,71 +875,71 @@
h="172"
inherit_gc_alpha="true">
<instance template="tipc_charac"
id="ChaScore1max"
id="Cha1max"
posref="TL TL"
x="8"
y="-20"
w="-8"
text="uiCarac_ChaScore1Max"
val="%player_carac_ChaScore1max"
tooltip="uittIdentityCha1" />
text="uiCarac_HpMax"
val="%player_carac_Cha1max"
tooltip="uittIdentityCons" />
<instance template="tipc_charac"
id="ChaScore3max"
posparent="ChaScore1max"
id="Cha3max"
posparent="Cha1max"
posref="BL TL"
y="0"
text="uiCarac_ChaScore3Max"
val="%player_carac_ChaScore3max"
tooltip="uittIdentityCha3" />
text="uiCarac_SapMax"
val="%player_carac_Cha3max"
tooltip="uittIdentityInt" />
<instance template="tipc_charac"
id="ChaScore2max"
posparent="ChaScore3max"
id="Cha2max"
posparent="Cha3max"
posref="BL TL"
y="0"
text="uiCarac_ChaScore2Max"
val="%player_carac_ChaScore2max"
tooltip="uittIdentityCha2" />
text="uiCarac_StaMax"
val="%player_carac_Cha2max"
tooltip="uittIdentityStr" />
<instance template="tipc_charac"
id="ChaScore4max"
posparent="ChaScore2max"
id="Cha4max"
posparent="Cha2max"
posref="BL TL"
y="0"
text="uiCarac_ChaScore4Max"
val="%player_carac_ChaScore4max"
tooltip="uittIdentityCha4" />
text="uiCarac_WishMax"
val="%player_carac_Cha4max"
tooltip="uittIdentityDex" />
<instance template="tipc_charac"
id="ChaScore1reg"
id="Cha1Reg"
posref="TL TL"
x="8"
y="-105"
w="-8"
text="uiCarac_ChaScore1Reg"
val="%player_carac_ChaScore1reg"
tooltip="uittIdentityCha1Reg" />
text="uiCarac_HpReg"
val="%player_carac_Cha1Reg"
tooltip="uittIdentityMeta" />
<instance template="tipc_charac"
id="ChaScore3reg"
posparent="ChaScore1reg"
id="Cha3Reg"
posparent="Cha1Reg"
posref="BL TL"
y="0"
text="uiCarac_ChaScore3Reg"
val="%player_carac_ChaScore3reg"
tooltip="uittIdentityCha3Reg" />
text="uiCarac_SapReg"
val="%player_carac_Cha3Reg"
tooltip="uittIdentityWis" />
<instance template="tipc_charac"
id="ChaScore2reg"
posparent="ChaScore3reg"
id="Cha2Reg"
posparent="Cha3Reg"
posref="BL TL"
y="0"
text="uiCarac_ChaScore2Reg"
val="%player_carac_stareg"
tooltip="uittIdentityCha2Reg" />
text="uiCarac_StaReg"
val="%player_carac_Cha2Reg"
tooltip="uittIdentityWB" />
<instance template="tipc_charac"
id="ChaScore4reg"
posparent="ChaScore2reg"
id="Cha4Reg"
posparent="Cha2Reg"
posref="BL TL"
y="0"
text="uiCarac_ChaScore4Reg"
val="%player_carac_ChaScore4reg"
tooltip="uittIdentityCha4Reg" />
text="uiCarac_WishReg"
val="%player_carac_Cha4Reg"
tooltip="uittIdentityWill" />
</group>
<instance template="inner_thin_border"
posparent="black"
@ -1467,7 +1467,7 @@
<group type="webig_html"
id="html"
posref="TL TL"
url="http://app.khaganat.net"
url="https://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.khaganat.net"
home="https://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.khaganat.net"
url="https://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.khaganat.net"
home="https://app.khaganat.net"
browse_next_time="true"
form_text_area_group="edit_box_widget_multiline">
<group id="black"

View file

@ -105,7 +105,7 @@
range3="UI:CONST:127" />
<ctrl type="tooltip"
id="tt1"
tooltip="uiChaScore2"
tooltip="uiStamina"
color="%ChaScore2_color"
posparent="jauges"
posref="TL TL"
@ -116,7 +116,7 @@
h="0" />
<ctrl type="tooltip"
id="tt2"
tooltip="uiChaScore3"
tooltip="uiSap"
color="%ChaScore3_color"
posparent="tt1"
posref="BL BL"
@ -127,7 +127,7 @@
h="0" />
<ctrl type="tooltip"
id="tt3"
tooltip="uiChaScore4"
tooltip="uiFocus"
color="%ChaScore4_color"
posparent="tt2"
posref="BL TL"
@ -361,22 +361,22 @@
posref="TL TL">
<!-- new Jauges -->
<view type="bitmap"
id="b_ChaScore1"
id="b_life"
posref="TL TL"
x="0"
y="-2"
texture="slot_jauge.tga"
inherit_gc_alpha="false" />
<instance template="jauge_score_target"
id="jChaScore1"
posparent="b_ChaScore1"
id="jlife"
posparent="b_life"
posref="TL TL"
color="214 56 7 255"
text="uiChaScore1"
text="uiHP"
val="%target_ChaScore1" />
<instance template="text_tt"
posparent="jChaScore1"
tooltip="uittTargetChaScore1"
posparent="jlife"
tooltip="uittTargetHp"
tooltip_parent="win" />
</group>
@ -521,6 +521,7 @@
<view type="text"
id="text"
case_mode="%case_first_word_letter_up"
posref="TL TL"
x="8"
y="-8"
@ -858,7 +859,7 @@
<group type="menu"
id="user_chat_emote_menu"
extends="base_menu"
case_mode="%case_normal"
case_mode="%case_first_word_letter_up"
on_active="lua:game:updateEmoteMenu()">
<action id="uiEM_Wave"
name="uiQuickEmote" />
@ -1077,7 +1078,7 @@
tooltip_parent="win" />
<!-- Yes order is strange, but don't want to modify all the ugly hardcoded code -->
<ctrl style="tab_button_new"
id="tab6"
id="tab7"
posparent="tab3"
group="content:cb:universe"
hardtext="uitabChatUniverse"
@ -1089,7 +1090,7 @@
tooltip_parent="win" />
<ctrl style="tab_button_new"
id="tab4"
posparent="tab6"
posparent="tab7"
group="content:cb:sysinfo"
hardtext="uitabChatSysInfo"
onclick_r="set"
@ -1107,12 +1108,23 @@
params_l="user"
tooltip="uittChatUser"
tooltip_parent="win" />
<ctrl style="tab_button_new"
id="tab6"
posparent="tab5"
group="content:cb:yubo_chat"
hardtext="uitabChatYuboChat"
onclick_r="set"
params_r="dblink=UI:SAVE:ISDETACHED:YUBO_CHAT|value=1"
onclick_l="chat_group_filter"
params_l="yubo_chat"
tooltip="uittChatYubo"
tooltip_parent="win" />
<!-- Fixed number of dynamic chat allowed. force _firstpos and _nextpos to have correctly aligned tab-->
<vector template="temp_tab_dyn_chat"
_size="%max_dyn_chan_per_player"
id="tab_array0_$i"
nb="$i"
posparent="tab5"
posparent="tab6"
_firstpos="TR TL"
_nextpos="TR TL" />
<!-- Show or hide tabs : a tab is visible if it is not filtered into the user chat AND not detached -->
@ -1124,7 +1136,7 @@
target="tab1:active" />
<link expr="and(@UI:SAVE:ISENABLED:UNIVERSE_CHAT,
not(@UI:SAVE:ISDETACHED:UNIVERSE_CHAT))"
target="tab6:active" />
target="tab7:active" />
<link expr="and (and(%is_team_present, @UI:SAVE:ISENABLED:TEAM_CHAT),
not(@UI:SAVE:ISDETACHED:TEAM_CHAT))"
target="tab2:active" />
@ -1136,6 +1148,9 @@
target="tab4:active" />
<link expr="not(@UI:SAVE:ISDETACHED:USER_CHAT)"
target="tab5:active" />
<link expr="and(and(%is_yubo_chat_present, @UI:SAVE:ISENABLED:YUBO_CHAT),
not(@UI:SAVE:ISDETACHED:YUBO_CHAT))"
target="tab6:active" />
<!-- Show individual chat windows if needed -->
<link expr="and (@UI:SAVE:ISENABLED:AROUND_ME,
@UI:SAVE:ISDETACHED:AROUND_ME)"
@ -1157,6 +1172,9 @@
target="ui:interface:system_info:active" />
<link expr="@UI:SAVE:ISDETACHED:USER_CHAT"
target="ui:interface:user_chat:active" />
<link expr="and(and(%is_yubo_chat_present, @UI:SAVE:ISENABLED:YUBO_CHAT),
@UI:SAVE:ISDETACHED:YUBO_CHAT)"
target="ui:interface:yubo_chat:active" />
</group>
<view type="bitmap"
id="sep"
@ -1230,6 +1248,13 @@
y="0"
w="0"
h="0" />
<instance template="chat_box_mainchat"
id="yubo_chat"
posref="TL TL"
sizeref="wh"
y="0"
w="0"
h="0" />
<!-- Fixed number of dynamic chat allowed -->
<vector template="chat_box_mainchat"
id="dyn_chat$i"
@ -1262,7 +1287,7 @@
tooltip_parent="win"
onclick_l="select_chat_target"
params_l="menu=ui:interface:user_chat_target_menu|party_chats=false"
case_mode="%case_normal" />
case_mode="%case_first_word_letter_up" />
<ctrl style="text_button_16"
id="but_emote"
posref="BR TR"
@ -1485,11 +1510,11 @@
posref="MR MR"
mini="true"
x="-16"
color1="%ChaScore2_color"
value1="UI:VARIABLES:BARS:TEAM:#team_mate_index:ChaScore2"
color1="ChaScore2_color"
value1="UI:VARIABLES:BARS:TEAM:#team_mate_index:ChaScore1"
range1="UI:CONST:127"
color2="%ChaScore3_color"
value2="UI:VARIABLES:BARS:TEAM:#team_mate_index:ChaScore3"
value2="UI:VARIABLES:BARS:TEAM:#team_mate_index:ChaScore2"
range2="UI:CONST:127"
color3="%ChaScore1_color"
color3_negative="%ChaScore1_color_neg"
@ -1578,9 +1603,9 @@
<!--
<group id="header_opened" x="0" y="0" w="160" child_resize_h="true" child_resize_hmargin="4" posref="TL TL" >
<view type="bar3" id="jauges" posref="TR TR" y="-2" mini="true" x="-16"
color1="%ChaScore2_color" value1="UI:VARIABLES:BARS:TEAM:#team_mate_index:ChaScore2" range1="UI:CONST:127"
color2="%ChaScore3_color" value2="UI:VARIABLES:BARS:TEAM:#team_mate_index:ChaScore3" range2="UI:CONST:127"
color3="%ChaScore1_color" color3_negative="%ChaScore1_color_neg" value3="UI:VARIABLES:BARS:TEAM:#team_mate_index:ChaScore1" range3="UI:CONST:127" />
color1="%sta_color" value1="UI:VARIABLES:BARS:TEAM:#team_mate_index:STA" range1="UI:CONST:127"
color2="%sap_color" value2="UI:VARIABLES:BARS:TEAM:#team_mate_index:SAP" range2="UI:CONST:127"
color3="%hp_color" color3_negative="%hp_color_neg" value3="UI:VARIABLES:BARS:TEAM:#team_mate_index:HP" range3="UI:CONST:127" />
<view type="bitmap" id="lead" posparent="jauges" posref="ML MR" x="-4" y="1" texture="w_leader.tga" global_color="false" />
<view type="bitmap" id="successor" posparent="jauges" posref="ML MR" x="-4" y="1" texture="w_leader.tga" global_color="false" color="255 255 255 128" active="false"/>
@ -1932,6 +1957,10 @@
name="uiSystemInfo"
usergroup_l="chat_menu_button"
usergroup_params_l="chat_db=SYSTEM_INFO" />
<action id="yubo_chat"
name="uitabChatYuboChat"
usergroup_l="chat_menu_button"
usergroup_params_l="chat_db=YUBO_CHAT" />
<!-- Bit of a hack as vector is not supported inside a submenu -->
<action id="dyn0"
name="0"
@ -3031,6 +3060,13 @@
<tree node="debug_console">
</tree>
-->
<!-- ************* -->
<!-- * YUBO CHAT * -->
<!-- ************* -->
<proc id="yubo_chat_proc_close">
<action handler="set"
params="dblink=UI:SAVE:ISDETACHED:YUBO_CHAT|value=0" />
</proc>
<!-- **************** -->
<!-- * DYNAMIC CHAT * -->
<!-- **************** -->

View file

@ -403,12 +403,12 @@
onclick_l="new_macro_new_cmd" />
<group id="cmds" type="list" posref="BR TR" posparent="sep" x="0" y="-22" over="true" >
<!--
<instance template="macro_command" id="cmd1" posref="TL TL" />
<instance template="macro_command" id="cmd2" posparent="cmd1" posref="BL TL" />
-->
<group id="cmds" x="0" y="-22" over="true" sizeref="w" posref="TL TL" posparent="sep" child_resize_h="true" child_resize_hmargin="4">
<group id="macros" x="10" y="-4" sizeref="w" posref="TL TL" child_resize_h="true" max_h="300" >
<group id="list" type="list" x="0" y="0" posref="TL TL" />
</group>
<ctrl style="skin_scroll" id="sv" posref="TL TL" y="-4" target="macros" />
</group>
<instance template="button_ok_cancel" posparent="cmds" posref="BR TR" x="0" y="-4"
onclick_ok="new_macro_ok"
@ -659,4 +659,4 @@
<tree node="keys_r2ed"/>
</tree>
</interface_config>
</interface_config>

View file

@ -337,10 +337,10 @@
<proc id="respawn_map_activated">
<action handler="exit_free_look" />
<action handler="set" params="dblink=UI:VARIABLES:RESPAWN:MSG_SENT|value=0" />
<!-- <action handler="add_link" params="id=respawn_timer_link|expr=secondsToTimeString(div(mul(div(sub(%player_percent_max,abs(@%player_hp_percent)),%player_percent_max),%time_before_auto_respawn),10))|target=ui:interface:respawn_map:content:map_content:timer:t:uc_hardtext" /> -->
<action handler="add_link" params="id=respawn_timer_link|expr=secondsToTimeString(mul(div(sub(%player_percent_max,abs(@%player_hp_percent)),%player_percent_max),%time_before_auto_respawn))|target=ui:interface:respawn_map:content:map_content:timer:t:uc_hardtext" />
<action handler="add_link" params="id=respawn_acttimer_link|expr=depends(@%player_hp_percent)|action=respawn_map_valid|params=map=ui:interface:respawn_map:content:map_content:actual_map|cond=and(eq(abs(@%player_hp_percent), %player_percent_max), and(lt(@%player_hp_percent,0), eq(@UI:VARIABLES:CDB_INIT_IN_PROGRESS, 0)) ,ne(@UI:VARIABLES:RESPAWN:MSG_SENT,1)) " />
<action handler="add_link" params="id=respawn_showtimer_link|expr=lt(abs(@%player_hp_percent), %player_percent_max)|target=ui:interface:respawn_map:content:map_content:timer:active" />
<!-- <action handler="add_link" params="id=respawn_timer_link|expr=secondsToTimeString(div(mul(div(sub(%player_percent_max,abs(@%player_ChaScore1_percent)),%player_percent_max),%time_before_auto_respawn),10))|target=ui:interface:respawn_map:content:map_content:timer:t:uc_hardtext" /> -->
<action handler="add_link" params="id=respawn_timer_link|expr=secondsToTimeString(mul(div(sub(%player_percent_max,abs(@%player_ChaScore1_percent)),%player_percent_max),%time_before_auto_respawn))|target=ui:interface:respawn_map:content:map_content:timer:t:uc_hardtext" />
<action handler="add_link" params="id=respawn_acttimer_link|expr=depends(@%player_ChaScore1_percent)|action=respawn_map_valid|params=map=ui:interface:respawn_map:content:map_content:actual_map|cond=and(eq(abs(@%player_ChaScore1_percent), %player_percent_max), and(lt(@%player_ChaScore1_percent,0), eq(@UI:VARIABLES:CDB_INIT_IN_PROGRESS, 0)) ,ne(@UI:VARIABLES:RESPAWN:MSG_SENT,1)) " />
<action handler="add_link" params="id=respawn_showtimer_link|expr=lt(abs(@%player_ChaScore1_percent), %player_percent_max)|target=ui:interface:respawn_map:content:map_content:timer:active" />
</proc>
<proc id="respawn_map_deactivated">
@ -384,7 +384,7 @@
<ctrl style="button_ok" id="respawn" posparent="center" x="16" posref="TR TL" onclick_l="respawn_map_valid" params_l="map=ui:interface:respawn_map:content:map_content:actual_map" hardtext="uiRespawn"/>
<group id="timer" posparent="respawn" posref="TR TL" x="8" y="-2" child_resize_h="true" child_resize_w="true">
<view type="bar" id="b" ultra_mini="true" posref="TL TL" value="%player_hp_percent" range="%player_percent_max" color="255 255 255 255" color_negative="255 255 255 255" />
<view type="bar" id="b" ultra_mini="true" posref="TL TL" value="%player_ChaScore1_percent" range="%player_percent_max" color="255 255 255 255" color_negative="255 255 255 255" />
<view type="text" id="t" posparent="b" posref="TR TL" x="4" color="255 255 255 255" fontsize="8" shadow="true" hardtext="" />
</group>
@ -447,4 +447,4 @@
</tree>
</interface_config>
</interface_config>

View file

@ -420,7 +420,7 @@
<!-- NAME OF SPELL -->
<instance template="edit_box_widget" id="eb_spell_name" posref="TR BR" x="4" w="216" y="-54" h="20" child_resize="false"
text_x="0" text_y="0" text_ref="ML ML"
text_x="0" text_y="-2" text_ref="ML ML"
fontsize="12" multi_line="false" max_num_chars="20"
enter_loose_focus="true" enter_recover_focus="false" prompt="" reset_focus_on_hide="true" onchange="phrase_change_name" />
<view type="text" id="text_spell_name" posparent="eb_spell_name" posref="TL BL" x="0" y="-2" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPhraseEditName" />
@ -732,7 +732,7 @@
global_color="false" />
<link expr="getSPhraseName(@SERVER:EXECUTE_PHRASE:LINK:#index:PHRASE)" target="spell_name:uc_hardtext" />
<!-- COSTS (ChaScore1, ChaScore3, ChaScore2) -->
<!-- COSTS (HP, SAP, STA) -->
<!--
<view type="text" id="costs" posparent="spell" posref="BR BL" x="2" y="0" shadow="true" fontsize="8" hardtext="uiLinksCosts" />
-->

File diff suppressed because it is too large Load diff

View file

@ -51,7 +51,7 @@
range3="%player_percent_max" />
<ctrl type="tooltip"
id="tt1"
on_tooltip="player_tt_cha_score2"
on_tooltip="player_tt_stamina"
color="%ChaScore2_color"
posparent="jauges"
posref="TL TL"
@ -62,7 +62,7 @@
h="0" />
<ctrl type="tooltip"
id="tt2"
on_tooltip="player_tt_cha_score3"
on_tooltip="player_tt_sap"
color="%ChaScore3_color"
posparent="tt1"
posref="BL TL"
@ -73,7 +73,7 @@
h="0" />
<ctrl type="tooltip"
id="tt3"
on_tooltip="player_tt_cha_score4"
on_tooltip="player_tt_focus"
color="%ChaScore4_color"
posparent="tt2"
posref="BL TL"
@ -196,16 +196,16 @@
<group type="menu"
id="player_jauge_menu"
extends="base_menu_with_color">
<action id="ChaScore3_bardisplay"
name="uiChaScore3BarDisplay"
<action id="sap_bardisplay"
name="uiSapBarDisplay"
handler="set"
params="dblink=UI:SAVE:PLAYER:DISP_ChaScore3|value=not(@UI:SAVE:PLAYER:DISP_ChaScore3)" />
<action id="ChaScore2_bardisplay"
name="uiChaScore2BarDisplay"
<action id="sta_bardisplay"
name="uiStaBarDisplay"
handler="set"
params="dblink=UI:SAVE:PLAYER:DISP_ChaScore2|value=not(@UI:SAVE:PLAYER:DISP_ChaScore2)" />
<action id="ChaScore4_bardisplay"
name="uiChaScore4BarDisplay"
<action id="foc_bardisplay"
name="uiFocBarDisplay"
handler="set"
params="dblink=UI:SAVE:PLAYER:DISP_ChaScore4|value=not(@UI:SAVE:PLAYER:DISP_ChaScore4)" />
</group>
@ -576,45 +576,45 @@
posparent="b_ChaScore1"
posref="TL TL"
color="214 56 7 255"
color_gray="160 42 5 255"
text="uiChaScore1"
color_gray="200 42 5 255"
text="uiHP"
val="%player_ChaScore1"
maxval="%player_ChaScore1_max"
val_bar="%player_ChaScore1_percent"
tooltip="uittGaugesChaScore1" />
tooltip="uittGaugesHP" />
<instance template="jauge_score"
id="jChaScore3"
posparent="b_ChaScore3"
posref="TL TL"
color="133 189 5 255"
color_gray="100 141 3 255"
text="uiChaScore3"
color_gray="100 161 3 255"
text="uiSap"
val="%player_ChaScore3"
maxval="%player_ChaScore3_max"
val_bar="%player_ChaScore3_percent"
tooltip="uittGaugesChaScore3" />
tooltip="uittGaugesSap" />
<instance template="jauge_score"
id="jChaScore2"
posparent="b_ChaScore2"
posref="TL TL"
color="202 67 152 255"
color_gray="151 50 114 255"
text="uiChaScore2"
color_gray="181 50 134 255"
text="uiStamina"
val="%player_ChaScore2"
maxval="%player_ChaScore2_max"
val_bar="%player_ChaScore2_percent"
tooltip="uittGaugesChaScore2" />
tooltip="uittGaugesSta" />
<instance template="jauge_score"
id="jChaScore4"
posparent="b_ChaScore4"
posref="TL TL"
color="31 155 197 255"
color_gray="23 116 147 255"
text="uiChaScore4"
color="150 150 150 255"
color_gray="130 130 130 255"
text="uiFocus"
val="%player_ChaScore4"
maxval="%player_ChaScore4_max"
val_bar="%player_ChaScore4_percent"
tooltip="uittGaugesChaScore4" />
tooltip="uittGaugesFoc" />
<!-- Action Progression (display only if user wants to). Important to set active by default, to have correct reset.xml behaviour -->
<instance template="t_current_action_bar"
id="current_action"

View file

@ -1,473 +1,477 @@
<!-- ****************************************** -->
<!-- * RESET INTERFACE * -->
<!-- ****************************************** -->
<!-- A container is ALWAYS defined in BL TL hotspot when poped (layer0) else (layer > 0) it is a TL TL -->
<!-- Take care that if the container is not active a getProp of w or h will return 0 -->
<interface_config>
<root id="interface" x="0" y="0" w="800" h="600" active="true" />
<variable entry="UI:TEMP:ACTIVE" type="sint64" value="0" />
<proc id="pri_top_center" >
<action handler="set" params="dblink=UI:TEMP:ACTIVE|value=getprop('@0:active')" />
<action handler="set" params="target='@0:active'|value=1" />
<!--<action handler="set" params="target='@0:x'|value=div(sub(getprop('ui:interface:w'),getprop('@0:w')),2)" />-->
<action handler="set" params="target='@0:y'|value=sub(getprop('ui:interface:h'),48)" />
<action handler="set" params="target='@0:active'|value=@UI:TEMP:ACTIVE" />
</proc>
<proc id="base_desktop" >
<action handler="reset_interface" params="" />
<action handler="unlock_all_container" params="" />
<!-- Player -->
<action handler="set" params="target='ui:interface:player:active'|value=1" />
<action handler="set" params="target='ui:interface:player:x'|value=4" />
<action handler="set" params="target='ui:interface:player:y'|value=sub(getprop('ui:interface:h'),4)" />
<action handler="set_transparent" params="ui:interface:player" />
<!-- BonusMalus -->
<action handler="set" params="target='ui:interface:bonus_malus:active'|value=1" />
<action handler="set" params="target='ui:interface:bonus_malus:x'|value=188" />
<action handler="set" params="target='ui:interface:bonus_malus:y'|value=sub(getprop('ui:interface:h'),4)" />
<!-- Target -->
<action handler="set" params="target='ui:interface:target:active'|value=1" />
<action handler="set" params="target='ui:interface:target:x'|value=4" />
<action handler="set" params="target='ui:interface:target:y'|value=sub(sub(getprop('ui:interface:h'),getprop('ui:interface:player:h')),8)" />
<action handler="set_transparent" params="ui:interface:target" />
<!-- Team -->
<action handler="set" params="target='ui:interface:team_list:x'|value=4" />
<action handler="set" params="target='ui:interface:team_list:y'|value=sub(sub(sub(getprop('ui:interface:h'),getprop('ui:interface:player:h')),getprop('ui:interface:target:h')),12)" />
<!-- Compass -->
<action handler="set" params="target='ui:interface:compass:active'|value=1" />
<action handler="set" params="target='ui:interface:compass:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:compass:w')),4)" />
<action handler="set" params="target='ui:interface:compass:y'|value=sub(getprop('ui:interface:h'),4)" />
<action handler="set_transparent" params="ui:interface:compass" />
<!-- Main Chat -->
<action handler="set" params="target='ui:interface:main_chat:active'|value=1" />
<action handler="set_alpha" params="target=ui:interface:main_chat|alpha=100" />
<!-- Actions -->
<action handler="set" params="target='ui:interface:gestionsets:active'|value=0" />
<!-- Info Player Journal -->
<action handler="set" params="target='ui:interface:info_player_journal:x'|value=4" />
<action handler="set" params="target='ui:interface:info_player_journal:y'|value=sub(getprop('ui:interface:h'),113)" />
<action handler="set_alpha" params="target=ui:interface:info_player_journal|alpha=100" />
<!-- Milko -->
<action handler="set" params="target='ui:interface:milko_pad:active'|value=1" />
<action handler="set" params="target='ui:interface:milko_pad:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:milko_pad:w')),4)" />
<action handler="set" params="target='ui:interface:milko_pad:y'|value=add(getprop('ui:interface:milko_pad:h'),4)" />
<action handler="set_alpha" params="target=ui:interface:milko_pad|alpha=200" />
<!-- Map -->
<action handler="set" params="target='ui:interface:map:active'|value=1" />
<action handler="set" params="target='ui:interface:map:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:map:w')),4)" />
<action handler="set" params="target='ui:interface:map:y'|value=sub(sub(getprop('ui:interface:h'), getprop('ui:interface:compass:h')), 8)" />
<action handler="set" params="target='ui:interface:map:active'|value=0" />
<!-- Contacts -->
<action handler="set" params="target='ui:interface:contact_list:active'|value=1" />
<action handler="set" params="target='ui:interface:contact_list:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:contact_list:w')),4)" />
<action handler="set" params="target='ui:interface:contact_list:y'|value=sub(sub(getprop('ui:interface:h'), getprop('ui:interface:compass:h')), 12)" />
<action handler="set" params="target='ui:interface:contact_list:active'|value=0" />
<!-- Mailbox -->
<action handler="set" params="target='ui:interface:mailbox:w'|value=480" />
<action handler="set" params="target='ui:interface:mailbox:h'|value=360" />
<!-- Gestion Windows (the popup in middle of the screen) -->
<action handler="set" params="dblink=UI:TEMP:ACTIVE|value=getprop('ui:interface:gestion_windows:active')" />
<action handler="set" params="target='ui:interface:gestion_windows:active'|value=1" />
<action handler="set" params="target='ui:interface:gestion_windows:x'|value=div(sub(getprop('ui:interface:w'),getprop('ui:interface:gestion_windows:w')),2)" />
<action handler="set" params="target='ui:interface:gestion_windows:y'|value=add(getprop('ui:interface:gestion_windows:h'),div(sub(getprop('ui:interface:h'),getprop('ui:interface:gestion_windows:h')),2))" />
<action handler="set" params="target='ui:interface:gestion_windows:active'|value=@UI:TEMP:ACTIVE" />
</proc>
<proc id="proc_reset_interface">
<action handler="set" params="dblink=UI:SAVE:DAY_COLOR|value=makeRGB(219,254,174)" />
<action handler="set" params="dblink=UI:SAVE:DAY_COLOR|value=makeRGB(219,254,174)" />
<action handler="set" params="dblink=UI:SAVE:NIGHT_COLOR|value=makeRGB(127,190,254)" />
<!-- Reset all the items that are trivial -->
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:PLA|value=makeRGB(167,205,107)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:ANI|value=makeRGB(189,154,123)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:COM|value=makeRGB(255,237,89)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:INV|value=makeRGB(74,162,243)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:OPT|value=makeRGB(255,79,69)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:LAB|value=makeRGB(251,163,60)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:MEM|value=makeRGB(237,112,200)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:MAP|value=makeRGB(237,200,30)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:HELP|value=makeRGB(255,96,16)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:INFOS|value=makeRGB(255,0,0)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:TRADE|value=makeRGB(204,177,107)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:BOT|value=makeRGB(0,251,222)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_PALETTE|value=makeRGB(255,255,66)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_SCENARIO|value=makeRGB(117,217,255)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_PROP_WINDOW|value=makeRGB(26,251,142)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_FORM|value=makeRGB(24,142,249)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_CUSTOM_LOOK|value=makeRGB(239,170,33)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_DIALOGS|value=makeRGB(117,163,255)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_EVENTS|value=makeRGB(252,255,162)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_ACTIVITIES|value=makeRGB(228,118,255)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_FEATURE_HELP|value=makeRGB(117,255,189)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_CONNECT|value=makeRGB(162,255,173)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_SESSION_BROWSER|value=makeRGB(255,113,66)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_SCENARIO_CONTROL|value=makeRGB(255,12,89)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_PLAYER_TRACKING|value=makeRGB(240,255,89)" />
<action handler="set" params="dblink=UI:SAVE:R2_PROP_SHEET:CONTAINER_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:R2_PROP_SHEET:CONTENT_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:R2_PROP_SHEET:ROLLOVER_CONTENT_ALPHA|value=0" />
<action handler="set" params="dblink=UI:SAVE:R2_PROP_SHEET:ROLLOVER_CONTAINER_ALPHA|value=0" />
<action handler="set" params="dblink=UI:SAVE:R2_PROP_SHEET:USE_GLOBAL_ALPHA_SETTINGS|value=1" />
<action handler="set" params="dblink=UI:SAVE:R2_FORM:CONTAINER_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:R2_FORM:CONTENT_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:R2_FORM:ROLLOVER_CONTENT_ALPHA|value=0" />
<action handler="set" params="dblink=UI:SAVE:R2_FORM:ROLLOVER_CONTAINER_ALPHA|value=0" />
<action handler="set" params="dblink=UI:SAVE:R2_FORM:USE_GLOBAL_ALPHA_SETTINGS|value=1" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:DEAD|value=makeRGB(255,255,0)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:USER|value=makeRGB(255,112,249)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PLAYER|value=makeRGB(77,144,255)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:GROUP|value=makeRGB(185,76,255)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:GUILD|value=makeRGB(120,0,200)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:NPC|value=makeRGB(192,192,192)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:FAUNA|value=makeRGB(249,179,29)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:TARGET|value=makeRGB(255,255,255)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:SOURCE|value=makeRGB(65,255,112)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:MOUNT|value=makeRGB(217,255,114)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:BEAST|value=makeRGB(158,216,0)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PVPENEMY|value=makeRGB(185,0,0)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PVPALLY|value=makeRGB(0,200,0)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PVPALLYINTEAM|value=makeRGB(140,200,140)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PVPALLYINGUILD|value=makeRGB(100,150,100)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PVPNEUTRAL|value=makeRGB(64,128,128)" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:GUILD_SYMBOL|value=0" />
<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: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" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:GUILD_SYMBOL|value=1" />
<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:ChaScore1|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:ChaScore2|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:ChaScore3|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" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:NPCTITLE|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:MISSION_ICON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:MINI_MISSION_ICON|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:ENEMY:GUILD_SYMBOL|value=1" />
<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: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" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:MISC|value=makeRGB(255,0,255)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:TRIBE|value=makeRGB(180,180,180)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:BANDIT|value=makeRGB(110,110,110)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:CITIZEN|value=makeRGB(255,255,255)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FAUNA|value=makeRGB(255,100,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FAUNAEXCEL|value=makeRGB(255,50,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FAUNASUP|value=makeRGB(200,0,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FORAGE|value=makeRGB(150,200,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FORAGEEXCEL|value=makeRGB(50,200,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FORAGESUP|value=makeRGB(0,150,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:SAP|value=makeRGB(150,200,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:AMBER|value=makeRGB(255,150,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:NODE|value=makeRGB(200,100,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FIBER|value=makeRGB(255,255,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:BARK|value=makeRGB(150,100,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:SEED|value=makeRGB(100,50,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:SHELL|value=makeRGB(200,150,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:RESIN|value=makeRGB(50,100,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:WOOD|value=makeRGB(100,100,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:OIL|value=makeRGB(200,200,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:MISSION|value=makeRGB(200,50,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FOOD|value=makeRGB(200,50,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:CONSTRUCTION|value=makeRGB(255,0,100)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:GOO|value=makeRGB(100,0,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:INSECT|value=makeRGB(50,100,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:KITIN|value=makeRGB(50,0,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:NOCIVE|value=makeRGB(50,0,100)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:PRESERVATIVE|value=makeRGB(50,0,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:PASSAGE|value=makeRGB(100,255,255)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:TELEPORTER|value=makeRGB(0,200,200)" />
<action handler="set" params="dblink=UI:SAVE:EXPAND_MISSION_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:MISSION_JOURNAL_HEADER_ACTIVE|value=1" />
<action handler="set" params="dblink=UI:SAVE:CONTENT_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:CONTAINER_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:CONTENT_ROLLOVER_FACTOR|value=255" />
<action handler="set" params="dblink=UI:SAVE:CONTAINER_ROLLOVER_FACTOR|value=255" />
<action handler="set" params="dblink=UI:SAVE:ALPHA_ROLLOVER_SPEED|value=5" />
<action handler="set" params="dblink=UI:SAVE:DOUBLE_CLICK_SPEED|value=50" />
<action handler="set" params="dblink=UI:SAVE:KEY_REPEAT_SPEED|value=50" />
<action handler="set" params="dblink=UI:SAVE:USER_CHAR_FADE|value=0" />
<action handler="set" params="dblink=UI:SAVE:USER_CHAR_OPA_MIN|value=160" />
<action handler="set" params="dblink=UI:SAVE:DAY_COLOR|value=makeRGB(219,254,174)" />
<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_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" />
<action handler="set" params="dblink=UI:SAVE:CHAT:MULTI_LINE_SPACE|value=0" />
<action handler="set" params="dblink=UI:SAVE:CHAT:SHADOWED_TEXT|value=1" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:SPEAKER|value=makeRGB(220,220,50)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:SAY|value=makeRGB(255,255,255)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:SHOUT|value=makeRGB(255,70,70)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:GROUP|value=makeRGB(170,170,255)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:CLADE|value=makeRGB(70,255,70)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:CIVILIZATION|value=makeRGB(128,128,128)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:TERRITORY|value=makeRGB(128,128,128)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:UNIVERSE_NEW|value=makeRGB(255,127,0)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:REGION|value=makeRGB(255,200,200)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:TELL|value=makeRGB(170,170,170)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:DYN|value=makeRGB(162,255,173)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:ENTER_DONT_QUIT_CB|value=0" />
<action handler="set" params="dblink=UI:SAVE:CHAT:SHOW_TIMES_IN_CHAT_CB|value=0" />
<action handler="set" params="dblink=UI:SAVE:CHAT:SHOW_DYN_CHANNEL_NAME_IN_CHAT_CB|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:SORT_TYPE|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:SORT_TYPE|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:MAIN_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:GUILD_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:TEAM_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:SYSTEM_INFO|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:AROUND_ME|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:CHAT_GROUP|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:USER_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:UNIVERSE_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:REGION_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:AROUND_ME|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:REGION_CHAT|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:TEAM_CHAT|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:GUILD_CHAT|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:UNIVERSE_CHAT|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:SYSTEM_INFO|value=1" />
<action handler="reset_virtual_desktop" params="vdesk=0" />
<action handler="reset_virtual_desktop" params="vdesk=1" />
<action handler="reset_virtual_desktop" params="vdesk=2" />
<action handler="reset_virtual_desktop" params="vdesk=3" />
<!-- ********* -->
<!-- DESKTOP 1 -->
<!-- ********* -->
<action handler="set_virtual_desktop" params="vdesk=0" />
<action handler="proc" params="base_desktop" />
<!-- Actions -->
<action handler="set" params="target='ui:interface:gestionsets:active'|value=1" />
<action handler="set" params="target='ui:interface:gestionsets:x'|value=div(sub(getprop('ui:interface:w'),getprop('ui:interface:gestionsets:w')),2)" />
<action handler="set" params="target='ui:interface:gestionsets:y'|value=sub(getprop('ui:interface:h'),4)" />
<!-- Main Chat -->
<action handler="set" params="target='ui:interface:main_chat:w'|value=383" />
<action handler="set" params="target='ui:interface:main_chat:h'|value=237" />
<action handler="set" params="target='ui:interface:main_chat:x'|value=4" />
<action handler="set" params="target='ui:interface:main_chat:y'|value=add(getprop('ui:interface:main_chat:h'),4)" />
<!-- Mission Journal -->
<action handler="set" params="target='ui:interface:info_player_journal:active'|value=1" />
<action handler="set" params="target='ui:interface:info_player_journal:locked'|value=0" />
<action handler="set" params="target='ui:interface:info_player_journal:h'|value=182" />
<action handler="set" params="target='ui:interface:info_player_journal:w'|value=280" />
<action handler="set" params="target='ui:interface:info_player_journal:x'|value=4" />
<action handler="set" params="target='ui:interface:info_player_journal:y'|value=add(add(getprop('ui:interface:main_chat:h'),getprop('ui:interface:info_player_journal:h')),8)" />
<!-- ********* -->
<!-- DESKTOP 2 -->
<!-- ********* -->
<action handler="set_virtual_desktop" params="vdesk=1" />
<action handler="proc" params="base_desktop" />
<!-- Compass -->
<action handler="set" params="target='ui:interface:compass:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:compass:w')),4)" />
<action handler="set" params="target='ui:interface:compass:y'|value=sub(getprop('ui:interface:h'),4)" />
<!-- Player -->
<action handler="set" params="target='ui:interface:player:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:player:w')),4)" />
<action handler="set" params="target='ui:interface:player:y'|value=sub(sub(getprop('ui:interface:h'),getprop('ui:interface:compass:h')),8)" />
<!-- Target -->
<action handler="set" params="target='ui:interface:target:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:target:w')),4)" />
<action handler="set" params="target='ui:interface:target:y'|value=sub(sub(sub(getprop('ui:interface:h'),getprop('ui:interface:player:h')), getprop('ui:interface:compass:h')), 12)" />
<!-- BonusMalus -->
<action handler="set" params="target='ui:interface:bonus_malus:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:bonus_malus:w')),4)" />
<action handler="set" params="target='ui:interface:bonus_malus:y'|value=sub(sub(sub(sub(getprop('ui:interface:h'), getprop('ui:interface:target:h')), getprop('ui:interface:compass:h')), getprop('ui:interface:player:h')), 16)" />
<!-- Mission Journal -->
<action handler="set" params="target='ui:interface:info_player_journal:active'|value=0" />
<!-- Actions -->
<action handler="set" params="target='ui:interface:gestionsets:active'|value=0" />
<!-- Main Chat -->
<action handler="set" params="target='ui:interface:main_chat:w'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:compass:w')),8)" />
<action handler="set" params="target='ui:interface:main_chat:h'|value=132" />
<action handler="set" params="target='ui:interface:main_chat:x'|value=4" />
<action handler="set" params="target='ui:interface:main_chat:y'|value=add(getprop('ui:interface:main_chat:h'),4)" />
<!-- Map -->
<action handler="set" params="target='ui:interface:map:w'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:compass:w')),8)" />
<action handler="set" params="target='ui:interface:map:h'|value=sub(sub(getprop('ui:interface:h'),getprop('ui:interface:main_chat:h')),8)" />
<action handler="set" params="target='ui:interface:map:x'|value=4" />
<action handler="set" params="target='ui:interface:map:y'|value=sub(sub(getprop('ui:interface:h'),getprop('ui:interface:map:h')),4)" />
<action handler="set" params="target='ui:interface:map:locked'|value=0" />
<action handler="set" params="target='ui:interface:map:active'|value=1" />
<!-- ********* -->
<!-- DESKTOP 3 -->
<!-- ********* -->
<action handler="set_virtual_desktop" params="vdesk=2" />
<action handler="reset_interface" params="" />
<!-- ********* -->
<!-- DESKTOP 4 -->
<!-- ********* -->
<action handler="set_virtual_desktop" params="vdesk=3" />
<action handler="proc" params="base_desktop" />
<!-- Actions -->
<action handler="set" params="target='ui:interface:gestionsets:active'|value=1" />
<action handler="set" params="target='ui:interface:gestionsets:x'|value=div(sub(getprop('ui:interface:w'),getprop('ui:interface:gestionsets:w')),2)" />
<action handler="set" params="target='ui:interface:gestionsets:y'|value=sub(getprop('ui:interface:h'),4)" />
<!-- Main Chat -->
<action handler="set" params="target='ui:interface:main_chat:w'|value=383" />
<action handler="set" params="target='ui:interface:main_chat:h'|value=237" />
<action handler="set" params="target='ui:interface:main_chat:x'|value=4" />
<action handler="set" params="target='ui:interface:main_chat:y'|value=add(getprop('ui:interface:main_chat:h'),4)" />
<!-- Mission Journal -->
<action handler="set" params="target='ui:interface:info_player_journal:active'|value=1" />
<action handler="set" params="target='ui:interface:info_player_journal:locked'|value=0" />
<action handler="set" params="target='ui:interface:info_player_journal:h'|value=182" />
<action handler="set" params="target='ui:interface:info_player_journal:w'|value=280" />
<action handler="set" params="target='ui:interface:info_player_journal:x'|value=4" />
<action handler="set" params="target='ui:interface:info_player_journal:y'|value=add(add(getprop('ui:interface:main_chat:h'),getprop('ui:interface:info_player_journal:h')),8)" />
<!-- SAUVEGARDE DU DESKTOP 4 ET RETOUR AU DESKTOP 0 -->
<action handler="set_virtual_desktop" params="vdesk=0" />
<!-- ************ -->
<!-- INFO WINDOWS -->
<!-- ************ -->
<action handler="help_reset_pos" params="y=-100" />
<action handler="lua" params="local tbw = getUI('ui:interface:r2ed_toolbar_window', false) if tbw then tbw.active = (r2~=nil and r2.Mode~=nil and r2.Mode=='Test') end" />
<!-- ************ -->
<!-- MISC -->
<!-- ************ -->
<action handler="lua" params="getUI('ui:interface:keys').uc_title = i18n.get('uiKeysTitle')"/>
<action handler="lua" params="local w = getUI('ui:interface:r2ed_toolbar_window', false) if w then w.active = (r2~=nil and r2.Mode~=nil and r2.Mode=='Test') end"/>
<!-- reenable missions, possibly hidden after a ring session -->
<action handler="lua:game:updateMissionJournalMode()"/>
<action handler="lua" params="local animals = getUI('ui:interface:animal_global');
if animals then
animals.content.no_available_animals.active = false;
animals.header_opened.active = true;
animals.header_closed.active = false;
if animals.list then
animals.list.active = true;
end;
end"/>
<action handler="lua" params="if r2 and r2.initDMToolbarWindowPos then r2:initDMToolbarWindowPos() end" />
</proc>
<proc id="proc_reset_r2ed_interface">
</proc>
</interface_config>
<!-- ****************************************** -->
<!-- * RESET INTERFACE * -->
<!-- ****************************************** -->
<!-- A container is ALWAYS defined in BL TL hotspot when poped (layer0) else (layer > 0) it is a TL TL -->
<!-- Take care that if the container is not active a getProp of w or h will return 0 -->
<interface_config>
<root id="interface" x="0" y="0" w="800" h="600" active="true" />
<variable entry="UI:TEMP:ACTIVE" type="sint64" value="0" />
<proc id="pri_top_center" >
<action handler="set" params="dblink=UI:TEMP:ACTIVE|value=getprop('@0:active')" />
<action handler="set" params="target='@0:active'|value=1" />
<!--<action handler="set" params="target='@0:x'|value=div(sub(getprop('ui:interface:w'),getprop('@0:w')),2)" />-->
<action handler="set" params="target='@0:y'|value=sub(getprop('ui:interface:h'),48)" />
<action handler="set" params="target='@0:active'|value=@UI:TEMP:ACTIVE" />
</proc>
<proc id="base_desktop" >
<action handler="reset_interface" params="" />
<action handler="unlock_all_container" params="" />
<!-- Player -->
<action handler="set" params="target='ui:interface:player:active'|value=1" />
<action handler="set" params="target='ui:interface:player:x'|value=4" />
<action handler="set" params="target='ui:interface:player:y'|value=sub(getprop('ui:interface:h'),4)" />
<action handler="set_transparent" params="ui:interface:player" />
<!-- BonusMalus -->
<action handler="set" params="target='ui:interface:bonus_malus:active'|value=1" />
<action handler="set" params="target='ui:interface:bonus_malus:x'|value=188" />
<action handler="set" params="target='ui:interface:bonus_malus:y'|value=sub(getprop('ui:interface:h'),4)" />
<!-- Target -->
<action handler="set" params="target='ui:interface:target:active'|value=1" />
<action handler="set" params="target='ui:interface:target:x'|value=4" />
<action handler="set" params="target='ui:interface:target:y'|value=sub(sub(getprop('ui:interface:h'),getprop('ui:interface:player:h')),8)" />
<action handler="set_transparent" params="ui:interface:target" />
<!-- Team -->
<action handler="set" params="target='ui:interface:team_list:x'|value=4" />
<action handler="set" params="target='ui:interface:team_list:y'|value=sub(sub(sub(getprop('ui:interface:h'),getprop('ui:interface:player:h')),getprop('ui:interface:target:h')),12)" />
<!-- Compass -->
<action handler="set" params="target='ui:interface:compass:active'|value=1" />
<action handler="set" params="target='ui:interface:compass:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:compass:w')),4)" />
<action handler="set" params="target='ui:interface:compass:y'|value=sub(getprop('ui:interface:h'),4)" />
<action handler="set_transparent" params="ui:interface:compass" />
<!-- Main Chat -->
<action handler="set" params="target='ui:interface:main_chat:active'|value=1" />
<action handler="set_alpha" params="target=ui:interface:main_chat|alpha=100" />
<!-- Actions -->
<action handler="set" params="target='ui:interface:gestionsets:active'|value=0" />
<!-- Info Player Journal -->
<action handler="set" params="target='ui:interface:info_player_journal:x'|value=4" />
<action handler="set" params="target='ui:interface:info_player_journal:y'|value=sub(getprop('ui:interface:h'),113)" />
<action handler="set_alpha" params="target=ui:interface:info_player_journal|alpha=100" />
<!-- Milko -->
<action handler="set" params="target='ui:interface:milko_pad:active'|value=1" />
<action handler="set" params="target='ui:interface:milko_pad:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:milko_pad:w')),4)" />
<action handler="set" params="target='ui:interface:milko_pad:y'|value=add(getprop('ui:interface:milko_pad:h'),4)" />
<action handler="set_alpha" params="target=ui:interface:milko_pad|alpha=200" />
<!-- Map -->
<action handler="set" params="target='ui:interface:map:active'|value=1" />
<action handler="set" params="target='ui:interface:map:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:map:w')),4)" />
<action handler="set" params="target='ui:interface:map:y'|value=sub(sub(getprop('ui:interface:h'), getprop('ui:interface:compass:h')), 8)" />
<action handler="set" params="target='ui:interface:map:active'|value=0" />
<!-- Contacts -->
<action handler="set" params="target='ui:interface:contact_list:active'|value=1" />
<action handler="set" params="target='ui:interface:contact_list:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:contact_list:w')),4)" />
<action handler="set" params="target='ui:interface:contact_list:y'|value=sub(sub(getprop('ui:interface:h'), getprop('ui:interface:compass:h')), 12)" />
<action handler="set" params="target='ui:interface:contact_list:active'|value=0" />
<!-- Mailbox -->
<action handler="set" params="target='ui:interface:mailbox:w'|value=480" />
<action handler="set" params="target='ui:interface:mailbox:h'|value=360" />
<!-- Gestion Windows (the popup in middle of the screen) -->
<action handler="set" params="dblink=UI:TEMP:ACTIVE|value=getprop('ui:interface:gestion_windows:active')" />
<action handler="set" params="target='ui:interface:gestion_windows:active'|value=1" />
<action handler="set" params="target='ui:interface:gestion_windows:x'|value=div(sub(getprop('ui:interface:w'),getprop('ui:interface:gestion_windows:w')),2)" />
<action handler="set" params="target='ui:interface:gestion_windows:y'|value=add(getprop('ui:interface:gestion_windows:h'),div(sub(getprop('ui:interface:h'),getprop('ui:interface:gestion_windows:h')),2))" />
<action handler="set" params="target='ui:interface:gestion_windows:active'|value=@UI:TEMP:ACTIVE" />
<!-- AppZone -->
<action handler="set" params="target='ui:interface:appzone:active'|value=1" />
<action handler="set" params="target='ui:interface:appzone:x'|value=div(sub(getprop('ui:interface:w'),getprop('ui:interface:appzone:w')),2)" />
<action handler="set" params="target='ui:interface:appzone:y'|value=add(getprop('ui:interface:appzone:h'),2)" />
</proc>
<proc id="proc_reset_interface">
<action handler="set" params="dblink=UI:SAVE:DAY_COLOR|value=makeRGB(219,254,174)" />
<action handler="set" params="dblink=UI:SAVE:DAY_COLOR|value=makeRGB(219,254,174)" />
<action handler="set" params="dblink=UI:SAVE:NIGHT_COLOR|value=makeRGB(127,190,254)" />
<!-- Reset all the items that are trivial -->
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:PLA|value=makeRGB(167,205,107)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:ANI|value=makeRGB(189,154,123)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:COM|value=makeRGB(255,237,89)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:INV|value=makeRGB(74,162,243)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:OPT|value=makeRGB(255,79,69)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:LAB|value=makeRGB(251,163,60)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:MEM|value=makeRGB(237,112,200)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:MAP|value=makeRGB(237,200,30)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:HELP|value=makeRGB(255,96,16)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:INFOS|value=makeRGB(255,0,0)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:TRADE|value=makeRGB(204,177,107)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:BOT|value=makeRGB(0,251,222)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_PALETTE|value=makeRGB(255,255,66)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_SCENARIO|value=makeRGB(117,217,255)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_PROP_WINDOW|value=makeRGB(26,251,142)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_FORM|value=makeRGB(24,142,249)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_CUSTOM_LOOK|value=makeRGB(239,170,33)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_DIALOGS|value=makeRGB(117,163,255)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_EVENTS|value=makeRGB(252,255,162)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_ACTIVITIES|value=makeRGB(228,118,255)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_FEATURE_HELP|value=makeRGB(117,255,189)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_CONNECT|value=makeRGB(162,255,173)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_SESSION_BROWSER|value=makeRGB(255,113,66)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_SCENARIO_CONTROL|value=makeRGB(255,12,89)" />
<action handler="set" params="dblink=UI:SAVE:WIN:COLORS:R2_PLAYER_TRACKING|value=makeRGB(240,255,89)" />
<action handler="set" params="dblink=UI:SAVE:R2_PROP_SHEET:CONTAINER_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:R2_PROP_SHEET:CONTENT_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:R2_PROP_SHEET:ROLLOVER_CONTENT_ALPHA|value=0" />
<action handler="set" params="dblink=UI:SAVE:R2_PROP_SHEET:ROLLOVER_CONTAINER_ALPHA|value=0" />
<action handler="set" params="dblink=UI:SAVE:R2_PROP_SHEET:USE_GLOBAL_ALPHA_SETTINGS|value=1" />
<action handler="set" params="dblink=UI:SAVE:R2_FORM:CONTAINER_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:R2_FORM:CONTENT_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:R2_FORM:ROLLOVER_CONTENT_ALPHA|value=0" />
<action handler="set" params="dblink=UI:SAVE:R2_FORM:ROLLOVER_CONTAINER_ALPHA|value=0" />
<action handler="set" params="dblink=UI:SAVE:R2_FORM:USE_GLOBAL_ALPHA_SETTINGS|value=1" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:DEAD|value=makeRGB(255,255,0)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:USER|value=makeRGB(255,112,249)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PLAYER|value=makeRGB(77,144,255)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:GROUP|value=makeRGB(185,76,255)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:GUILD|value=makeRGB(120,0,200)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:NPC|value=makeRGB(192,192,192)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:FAUNA|value=makeRGB(249,179,29)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:TARGET|value=makeRGB(255,255,255)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:SOURCE|value=makeRGB(65,255,112)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:MOUNT|value=makeRGB(217,255,114)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:BEAST|value=makeRGB(158,216,0)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PVPENEMY|value=makeRGB(185,0,0)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PVPALLY|value=makeRGB(0,200,0)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PVPALLYINTEAM|value=makeRGB(140,200,140)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PVPALLYINGUILD|value=makeRGB(100,150,100)" />
<action handler="set" params="dblink=UI:SAVE:ENTITY:COLORS:PVPNEUTRAL|value=makeRGB(64,128,128)" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:USER:GUILD_SYMBOL|value=0" />
<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: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" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:GUILD_SYMBOL|value=1" />
<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: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" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:NPCTITLE|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:MISSION_ICON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:FRIEND:MINI_MISSION_ICON|value=0" />
<action handler="set" params="dblink=UI:SAVE:INSCENE:ENEMY:GUILD_SYMBOL|value=1" />
<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: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" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:MISC|value=makeRGB(255,0,255)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:TRIBE|value=makeRGB(180,180,180)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:BANDIT|value=makeRGB(110,110,110)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:CITIZEN|value=makeRGB(255,255,255)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FAUNA|value=makeRGB(255,100,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FAUNAEXCEL|value=makeRGB(255,50,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FAUNASUP|value=makeRGB(200,0,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FORAGE|value=makeRGB(150,200,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FORAGEEXCEL|value=makeRGB(50,200,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FORAGESUP|value=makeRGB(0,150,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:SAP|value=makeRGB(150,200,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:AMBER|value=makeRGB(255,150,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:NODE|value=makeRGB(200,100,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FIBER|value=makeRGB(255,255,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:BARK|value=makeRGB(150,100,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:SEED|value=makeRGB(100,50,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:SHELL|value=makeRGB(200,150,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:RESIN|value=makeRGB(50,100,0)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:WOOD|value=makeRGB(100,100,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:OIL|value=makeRGB(200,200,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:MISSION|value=makeRGB(200,50,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:FOOD|value=makeRGB(200,50,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:CONSTRUCTION|value=makeRGB(255,0,100)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:GOO|value=makeRGB(100,0,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:INSECT|value=makeRGB(50,100,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:KITIN|value=makeRGB(50,0,150)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:NOCIVE|value=makeRGB(50,0,100)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:PRESERVATIVE|value=makeRGB(50,0,50)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:PASSAGE|value=makeRGB(100,255,255)" />
<action handler="set" params="dblink=UI:SAVE:LANDMARK:COLORS:TELEPORTER|value=makeRGB(0,200,200)" />
<action handler="set" params="dblink=UI:SAVE:EXPAND_MISSION_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:MISSION_JOURNAL_HEADER_ACTIVE|value=1" />
<action handler="set" params="dblink=UI:SAVE:CONTENT_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:CONTAINER_ALPHA|value=255" />
<action handler="set" params="dblink=UI:SAVE:CONTENT_ROLLOVER_FACTOR|value=255" />
<action handler="set" params="dblink=UI:SAVE:CONTAINER_ROLLOVER_FACTOR|value=255" />
<action handler="set" params="dblink=UI:SAVE:ALPHA_ROLLOVER_SPEED|value=5" />
<action handler="set" params="dblink=UI:SAVE:DOUBLE_CLICK_SPEED|value=50" />
<action handler="set" params="dblink=UI:SAVE:KEY_REPEAT_SPEED|value=50" />
<action handler="set" params="dblink=UI:SAVE:USER_CHAR_FADE|value=0" />
<action handler="set" params="dblink=UI:SAVE:USER_CHAR_OPA_MIN|value=160" />
<action handler="set" params="dblink=UI:SAVE:DAY_COLOR|value=makeRGB(219,254,174)" />
<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_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" />
<action handler="set" params="dblink=UI:SAVE:CHAT:MULTI_LINE_SPACE|value=0" />
<action handler="set" params="dblink=UI:SAVE:CHAT:SHADOWED_TEXT|value=1" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:SPEAKER|value=makeRGB(220,220,50)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:SAY|value=makeRGB(255,255,255)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:SHOUT|value=makeRGB(255,70,70)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:GROUP|value=makeRGB(170,170,255)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:CLADE|value=makeRGB(70,255,70)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:CIVILIZATION|value=makeRGB(128,128,128)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:TERRITORY|value=makeRGB(128,128,128)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:UNIVERSE_NEW|value=makeRGB(255,127,0)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:REGION|value=makeRGB(255,200,200)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:TELL|value=makeRGB(170,170,170)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:COLORS:DYN|value=makeRGB(162,255,173)" />
<action handler="set" params="dblink=UI:SAVE:CHAT:ENTER_DONT_QUIT_CB|value=0" />
<action handler="set" params="dblink=UI:SAVE:CHAT:SHOW_TIMES_IN_CHAT_CB|value=0" />
<action handler="set" params="dblink=UI:SAVE:CHAT:SHOW_DYN_CHANNEL_NAME_IN_CHAT_CB|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:SORT_TYPE|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:SORT_TYPE|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:MAIN_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:GUILD_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:TEAM_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:SYSTEM_INFO|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:AROUND_ME|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:CHAT_GROUP|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:USER_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:UNIVERSE_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISDETACHED:REGION_CHAT|value=0" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:AROUND_ME|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:REGION_CHAT|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:TEAM_CHAT|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:GUILD_CHAT|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:UNIVERSE_CHAT|value=1" />
<action handler="set" params="dblink=UI:SAVE:ISENABLED:SYSTEM_INFO|value=1" />
<action handler="reset_virtual_desktop" params="vdesk=0" />
<action handler="reset_virtual_desktop" params="vdesk=1" />
<action handler="reset_virtual_desktop" params="vdesk=2" />
<action handler="reset_virtual_desktop" params="vdesk=3" />
<!-- ********* -->
<!-- DESKTOP 1 -->
<!-- ********* -->
<action handler="set_virtual_desktop" params="vdesk=0" />
<action handler="proc" params="base_desktop" />
<!-- Actions -->
<action handler="set" params="target='ui:interface:gestionsets:active'|value=1" />
<action handler="set" params="target='ui:interface:gestionsets:x'|value=div(sub(getprop('ui:interface:w'),getprop('ui:interface:gestionsets:w')),2)" />
<action handler="set" params="target='ui:interface:gestionsets:y'|value=sub(getprop('ui:interface:h'),4)" />
<!-- Main Chat -->
<action handler="set" params="target='ui:interface:main_chat:w'|value=383" />
<action handler="set" params="target='ui:interface:main_chat:h'|value=237" />
<action handler="set" params="target='ui:interface:main_chat:x'|value=4" />
<action handler="set" params="target='ui:interface:main_chat:y'|value=add(getprop('ui:interface:main_chat:h'),4)" />
<!-- Mission Journal -->
<action handler="set" params="target='ui:interface:info_player_journal:active'|value=1" />
<action handler="set" params="target='ui:interface:info_player_journal:locked'|value=0" />
<action handler="set" params="target='ui:interface:info_player_journal:h'|value=182" />
<action handler="set" params="target='ui:interface:info_player_journal:w'|value=280" />
<action handler="set" params="target='ui:interface:info_player_journal:x'|value=4" />
<action handler="set" params="target='ui:interface:info_player_journal:y'|value=add(add(getprop('ui:interface:main_chat:h'),getprop('ui:interface:info_player_journal:h')),8)" />
<!-- ********* -->
<!-- DESKTOP 2 -->
<!-- ********* -->
<action handler="set_virtual_desktop" params="vdesk=1" />
<action handler="proc" params="base_desktop" />
<!-- Compass -->
<action handler="set" params="target='ui:interface:compass:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:compass:w')),4)" />
<action handler="set" params="target='ui:interface:compass:y'|value=sub(getprop('ui:interface:h'),4)" />
<!-- Player -->
<action handler="set" params="target='ui:interface:player:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:player:w')),4)" />
<action handler="set" params="target='ui:interface:player:y'|value=sub(sub(getprop('ui:interface:h'),getprop('ui:interface:compass:h')),8)" />
<!-- Target -->
<action handler="set" params="target='ui:interface:target:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:target:w')),4)" />
<action handler="set" params="target='ui:interface:target:y'|value=sub(sub(sub(getprop('ui:interface:h'),getprop('ui:interface:player:h')), getprop('ui:interface:compass:h')), 12)" />
<!-- BonusMalus -->
<action handler="set" params="target='ui:interface:bonus_malus:x'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:bonus_malus:w')),4)" />
<action handler="set" params="target='ui:interface:bonus_malus:y'|value=sub(sub(sub(sub(getprop('ui:interface:h'), getprop('ui:interface:target:h')), getprop('ui:interface:compass:h')), getprop('ui:interface:player:h')), 16)" />
<!-- Mission Journal -->
<action handler="set" params="target='ui:interface:info_player_journal:active'|value=0" />
<!-- Actions -->
<action handler="set" params="target='ui:interface:gestionsets:active'|value=0" />
<!-- Main Chat -->
<action handler="set" params="target='ui:interface:main_chat:w'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:compass:w')),8)" />
<action handler="set" params="target='ui:interface:main_chat:h'|value=132" />
<action handler="set" params="target='ui:interface:main_chat:x'|value=4" />
<action handler="set" params="target='ui:interface:main_chat:y'|value=add(getprop('ui:interface:main_chat:h'),4)" />
<!-- Map -->
<action handler="set" params="target='ui:interface:map:w'|value=sub(sub(getprop('ui:interface:w'),getprop('ui:interface:compass:w')),8)" />
<action handler="set" params="target='ui:interface:map:h'|value=sub(sub(getprop('ui:interface:h'),getprop('ui:interface:main_chat:h')),8)" />
<action handler="set" params="target='ui:interface:map:x'|value=4" />
<action handler="set" params="target='ui:interface:map:y'|value=sub(sub(getprop('ui:interface:h'),getprop('ui:interface:map:h')),4)" />
<action handler="set" params="target='ui:interface:map:locked'|value=0" />
<action handler="set" params="target='ui:interface:map:active'|value=1" />
<!-- ********* -->
<!-- DESKTOP 3 -->
<!-- ********* -->
<action handler="set_virtual_desktop" params="vdesk=2" />
<action handler="reset_interface" params="" />
<!-- ********* -->
<!-- DESKTOP 4 -->
<!-- ********* -->
<action handler="set_virtual_desktop" params="vdesk=3" />
<action handler="proc" params="base_desktop" />
<!-- Actions -->
<action handler="set" params="target='ui:interface:gestionsets:active'|value=1" />
<action handler="set" params="target='ui:interface:gestionsets:x'|value=div(sub(getprop('ui:interface:w'),getprop('ui:interface:gestionsets:w')),2)" />
<action handler="set" params="target='ui:interface:gestionsets:y'|value=sub(getprop('ui:interface:h'),4)" />
<!-- Main Chat -->
<action handler="set" params="target='ui:interface:main_chat:w'|value=383" />
<action handler="set" params="target='ui:interface:main_chat:h'|value=237" />
<action handler="set" params="target='ui:interface:main_chat:x'|value=4" />
<action handler="set" params="target='ui:interface:main_chat:y'|value=add(getprop('ui:interface:main_chat:h'),4)" />
<!-- Mission Journal -->
<action handler="set" params="target='ui:interface:info_player_journal:active'|value=1" />
<action handler="set" params="target='ui:interface:info_player_journal:locked'|value=0" />
<action handler="set" params="target='ui:interface:info_player_journal:h'|value=182" />
<action handler="set" params="target='ui:interface:info_player_journal:w'|value=280" />
<action handler="set" params="target='ui:interface:info_player_journal:x'|value=4" />
<action handler="set" params="target='ui:interface:info_player_journal:y'|value=add(add(getprop('ui:interface:main_chat:h'),getprop('ui:interface:info_player_journal:h')),8)" />
<!-- SAUVEGARDE DU DESKTOP 4 ET RETOUR AU DESKTOP 0 -->
<action handler="set_virtual_desktop" params="vdesk=0" />
<!-- ************ -->
<!-- INFO WINDOWS -->
<!-- ************ -->
<action handler="help_reset_pos" params="y=-100" />
<action handler="lua" params="local tbw = getUI('ui:interface:r2ed_toolbar_window', false) if tbw then tbw.active = (r2~=nil and r2.Mode~=nil and r2.Mode=='Test') end" />
<!-- ************ -->
<!-- MISC -->
<!-- ************ -->
<action handler="lua" params="getUI('ui:interface:keys').uc_title = i18n.get('uiKeysTitle')"/>
<action handler="lua" params="local w = getUI('ui:interface:r2ed_toolbar_window', false) if w then w.active = (r2~=nil and r2.Mode~=nil and r2.Mode=='Test') end"/>
<!-- reenable missions, possibly hidden after a ring session -->
<action handler="lua:game:updateMissionJournalMode()"/>
<action handler="lua" params="local animals = getUI('ui:interface:animal_global');
if animals then
animals.content.no_available_animals.active = false;
animals.header_opened.active = true;
animals.header_closed.active = false;
if animals.list then
animals.list.active = true;
end;
end"/>
<action handler="lua" params="if r2 and r2.initDMToolbarWindowPos then r2:initDMToolbarWindowPos() end" />
</proc>
<proc id="proc_reset_r2ed_interface">
</proc>
</interface_config>

View file

@ -1702,7 +1702,7 @@
color_grayed="255 255 255 64"
shadow_color_grayed="0 0 0 255"
highlight_over="255 255 255 150"
case_mode="%case_first_word_letter_up"></group>
case_mode="%case_normal"></group>
<group type="menu"
id="base_menu_with_color"
extends="base_menu">
@ -1767,7 +1767,7 @@
name="uiOpen"
handler="item_text_display"
params="ui:interface:edit_custom" />
<separator />
<separator />
<!-- Move to an Animal -->
<action id="move"
name="uimMoveTo">
@ -1991,7 +1991,7 @@
posparent="box1"
posref="MR MR"
x="-3"
y="-2"
y="0"
color="135 243 28 255"
shadow="true"
fontsize="10"
@ -2004,7 +2004,7 @@
posparent="box1"
posref="MR MR"
x="-3"
y="-3"
y="0"
color="192 192 192 255"
shadow="true"
fontsize="10"
@ -2619,7 +2619,7 @@
<template name="edit_box_widget"
posref="TL TL"
text_x="0"
text_y="-1"
text_y="0"
text_ref="BL BL"
child_resize_h="true"
child_resize_hmargin="0"
@ -2789,7 +2789,7 @@
<template name="edit_box_widget_multiline"
posref="TL TL"
text_x="0"
text_y="-1"
text_y="0"
text_ref="BL BL"
child_resize_h="true"
multi_line="true"
@ -2872,6 +2872,7 @@
posref="#text_ref"
multi_line="#multi_line"
multi_line_space="0"
multi_min_line="#multi_min_line"
fontsize="#fontsize"
color="#color"
shadow="true"
@ -3034,7 +3035,7 @@
id="edit"
entry_type="positive_integer"
text_ref="TR TR"
text_y="-1"
text_y="0"
fontsize="12"
posparent="sheet"
posref="MR ML"
@ -3897,39 +3898,39 @@
active="false"
global_color="false"/>
<view type="bitmap"
id="hp_cost"
id="ChaScore1_cost"
texture="ico_heal.tga"
global_color="false"
posref="BL TL"
posparent="success_rate" />
<view type="bitmap"
id="sta_cost"
id="ChaScore2_cost"
y="0"
texture="ico_stamina.tga"
global_color="false"
posref="BL TL"
posparent="hp_cost" />
posparent="ChaScore1_cost" />
<view type="bitmap"
id="sap_cost"
id="ChaScore3_cost"
y="0"
texture="ico_sap.tga"
global_color="false"
posref="BL TL"
posparent="sta_cost" />
posparent="ChaScore2_cost" />
<view type="bitmap"
id="focus_cost"
id="ChaScore4_cost"
y="0"
texture="ico_focus.tga"
global_color="false"
posref="BL TL"
posparent="sap_cost" />
posparent="ChaScore3_cost" />
<view type="bitmap"
id="cast_time"
y="0"
texture="ico_time.tga"
global_color="false"
posref="BL TL"
posparent="focus_cost" />
posparent="ChaScore4_cost" />
<view type="bitmap"
id="cast_range"
y="0"
@ -3939,25 +3940,25 @@
posparent="cast_time" />
<view type="text"
id="hp_cost_text"
posparent="hp_cost"
posparent="ChaScore1_cost"
posref="MR ML"
hardtext="0"
global_color="false"/>
<view type="text"
id="sta_cost_text"
posparent="sta_cost"
posparent="ChaScore2_cost"
posref="MR ML"
hardtext="0"
global_color="false"/>
<view type="text"
id="sap_cost_text"
posparent="sap_cost"
posparent="ChaScore3_cost"
posref="MR ML"
hardtext="0"
global_color="false"/>
<view type="text"
id="focus_cost_text"
posparent="focus_cost"
posparent="ChaScore4_cost"
posref="MR ML"
hardtext="0"
global_color="false"/>
@ -4104,7 +4105,7 @@
line_maxw="300"
multi_line_maxw_only="true" />
<view type="bitmap"
id="hp_buff"
id="ChaScore1_buff"
h="15"
y="0"
texture="ico_heal.tga"
@ -4113,47 +4114,47 @@
posparent="text"
active="true"/>
<view type="bitmap"
id="sta_buff"
id="ChaScore2_buff"
y="0"
texture="ico_stamina.tga"
global_color="false"
posref="BL TL"
posparent="hp_buff" />
posparent="ChaScore1_buff" />
<view type="bitmap"
id="sap_buff"
id="ChaScore3_buff"
y="0"
texture="ico_sap.tga"
global_color="false"
posref="BL TL"
posparent="sta_buff" />
posparent="ChaScore2_buff" />
<view type="bitmap"
id="focus_buff"
id="ChaScore4_buff"
y="0"
texture="ico_focus.tga"
global_color="false"
posref="BL TL"
posparent="sap_buff" />
posparent="ChaScore3_buff" />
<view type="text"
id="hp_buff_text"
posparent="hp_buff"
posparent="ChaScore1_buff"
posref="MR ML"
hardtext="0"
global_color="false"/>
<view type="text"
id="sta_buff_text"
posparent="sta_buff"
posparent="ChaScore2_buff"
posref="MR ML"
hardtext="0"
global_color="false"/>
<view type="text"
id="sap_buff_text"
posparent="sap_buff"
posparent="ChaScore3_buff"
posref="MR ML"
hardtext="0"
global_color="false"/>
<view type="text"
id="focus_buff_text"
posparent="focus_buff"
posparent="ChaScore4_buff"
posref="MR ML"
hardtext="0"
global_color="false"/>
@ -4321,7 +4322,7 @@
id="text"
posref="BL BL"
x="2"
y="1"
y="0"
color="255 255 255 255"
fontsize="12"
shadow="true"
@ -4848,7 +4849,7 @@
global_color_normal="true"
global_color_over="true"
global_color_pushed="true"
text_y="-2"
text_y="0"
fontsize="10"
shadow="true"
case_mode="%case_upper"
@ -4866,7 +4867,7 @@
global_color_normal="true"
global_color_over="true"
global_color_pushed="true"
text_y="-2"
text_y="0"
fontsize="10"
shadow="true"
case_mode="%case_upper"
@ -4900,7 +4901,7 @@
x="0"
y="0"
posref="TL TL"
text_y="-2"
text_y="0"
onclick_l="#onclick_ok"
params_l="#onclick_ok_param"
hardtext="#ok_text"
@ -4908,7 +4909,7 @@
<ctrl style="button_cancel"
x="4"
posparent="ok"
text_y="-2"
text_y="0"
posref="TR TL"
onclick_l="#onclick_cancel"
params_l="#onclick_cancel_param"
@ -4944,7 +4945,7 @@
global_color_normal="true"
global_color_over="true"
global_color_pushed="true"
text_y="-2"
text_y="0"
fontsize="10"
shadow="true"
case_mode="%case_upper"
@ -4958,7 +4959,7 @@
tx_normal="w_text_button_normal"
tx_pushed="w_text_button_pushed"
tx_over="w_text_button_over"
text_y="-2"
text_y="0"
fontsize="10"
shadow="true"
case_mode="%case_upper"
@ -4982,7 +4983,7 @@
global_color_normal="true"
global_color_over="true"
global_color_pushed="true"
text_y="-2"
text_y="0"
fontsize="10"
shadow="true"
case_mode="%case_upper"
@ -5000,7 +5001,7 @@
tx_normal="w_text_button_normal"
tx_pushed="w_text_button_pushed"
tx_over="w_text_button_over"
text_y="-2"
text_y="0"
fontsize="10"
shadow="true"
case_mode="%case_upper"
@ -5028,7 +5029,7 @@
color="255 255 255 128"
col_over="255 255 255 0"
col_pushed="255 128 0 192"
text_y="-2"
text_y="0"
fontsize="12"
shadow="true"
text_color_normal="255 255 255 255"
@ -5119,7 +5120,7 @@
global_color_normal="true"
global_color_over="true"
global_color_pushed="true"
text_y="-2"
text_y="0"
fontsize="10"
shadow="true"
case_mode="%case_upper"
@ -5141,7 +5142,7 @@
color="255 255 255 255"
col_over="255 255 255 255"
col_pushed="255 255 255 255"
text_y="-4"
text_y="0"
fontsize="10"
shadow="true"
case_mode="%case_upper"
@ -6650,7 +6651,7 @@
posparent="button"
posref="MR ML"
x="4"
y="-3"
y="0"
color="255 255 255 255"
fontsize="#fontsize"
shadow="true"
@ -6927,4 +6928,241 @@
</group>
</group>
</template>
<!-- html browsing context -->
<template name="webig_html"
keep="true"
home=""
browse_redo=""
browse_undo=""
browse_refresh="">
<group id="html"
type="webig_html"
posref="TL TL"
home="#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="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_refresh"
browse_undo="#browse_undo"
browse_redo="#browse_redo">
<group id="black"
posref="BR BR"
sizeref="hw"
w="-10"
h="-12"
inherit_gc_alpha="true" />
<instance template="inner_thin_border"
posparent="black"
inherit_gc_alpha="true " />
<view id="background_bitmap"
type="bitmap"
posparent="black"
posref="MM MM"
sizeref="wh"
w="-2"
h="-2"
inherit_gc_alpha="true"
scale="true"
texture="blank.tga"
global_color="false" />
<group id="text_list"
type="list"
fontsize="9"
posref="TL TL"
posparent="black"
x="2"
y="-2"
space="0"
sizeref="hw"
w="-4"
h="-4"
maxelements="2000" />
<ctrl id="scroll_bar"
style="skin_scroll" />
</group>
</template>
<!-- html browser window -->
<template name="webig_browser"
keep="true"
home=""
w="480"
h="400"
browse_redo=""
browse_undo=""
browse_refresh="">
<group id="browser"
type="container"
w="#w"
h="#h"
x="0"
y="0"
pop_max_w="2000"
pop_max_h="2000"
pop_min_w="64"
pop_min_h="32"
header_color="UI:SAVE:WIN:COLORS:COM"
posref="TL TL"
title=""
global_color="true"
global_color_over="true"
right_button="true"
movable="true"
lockable="true"
active="true"
openable="true"
opened="true"
resizer="true"
on_active="lua"
on_active_params="WebBrowser:onActive()">
<group id="header_closed"
w="64"
h="16"
posref="TL TL"
on_active="lua"
on_active_params="WebBrowser:onClickHeaderClose()" />
<group id="header_opened"
h="16"
w="480"
posref="TL TL"
on_active="lua"
on_active_params="WebBrowser:onClickHeaderOpen()">
<ctrl style="text_button_header"
id="browse_redo"
button_type="push_button"
posref="MR MR"
x="-16"
y="0"
hardtext="uiBrowseRedoButton"
tooltip="uittBrowseRedo"
onclick_l="lua"
params_l="WebBrowser:onClickRedo()"
frozen="true" />
<ctrl style="text_button_header"
id="browse_undo"
button_type="push_button"
posparent="browse_redo"
posref="ML MR"
x="-4"
y="0"
hardtext="uiBrowseUndoButton"
tooltip="uittBrowseUndo"
onclick_l="lua"
params_l="WebBrowser:onClickUndo()"
frozen="true" />
<ctrl style="text_button_header"
id="browse_refresh"
button_type="push_button"
posparent="browse_undo"
posref="ML MR"
x="-4"
y="0"
hardtext="uiBrowseRefresh"
tooltip="uittBrowseRefresh"
onclick_l="lua"
params_l="WebBrowser:onClickRefresh()"
frozen="true" />
<ctrl style="text_button_header"
id="browse_home"
button_type="push_button"
posparent="browse_refresh"
posref="ML MR"
x="-4"
y="0"
hardtext="uiBrowseHome"
tooltip="uittBrowseHome"
onclick_l="lua"
params_l="WebBrowser:onClickHome()" />
</group>
<group id="content"
x="0"
y="0"
w="0"
h="0"
posref="TL TL">
<instance template="webig_html"
home="#home"
browse_redo="#browse_redo"
browse_undo="#browse_undo"
browse_refresh="#browse_refresh" />
</group>
</group>
</template>
<!-- html <hr> element -->
<template name="html_hr"
keep="true">
<group id="sep_gr"
posref="ML ML"
sizeref="w"
w="0"
h="0"
child_resize_h="true"
child_resize_hmargin="12">
<view type="bitmap"
id="hr"
posref="MM MM"
sizeref="w"
w="-2"
h="2"
inherit_gc_alpha="true"
scale="true"
texture="blank.tga"
global_color="false" />
</group>
</template>
<template name="html_form_select_box_menu_widget"
keep="true"
id="sb">
<group type="menu"
id="#id"
posref="BL TL"
x="0"
y="0"
mouse_pos="false"
space="2"
shadow="false"
color="255 255 255 128"
color_over="255 255 255 255"
color_grayed="0 0 0 255"
fontsize="12"
highlight_over="255 255 255 128"
force_inside_screen="false"></group>
</template>
</interface_config>