copie des fichiers du code mise a jour par un merge

This commit is contained in:
deed 2017-03-24 15:12:18 +01:00
parent 218b7c9299
commit c386bea059
10 changed files with 1708 additions and 1714 deletions

View file

@ -2672,9 +2672,9 @@
<instance template="tgcw_checkbox"
id="hard"
text="uiMouseHardware"
posref="TR TR"
x="-55"
y="-20" />
posref="TM TL"
x="0"
y="-35" />
<instance template="tgcw_checkbox"
id="inverted"
text="uiMouseInverted"
@ -2689,6 +2689,13 @@
posref="BL TL"
x="0"
y="-2" />
<instance template="tgcw_checkbox"
id="tablet"
text="uiMouseTablet"
posparent="dbl"
posref="BL TL"
x="0"
y="-2" />
<view style="sgc_title2"
type="text"
id="inter"
@ -3833,6 +3840,11 @@
widget="boolbut"
link="DblClickMode"
realtime="true" />
<param ui="mouse:tablet:c"
type="cfg"
widget="boolbut"
link="FreeLookTablet"
realtime="true" />
<param ui="mouse:dcspeed:c"
type="db"
widget="sbint"

View file

@ -1050,7 +1050,7 @@
id="html"
posref="TL TL"
url=""
home="https://app.lirria.khaganat.net/"
home="http://app.khaganat.net/"
sizeref="wh"
x="0"
y="0"
@ -1216,7 +1216,7 @@
id="html"
posref="TL TL"
url=""
home="https://app.lirria.khaganat.net/"
home="http://app.khaganat.net/"
sizeref="wh"
x="0"
y="0"

View file

@ -138,7 +138,7 @@
x="0"
y="6"
posref="BM BM"
text_y="-0"
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="-0"
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="-0"
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="-0"
text_y="0"
onclick_l="proc"
params_l="universe_chanel_warning_close"
hardtext="uittOK" />
@ -425,7 +425,7 @@
x="0"
y="6"
posref="BM BM"
text_y="-0"
text_y="0"
onclick_l="proc"
params_l="death_warning_close"
hardtext="uittOK" />
@ -532,7 +532,7 @@
x="0"
y="6"
posref="BM BM"
text_y="-0"
text_y="0"
onclick_l="proc"
params_l="night_warning_close"
hardtext="uittOK" />
@ -865,7 +865,7 @@
</group>
</group>
<define id="cs_url"
value="https://www.khaganat.net/" />
value="https://app.khaganat.net/ams/" />
<group type="container"
id="cs_browser"
w="410"
@ -2889,21 +2889,21 @@
x="4"
y="0"
posref="TL TL"
text_y="-0"
text_y="0"
onclick_l="proc"
params_l="proc_stat_report_yes"
hardtext="uiYes" />
<ctrl style="button_cancel"
x="4"
posparent="ok"
text_y="-0"
text_y="0"
posref="TR TL"
onclick_l="leave_modal"
hardtext="uiNo" />
<ctrl style="button_always"
x="4"
posparent="cancel"
text_y="-0"
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
--------------------------------------------------------------------------------------------------------------
@ -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

@ -1467,7 +1467,7 @@
<group type="webig_html"
id="html"
posref="TL TL"
url="https://app.lirria.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="https://app.lirria.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="https://app.lirria.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="https://app.lirria.khaganat.net/"
home="https://app.khaganat.net"
browse_next_time="true"
form_text_area_group="edit_box_widget_multiline">
<group id="black"

View file

@ -110,7 +110,7 @@
posparent="jauges"
posref="TL TL"
x="0"
y="-1"
y="0"
sizeref="wh3"
w="0"
h="0" />
@ -246,7 +246,7 @@
posref="MM MM"
posparent="slot_force"
x="0"
y="-2"
y="0"
color="255 255 255 255"
fontsize="10"
shadow="true"
@ -364,7 +364,7 @@
id="b_life"
posref="TL TL"
x="0"
y="-2"
y="0"
texture="slot_jauge.tga"
inherit_gc_alpha="false" />
<instance template="jauge_score_target"
@ -521,7 +521,6 @@
<view type="text"
id="text"
case_mode="%case_first_word_letter_up"
posref="TL TL"
x="8"
y="-8"
@ -544,7 +543,7 @@
posparent="add_contact_eb"
posref="BR TR"
x="0"
y="-2"
y="0"
onclick_ok="add_contact"
onclick_ok_param=""
onclick_cancel="leave_modal"
@ -604,7 +603,7 @@
<instance template="edit_box_widget"
id="ebw"
posref="BR TR"
y="-2"
y="0"
posparent="cb"
child_resize_h="true"
sizeref="w"
@ -666,7 +665,7 @@
<instance template="edit_box_widget"
id="ebw"
posref="BR TR"
y="-2"
y="0"
posparent="cb"
child_resize_h="true"
sizeref="w"
@ -807,7 +806,7 @@
<instance template="edit_box_widget"
id="ebw"
posref="BR TR"
y="-2"
y="0"
posparent="cb"
child_resize_h="true"
sizeref="w"
@ -859,7 +858,7 @@
<group type="menu"
id="user_chat_emote_menu"
extends="base_menu"
case_mode="%case_first_word_letter_up"
case_mode="%case_normal"
on_active="lua:game:updateEmoteMenu()">
<action id="uiEM_Wave"
name="uiQuickEmote" />
@ -1078,7 +1077,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="tab7"
id="tab6"
posparent="tab3"
group="content:cb:universe"
hardtext="uitabChatUniverse"
@ -1090,7 +1089,7 @@
tooltip_parent="win" />
<ctrl style="tab_button_new"
id="tab4"
posparent="tab7"
posparent="tab6"
group="content:cb:sysinfo"
hardtext="uitabChatSysInfo"
onclick_r="set"
@ -1108,23 +1107,12 @@
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="tab6"
posparent="tab5"
_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 -->
@ -1136,7 +1124,7 @@
target="tab1:active" />
<link expr="and(@UI:SAVE:ISENABLED:UNIVERSE_CHAT,
not(@UI:SAVE:ISDETACHED:UNIVERSE_CHAT))"
target="tab7:active" />
target="tab6:active" />
<link expr="and (and(%is_team_present, @UI:SAVE:ISENABLED:TEAM_CHAT),
not(@UI:SAVE:ISDETACHED:TEAM_CHAT))"
target="tab2:active" />
@ -1148,9 +1136,6 @@
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)"
@ -1172,9 +1157,6 @@
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"
@ -1248,13 +1230,6 @@
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"
@ -1287,7 +1262,7 @@
tooltip_parent="win"
onclick_l="select_chat_target"
params_l="menu=ui:interface:user_chat_target_menu|party_chats=false"
case_mode="%case_first_word_letter_up" />
case_mode="%case_normal" />
<ctrl style="text_button_16"
id="but_emote"
posref="BR TR"
@ -1602,7 +1577,7 @@
</group>
<!--
<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"
<view type="bar3" id="jauges" posref="TR TR" y="0" mini="true" x="-16"
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" />
@ -1614,7 +1589,7 @@
<! - chat box - >
<instance template="chat_box" id="cb" posref="TR TR" sizeref="w" y="-8" w="0" h="64" min_height="64" max_height="1600"/>
<instance template="edit_box_widget" id="ebw" posref="BR TR" y="-2" posparent="cb" child_resize_h="true" sizeref="w" w="-10" onenter="contact_entry" backup_father_container_pos="true"/>
<instance template="edit_box_widget" id="ebw" posref="BR TR" y="0" posparent="cb" child_resize_h="true" sizeref="w" w="-10" onenter="contact_entry" backup_father_container_pos="true"/>
<! - links to display lead or successor - >
<link expr="eq(@SERVER:GROUP:LEADER_INDEX, #team_mate_index)" target="lead:active"/>
@ -1673,7 +1648,7 @@
id="blocked"
posref="MR MR"
x="-20"
y="-2"
y="0"
texture="w_answer_16_cancel.tga"
global_color="false"
active="false" />
@ -1760,7 +1735,7 @@
id="blocked"
posref="MR MR"
x="-50"
y="-2"
y="0"
texture="w_answer_16_cancel.tga"
global_color="false"
active="false" />
@ -1817,7 +1792,7 @@
y="0"
posref="MR MR"
posparent="parent"
text_y="-2"
text_y="0"
onclick_l="lua"
params_l="validMessageBox(i18n.get('uiAddTellerToIgnoreListWarning'), 'add_teller_to_ignore_list', 'id=ui:interface:#id', '', '' ,'ui:interface')"
hardtext="uiAddTellerToIgnoreList"
@ -1831,7 +1806,7 @@
y="0"
posref="ML MR"
posparent="ignore"
text_y="-2"
text_y="0"
onclick_l="add_teller_to_friend_list"
params_l=""
hardtext="uiAddTellerToFriends"
@ -1845,7 +1820,7 @@
y="0"
posref="ML MR"
posparent="new_friend"
text_y="-2"
text_y="0"
onclick_l="invite_to_ring_session"
params_l=""
hardtext="uiInviteToRingSession"
@ -1869,7 +1844,7 @@
<instance template="edit_box_widget"
id="ebw"
posref="BR TR"
y="-2"
y="0"
posparent="cb"
child_resize_h="true"
sizeref="w"
@ -1957,10 +1932,6 @@
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"
@ -2094,7 +2065,7 @@
<instance template="edit_box_widget"
id="ebw"
posref="BR TR"
y="-2"
y="0"
posparent="cb"
child_resize_h="true"
sizeref="w"
@ -3050,7 +3021,7 @@
<group id="header_opened" x="0" y="0" w="160" h="13" posref="TL TL" child_resize_h="true" child_resize_hmargin="8" >
<instance template="chat_box" id="cb" posref="TR TR" sizeref="w" y="-8" w="0" h="64" min_height="64" max_height="1600"/>
<instance template="edit_box_widget" id="ebw" posref="BR TR" y="-2" posparent="cb" child_resize_h="true" sizeref="w" w="-10" onenter="debug_console_entry" backup_father_container_pos="true"/>
<instance template="edit_box_widget" id="ebw" posref="BR TR" y="0" posparent="cb" child_resize_h="true" sizeref="w" w="-10" onenter="debug_console_entry" backup_father_container_pos="true"/>
</group>
<group id="content" x="0" y="0" h="0" posref="TL TL" >
@ -3060,13 +3031,6 @@
<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 * -->
<!-- **************** -->
@ -3127,7 +3091,7 @@
<instance template="edit_box_widget"
id="ebw"
posref="BR TR"
y="-2"
y="0"
posparent="cb"
child_resize_h="true"
sizeref="w"
@ -3163,4 +3127,19 @@
<action handler="set"
params="dblink=UI:SAVE:ISDETACHED:DYNAMIC_CHAT@0|value=0" />
</proc>
<!-- there seems to be no way to pass url to menu, use lua script for middleman -->
<group type="menu"
id="chat_uri_action_menu"
extends="base_menu">
<action id="copy"
name="uiCopy"
handler="lua"
params="game:chatUrlCopy()" />
<action id="openig"
name="uiBrowse"
handler="lua"
params="game:chatUrlBrowse()" />
</group>
</interface_config>

View file

@ -420,7 +420,7 @@
<!-- NAME OF SPELL -->
<instance template="edit_box_widget" id="eb_spell_name" posref="TR BR" x="0" w="216" y="-54" h="20" child_resize="false"
text_x="0" text_y="-2" text_ref="ML ML"
text_x="0" text_y="0" 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" />

File diff suppressed because it is too large Load diff

View file

@ -1,477 +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" />
<!-- 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>
<!-- ****************************************** -->
<!-- * 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

@ -1029,7 +1029,7 @@
<template name="3dbulle_R" id="" >
<group id="#id" type="container" header_active="false" options="no_bordure" openable="false" savable="false" resizer="true" movable="false" right_button="false" opened="true" child_resize_w="true" w="0" max_w="256" min_w="48" h="48" >
<group id="header_opened" x="0" y="0" child_resize_w="true" w="0" child_resize_h="true" h="0" max_w="256" min_w="48" max_h="256" min_h="48" posref="TL TL" >
<group id="header_opened" x="0" y="0" child_resize_w="true" w="0" child_resize_h="true" h="0" max_w="256" min_w="48" max_h="512" min_h="48" posref="TL TL" >
<group id="window" x="0" y="0" child_resize_w="true" w="0" child_resize_h="true" h="0" posref="TL TL" >
<view type="bitmap" id="win_M" posref="MM MM" scale="true" sizeref="wh" w="-10" h="-10" texture="Bulle_M.tga" global_color="false"/>
@ -1090,7 +1090,7 @@
h="0"
max_w="512"
min_w="48"
max_h="256"
max_h="512"
min_h="48"
posref="TL TL">
<group id="window"
@ -1314,7 +1314,7 @@
h="0"
max_w="512"
min_w="48"
max_h="256"
max_h="512"
min_h="48"
posref="TL TL">
<group id="window"
@ -2793,6 +2793,7 @@
text_ref="BL BL"
child_resize_h="true"
multi_line="true"
multi_min_line="0"
x="0"
y="0"
w="0"
@ -4519,7 +4520,7 @@
entry_type="positive_integer"
id="edit"
text_ref="TR TR"
text_y="-1"
text_y="0"
fontsize="12"
posparent="sheet"
posref="MR ML"
@ -5055,7 +5056,7 @@
color="255 255 255 128"
col_over="255 255 255 0"
col_pushed="255 190 0 192"
text_y="-3"
text_y="0"
fontsize="12"
shadow="true"
text_color_normal="255 255 255 160"
@ -5092,7 +5093,7 @@
color="255 255 255 255"
col_over="255 255 255 255"
col_pushed="255 255 255 255"
text_y="-3"
text_y="0"
fontsize="14"
shadow="true"
text_color_pushed="255 255 255 255"
@ -7124,28 +7125,29 @@
</group>
</template>
<!-- html <hr> element -->
<template name="html_hr"
keep="true">
<group id="sep_gr"
posref="ML ML"
<!-- 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="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>
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">