Sync UI xml with Forge data repo, rev ba4724f848d80775acdd7e3190f6e3eb8af47834

feature/core4-atys
kaetemi 4 years ago
parent 7cba0c8794
commit 41c8499bd4
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -31,6 +31,8 @@
<value value="inventory" hardtext="uiInventory" contexts="game, r2ed_anim_test"/> <value value="inventory" hardtext="uiInventory" contexts="game, r2ed_anim_test"/>
<value value="phrase_book" hardtext="uiPhraseBook" contexts="game, r2ed_anim_test"/> <value value="phrase_book" hardtext="uiPhraseBook" contexts="game, r2ed_anim_test"/>
<value value="mailbox" hardtext="uiMailBox" contexts="game, r2ed_anim_test, r2ed_anim_dm, r2ed"/> <value value="mailbox" hardtext="uiMailBox" contexts="game, r2ed_anim_test, r2ed_anim_dm, r2ed"/>
<value value="webig" hardtext="uiWebIG" contexts="game"/>
<value value="appzone" hardtext="uiAppZone" contexts="game"/>
<value value="animal_global" hardtext="uiAnimals" contexts="game"/> <value value="animal_global" hardtext="uiAnimals" contexts="game"/>
@ -78,10 +80,113 @@
<action_category name="player" hardtext="uiPlayer" contexts="game, r2ed, r2ed_anim_test, r2ed_anim_dm"> <action_category name="player" hardtext="uiPlayer" contexts="game, r2ed, r2ed_anim_test, r2ed_anim_dm">
<action name="toggle_light" hardtext="uiLightOnOff"/> <action name="toggle_light" hardtext="uiLightOnOff"/>
<action name="toggle_dodge_parry" hardtext="uiToggleDodgeParry"/> <action name="toggle_dodge_parry" hardtext="uiToggleDodgeParry"/>
<action name="dodge" hardtext="uiMK_Defense_0"/>
<action name="parry" hardtext="uiMK_Defense_1"/>
</action_category> </action_category>
<action_category name="movement" hardtext="uiMovement" contexts="game, r2ed, r2ed_anim_test, r2ed_anim_dm"> <action_category name="animal" hardtext="uiAnimals" contexts="game">
<action name="beast_order" hardtext="uimFollowMe">
<parameter name="order" value="follow" type="%action_param_hidden" />
<parameter hardtext="uiAnimals" name="beast_index" value="1">
<value value="1" hardtext="uimMtPaMount0"/>
<value value="2" hardtext="uimMtPaMount1"/>
<value value="3" hardtext="uimMtPaMount2"/>
<value value="4" hardtext="uimMtPaMount3"/>
<value value="1" hardtext="uimMtPaPacker0"/>
<value value="2" hardtext="uimMtPaPacker1"/>
<value value="3" hardtext="uimMtPaPacker2"/>
<value value="4" hardtext="uimMtPaPacker3"/>
<value value="5" hardtext="uitabInvPAZig1"/>
<value value="6" hardtext="uitabInvPAZig2"/>
<value value="7" hardtext="uitabInvPAZig3"/>
</parameter>
</action>
<action name="beast_order" hardtext="uimStop">
<parameter name="order" value="stop" type="%action_param_hidden"/>
<parameter hardtext="uiAnimals" name="beast_index" value="1">
<value value="1" hardtext="uimMtPaMount0"/>
<value value="2" hardtext="uimMtPaMount1"/>
<value value="3" hardtext="uimMtPaMount2"/>
<value value="4" hardtext="uimMtPaMount3"/>
<value value="1" hardtext="uimMtPaPacker0"/>
<value value="2" hardtext="uimMtPaPacker1"/>
<value value="3" hardtext="uimMtPaPacker2"/>
<value value="4" hardtext="uimMtPaPacker3"/>
<value value="5" hardtext="uitabInvPAZig1"/>
<value value="6" hardtext="uitabInvPAZig2"/>
<value value="7" hardtext="uitabInvPAZig3"/>
</parameter>
</action>
<action name="do_beast_free" hardtext="uimFree">
<parameter hardtext="uiAnimals" type="%action_param_constant" value="1">
<value value="1" hardtext="uimMtPaMount0"/>
<value value="2" hardtext="uimMtPaMount1"/>
<value value="3" hardtext="uimMtPaMount2"/>
<value value="4" hardtext="uimMtPaMount3"/>
<value value="1" hardtext="uimMtPaPacker0"/>
<value value="2" hardtext="uimMtPaPacker1"/>
<value value="3" hardtext="uimMtPaPacker2"/>
<value value="4" hardtext="uimMtPaPacker3"/>
<value value="5" hardtext="uitabInvPAZig1"/>
<value value="6" hardtext="uitabInvPAZig2"/>
<value value="7" hardtext="uitabInvPAZig3"/>
</parameter>
</action>
<action name="beast_order" hardtext="uimEnterStable">
<parameter name="order" value="enter_stable" type="%action_param_hidden"/>
<parameter hardtext="uiAnimals" name="beast_index" value="1">
<value value="1" hardtext="uimMtPaMount0"/>
<value value="2" hardtext="uimMtPaMount1"/>
<value value="3" hardtext="uimMtPaMount2"/>
<value value="4" hardtext="uimMtPaMount3"/>
<value value="1" hardtext="uimMtPaPacker0"/>
<value value="2" hardtext="uimMtPaPacker1"/>
<value value="3" hardtext="uimMtPaPacker2"/>
<value value="4" hardtext="uimMtPaPacker3"/>
<value value="5" hardtext="uitabInvPAZig1"/>
<value value="6" hardtext="uitabInvPAZig2"/>
<value value="7" hardtext="uitabInvPAZig3"/>
</parameter>
</action>
<action name="beast_order" hardtext="uimLeaveStable">
<parameter name="order" value="leave_stable" type="%action_param_hidden"/>
<parameter hardtext="uiAnimals" name="beast_index" value="1">
<value value="1" hardtext="uimMtPaMount0"/>
<value value="2" hardtext="uimMtPaMount1"/>
<value value="3" hardtext="uimMtPaMount2"/>
<value value="4" hardtext="uimMtPaMount3"/>
<value value="1" hardtext="uimMtPaPacker0"/>
<value value="2" hardtext="uimMtPaPacker1"/>
<value value="3" hardtext="uimMtPaPacker2"/>
<value value="4" hardtext="uimMtPaPacker3"/>
<value value="5" hardtext="uitabInvPAZig1"/>
<value value="6" hardtext="uitabInvPAZig2"/>
<value value="7" hardtext="uitabInvPAZig3"/>
</parameter>
</action>
<action name="beast_order" hardtext="uimEnterBag">
<parameter name="order" value="enter_bag" type="%action_param_hidden"/>
<parameter hardtext="uiAnimals" name="beast_index" value="5">
<value value="5" hardtext="uitabInvPAZig1"/>
<value value="6" hardtext="uitabInvPAZig2"/>
<value value="7" hardtext="uitabInvPAZig3"/>
</parameter>
</action>
<action name="beast_order" hardtext="uimLeaveBag">
<parameter name="order" value="leave_bag" type="%action_param_hidden"/>
<parameter hardtext="uiAnimals" name="beast_index" value="5">
<value value="5" hardtext="uitabInvPAZig1"/>
<value value="6" hardtext="uitabInvPAZig2"/>
<value value="7" hardtext="uitabInvPAZig3"/>
</parameter>
</action>
</action_category>
<action_category name="movement" hardtext="uiMovement" contexts="game, r2ed, r2ed_anim_test, r2ed_anim_dm, misc">
<action name="toggle_sit_stand" hardtext="uiMoveToggleSitStand" contexts="game, r2ed_anim_test"/> <action name="toggle_sit_stand" hardtext="uiMoveToggleSitStand" contexts="game, r2ed_anim_test"/>
<action name="command" hardtext="uimFollow" contexts="game, misc">
<parameter name="" value="follow" type="%action_param_hidden"/>
</action>
<action name="forward" hardtext="uiMoveForward" macroisable="false" /> <action name="forward" hardtext="uiMoveForward" macroisable="false" />
<action name="backward" hardtext="uiMoveBackward" macroisable="false" /> <action name="backward" hardtext="uiMoveBackward" macroisable="false" />
<action name="turn_left" hardtext="uiMoveTurnLeft" macroisable="false" /> <action name="turn_left" hardtext="uiMoveTurnLeft" macroisable="false" />
@ -134,7 +239,11 @@
</action> </action>
<action name="assist_target" hardtext="uiAssistTargetCmd" contexts="game, r2ed_anim_test"/> <action name="assist_target" hardtext="uiAssistTargetCmd" contexts="game, r2ed_anim_test"/>
<action name="self_target" hardtext="uiSelfTarget" contexts="game, r2ed_anim_test"/> <action name="self_target" hardtext="uiSelfTarget" contexts="game, r2ed_anim_test"/>
<action name="target_landmark" hardtext="uiTargetLandmarkCmd" >
<parameter hardtext="uiTargetLandmarkCmdEntity" type="%action_param_user" name="search"/>
</action>
<action name="toggle_combat" hardtext="uiToggleCombat" contexts="game, r2ed_anim_test"/> <action name="toggle_combat" hardtext="uiToggleCombat" contexts="game, r2ed_anim_test"/>
<action name="open_default_context" hardtext="uiOpenDefaultContext" contexts="game"/>
<action name="front_selection" hardtext="uiFrontSelection" contexts="game, r2ed_anim_test"> <action name="front_selection" hardtext="uiFrontSelection" contexts="game, r2ed_anim_test">
<parameter hardtext="uiFrontSelectionType"> <parameter hardtext="uiFrontSelectionType">
<value value="friend" hardtext="uiFrontSelectionFriend"/> <value value="friend" hardtext="uiFrontSelectionFriend"/>
@ -229,6 +338,9 @@
<value value="pet_animal2" hardtext="uimMtPaPacker1" /> <value value="pet_animal2" hardtext="uimMtPaPacker1" />
<value value="pet_animal3" hardtext="uimMtPaPacker2" /> <value value="pet_animal3" hardtext="uimMtPaPacker2" />
<value value="pet_animal4" hardtext="uimMtPaPacker3" /> <value value="pet_animal4" hardtext="uimMtPaPacker3" />
<value value="pet_animal5" hardtext="uitabInvPAZig1" />
<value value="pet_animal6" hardtext="uitabInvPAZig2" />
<value value="pet_animal7" hardtext="uitabInvPAZig3" />
<value value="player_room" hardtext="uimMtRoom" /> <value value="player_room" hardtext="uimMtRoom" />
<value value="guild" hardtext="uimMtGuild" /> <value value="guild" hardtext="uimMtGuild" />
</parameter> </parameter>

@ -0,0 +1,192 @@
-- global
AppZone = {
id = "ui:interface:appzone",
homeuri = "?action=appzone_toolbar",
launchuri = "?action=launch_app",
addappuri = "?action=list_user_apps",
mode = "h_bar",
imagesize = 26
}
-- use client.cfg value when available
local uri = getClientCfg("AppZoneUrl")
if uri == nil or uri == '' then
uri = 'http://app.ryzom.com/'
end
AppZone.homeuri = uri .. AppZone.homeuri
AppZone.launchuri = uri .. AppZone.launchuri
AppZone.addappuri = uri .. AppZone.addappuri
function AppZone:getRoot()
return getUI(self.id)
end
function AppZone:onButtonHome()
local webig = getUI("ui:interface:webig")
webig:find("html").url = self.addappuri
webig.active = true
end
function AppZone:calculateSize(count, spacer, mode)
local w, h
if mode == "h_bar" then
-- icon=32, space=2+2
w = count * self.imagesize + spacer * 15
w = w + 55 + 10 + 20
h = self.imagesize + 2
elseif mode == "h_box" then
w = count * self.imagesize
w = w + 20
h = self.imagesize + 2
h = h * spacer
h = h + 15
elseif mode == "v_bar" then
-- icon=32, space=2+2
h = count * self.imagesize + spacer * 15
h = h + 20 + 20 + 12
w = self.imagesize + 2 + 18
else
h = count * self.imagesize
h = h + 20 + 25
w = self.imagesize + 2
w = w * spacer
w = w + 16
end
local ui = getUI("ui:interface")
if w > ui.w then
w = ui.w
end
if h > ui.h then
h = ui.h
end
return w, h
end
function AppZone:setElementCount(count,spacer,m)
self.mode = m
local root = self:getRoot()
local content = root:find("content")
local html = root:find("html")
local button_toggle = root:find("toggle_mode")
local button_reload = root:find("browse_reload")
local button_home = root:find("browse_home")
local w, h = self:calculateSize(count, spacer, self.mode)
root.h = h
root.w = w
content.w = w
content.h = h
-- set position of buttons
if self.mode == "h_bar" then
-- button_toggle.posref = "BL BL"
button_toggle.x = 2
button_toggle.y = 0
-- button_reload.posref = "TL BL"
html.x = 15
html.y = 0
button_reload.x = -25
button_reload.y = -25
-- button_home.posref = "BR BR"
button_home.x = 0
button_home.y = -3 + 5
elseif self.mode == "h_box" then
-- button_toggle.posref = "TL TL"
button_toggle.x = 2
button_toggle.y = h - 15
-- button_reload.posref = "TL BL"
html.x = 0
html.y = -20
button_reload.x = -25
button_reload.y = -4 - 20
-- button_home.posref = "BR BR"
button_home.x = 0
button_home.y = -3 + h - 18
elseif self.mode == "v_bar" then
-- button_toggle.posref = "TL TL"
button_toggle.x = 2
button_toggle.y = h - 15
-- button_reload.posref = "TL BL"
html.x = 0
html.y = -20
button_reload.x = 0
button_reload.y = -4
-- button_home.posref = "BR BR"
button_home.x = 4 - 7
button_home.y = -3
else
-- button_toggle.posref = "TL TL"
button_toggle.x = 2
button_toggle.y = h - 15
-- button_reload.posref = "TL BL"
html.x = 0
html.y = -20
button_reload.x = -25
button_reload.y = -4 - 20
-- button_home.posref = "BR BR"
button_home.x = 0 - w + 54 + 12
button_home.y = -3
end
end
function AppZone:setMode(m)
self.mode = m
self:reload()
end
function AppZone:setActive(s)
self:getRoot().active = s
end
function AppZone:launchApp(appid, appwin, appurl)
if not appwin then
if string.match(appid, "^[0-9]+$") then
appwin = "app" .. tostring(appid)
else
appwin = "webig"
end
end
if not appurl then
appurl = self.launchuri .. "&appid=" .. tostring(appid)
end
if WebBrowser then
WebBrowser:openWindow(appwin, appurl)
else
-- fallback if WebBrowser not present
local webig = getUI("ui:interface:webig")
webig:find("html").url = appurl;
webig.active = true
end
end
function AppZone:reload()
local url = self.homeuri
url = url .. "&mode=" .. tostring(self.mode)
local html = self:getRoot():find("html")
html.url = url
end
-- slash command: /appzone <cmd>
function AppZone:handle(cmd)
if cmd == 'show' then
self:setActive(true)
elseif cmd == 'hide' then
self:setActive(false)
elseif cmd == 'reload' then
self:reload()
elseif cmd == 'list' then
self:onButtonHome()
else
self:launchApp(cmd)
end
end

@ -0,0 +1,260 @@
<?xml version="1.0"?>
<interface_config>
<root id="interface"
x="0"
y="0"
w="800"
h="600"
active="true" />
<!-- default: active, h_bar -->
<variable entry="UI:VARIABLES:ISACTIVE:APPZONE"
type="sint32"
value="1" />
<variable entry="UI:SAVE:APPZONE:MODE"
type="sint32"
value="1" />
<!-- load lua after variable are setup -->
<lua file="appzone.lua" />
<lua file="webbrowser.lua" />
<proc id="appzone_proc_active">
<action handler="set"
params="dblink=UI:VARIABLES:ISACTIVE:APPZONE|value=1" />
<action handler="proc"
params="appzone_proc_mode" />
</proc>
<proc id="appzone_proc_deactive">
<action handler="set"
params="dblink=UI:VARIABLES:ISACTIVE:APPZONE|value=0" />
</proc>
<proc id="appzone_proc_mode_set">
<action handler="set"
params="dblink=UI:SAVE:APPZONE:MODE|value=@0" />
<action handler="proc"
params="appzone_proc_mode" />
</proc>
<proc id="appzone_proc_mode_inc">
<action handler="set"
params="dblink=UI:SAVE:APPZONE:MODE|value=add(@UI:SAVE:APPZONE:MODE,1)" />
<action handler="proc"
params="appzone_proc_mode" />
</proc>
<proc id="appzone_proc_mode">
<action handler="set"
cond="le(@UI:SAVE:APPZONE:MODE,0)"
params="dblink=UI:SAVE:APPZONE:MODE|value=1" />
<action handler="set"
cond="ge(@UI:SAVE:APPZONE:MODE,5)"
params="dblink=UI:SAVE:APPZONE:MODE|value=1" />
<action handler="lua"
cond="eq(@UI:SAVE:APPZONE:MODE,1)"
params="AppZone:setMode('h_bar')" />
<action handler="lua"
cond="eq(@UI:SAVE:APPZONE:MODE,2)"
params="AppZone:setMode('h_box')" />
<action handler="lua"
cond="eq(@UI:SAVE:APPZONE:MODE,3)"
params="AppZone:setMode('v_bar')" />
<action handler="lua"
cond="eq(@UI:SAVE:APPZONE:MODE,4)"
params="AppZone:setMode('v_box')" />
</proc>
<group type="menu"
id="appzone_menu"
extends="base_menu_with_color">
<action id="settings"
name="uiBrowseHome"
handler="lua"
params="AppZone:onButtonHome()"
icon="building_state2.tga" />
<action id="reload"
name="uiBrowseRefresh"
handler="lua"
params="AppZone:reload()"
icon="curs_rotate.tga" />
<action id="hide"
name="uiHide"
handler="lua"
params="AppZone:setActive(false)"
icon="r2_icon_stop_possess.tga" />
<separator />
</group>
<group id="appzone"
type="container"
x="0"
y="0"
w="200"
h="26"
posref="MM MM"
min_w="26"
min_h="26"
max_w="1600"
max_h="1600"
pop_max_w="1600"
pop_max_h="1600"
title=""
global_color="true"
global_color_over="true"
header_active="false"
right_button="false"
options="layer0_pad"
movable="true"
active="true"
opened="true"
openable="false"
resizer="false"
on_active="proc"
on_active_params="appzone_proc_active"
on_deactive="proc"
on_deactive_params="appzone_proc_deactive"
group_onclick_r="active_menu"
group_params_r="menu=ui:interface:appzone_menu">
<group id="header_closed"
x="0"
y="0"
w="0"
h="0"
posref="TL TL" />
<group id="header_opened"
x="0"
y="0"
w="0"
h="0"
wmin="5"
sizeref="w"
posref="TL TL" />
<group id="content"
x="0"
y="0"
w="0"
h="26"
posref="TL TL">
<ctrl type="button"
style="text_button_header"
button_type="toggle_button"
id="toggle_mode"
posref="BL BL"
x="2"
y="0"
tx_normal="tb_mode.tga"
tx_pushed="tb_mode.tga"
tooltip="uiMk_mode"
onclick_l="proc"
params_l="appzone_proc_mode_inc" />
<ctrl type="button"
style="text_button_header"
button_type="toggle_button"
id="browse_home"
posref="BR BR"
x="0"
y="-3"
tx_normal="r2_palette_components.tga"
tx_pushed="r2_palette_components.tga"
tooltip="uittBrowseHome"
onclick_l="lua"
params_l="AppZone:onButtonHome()" />
<ctrl type="button"
style="text_button_header"
button_type="toggle_button"
id="browse_reload"
posref="TL BL"
posparent="browse_home"
x="0"
y="-4"
tx_normal="r2ed_icon_rotate.tga"
tx_pushed="r2ed_icon_rotate.tga"
tooltip="uiBrowseRefresh"
onclick_l="lua"
params_l="AppZone:reload()" />
<group id="html"
type="webig_html"
posref="TL TL"
url=""
title_prefix=""
sizeref="wh"
x="15"
y="0"
w="0"
h="0"
background_color="0 0 0 0"
error_color="255 240 48 255"
link_color="240 155 100 255"
text_color="210 210 210 255"
h1_color="255 255 255 255"
h2_color="255 255 255 255"
h3_color="255 255 255 255"
h4_color="255 255 255 255"
h5_color="255 255 255 255"
h6_color="255 255 255 255"
text_font_size="10"
h1_font_size="16"
h2_font_size="14"
h3_font_size="13"
h4_font_size="12"
h5_font_size="11"
h6_font_size="11"
paragraph_begin_space="12"
multi_line_space_factor="0.25"
td_begin_space="0"
li_begin_space="4"
ul_begin_space="12"
li_indent="-10"
ul_indent="30"
checkbox_bitmap_normal="patch_off.tga"
checkbox_bitmap_pushed="patch_on.tga"
checkbox_bitmap_over=""
background_bitmap_view=""
home=""
browse_next_time="false"
form_text_area_group="edit_box_widget_multiline">
<group id="black"
posref="BR BR"
sizeref="hw"
w="0"
h="0"
inherit_gc_alpha="true" />
<view type="bitmap"
id="black2"
posparent="black"
posref="MM MM"
sizeref="wh"
w="0"
h="0"
inherit_gc_alpha="true"
scale="true"
texture="blank.tga"
global_color="false" />
<group type="list"
id="text_list"
fontsize="9"
posref="TL TL"
posparent="black"
x="0"
y="0"
space="0"
sizeref="hw"
w="-4"
h="0"
maxelements="2000" />
<ctrl style="skin_scroll"
id="scroll_bar" />
</group>
</group>
</group>
<tree node="appzone" />
<command name="appzone"
action="lua"
params="AppZone:handle('$')" />
</interface_config>

@ -0,0 +1,540 @@
if Ark == nil then
Ark = {
}
end
function broadcast(text, t)
if t == nil then
t = "AMB"
end
local message = ucstring()
text = message:fromUtf8(tostring(text))
displaySystemInfo(message, t)
end
--------------------------------------------------------------------------------
--- ARK MISSION CATALOG ---
--------------------------------------------------------------------------------
if ArkMissionCatalog == nil then
ArkMissionCatalog = {
window = nil,
window_id = "ui:interface:ark_mission_catalog"
}
end
function ArkMissionCatalog:OpenWindow(urlA, urlB)
local winframe = WebBrowser:addWindow("ark_mission_catalog", "Mission Catalog", getUI(ArkMissionCatalog.window_id))
winframe.opened=true
winframe.active=true
winframe.w = 950
ArkMissionCatalog.window = winframe
getUI(ArkMissionCatalog.window_id..":content:htmlA"):browse(urlA)
local htmlb = getUI(ArkMissionCatalog.window_id..":content:htmlB")
if htmlb.home == "" then
htmlb.home = urlB
end
htmlb:browse("home")
end
function ArkMissionCatalog:OpenCat(url)
local htmlb = getUI(ArkMissionCatalog.window_id..":content:htmlB")
htmlb.home = url+"&continent="+getContinentSheet()
htmlb:browse("home")
end
function ArkMissionCatalog:UpdateMissionTexts(win, id, text1, text2)
local w = win:find("ark_mission_"..id)
local text = ucstring()
text:fromUtf8(text1)
w:find("text1").uc_hardtext = text
text:fromUtf8(text2)
w:find("text2").uc_hardtext = text
end
function ArkMissionCatalog:startResize()
local ency = getUI("ui:interface:encyclopedia")
ency.w = 950
ency.h = 700
setOnDraw(ency, "ArkMissionCatalog:autoResize()")
end
function ArkMissionCatalog:autoResize()
if ArkMissionCatalog.bypass_resize then
ArkMissionCatalog.bypass_resize = false
return
end
local ui = getUI(ArkMissionCatalog.window_id)
local htmlA = getUI(ArkMissionCatalog.window_id..":content:htmlA")
local htmlB = getUI(ArkMissionCatalog.window_id..":content:htmlB")
if ArkMissionCatalog.cat == "storyline" then
if ui.w < 784 then
if ArkMissionCatalog.cat == "storyline" then
local td30 = htmlB:find("storyline_content")
if td30 ~= nil then
td30.x = math.max(0, 200-784+ui.w)
ArkMissionCatalog.need_restore_td30 = true
end
end
else
if ArkMissionCatalog.need_restore_td30 then
local td30 = htmlB:find("storyline_content")
if td30 ~= nil then
td30.x = 200
ArkMissionCatalog.need_restore_td30 = false
end
end
end
end
if ui.w < 950 then
htmlA.w = math.max(60, 220-950+ui.w)
htmlB.x = math.max(35, 190-950+ui.w)
ArkMissionCatalog.need_restore = true
else
if ArkMissionCatalog.need_restore then
htmlA.w = 220
htmlB.x = 190
ArkMissionCatalog.need_restore = false
end
end
end
function ArkMissionCatalog:showLegacyEncyclopedia(state)
if state == 1 then
getUI("ui:interface:legacy_encyclopedia").active=1
else
getUI("ui:interface:legacy_encyclopedia").active=0
end
end
if S2E1 == nil then
S2E1 = {}
end
runAH(nil, "stop_event_music", "")
S2E1.WindowOpened = false
S2E1.texts = {}
S2E1.texts["de"] = {}
S2E1.texts["en"] = {}
S2E1.texts["es"] = {}
S2E1.texts["fr"] = {}
S2E1.texts["ru"] = {}
S2E1.texts["de"][1] = {"Aus der Rinde kommt ein leichtes Knirschen.",
"Die leisen Knirsch-Geräusche fangen an dich zu nerven.",
"Die Rinde scheint sich unter deinen Füßen zu winden...",
"Du hast Schwierigkeiten geradeaus zu gehen; vielleicht war die Shooki nicht sehr frisch.",
"Ein Rindenbeben muss irgendwo weit weg von hier passiert sein...."}
S2E1.texts["de"][2] = {"Ein dumpfes Schlaggeräusch kommt von der Rinde.",
"Plötzliche Beben erschüttern die Rinde und die Vegetation um dich herum.",
"Sie bringen dich aus dem Gleichgewicht...",
"Man muss aufpassen, dass man nicht hinfällt.",
"Das Beben lässt nach, die Rinde kommt wieder zur Ruhe."}
S2E1.texts["de"][3] = {"Aus der Rinde steigt ein dumpfes Rumoren auf.",
"Eine erste Erschütterung bringt dich ins Wanken.",
"Die, die folgen, sind heftig...",
"Es fällt dir schwer aufzustehen.",
"Die Erschütterungen werden schwächer, die Rinde kommt wieder zur Ruhe."}
S2E1.texts["de"][4] = {"Aus der Rinde steigt ein Grollen auf.",
"Plötzlich gibt die Rinde unter deinen Füßen nach und du fällst zu Boden.",
"Du stehst auf und versuchst zu fliehen...",
"aber fällst gleich wieder hin.",
"Die Erschütterungen werden schwächer..."}
S2E1.texts["de"][5] = {"Aus der Rinde dringt ein rumpelndes Geräusch empor.",
"Plötzlich gibt sie unter deinen Füßen nach und du fällst hin.",
"Du stehst wieder auf."}
S2E1.texts["en"][1] = {"A slight squeak raise from the Bark.",
"The little squeals begin to irk you.",
"The Bark seems to wriggle under your feet…",
"You have trouble walking straight; maybe the Shooki wasn't very fresh.",
"A barkquake must have happened somewhere far from here…"}
S2E1.texts["en"][2] = {"A thumping sound rises from the Bark.",
"Jolts suddenly shake the Bark and the vegetation around you.",
"They throw you off balance…",
"You have to pay attention not to fall down.",
"The shaking subsides, the Bark reverts to a stable state."}
S2E1.texts["en"][3] = {"A thudding murmur raises from the Bark.",
"A first jolt makes you waver.",
"Those following are violent…",
"You're having a hard time standing up.",
"The jolts become weaker, the Bark becomes stable again."}
S2E1.texts["en"][4] = {"A rumble comes out of the Bark.",
"The Bark suddenly gives way under your feet and you fall to the ground.",
"You get up, trying to get away…",
"But fall back immediately.",
"The jolts are beginning to weaken…"}
S2E1.texts["en"][5] = {"Out of the Bark comes a rumbling sound.",
"Suddenly it gives way under your feet and you fall to the ground.",
"You get up again."}
S2E1.texts["es"][1] = {"Un ligero chirrido de la corteza.",
"Los pequeños chillidos comienzan a molestarte.",
"La corteza parece retorcerse bajo tus pies...",
"Tienes problemas para caminar recto; tal vez el Shooki no era muy fresco.",
"Un terremoto debe haber ocurrido en algún lugar lejos de aquí..."}
S2E1.texts["es"][2] = {"Un sonido de golpeteo se eleva desde la corteza.",
"Las sacudidas repentinamente sacuden la corteza y la vegetación a su alrededor.",
"Te desequilibran...",
"Tienes que prestar atención para no caerte.",
"El temblor disminuye, la corteza vuelve a un estado estable."}
S2E1.texts["es"][3] = {"Un estruendoso murmullo se eleva desde la corteza.",
"La primera sacudida te hace temblar.",
"Los siguientes son violentos...",
"Te cuesta mucho trabajo estar de pie.",
"Las sacudidas se debilitan, la corteza se vuelve estable de nuevo."}
S2E1.texts["es"][4] = {"Un estruendo sale de la corteza.",
"La corteza de repente cede bajo tus pies y caes al suelo.",
"Te levantas, tratando de escapar...",
"Pero retroceda inmediatamente.",
"Las sacudidas están empezando a debilitarse..."}
S2E1.texts["es"][5] = {"De la Corteza sale un sonido estruendoso.",
"De repente cede bajo tus pies y caes al suelo.",
"Te levantas de nuevo."}
S2E1.texts["fr"][1] = {"Un léger grincement s'échappe de l'Écorce.",
"Les petits crissements commencent à vous agacer.",
"L'Écorce semble frétiller sous vos pieds…",
"Vous avez du mal à marcher droit ; peut-être la Shooki n'était-elle pas très fraîche.",
"Un tremblement d'écorce a dû se produire quelque part, loin d'ici…"}
S2E1.texts["fr"][2] = {"Un bruit sourd monte de l'Écorce.",
"Des secousses agitent soudain l'Écorce et la végétation autour de vous.",
"Elles vous déséquilibrent…",
"Vous devez faire attention pour ne pas tomber.",
"Le tremblement s'apaise, l'Écorce redevient stable."}
S2E1.texts["fr"][3] = {"Une sourde rumeur monte de l'Écorce.",
"Une première secousse vous fait vaciller.",
"Celles qui suivent sont violentes…",
"Vous avez beaucoup de mal à tenir debout.",
"Les secousses deviennent plus faibles, l'Écorce redevient stable."}
S2E1.texts["fr"][4] = {"Un grondement monte de l'Écorce.",
"L'Écorce se dérobe soudain sous vos pieds et vous tombez sur le sol.",
"Vous vous relevez, cherchant à vous éloigner…",
"Mais retombez aussitôt.",
"Les secousses commencent à s'affaiblir…"}
S2E1.texts["fr"][5] = {"De l'Écorce s'élève un grondement.",
"Elle se dérobe soudain sous vos pieds et vous tombez sur le sol.",
"Vous vous relevez."}
S2E1.texts["ru"][1] = {"Легкий скрип коры.",
"Эти тихие скрипы начинают тебя раздражать.",
"Кора, похоже, виляет у тебя под ногами...",
"Тебе трудно шагать прямо, может быть, Шуки был не очень свежим.",
"Наверное, где-то произошло трясение коры..."}
S2E1.texts["ru"][2] = {"Из коры поднимается стук.",
"Толчки внезапно трясут Кору и растительность вокруг тебя.",
"Они сбивают тебя с пути...",
"Тебе нужно сосредоточиться, чтобы не упасть.",
"Тряска утихает, кора возвращается в стабильное состояние."}
S2E1.texts["ru"][3] = {"Громкий шум поднимается из коры.",
"Первый толчок заставляет тебя колебаться.",
"Следующие жестокие...",
"Тебе тяжело стоять.",
"Толчки слабеют, кора снова становится стабильной."}
S2E1.texts["ru"][4] = {"Грохот исходит из коры.",
"Кора внезапно поддается под ногами, и ты падаешь на поверхность.",
"Ты встаешь, пытаешься убежать...",
"Но немедленно опять падаешь.",
"Толчки начинают ослабляться..."}
S2E1.texts["ru"][5] = {"Из коры доносится грохот.",
"Кора внезапно поддается под ногами, и ты падаешь на поверхность.",
"Ты снова встаешь."}
function utf8decode(text)
local utext = ucstring()
utext:fromUtf8(text)
return utext
end
function point_inside_poly(x,y,poly)
local inside = false
local p1x = poly[1][1]
local p1y = poly[1][2]
for i=0,#poly do
local p2x = poly[((i)%#poly)+1][1]
local p2y = poly[((i)%#poly)+1][2]
if y > math.min(p1y,p2y) then
if y <= math.max(p1y,p2y) then
if x <= math.max(p1x,p2x) then
if p1y ~= p2y then
xinters = (y-p1y)*(p2x-p1x)/(p2y-p1y)+p1x
end
if p1x == p2x or x <= xinters then
inside = not inside
end
end
end
end
p1x,p1y = p2x,p2y
end
return inside
end
function S2E1:loopActions()
local action_params = S2E1.AutoActions[S2E1.AutoActionId]
if action_params ~= nil then
local action = action_params[1]
local param = action_params[2]
local ttime = action_params[3]
S2E1.crazy_time = nltime.getLocalTime()
if action == "broadcast" then
displaySystemInfo(utf8decode("@{9E9F}"..param), "BC")
action = "wait"
elseif action == "crunsh" then
runAH(nil, "run_action", "forward")
runAH(nil, "force_sit", "")
action = "wait"
elseif action == "open_window" then
S2E1:openWindow(param)
action = "wait"
elseif action ~= "Cam" then
runAH(nil, action, param)
action = "wait"
end
S2E1.camPosX = 0
S2E1.camPosY = 0
getUI("ui:interface:storyline_window").active=1
setOnDraw(getUI("ui:interface:storyline_window"), "S2E1:loopAction("..tostring(ttime)..", [["..action.."]], [["..param.."]])")
end
end
function S2E1:loopAction(ttime, action, param)
if action == "Cam" then
local params = {}
for p in string.gmatch(param, "([^:]+)") do
table.insert(params, p)
end
paramX = tonumber(params[1]) / 100
paramY = tonumber(params[2]) / 100
S2E1.camPosX = S2E1.camPosX + paramX
S2E1.camPosY = S2E1.camPosY + paramY
moveCam(S2E1.camPosY, 0, S2E1.camPosX)
end
local tick = nltime.getLocalTime()
if tick > S2E1.crazy_time + ttime then
setOnDraw(getUI("ui:interface:storyline_window"), "")
S2E1.AutoActionId = S2E1.AutoActionId + 1
S2E1.camPosX = 0
S2E1.camPosY = 0
if action == "Cam" then
moveCam(0, 0, 0)
end
S2E1:loopActions()
end
end
function S2E1:AddQuake(force)
for n=1,force*10 do
posX = force * 4 * (math.random() - 0.5)
posY = force * 0.1 * (math.random() - 0.5)
timer = 50+(40*math.random())
S2E1.AutoActions[#S2E1.AutoActions+1] = {"Cam", tostring(posX)..":"..tostring(posY), timer}
end
end
function S2E1:getText(size, id)
local lang = getClientCfg("LanguageCode")
return S2E1.texts[lang][size][id]
end
function S2E1:StartQuake(size)
local delays = {}
delays[1] = {3000, 4000, 300, 1000, 7700}
delays[2] = {3000, 4000, 300, 1000, 7700, 4000, 1000}
delays[3] = {3000, 4000, 300, 1000, 200, 4000, 5000}
delays[4] = {5000, 1000, 500, 3000, 700, 500}
delays[5] = {300, 300}
local first_delay = 3000
if size == 5 then
first_delay = 1000
end
S2E1.AutoActions = {
{"stop_event_music", "", 10},
{"broadcast", S2E1:getText(size, 1), 10},
{"play_event_music", "music=bg_quake"..tostring(size)..".ogg", first_delay}
}
if size == 1 then
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][1]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 2), delays[size][2]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 3), delays[size][3]}
S2E1:AddQuake(1)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][4]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 4), delays[size][5]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 5), 10}
end
if size == 2 then
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][1]}
S2E1:AddQuake(1)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 2), delays[size][2]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 3), delays[size][3]}
S2E1:AddQuake(2)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][4]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 4), delays[size][5]}
S2E1:AddQuake(1)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][6]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][7]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 5), 10}
end
if size == 3 then
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][1]}
S2E1:AddQuake(1)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 2), delays[size][1]}
S2E1:AddQuake(1)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][4]}
S2E1:AddQuake(2)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 3), delays[size][2]}
S2E1:AddQuake(3)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 4), delays[size][3]}
S2E1:AddQuake(2)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][6]}
S2E1:AddQuake(1)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][7]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 5), 10}
end
if size == 4 then
S2E1:AddQuake(1)
S2E1:AddQuake(1)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][1]}
S2E1:AddQuake(2)
S2E1:AddQuake(3)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", delays[size][2]}
S2E1:AddQuake(4)
S2E1:AddQuake(3)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 2), delays[size][3]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"crunsh", "", 10}
S2E1:AddQuake(2)
S2E1:AddQuake(1)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 3), delays[size][4]}
S2E1:AddQuake(1)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"crunsh", "", 10}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 4), delays[size][5]}
S2E1:AddQuake(1)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"run_action", "forward", 300}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"stop_action", "forward", 300}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 5), delays[size][6]}
end
if size == 5 then
S2E1:AddQuake(2)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 2), delays[size][1]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"crunsh", "", 10}
S2E1:AddQuake(2)
S2E1.AutoActions[#S2E1.AutoActions+1] = {"broadcast", S2E1:getText(size, 3), delays[size][2]}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"run_action", "forward", 300}
S2E1.AutoActions[#S2E1.AutoActions+1] = {"stop_action", "forward", 300}
end
S2E1.AutoActions[#S2E1.AutoActions+1] = {"", "", 5000}
S2E1.AutoActionId = 1
S2E1:loopActions()
end
function S2E1:newQuake(timer)
local nbr_p = 0
local polygons = {}
local zones = {}
nbr_p = nbr_p + 1
polygons[nbr_p] = {{7846,-6097}, {9754,-6093}, {9778,-8349}, {7844,-8321}}
zones[nbr_p] = "nexus"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{8128,-10208}, {11368,-10208}, {11392,-12392}, {8096,-12368}}
zones[nbr_p] = "silan"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{3716,-4726}, {5228,-5118}, {5468,-5478}, {5596,-5894}, {5604,-6302}, {5524,-6958}, {5220,-7310}, {4692,-7582}, {3588,-7550}, {3060,-6681}, {3076,-5630}}
zones[nbr_p] = "surround"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{13764,-29482}, {19540,-29434}, {19156,-30090}, {18836,-30330}, {17732,-30506}, {17060,-30458}, {16484,-31049}, {15820,-31538}, {15650,-31590}, {15496,-31578}, {14436,-30890}}
zones[nbr_p] = "surround"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{6684,-14990}, {6431,-14820}, {6292,-14726}, {6221,-14689}, {6236,-14606}, {5972,-14414}, {5580,-12246}, {5692,-11230}, {5860,-11054}, {6164,-10854}, {7404,-11166}, {7380,-14382}}
zones[nbr_p] = "surround"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{432,-9729}, {1644,-9693}, {1672,-11433}, {452,-11397}}
zones[nbr_p] = "surround"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{308,-350}, {4004,-318}, {5428,-1918}, {6116,-3086}, {6308,-7982}, {3588,-7710}, {308,-2606}}
zones[nbr_p] = "far"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{20064,-29262}, {19972,-34986}, {13652,-34954}, {13548,-29330}}
zones[nbr_p] = "far"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{5300,-9485}, {7524,-9445}, {7556,-17189}, {5280,-17106}}
zones[nbr_p] = "far"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{191,-13148}, {119,-15892}, {3103,-15868}, {3055,-13100}}
zones[nbr_p] = "far"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{9990,-1580}, {10046,-2300}, {10246,-2676}, {10510,-2884}, {10990,-3212}, {11646,-3428}, {12486,-3124}, {12522,-712}}
zones[nbr_p] = "far"
nbr_p = nbr_p + 1
polygons[nbr_p] = {{16578,-27080}, {17290,-26192}, {17638,-25860}, {17714,-25613}, {17870,-25436}, {18790,-24648}, {19534,-24168}, {20374,-23800}, {20394,-27100}}
zones[nbr_p] = "far"
local x,y=getPlayerPos()
local zone = "farfar"
for i=1,nbr_p do
z = point_inside_poly(x, y, polygons[i])
if z == true then
zone = zones[i]
break
end
end
if zone == "farfar" and (timer % 6) == 0 then
S2E1:StartQuake(1)
elseif zone == "far" and (timer % 4) == 0 then
S2E1:StartQuake(2)
elseif zone == "surround" and (timer % 2) == 0 then
S2E1:StartQuake(3)
elseif zone == "nexus" then
S2E1:StartQuake(4)
end
end

@ -0,0 +1,202 @@
--[[
base64 -- v1.5.1 public domain Lua base64 encoder/decoder
no warranty implied; use at your own risk
Needs bit32.extract function. If not present it's implemented using BitOp
or Lua 5.3 native bit operators. For Lua 5.1 fallbacks to pure Lua
implementation inspired by Rici Lake's post:
http://ricilake.blogspot.co.uk/2007/10/iterating-bits-in-lua.html
author: Ilya Kolbin (iskolbin@gmail.com)
url: github.com/iskolbin/lbase64
COMPATIBILITY
Lua 5.1, 5.2, 5.3, LuaJIT
LICENSE
See end of file for license information.
--]]
base64 = {}
local extract = _G.bit32 and _G.bit32.extract
if not extract then
if _G.bit then
local shl, shr, band = _G.bit.lshift, _G.bit.rshift, _G.bit.band
extract = function( v, from, width )
return band( shr( v, from ), shl( 1, width ) - 1 )
end
elseif _G._VERSION >= "Lua 5.3" then
extract = load[[return function( v, from, width )
return ( v >> from ) & ((1 << width) - 1)
end]]()
else
extract = function( v, from, width )
local w = 0
local flag = 2^from
for i = 0, width-1 do
local flag2 = flag + flag
if v % flag2 >= flag then
w = w + 2^i
end
flag = flag2
end
return w
end
end
end
function base64.makeencoder( s62, s63, spad )
local encoder = {}
for b64code, char in pairs{[0]='A','B','C','D','E','F','G','H','I','J',
'K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y',
'Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n',
'o','p','q','r','s','t','u','v','w','x','y','z','0','1','2',
'3','4','5','6','7','8','9',s62 or '+',s63 or'/',spad or'='} do
encoder[b64code] = char:byte()
end
return encoder
end
function base64.makedecoder( s62, s63, spad )
local decoder = {}
for b64code, charcode in pairs( base64.makeencoder( s62, s63, spad )) do
decoder[charcode] = b64code
end
return decoder
end
local DEFAULT_ENCODER = base64.makeencoder()
local DEFAULT_DECODER = base64.makedecoder()
local char, concat = string.char, table.concat
function base64.encode( str, encoder, usecaching )
encoder = encoder or DEFAULT_ENCODER
local t, k, n = {}, 1, #str
local lastn = n % 3
local cache = {}
for i = 1, n-lastn, 3 do
local a, b, c = str:byte( i, i+2 )
local v = a*0x10000 + b*0x100 + c
local s
if usecaching then
s = cache[v]
if not s then
s = char(encoder[extract(v,18,6)], encoder[extract(v,12,6)], encoder[extract(v,6,6)], encoder[extract(v,0,6)])
cache[v] = s
end
else
s = char(encoder[extract(v,18,6)], encoder[extract(v,12,6)], encoder[extract(v,6,6)], encoder[extract(v,0,6)])
end
t[k] = s
k = k + 1
end
if lastn == 2 then
local a, b = str:byte( n-1, n )
local v = a*0x10000 + b*0x100
t[k] = char(encoder[extract(v,18,6)], encoder[extract(v,12,6)], encoder[extract(v,6,6)], encoder[64])
elseif lastn == 1 then
local v = str:byte( n )*0x10000
t[k] = char(encoder[extract(v,18,6)], encoder[extract(v,12,6)], encoder[64], encoder[64])
end
return concat( t )
end
function base64.decode( b64, decoder, usecaching )
decoder = decoder or DEFAULT_DECODER
local pattern = '[^%w%+%/%=]'
if decoder then
local s62, s63
for charcode, b64code in pairs( decoder ) do
if b64code == 62 then s62 = charcode
elseif b64code == 63 then s63 = charcode
end
end
pattern = ('[^%%w%%%s%%%s%%=]'):format( char(s62), char(s63) )
end
b64 = b64:gsub( pattern, '' )
local cache = usecaching and {}
local t, k = {}, 1
local n = #b64
local padding = b64:sub(-2) == '==' and 2 or b64:sub(-1) == '=' and 1 or 0
for i = 1, padding > 0 and n-4 or n, 4 do
local a, b, c, d = b64:byte( i, i+3 )
local s
if usecaching then
local v0 = a*0x1000000 + b*0x10000 + c*0x100 + d
s = cache[v0]
if not s then
local v = decoder[a]*0x40000 + decoder[b]*0x1000 + decoder[c]*0x40 + decoder[d]
s = char( extract(v,16,8), extract(v,8,8), extract(v,0,8))
cache[v0] = s
end
else
local v = decoder[a]*0x40000 + decoder[b]*0x1000 + decoder[c]*0x40 + decoder[d]
s = char( extract(v,16,8), extract(v,8,8), extract(v,0,8))
end
t[k] = s
k = k + 1
end
if padding == 1 then
local a, b, c = b64:byte( n-3, n-1 )
local v = decoder[a]*0x40000 + decoder[b]*0x1000 + decoder[c]*0x40
t[k] = char( extract(v,16,8), extract(v,8,8))
elseif padding == 2 then
local a, b = b64:byte( n-3, n-2 )
local v = decoder[a]*0x40000 + decoder[b]*0x1000
t[k] = char( extract(v,16,8))
end
return concat( t )
end
return base64
--[[
------------------------------------------------------------------------------
This software is available under 2 licenses -- choose whichever you prefer.
------------------------------------------------------------------------------
ALTERNATIVE A - MIT License
Copyright (c) 2018 Ilya Kolbin
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
------------------------------------------------------------------------------
ALTERNATIVE B - Public Domain (www.unlicense.org)
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
------------------------------------------------------------------------------
--]]

@ -432,7 +432,6 @@
<variable entry="UI:TEMP:TRADE_ITEM:QUANTITY" type="sint64" value="0" /> <variable entry="UI:TEMP:TRADE_ITEM:QUANTITY" type="sint64" value="0" />
<variable entry="UI:TEMP:TRADE_ITEM:SLOT_TYPE" type="sint64" value="0" /> <variable entry="UI:TEMP:TRADE_ITEM:SLOT_TYPE" type="sint64" value="0" />
<variable entry="UI:TEMP:TRADE_ITEM:USER_COLOR" type="sint32" value="1" /> <variable entry="UI:TEMP:TRADE_ITEM:USER_COLOR" type="sint32" value="1" />
<variable entry="UI:TEMP:TRADE_ITEM:CHARAC_BUFFS" type="sint8" value="0" />
<variable entry="UI:TEMP:TRADE_ITEM:WEIGHT" type="sint32" value="0" /> <variable entry="UI:TEMP:TRADE_ITEM:WEIGHT" type="sint32" value="0" />
<variable entry="UI:TEMP:TRADE_ITEM:NAMEID" type="sint32" value="0" /> <variable entry="UI:TEMP:TRADE_ITEM:NAMEID" type="sint32" value="0" />
<variable entry="UI:TEMP:TRADE_ITEM:INFO_VERSION" type="sint32" value="0" /> <variable entry="UI:TEMP:TRADE_ITEM:INFO_VERSION" type="sint32" value="0" />
@ -450,7 +449,6 @@
<variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:QUANTITY" type="sint32" value="0" size="64" /> <variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:QUANTITY" type="sint32" value="0" size="64" />
<variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:SLOT_TYPE" type="sint32" value="0" size="64" /> <variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:SLOT_TYPE" type="sint32" value="0" size="64" />
<variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:USER_COLOR" type="sint32" value="1" size="64" /> <variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:USER_COLOR" type="sint32" value="1" size="64" />
<variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:CHARAC_BUFFS" type="sint8" value="0" size="64" />
<variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:NAMEID" type="sint32" value="0" size="64" /> <variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:NAMEID" type="sint32" value="0" size="64" />
<variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:INFO_VERSION" type="sint32" value="0" size="64" /> <variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:INFO_VERSION" type="sint32" value="0" size="64" />
<variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:ENCHANT" type="sint32" value="0" size="64" /> <variable entry="UI:TEMP:TRADE_ITEM:BUILD_ITEMS:$i:ENCHANT" type="sint32" value="0" size="64" />
@ -518,7 +516,7 @@
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y"> <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y">
<view type="bitmap" id="icone" posref="TL TL" texture="money_seve.tga" global_color="false" /> <view type="bitmap" id="icone" posref="TL TL" texture="money_seve.tga" global_color="false" />
<instance template="box_widget" id="box1" posref="TL TL" sizeref="w" w="-18" h="16" x="18" /> <instance template="box_widget" id="box1" posref="TL TL" sizeref="w" w="-18" h="16" x="18" />
<view type="text" id="val1" posparent="box1" posref="MR MR" x="-3" y="-2" color="135 243 28 255" shadow="true" fontsize="10" hardtext="" global_color="false" /> <view type="text" id="val1" posparent="box1" posref="MR MR" x="-3" y="0" color="135 243 28 255" shadow="true" fontsize="10" hardtext="" global_color="false" />
<ctrl type="tooltip" id="tt" instant_help="true" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0" /> <ctrl type="tooltip" id="tt" instant_help="true" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0" />
<link expr="getPriceWithFame(@#value,@#value_fame)" target="val1:hardtext" /> <link expr="getPriceWithFame(@#value,@#value_fame)" target="val1:hardtext" />
<link expr="ifthenelse(eq(@UI:TEMP:TRADE_ITEM:IS_SELL_DLG,1),ifthenelse(eq(@#value,@#value_fame),localize('uittPriceWithFameEqual'),localize('uittPriceWithFameDiff')),'')" target="tt:tooltip" /> <link expr="ifthenelse(eq(@UI:TEMP:TRADE_ITEM:IS_SELL_DLG,1),ifthenelse(eq(@#value,@#value_fame),localize('uittPriceWithFameEqual'),localize('uittPriceWithFameDiff')),'')" target="tt:tooltip" />
@ -530,13 +528,13 @@
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y"> <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y">
<view type="bitmap" id="icone" posref="TL TL" texture="money_seve.tga" global_color="false" /> <view type="bitmap" id="icone" posref="TL TL" texture="money_seve.tga" global_color="false" />
<instance template="box_widget" id="box1" posref="TL TL" sizeref="w" w="-18" h="16" x="18" /> <instance template="box_widget" id="box1" posref="TL TL" sizeref="w" w="-18" h="16" x="18" />
<view type="text" id="val1" posparent="box1" posref="MR MR" x="-3" y="-2" color="135 243 28 255" shadow="true" fontsize="10" hardtext="" global_color="false" /> <view type="text" id="val1" posparent="box1" posref="MR MR" x="-3" y="0" color="135 243 28 255" shadow="true" fontsize="10" hardtext="" global_color="false" />
<link expr="getBonusOnResale(@#value_high,@#value_low)" target="val1:hardtext" /> <link expr="getBonusOnResale(@#value_high,@#value_low)" target="val1:hardtext" />
</group> </group>
</template> </template>
<!-- the modal --> <!-- the modal -->
<group id="bot_chat_buy_sell_item" type="container" posref="BL TL" min_w="408" max_w="408" w="408" x="332" y="200" pop_max_h="700" max_h="2000" active="false" <group id="bot_chat_buy_sell_item" type="container" posref="BL TL" min_w="450" max_w="450" w="450" x="332" y="200" pop_max_h="700" max_h="2000" title_delta_max_w="-40" active="false"
openable="false" opened="true" openable="false" opened="true"
movable="true" movable="true"
resizer="false" resizer="false"
@ -570,9 +568,9 @@
<!-- //QUANTITY EDIT BOX --> <!-- //QUANTITY EDIT BOX -->
<view type="text" id="quantity_header" posref="TL TL" color="255 255 255 255" fontsize="10" x="202" y="0" shadow="true" hardtext="uiQtty" /> <view type="text" id="quantity_header" posref="TL TL" color="255 255 255 255" fontsize="10" x="202" y="0" shadow="true" hardtext="uiQtty" />
<group id="quantity" posparent="quantity_header" posref="BL TL" x="0" y="1" w="42" child_resize_h="true"> <group id="quantity" posparent="quantity_header" posref="BL TL" x="0" y="1" w="46" child_resize_h="true">
<view type="text" id="cross" posref="ML ML" color="255 255 255 255" fontsize="10" x="1" y="-3" shadow="true" hardtext="X" /> <view type="text" id="cross" posref="ML ML" color="255 255 255 255" fontsize="10" x="0" y="-3" shadow="true" hardtext="X" />
<instance template="edit_box_widget" id="edit" posref="MR MR" x="-6" text_x="0" text_ref="BR BR" w="26" prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="3" <instance template="edit_box_widget" id="edit" posref="MR MR" x="-6" text_x="0" text_ref="BR BR" w="30" prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="3"
onenter="confirm_trade" params="resale=2" enter_recover_focus="false" reset_focus_on_hide="true" max_historic="0" entry_type="positive_integer" onenter="confirm_trade" params="resale=2" enter_recover_focus="false" reset_focus_on_hide="true" max_historic="0" entry_type="positive_integer"
/> />
</group> </group>
@ -625,8 +623,8 @@
<view type="text" id="header" posref="TL TL" color="255 255 255 255" fontsize="10" x="64" y="0" shadow="true" hardtext="uiResaleMargin" /> <view type="text" id="header" posref="TL TL" color="255 255 255 255" fontsize="10" x="64" y="0" shadow="true" hardtext="uiResaleMargin" />
<ctrl type="button" id="arrow_up" button_type="push_button" posparent="header" x="6" posref="BL TL" tx_normal="W_arrow_up_1.tga" tx_pushed="W_arrow_up_1.tga" tx_over="W_button_12_over.tga" onclick_l="change_resale_margin" params_l="5" onclick_r="change_resale_margin" params_r="20" /> <ctrl type="button" id="arrow_up" button_type="push_button" posparent="header" x="6" posref="BL TL" tx_normal="W_arrow_up_1.tga" tx_pushed="W_arrow_up_1.tga" tx_over="W_button_12_over.tga" onclick_l="change_resale_margin" params_l="5" onclick_r="change_resale_margin" params_r="20" />
<ctrl type="button" id="arrow_down" button_type="push_button" posparent="arrow_up" posref="BL TL" tx_normal="W_arrow_down_1.tga" tx_pushed="W_arrow_down_1.tga" tx_over="W_button_12_over.tga" onclick_l="change_resale_margin" params_l="-5" onclick_r="change_resale_margin" params_r="-20" /> <ctrl type="button" id="arrow_down" button_type="push_button" posparent="arrow_up" posref="BL TL" tx_normal="W_arrow_down_1.tga" tx_pushed="W_arrow_down_1.tga" tx_over="W_button_12_over.tga" onclick_l="change_resale_margin" params_l="-5" onclick_r="change_resale_margin" params_r="-20" />
<instance template="edit_box_widget" id="edit" posparent="arrow_down" posref="TR ML" text_x="0" text_ref="BR BR" w="42" prompt="+" enter_loose_focus="true" multi_line="false" <instance template="edit_box_widget" id="edit" posparent="arrow_down" posref="TR ML" text_x="0" text_ref="BR BR" w="44" prompt="+" enter_loose_focus="true" multi_line="false"
onenter="confirm_trade" params="resale=2" enter_recover_focus="false" reset_focus_on_hide="true" max_historic="0" entry_type="positive_integer" max_num_chars="5" onenter="confirm_trade" params="resale=2" enter_recover_focus="false" reset_focus_on_hide="true" max_historic="0" entry_type="positive_integer" max_num_chars="4"
/> />
<view type="text" id="pct" posparent="edit" posref="MR ML" color="255 255 255 255" fontsize="10" x="0" y="0" shadow="true" hardtext="%%" /> <view type="text" id="pct" posparent="edit" posref="MR ML" color="255 255 255 255" fontsize="10" x="0" y="0" shadow="true" hardtext="%%" />
@ -725,7 +723,7 @@
<!-- // RESELL BUTTON --> <!-- // RESELL BUTTON -->
<ctrl id="confirm_trade_resell" style="button_ok" tooltip="uittResellButton" x="-4" y="0" posparent="confirm_trade" posref="ML MR" text_y="-2" onclick_l="confirm_trade" params_l="resale=1" hardtext="uiLetResell" /> <ctrl id="confirm_trade_resell" style="button_ok" tooltip="uittResellButton" x="-4" y="0" posparent="confirm_trade" posref="ML MR" text_y="0" onclick_l="confirm_trade" params_l="resale=1" hardtext="uiLetResell" />
<!-- group to say that player can't buy item --> <!-- group to say that player can't buy item -->
<group id="cant_trade" posref="BR TR" x="0" y="-4" posparent="scroll_text" child_resize_w="true" child_resize_h="true"> <group id="cant_trade" posref="BR TR" x="0" y="-4" posparent="scroll_text" child_resize_w="true" child_resize_h="true">
@ -757,7 +755,6 @@
<variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE:QUALITY" type="sint32" value="0" /> <variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE:QUALITY" type="sint32" value="0" />
<variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE:QUANTITY" type="sint32" value="0" /> <variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE:QUANTITY" type="sint32" value="0" />
<variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE:USER_COLOR" type="sint32" value="1" /> <variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE:USER_COLOR" type="sint32" value="1" />
<variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE:CHARAC_BUFFS" type="sint8" value="0" />
<!-- init beige by default --> <!-- init beige by default -->
<variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE:WEIGHT" type="sint32" value="0" /> <variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE:WEIGHT" type="sint32" value="0" />
<!-- selection of the item type --> <!-- selection of the item type -->
@ -765,7 +762,6 @@
<variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE_SELECTED:$i:QUALITY" type="sint32" value="0" size="128" /> <variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE_SELECTED:$i:QUALITY" type="sint32" value="0" size="128" />
<variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE_SELECTED:$i:QUANTITY" type="sint32" value="0" size="128" /> <variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE_SELECTED:$i:QUANTITY" type="sint32" value="0" size="128" />
<variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE_SELECTED:$i:USER_COLOR" type="sint32" value="1" size="128" /> <variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE_SELECTED:$i:USER_COLOR" type="sint32" value="1" size="128" />
<variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE_SELECTED:$i:CHARAC_BUFFS" type="sint8" value="0" size="128" />
<!-- init beige by default --> <!-- init beige by default -->
<variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE_SELECTED:$i:WEIGHT" type="sint32" value="0" size="128" /> <variable entry="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE_SELECTED:$i:WEIGHT" type="sint32" value="0" size="128" />
<!-- selection of the item type is automatically modified when the bitfield change --> <!-- selection of the item type is automatically modified when the bitfield change -->
@ -831,11 +827,11 @@
--> -->
<!-- LIST OF ITEMS TO BUY --> <!-- LIST OF ITEMS TO BUY -->
<!-- The H should be "42+hspace" * Number of rows. Setup list.max_h too below--> <!-- The H should be "42+hspace" * Number of rows. Setup list.max_h too below-->
<group type="list_sheet_trade" sizeref="w" w="0" x="2" y="0" h="%trade_slot_height" id="#id" <group type="list_sheet_trade" sizeref="w" w="0" x="4" y="0" h="%trade_slot_height" id="#id"
posparent="parent" posparent="parent"
posref="TL TL" posref="TL TL"
xitem="2" yitem="-2" xitem="2" yitem="-2"
xtext="46" ytext="-2" xtext="46" ytext="2"
hspace="4" hspace="4"
array="false" array="false"
value="%trade" value="%trade"

@ -87,6 +87,9 @@
<command name="target" action="no_target" params="" /> <command name="target" action="no_target" params="" />
<command name="tar" action="no_target" params="" /> <command name="tar" action="no_target" params="" />
<command name="lmtar" action="target_landmark" params="search=+" />
<command name="lmtar" action="set_compass_north" params="compass=ui:interface:compass" />
<command name="assist" action="assist_target" params="" /> <command name="assist" action="assist_target" params="" />
<command name="as" action="assist_target" params="" /> <command name="as" action="assist_target" params="" />
@ -100,7 +103,8 @@
<command name="invite" action="command" params="a teamInvite $" /> <command name="invite" action="command" params="a teamInvite $" />
<command name="channel" action="command" params='a connectUserChannel "$"' /> <command name="channel" action="command" params='a connectUserChannel "$"' />
<command name="channel" action="command" params='a connectUserChannel "$" +' /> <command name="channel" action="lua" params='game:connectUserChannel([[+]])' />
<command name="saveChannel" action="lua" params='game:saveChannel()' />
<command name="leaguekick" action="command" params="a leagueKick $" /> <command name="leaguekick" action="command" params="a leagueKick $" />
<command name="leaguequit" action="command" params="a setLeague" /> <command name="leaguequit" action="command" params="a setLeague" />
@ -121,4 +125,8 @@
<command name="mapsearch" action="proc" params="map_search_show_set|+" /> <command name="mapsearch" action="proc" params="map_search_show_set|+" />
<command name="mapsearch" action="proc" params="map_search_show" /> <command name="mapsearch" action="proc" params="map_search_show" />
<!-- WebIG -->
<command name="go" action="browse" params="name=ui:interface:webig:content:html|url=home"/>
<command name="webdev" action="browse" params="name=ui:interface:webig:content:html|url=http://localhost/index.html"/>
</interface_config> </interface_config>

@ -0,0 +1,50 @@
-- In this file we define functions that serves for compass window
if (game==nil) then
game= {};
end
function game:areInSilan()
polygons = {{8128,-10208}, {11368,-10208}, {11392,-12392}, {8096,-12368}}
local x,y = getPlayerPos()
for i = 1, 4 do
local z = point_inside_poly(x, y, polygons)
if z == true then
return true
end
end
return false
end
function game:updateCompass()
if game.InGameDbInitialized == false then
return
end
local calendar_win = getUI("ui:interface:compass:calendar")
local format_date = "%d %m %Y %H:%M"
format_date = findReplaceAll(format_date, "%m", i18n.get("uiMonth"..getTimestampHuman("%m")):toUtf8())
calendar_win.tooltip = getTimestampHuman(format_date)
end
function game:displayDynE()
local win = getUI("ui:interface:app2453")
if win ~= nil and win.active == true then
win.active = false
else
AppZone:launchApp(2453)
end
end
function game:displayCalendar()
local win = getUI("ui:interface:webig")
if win ~= nil and win.active == true then
win.active = false
else
win.active = true
end
end
setOnDraw(getUI("ui:interface:compass"), "game:updateCompass()")

@ -190,11 +190,11 @@
<proc id="radar_proc_zoom_in"> <proc id="radar_proc_zoom_in">
<action handler="set" cond="ne(@UI:SAVE:RADARZOOM,0)" params="dblink=UI:SAVE:RADARZOOM|value=sub(@UI:SAVE:RADARZOOM,1)" /> <action handler="set" cond="ne(@UI:SAVE:RADARZOOM,0)" params="dblink=UI:SAVE:RADARZOOM|value=sub(@UI:SAVE:RADARZOOM,1)" icon="w_button_radar_plus.tga" />
</proc> </proc>
<proc id="radar_proc_zoom_out"> <proc id="radar_proc_zoom_out">
<action handler="set" cond="ne(@UI:SAVE:RADARZOOM,3)" params="dblink=UI:SAVE:RADARZOOM|value=add(@UI:SAVE:RADARZOOM,1)" /> <action handler="set" cond="ne(@UI:SAVE:RADARZOOM,3)" params="dblink=UI:SAVE:RADARZOOM|value=add(@UI:SAVE:RADARZOOM,1)" icon="w_button_radar_moins.tga" />
</proc> </proc>
<proc id="radar_proc_zoom"> <proc id="radar_proc_zoom">
@ -204,123 +204,124 @@
params="target_property=ui:interface:compass:visuel:radar:world_size|value=switch(@0, 50.0, 100.0, 250.0, 500.0)" /> params="target_property=ui:interface:compass:visuel:radar:world_size|value=switch(@0, 50.0, 100.0, 250.0, 500.0)" />
</proc> </proc>
<define id="landmark_menu_max_visible" value="25" />
<group id="compass_menu" type="menu_compas" extends="base_menu_with_color" posref="TL TL" x="0" y="0" <group id="compass_menu" type="menu_compas" extends="base_menu_with_color" posref="TL TL" x="0" y="0"
mouse_pos="true" exit_click_b="true" force_inside_screen="true" compass="ui:interface:compass"> mouse_pos="true" exit_click_b="true" force_inside_screen="true" compass="ui:interface:compass">
<!-- SubMenus. Add dummy entries first --> <!-- SubMenus. Add dummy entries first -->
<action id="mission" name="uimCompassMissions"> <action id="mission" name="uimCompassMissions" icon="mission_available.tga">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark" name="uimCompassLandMarks"> <action id="land_mark" name="uimCompassLandMarks" icon="lm_user.tga">
<action id="land_mark_misc" name="uiLMMiscColor"> <action id="land_mark_misc" max_visible_line="%landmark_menu_max_visible" name="uiLMMiscColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_tribe" name="uiLMTribeColor"> <action id="land_mark_tribe" max_visible_line="%landmark_menu_max_visible" name="uiLMTribeColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_bandit" name="uiLMBanditColor"> <action id="land_mark_bandit" max_visible_line="%landmark_menu_max_visible" name="uiLMBanditColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_citizen" name="uiLMCitizenColor"> <action id="land_mark_citizen" max_visible_line="%landmark_menu_max_visible" name="uiLMCitizenColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_fauna" name="uiLMFaunaColor"> <action id="land_mark_fauna" max_visible_line="%landmark_menu_max_visible" name="uiLMFaunaColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_faunaexcel" name="uiLMFaunaExcelColor"> <action id="land_mark_faunaexcel" max_visible_line="%landmark_menu_max_visible" name="uiLMFaunaExcelColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_faunasup" name="uiLMFaunaSupColor"> <action id="land_mark_faunasup" max_visible_line="%landmark_menu_max_visible" name="uiLMFaunaSupColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_forage" name="uiLMForageColor"> <action id="land_mark_forage" max_visible_line="%landmark_menu_max_visible" name="uiLMForageColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_forageexcel" name="uiLMForageExcelColor"> <action id="land_mark_forageexcel" name="uiLMForageExcelColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_foragesup" name="uiLMForageSupColor"> <action id="land_mark_foragesup" max_visible_line="%landmark_menu_max_visible" name="uiLMForageSupColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_sap" name="uiLMSapColor"> <action id="land_mark_sap" max_visible_line="%landmark_menu_max_visible" name="uiLMSapColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_amber" name="uiLMAmberColor"> <action id="land_mark_amber" max_visible_line="%landmark_menu_max_visible" name="uiLMAmberColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_node" name="uiLMNodeColor"> <action id="land_mark_node" max_visible_line="%landmark_menu_max_visible" name="uiLMNodeColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_fiber" name="uiLMFiberColor"> <action id="land_mark_fiber" max_visible_line="%landmark_menu_max_visible" name="uiLMFiberColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_bark" name="uiLMBarkColor"> <action id="land_mark_bark" max_visible_line="%landmark_menu_max_visible" name="uiLMBarkColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_seed" name="uiLMSeedColor"> <action id="land_mark_seed" max_visible_line="%landmark_menu_max_visible" name="uiLMSeedColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_shell" name="uiLMShellColor"> <action id="land_mark_shell" max_visible_line="%landmark_menu_max_visible" name="uiLMShellColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_resin" name="uiLMResinColor"> <action id="land_mark_resin" max_visible_line="%landmark_menu_max_visible" name="uiLMResinColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_wood" name="uiLMWoodColor"> <action id="land_mark_wood" max_visible_line="%landmark_menu_max_visible" name="uiLMWoodColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_oil" name="uiLMOilColor"> <action id="land_mark_oil" max_visible_line="%landmark_menu_max_visible" name="uiLMOilColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_mission" name="uiLMMissionColor"> <action id="land_mark_mission" max_visible_line="%landmark_menu_max_visible" name="uiLMMissionColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_food" name="uiLMFoodColor"> <action id="land_mark_food" max_visible_line="%landmark_menu_max_visible" name="uiLMFoodColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_construction" name="uiLMConstructionColor"> <action id="land_mark_construction" max_visible_line="%landmark_menu_max_visible" name="uiLMConstructionColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_goo" name="uiLMGooColor"> <action id="land_mark_goo" max_visible_line="%landmark_menu_max_visible" name="uiLMGooColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_insect" name="uiLMInsectColor"> <action id="land_mark_insect" max_visible_line="%landmark_menu_max_visible" name="uiLMInsectColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_kitin" name="uiLMKitinColor"> <action id="land_mark_kitin" max_visible_line="%landmark_menu_max_visible" name="uiLMKitinColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_nocive" name="uiLMNociveColor"> <action id="land_mark_nocive" max_visible_line="%landmark_menu_max_visible" name="uiLMNociveColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_preservative" name="uiLMPreservativeColor"> <action id="land_mark_preservative" max_visible_line="%landmark_menu_max_visible" name="uiLMPreservativeColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_passage" name="uiLMPassageColor"> <action id="land_mark_passage" max_visible_line="%landmark_menu_max_visible" name="uiLMPassageColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="land_mark_teleporter" name="uiLMTeleporterColor"> <action id="land_mark_teleporter" max_visible_line="%landmark_menu_max_visible" name="uiLMTeleporterColor">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
</action> </action>
<action id="team" name="uimCompassTeam"> <action id="team" name="uimCompassTeam" icon="teammate_map.tga">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="animal" name="uimCompassAnimal"> <action id="animal" name="uimCompassAnimal" icon="mektoub_map.tga">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<action id="dialogs" name="uimCompassDialogs"> <action id="dialogs" name="uimCompassDialogs" icon="r2ed_create_dialog.tga">
<action id="dummy1" name="DUMMY-ERROR" /> <action id="dummy1" name="DUMMY-ERROR" />
</action> </action>
<!-- Common Container menu actions --> <!-- Common Container menu actions -->
<separator /> <separator />
<action id="zi" name="uimZoomIn" handler="proc" params="radar_proc_zoom_in" /> <action id="zi" name="uimZoomIn" handler="proc" params="radar_proc_zoom_in" icon="arbo_close_just_one.tga" />
<action id="zo" name="uimZoomOut" handler="proc" params="radar_proc_zoom_out" /> <action id="zo" name="uimZoomOut" handler="proc" params="radar_proc_zoom_out" icon="arbo_open_first.tga" />
<separator /> <separator />
<!-- <!--
@ -357,7 +358,7 @@
</group> </group>
<link expr="@UI:SAVE:SHOW_CLOCK" target="clock:active" /> <link expr="@UI:SAVE:SHOW_CLOCK" target="clock:active" />
<!-- new mail message notifier --> <!-- new mail message notifier -->
<group id="mail" posref="BR BR" group_onclick_l="show_hide" group_params_l="mailbox" tooltip="uiMk_interaction5" w="32" h="24" x="-4" y="42"> <group id="mail" posref="BR BR" group_onclick_l="show_hide" group_params_l="mailbox" tooltip="uiMk_interaction5" w="32" h="24" x="-4" y="50">
<view id="envelop" type="bitmap" texture="mail.tga" global_color="false" /> <view id="envelop" type="bitmap" texture="mail.tga" global_color="false" />
<view type="text" id="mail_nb" posref="BR BR" x="0" y="0" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="" /> <view type="text" id="mail_nb" posref="BR BR" x="0" y="0" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="" />
<!-- <view type="text" id="mail_nb2" posparent="mail_nb" posref="BL BR" x="-2" y="0" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="x" /> --> <!-- <view type="text" id="mail_nb2" posparent="mail_nb" posref="BL BR" x="-2" y="0" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="x" /> -->
@ -365,13 +366,45 @@
<link expr="@UI:VARIABLES:MAIL_WAITING" target="mail:active" /> <link expr="@UI:VARIABLES:MAIL_WAITING" target="mail:active" />
<!-- new guild forum message notifier --> <!-- new guild forum message notifier -->
<group id="forum" posref="BR BR" group_onclick_l="show_hide" group_params_l="guild_forum" tooltip="uiMk_interaction3" w="32" h="24" x="-20" y="22"> <group id="forum" posref="BR BR" group_onclick_l="show_hide" group_params_l="guild_forum" tooltip="uiMk_interaction3" w="32" h="24" x="-30" y="20">
<view id="envelop" type="bitmap" w="24" scale="true" texture="r2ed_create_dialog.tga" global_color="false" /> <view id="envelop" type="bitmap" w="24" scale="true" texture="r2ed_create_dialog.tga" global_color="false" />
<view type="text" id="forum_nb" posref="BR BR" x="0" y="0" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="" /> <view type="text" id="forum_nb" posref="BR BR" x="0" y="0" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="" />
</group> </group>
<link expr="@UI:VARIABLES:FORUM_UPDATED" target="forum:active" /> <link expr="@UI:VARIABLES:FORUM_UPDATED" target="forum:active" />
<!-- show/hide webig calendar -->
<group id="calendar" posref="TL TL" group_onclick_l="lua" group_params_l="game:displayCalendar()" tooltip="uiMFDate" w="24" h="24" x="4" y="-30">
<view id="envelop" type="bitmap" texture="calendar.tga" global_color="false" />
<view type="text" id="date" posref="BM BM" x="0" y="2" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="19" />
</group>
<!-- show/hide map -->
<group id="map" posref="BL BL" group_onclick_l="show_hide" group_params_l="map" tooltip="uiMk_window5" w="24" h="24" x="4" y="22">
<view id="envelop" type="bitmap" texture="ico_hatred.tga" global_color="false" />
</group>
<!-- show/hide dynE -->
<group id="dyne" posref="BR BR" group_onclick_l="lua" group_params_l="game:displayDynE()" tooltip="uiR2Events" active="false" w="24" h="24" x="-4" y="20">
<view id="envelop" type="bitmap" texture="dyn_event_compass.tga" global_color="false" />
<view type="text" id="dyne_nb" posref="BR BR" x="-1" y="-2" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="" />
</group>
<!-- show/hide whatsup -->
<group id="whatsup" posref="BL BL" group_onclick_l="lua" group_params_l="game:displayWhatsUp()" tooltip="uiTalkMemMsg10" active="false" w="24" h="24" x="4" y="50">
<view id="envelop" type="bitmap" texture="whatsup_mini.tga" global_color="false" />
</group>
<!-- show/hide help -->
<group id="help" posref="TR TR" group_onclick_l="show_hide" group_params_l="cs_browser" tooltip="uiMk_window8" w="24" h="24" x="-4" y="-30">
<view id="envelop" type="bitmap" texture="tb_help2.tga" global_color="false" />
</group>
<!-- user icon 1 -->
<group id="user1" posref="TL TL" group_onclick_l="lua" group_params_l="game:displayCompassIconUser1()" tooltip="uiMk_interaction5" w="32" h="24" x="4" y="-58">
<view id="envelop" type="bitmap" texture="tb_identity.tga" global_color="false" />
<view type="text" id="user1_text" posref="BR BR" x="0" y="0" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="0" />
</group>
<link expr="@UI:VARIABLES:COMPASS_ICON_USER1" target="user1:active" />
<!-- user icon 2 -->
<group id="user2" posref="TR TR" group_onclick_l="show_hide" group_params_l="game:displayCompassIconUser2()" tooltip="uiMk_interaction5" w="32" h="24" x="-4" y="-58">
<view id="envelop" type="bitmap" texture="tb_identity.tga" global_color="false" />
<view type="text" id="user2_text" posref="BR BR" x="0" y="0" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="0" />
</group>
<link expr="@UI:VARIABLES:COMPASS_ICON_USER2" target="user2:active" />
<view type="text" id="dist" posref="BM BM" x="0" y="2" hardtext="uiRadarZoom0" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" line_maxw="164" over_extend_view_text="true" /> <view type="text" id="dist" posref="BM BM" x="0" y="2" hardtext="uiRadarZoom0" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" line_maxw="164" over_extend_view_text="true" />
<scene3d id="arrow3d" x="0" y="0" w="142" h="142" posref="TM TM" curcam="cam" <scene3d id="arrow3d" x="0" y="0" w="142" h="142" posref="TM TM" curcam="cam"
@ -508,4 +541,6 @@
<link expr="eq(@UI:VARIABLES:SERVERSTATE,7)" target="connection:content:server7:active" /> <link expr="eq(@UI:VARIABLES:SERVERSTATE,7)" target="connection:content:server7:active" />
<link expr="eq(@UI:VARIABLES:SERVERSTATE,8)" target="connection:content:server8:active" /> <link expr="eq(@UI:VARIABLES:SERVERSTATE,8)" target="connection:content:server8:active" />
<lua file="compass.lua" />
</interface_config> </interface_config>

@ -1090,8 +1090,8 @@ This MUST follow the Enum MISSION_DESC::TIconId
<param name="text_over_back_color" value="64 64 64 255" /> <param name="text_over_back_color" value="64 64 64 255" />
<param name="font" value="uiFontSans" /> <param name="font" value="ryzom.ttf" />
<param name="monospace_font" value="uiFontMonospace" /> <param name="monospace_font" value="ryzom_monospace.ttf" />
<param name="add_coef_font" value="1" /> <param name="add_coef_font" value="1" />
<param name="mul_coef_anim" value="0.8" /> <param name="mul_coef_anim" value="0.8" />
@ -1403,12 +1403,17 @@ This MUST follow the Enum MISSION_DESC::TIconId
<define id="pa_beast1" value="%pa:BEAST1" /> <define id="pa_beast1" value="%pa:BEAST1" />
<define id="pa_beast2" value="%pa:BEAST2" /> <define id="pa_beast2" value="%pa:BEAST2" />
<define id="pa_beast3" value="%pa:BEAST3" /> <define id="pa_beast3" value="%pa:BEAST3" />
<define id="pa_beast4" value="%pa:BEAST4" />
<define id="pa_beast5" value="%pa:BEAST5" />
<define id="pa_beast6" value="%pa:BEAST6" />
<!-- MAX_INVENTORY_ANIMAL --> <!-- MAX_INVENTORY_ANIMAL -->
<define id="pa_bag0" value="%set_base:PACK_ANIMAL0" /> <define id="pa_bag0" value="%set_base:PACK_ANIMAL0" />
<define id="pa_bag1" value="%set_base:PACK_ANIMAL1" /> <define id="pa_bag1" value="%set_base:PACK_ANIMAL1" />
<define id="pa_bag2" value="%set_base:PACK_ANIMAL2" /> <define id="pa_bag2" value="%set_base:PACK_ANIMAL2" />
<define id="pa_bag3" value="%set_base:PACK_ANIMAL3" /> <define id="pa_bag3" value="%set_base:PACK_ANIMAL3" />
<define id="pa_bag4" value="%set_base:PACK_ANIMAL4" />
<define id="pa_bag5" value="%set_base:PACK_ANIMAL5" />
<define id="pa_bag6" value="%set_base:PACK_ANIMAL6" />
<define id="money" value="%set_base:MONEY" /> <define id="money" value="%set_base:MONEY" />
<define id="skill_points_0" value="LOCAL:USER:SKILL_POINTS_0:VALUE" /> <define id="skill_points_0" value="LOCAL:USER:SKILL_POINTS_0:VALUE" />
<define id="skill_points_1" value="LOCAL:USER:SKILL_POINTS_1:VALUE" /> <define id="skill_points_1" value="LOCAL:USER:SKILL_POINTS_1:VALUE" />
@ -1421,14 +1426,16 @@ This MUST follow the Enum MISSION_DESC::TIconId
<define id="faction_index_karavan" value_from_code="getFactionIndex('karavan')" /> <define id="faction_index_karavan" value_from_code="getFactionIndex('karavan')" />
<define id="faction_index_matis" value_from_code="getFactionIndex('matis')" /> <define id="faction_index_matis" value_from_code="getFactionIndex('matis')" />
<define id="faction_index_tryker" value_from_code="getFactionIndex('tryker')" /> <define id="faction_index_tryker" value_from_code="getFactionIndex('tryker')" />
<define id="faction_index_marauder" value_from_code="getFactionIndex('black_kami')" />
<define id="faction_index_ranger" value_from_code="getFactionIndex('white_karavan')" />
<define id="faction_points_kami" value="LOCAL:USER:FACTION_POINTS_%faction_index_kami:VALUE" /> <define id="faction_points_kami" value="LOCAL:USER:FACTION_POINTS_%faction_index_kami:VALUE" />
<define id="faction_points_fyros" value="LOCAL:USER:FACTION_POINTS_%faction_index_fyros:VALUE" /> <define id="faction_points_fyros" value="LOCAL:USER:FACTION_POINTS_%faction_index_fyros:VALUE" />
<define id="faction_points_zorai" value="LOCAL:USER:FACTION_POINTS_%faction_index_zorai:VALUE" /> <define id="faction_points_zorai" value="LOCAL:USER:FACTION_POINTS_%faction_index_zorai:VALUE" />
<define id="faction_points_karavan" value="LOCAL:USER:FACTION_POINTS_%faction_index_karavan:VALUE" /> <define id="faction_points_karavan" value="LOCAL:USER:FACTION_POINTS_%faction_index_karavan:VALUE" />
<define id="faction_points_matis" value="LOCAL:USER:FACTION_POINTS_%faction_index_matis:VALUE" /> <define id="faction_points_matis" value="LOCAL:USER:FACTION_POINTS_%faction_index_matis:VALUE" />
<define id="faction_points_tryker" value="LOCAL:USER:FACTION_POINTS_%faction_index_tryker:VALUE" /> <define id="faction_points_tryker" value="LOCAL:USER:FACTION_POINTS_%faction_index_tryker:VALUE" />
<define id="faction_points_marauder" value="LOCAL:USER:FACTION_POINTS_%faction_index_marauder:VALUE" />
<define id="faction_points_ranger" value="LOCAL:USER:FACTION_POINTS_%faction_index_ranger:VALUE" />
<define id="faction_icon_kami" value="faction_Kami.tga" /> <define id="faction_icon_kami" value="faction_Kami.tga" />
<define id="faction_icon_fyros" value="faction_Fyros.tga" /> <define id="faction_icon_fyros" value="faction_Fyros.tga" />
<define id="faction_icon_zorai" value="faction_Zorai.tga" /> <define id="faction_icon_zorai" value="faction_Zorai.tga" />
@ -1682,6 +1689,8 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:SHOW_CLOCK" type="bool" value="false" /> <variable entry="UI:SAVE:SHOW_CLOCK" type="bool" value="false" />
<variable entry="UI:SAVE:SHOW_CLOCK_12H" type="bool" value="false" /> <variable entry="UI:SAVE:SHOW_CLOCK_12H" type="bool" value="false" />
<variable entry="UI:SAVE:SHOW_RETICLE" type="bool" value="true" /> <variable entry="UI:SAVE:SHOW_RETICLE" type="bool" value="true" />
<variable entry="UI:SAVE:SHOW_ICON_BUFFS" type="bool" value="true" />
<link expr="@UI:SAVE:SHOW_ICON_BUFFS" action="trigger_show_icon_buffs" />
<variable entry="UI:VARIABLES:MISSION_SELECTED_PREV_SESSION" type="sint32" value="-1" /> <variable entry="UI:VARIABLES:MISSION_SELECTED_PREV_SESSION" type="sint32" value="-1" />
<!-- set to true if the current header that called a menu was a popup container --> <!-- set to true if the current header that called a menu was a popup container -->
@ -1691,7 +1700,9 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:VARIABLES:MAIL_WAITING" type="sint64" value="0" /> <variable entry="UI:VARIABLES:MAIL_WAITING" type="sint64" value="0" />
<variable entry="UI:VARIABLES:FORUM_UPDATED" type="sint64" value="0" /> <variable entry="UI:VARIABLES:FORUM_UPDATED" type="sint64" value="0" />
<variable entry="UI:VARIABLES:DYNE_UPDATED" type="bool" value="0" />
<variable entry="UI:VARIABLES:COMPASS_ICON_USER1" type="bool" value="0" />
<variable entry="UI:VARIABLES:COMPASS_ICON_USER2" type="bool" value="0" />
<variable entry="UI:VARIABLES:CURRENT_TIME" type="sint64" value="0" /> <variable entry="UI:VARIABLES:CURRENT_TIME" type="sint64" value="0" />
<variable entry="UI:VARIABLES:CURRENT_SERVER_TICK" type="sint64" value="0" /> <variable entry="UI:VARIABLES:CURRENT_SERVER_TICK" type="sint64" value="0" />
<variable entry="UI:VARIABLES:CURRENT_SMOOTH_SERVER_TICK" type="sint64" value="0" /> <variable entry="UI:VARIABLES:CURRENT_SMOOTH_SERVER_TICK" type="sint64" value="0" />
@ -1782,6 +1793,28 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:CHAT:MULTI_LINE_SPACE" type="sint32" value="0" /> <variable entry="UI:SAVE:CHAT:MULTI_LINE_SPACE" type="sint32" value="0" />
<variable entry="UI:SAVE:CHAT:SHADOWED_TEXT" type="bool" value="true" /> <variable entry="UI:SAVE:CHAT:SHADOWED_TEXT" type="bool" value="true" />
<variable entry="UI:SAVE:TRANSLATION:EN:INVERSE_DISPLAY" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:EN:HIDE_FLAG" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:FR:INVERSE_DISPLAY" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:FR:HIDE_FLAG" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:DE:INVERSE_DISPLAY" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:DE:HIDE_FLAG" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:RU:INVERSE_DISPLAY" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:RU:HIDE_FLAG" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:ES:INVERSE_DISPLAY" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:ES:HIDE_FLAG" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:SAY:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:SHOUT:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:TEAM:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:GUILD:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:CIVILIZATION:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:TERRITORY:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:UNIVERSE:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:TELL:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:PLAYER:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:ARROUND:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:SYSTEM:DISABLE" type="bool" value="false" />
<variable entry="UI:SAVE:TRANSLATION:REGION:DISABLE" type="bool" value="false" />
<!-- ****************************** --> <!-- ****************************** -->
<!-- * CHAT COLORS * --> <!-- * CHAT COLORS * -->
<!-- ****************************** --> <!-- ****************************** -->
@ -1805,6 +1838,8 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:CHAT:COLORS:DYN:6" type="rgba" value="162 255 173 255" /> <variable entry="UI:SAVE:CHAT:COLORS:DYN:6" type="rgba" value="162 255 173 255" />
<variable entry="UI:SAVE:CHAT:COLORS:DYN:7" type="rgba" value="162 255 173 255" /> <variable entry="UI:SAVE:CHAT:COLORS:DYN:7" type="rgba" value="162 255 173 255" />
<variable entry="UI:SAVE:CHAT:ENTER_DONT_QUIT_CB" type="bool" value="false" /> <variable entry="UI:SAVE:CHAT:ENTER_DONT_QUIT_CB" type="bool" value="false" />
<variable entry="UI:SAVE:CHAT:SAVE_CHANNEL" type="bool" value="false" />
<variable entry="UI:SAVE:CHAT:AUTO_CHANNEL" type="bool" value="false" />
<variable entry="UI:SAVE:CHAT:SHOW_TIMES_IN_CHAT_CB" type="bool" value="false" /> <variable entry="UI:SAVE:CHAT:SHOW_TIMES_IN_CHAT_CB" type="bool" value="false" />
<variable entry="UI:SAVE:CHAT:SHOW_DYN_CHANNEL_NAME_IN_CHAT_CB" type="bool" value="false" /> <variable entry="UI:SAVE:CHAT:SHOW_DYN_CHANNEL_NAME_IN_CHAT_CB" type="bool" value="false" />
<variable entry="UI:SAVE:CHAT:SHOW_ONLINE_OFFLINE_NOTIFICATIONS_CB" type="bool" value="true" /> <variable entry="UI:SAVE:CHAT:SHOW_ONLINE_OFFLINE_NOTIFICATIONS_CB" type="bool" value="true" />
@ -1828,6 +1863,9 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:VARIABLES:ISACTIVE:INV_PA1" type="sint32" value="0" /> <variable entry="UI:VARIABLES:ISACTIVE:INV_PA1" type="sint32" value="0" />
<variable entry="UI:VARIABLES:ISACTIVE:INV_PA2" type="sint32" value="0" /> <variable entry="UI:VARIABLES:ISACTIVE:INV_PA2" type="sint32" value="0" />
<variable entry="UI:VARIABLES:ISACTIVE:INV_PA3" type="sint32" value="0" /> <variable entry="UI:VARIABLES:ISACTIVE:INV_PA3" type="sint32" value="0" />
<variable entry="UI:VARIABLES:ISACTIVE:INV_PA4" type="sint32" value="0" />
<variable entry="UI:VARIABLES:ISACTIVE:INV_PA5" type="sint32" value="0" />
<variable entry="UI:VARIABLES:ISACTIVE:INV_PA6" type="sint32" value="0" />
<variable entry="UI:VARIABLES:ISACTIVE:INV_ROOM" type="sint32" value="0" /> <variable entry="UI:VARIABLES:ISACTIVE:INV_ROOM" type="sint32" value="0" />
<variable entry="UI:VARIABLES:ISACTIVE:INVENTORY" type="sint32" value="0" /> <variable entry="UI:VARIABLES:ISACTIVE:INVENTORY" type="sint32" value="0" />
@ -1841,6 +1879,7 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:INV_BAG:FILTER_ARMOR" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_BAG:FILTER_ARMOR" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_BAG:FILTER_WEAPON" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_BAG:FILTER_WEAPON" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_BAG:FILTER_TOOL" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_BAG:FILTER_TOOL" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_BAG:FILTER_PET" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_BAG:FILTER_MP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_BAG:FILTER_MP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_BAG:FILTER_MISSMP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_BAG:FILTER_MISSMP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_BAG:FILTER_TP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_BAG:FILTER_TP" type="sint32" value="1" />
@ -1849,6 +1888,7 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:INV_PA0:FILTER_ARMOR" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA0:FILTER_ARMOR" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA0:FILTER_WEAPON" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA0:FILTER_WEAPON" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA0:FILTER_TOOL" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA0:FILTER_TOOL" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA0:FILTER_PET" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA0:FILTER_MP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA0:FILTER_MP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA0:FILTER_MISSMP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA0:FILTER_MISSMP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA0:FILTER_TP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA0:FILTER_TP" type="sint32" value="1" />
@ -1857,6 +1897,7 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:INV_PA1:FILTER_ARMOR" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA1:FILTER_ARMOR" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA1:FILTER_WEAPON" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA1:FILTER_WEAPON" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA1:FILTER_TOOL" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA1:FILTER_TOOL" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA1:FILTER_PET" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA1:FILTER_MP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA1:FILTER_MP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA1:FILTER_MISSMP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA1:FILTER_MISSMP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA1:FILTER_TP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA1:FILTER_TP" type="sint32" value="1" />
@ -1865,6 +1906,7 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:INV_PA2:FILTER_ARMOR" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA2:FILTER_ARMOR" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA2:FILTER_WEAPON" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA2:FILTER_WEAPON" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA2:FILTER_TOOL" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA2:FILTER_TOOL" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA2:FILTER_PET" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA2:FILTER_MP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA2:FILTER_MP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA2:FILTER_MISSMP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA2:FILTER_MISSMP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA2:FILTER_TP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA2:FILTER_TP" type="sint32" value="1" />
@ -1873,15 +1915,44 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:INV_PA3:FILTER_ARMOR" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA3:FILTER_ARMOR" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA3:FILTER_WEAPON" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA3:FILTER_WEAPON" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA3:FILTER_TOOL" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA3:FILTER_TOOL" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA3:FILTER_PET" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA3:FILTER_MP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA3:FILTER_MP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA3:FILTER_MISSMP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA3:FILTER_MISSMP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA3:FILTER_TP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_PA3:FILTER_TP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA4:SORT_TYPE" type="sint32" value="0" />
<variable entry="UI:SAVE:INV_PA4:ICON_LIST" type="sint32" value="0" />
<variable entry="UI:SAVE:INV_PA4:FILTER_ARMOR" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA4:FILTER_WEAPON" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA4:FILTER_TOOL" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA4:FILTER_PET" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA4:FILTER_MP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA4:FILTER_MISSMP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA4:FILTER_TP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA5:SORT_TYPE" type="sint32" value="0" />
<variable entry="UI:SAVE:INV_PA5:ICON_LIST" type="sint32" value="0" />
<variable entry="UI:SAVE:INV_PA5:FILTER_ARMOR" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA5:FILTER_WEAPON" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA5:FILTER_TOOL" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA5:FILTER_PET" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA5:FILTER_MP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA5:FILTER_MISSMP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA5:FILTER_TP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA6:SORT_TYPE" type="sint32" value="0" />
<variable entry="UI:SAVE:INV_PA6:ICON_LIST" type="sint32" value="0" />
<variable entry="UI:SAVE:INV_PA6:FILTER_ARMOR" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA6:FILTER_WEAPON" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA6:FILTER_TOOL" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA6:FILTER_PET" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA6:FILTER_MP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA6:FILTER_MISSMP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_PA6:FILTER_TP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_GUILD:SORT_TYPE" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_GUILD:SORT_TYPE" type="sint32" value="1" />
<!-- 1 == SortType --> <!-- 1 == SortType -->
<variable entry="UI:SAVE:INV_GUILD:ICON_LIST" type="sint32" value="0" /> <variable entry="UI:SAVE:INV_GUILD:ICON_LIST" type="sint32" value="0" />
<variable entry="UI:SAVE:INV_GUILD:FILTER_ARMOR" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_GUILD:FILTER_ARMOR" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_GUILD:FILTER_WEAPON" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_GUILD:FILTER_WEAPON" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_GUILD:FILTER_TOOL" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_GUILD:FILTER_TOOL" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_GUILD:FILTER_PET" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_GUILD:FILTER_MP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_GUILD:FILTER_MP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_GUILD:FILTER_MISSMP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_GUILD:FILTER_MISSMP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_GUILD:FILTER_TP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_GUILD:FILTER_TP" type="sint32" value="1" />
@ -1891,6 +1962,7 @@ This MUST follow the Enum MISSION_DESC::TIconId
<variable entry="UI:SAVE:INV_ROOM:FILTER_ARMOR" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_ROOM:FILTER_ARMOR" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_ROOM:FILTER_WEAPON" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_ROOM:FILTER_WEAPON" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_ROOM:FILTER_TOOL" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_ROOM:FILTER_TOOL" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_ROOM:FILTER_PET" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_ROOM:FILTER_MP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_ROOM:FILTER_MP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_ROOM:FILTER_MISSMP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_ROOM:FILTER_MISSMP" type="sint32" value="1" />
<variable entry="UI:SAVE:INV_ROOM:FILTER_TP" type="sint32" value="1" /> <variable entry="UI:SAVE:INV_ROOM:FILTER_TP" type="sint32" value="1" />
@ -2146,7 +2218,7 @@ This MUST follow the Enum MISSION_DESC::TIconId
<!-- Misc --> <!-- Misc -->
<define id="item_type_to_item_sheet_MEKTOUB_PACKER_TICKET" value="iapd.sitem" /> <define id="item_type_to_item_sheet_MEKTOUB_PACKER_TICKET" value="iapd.sitem" />
<define id="item_type_to_item_sheet_MEKTOUB_MOUNT_TICKET" value="iasd.sitem" /> <define id="item_type_to_item_sheet_MEKTOUB_MOUNT_TICKET" value="iasd.sitem" />
<define id="item_type_to_item_sheet_JOB_ELEMENT" value="rpjob_elementary.sitem" />
<!-- ************************ --> <!-- ************************ -->
<!-- * DYNAMIC CHAT * --> <!-- * DYNAMIC CHAT * -->

@ -71,10 +71,9 @@
<group type="container" id="encyclopedia" w="432" h="400" title="uiEncyclopedia" global_color="false" line_at_bottom="false" <group type="container" id="legacy_encyclopedia" w="432" h="400" title="uiEncyclopedia" global_color="false" line_at_bottom="false"
movable="true" active="false" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:PLA" movable="true" active="false" opened="true" openable="false" resizer="true" header_color="UI:SAVE:WIN:COLORS:PLA"
on_active="proc" on_active_params="encyclopedia_init" pop_min_w="432" pop_min_h="128" pop_max_w="800" pop_max_h="600" pop_min_w="432" pop_min_h="128" pop_max_w="800" pop_max_h="600" render_layer="1000" >
on_deactive="proc" on_deactive_params="encyclopedia_uninit" >
<group id="header_closed" x="0" y="0" child_resize_w="true" h="16" posref="TL TL" <group id="header_closed" x="0" y="0" child_resize_w="true" h="16" posref="TL TL"
group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color"> group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color">
@ -265,8 +264,29 @@
</group> </group>
</group> </group>
<tree node="encyclopedia"> <group type="container" id="encyclopedia" active="false" w="950" h="700" pop_max_w="950" pop_max_h="700" pop_min_w="585" pop_min_h="120" header_color="UI:SAVE:WIN:COLORS:PLA" posref="TL TL" title="Mission Catalog" global_color="true" global_color_over="true" right_button="true" movable="true" lockable="true" openable="true" opened="true" resizer="true" active_savable="false" >
</tree> <group id="header_closed" x="0" y="0" w="120" h="16" posref="TL TL" on_active="lua" on_active_params="game:closeWindowHeader()"></group>
<group id="header_opened" x="0" y="0" w="950" h="16" posref="TL TL" on_active="lua" on_active_params="game:openWindowHeader()"
group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" >
></group>
<group id="content" x="0" y="0" w="0" h="0" posref="TL TL">
<group id="htmlA" type="html" posref="ML ML" url="http://app.ryzom.com" title_prefix="" sizeref="h" x="-16" y="0" w="220" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline" >
<group id="black" posref="BR BR" sizeref="hw" w="-16" h="0" inherit_gc_alpha="true"/>
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" color="255 255 255 0"/>
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000"/>
<ctrl style="skin_scroll" id="scroll_bar" x="8"/>
</group>
<group id="htmlB" type="html" posref="ML ML" url="http://app.ryzom.com" title_prefix="" sizeref="h" x="190" y="0" w="740" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline" >
<group id="black" posref="BR BR" sizeref="hw" w="-16" h="0" inherit_gc_alpha="true"/>
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" color="255 255 255 0"/>
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000"/>
<ctrl style="skin_scroll" id="scroll_bar" x="8"/>
</group>
</group>
</group>
<tree node="legacy_encyclopedia"></tree>
<tree node="encyclopedia"></tree>
</interface_config> </interface_config>

@ -141,7 +141,8 @@
<define id="game_config_screen_ratio_eb" value="ui:interface:game_config:content:general:screen_ratio:edit:eb" /> <define id="game_config_screen_ratio_eb" value="ui:interface:game_config:content:general:screen_ratio:edit:eb" />
<define id="game_config_screen_ratio_cb" value="ui:interface:game_config:content:general:screen_ratio:combo" /> <define id="game_config_screen_ratio_cb" value="ui:interface:game_config:content:general:screen_ratio:combo" />
<define id="game_config_save_channel_cb" value="ui:interface:game_config:content:chat_colors:save_channel_cb:c" />
<define id="game_config_auto_channel_cb" value="ui:interface:game_config:content:chat_colors:auto_channel_cb:c" />
<proc id="game_config_init"> <proc id="game_config_init">
<action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:GAME_CONFIG|value=1" /> <action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:GAME_CONFIG|value=1" />
<action handler="ddx_init" params="ui:interface:game_config:content:all" /> <action handler="ddx_init" params="ui:interface:game_config:content:all" />
@ -281,7 +282,14 @@
<instance template="tgcw_scrollbarfloat" id="lum" text="uiLuminosity" posref="BL TL" posparent="con" x="0" y="-2" /> <instance template="tgcw_scrollbarfloat" id="lum" text="uiLuminosity" posref="BL TL" posparent="con" x="0" y="-2" />
<instance template="tgcw_scrollbarfloat" id="gam" text="uiGamma" posref="BL TL" posparent="lum" x="0" y="-2" /> <instance template="tgcw_scrollbarfloat" id="gam" text="uiGamma" posref="BL TL" posparent="lum" x="0" y="-2" />
<instance template="tgcw_scrollbarfloat" id="scale" text="uiInterfaceScale" posref="BL TL" posparent="gam" x="0" y="-2" /> <instance template="tgcw_scrollbarfloat" id="scale" text="uiInterfaceScale" posref="BL TL" posparent="gam" x="0" y="-2" />
<instance template="tgcw_checkbox" id="waitvbl" text="uiWaitVBL" posparent="scale" posref="BL TL" x="-20" y="-28" />
<!-- window snap -->
<view style="sgc_title2" type="text" id="title_win_snap" posref="BL TL" x="-20" y="-28" hardtext="uiWindowSnap" posparent="scale" />
<instance template="tgcw_scrollbarint" id="window_snap_distance" text="uiWindowSnapDistance" posref="BL TL" posparent="title_win_snap" x="20" y="-2" />
<instance template="tgcw_checkbox" id="window_snap_invert" text="uiWindowSnapInvert" posparent="window_snap_distance" posref="BL TL" x="0" y="-2" />
<!-- wait vbl -->
<instance template="tgcw_checkbox" id="waitvbl" text="uiWaitVBL" posparent="window_snap_invert" posref="BL TL" x="-20" y="-28" />
<!-- Special case for video modes --> <!-- Special case for video modes -->
<group id="fullscreen" posref="TR TR" x="-16" y="-30" child_resize_w="true" h="14"> <group id="fullscreen" posref="TR TR" x="-16" y="-30" child_resize_w="true" h="14">
@ -291,7 +299,6 @@
onclick_l="game_config_change_vid_fullscreen" params_l="" /> onclick_l="game_config_change_vid_fullscreen" params_l="" />
<view type="text" id="text" posparent="c" posref="MR ML" x="4" y="-2" color="255 255 255 192" fontsize="12" shadow="true" hardtext="uiFullscreen" /> <view type="text" id="text" posparent="c" posref="MR ML" x="4" y="-2" color="255 255 255 192" fontsize="12" shadow="true" hardtext="uiFullscreen" />
</group> </group>
<group type="combo_box" id="video_modes" w="100" h="20" value="UI:TEMP:VID_MODE" posparent="fullscreen" posref="BL TL" x="0" y="-4"> <group type="combo_box" id="video_modes" w="100" h="20" value="UI:TEMP:VID_MODE" posparent="fullscreen" posref="BL TL" x="0" y="-4">
<instance template="combo_box_def1" /> <instance template="combo_box_def1" />
</group> </group>
@ -315,7 +322,7 @@
<group id="screen_ratio" posparent="texture_mode" posref="BL TL" x="0" y="-12" w="240" h="52"> <group id="screen_ratio" posparent="texture_mode" posref="BL TL" x="0" y="-12" w="240" h="52">
<view type="text" id="text" posref="TL TL" x="0" y="-4" color="255 255 255 192" fontsize="12" shadow="true" hardtext="uigcScreenRatio" /> <view type="text" id="text" posref="TL TL" x="0" y="-4" color="255 255 255 192" fontsize="12" shadow="true" hardtext="uigcScreenRatio" />
<instance template="text_tt" posparent="text" tooltip="uigcttScreenRatio" /> <instance template="text_tt" posparent="text" tooltip="uigcttScreenRatio" />
<instance template="edit_box_widget" id="edit" posparent="text" posref="MR ML" x="4" y="0" text_x="0" text_ref="BR BR" w="100" prompt="" enter_loose_focus="true" multi_line="false" <instance template="edit_box_widget" id="edit" posparent="text" posref="MR ML" x="4" y="0" text_x="0" text_ref="ML ML" w="60" prompt="" enter_loose_focus="true" multi_line="false"
onenter="game_config_change_screen_ratio_custom" enter_recover_focus="false" reset_focus_on_hide="true" max_historic="0" entry_type="positive_float" max_float_prec="5" onenter="game_config_change_screen_ratio_custom" enter_recover_focus="false" reset_focus_on_hide="true" max_historic="0" entry_type="positive_float" max_float_prec="5"
onchange="set" onchange="set"
onchange_params="target_property=ui:interface:game_config:content:apply:frozen|value=0" onchange_params="target_property=ui:interface:game_config:content:apply:frozen|value=0"
@ -406,7 +413,8 @@
<instance template="tgcw_checkbox" id="fade" text="uiCharFade" posref="BL TL" posparent="auc" x="0" y="-12" /> <instance template="tgcw_checkbox" id="fade" text="uiCharFade" posref="BL TL" posparent="auc" x="0" y="-12" />
<instance template="tgcw_scrollbarint" id="opamin" text="uiCharOpacityMin" posref="BL TL" posparent="fade" x="20" y="-2" /> <instance template="tgcw_scrollbarint" id="opamin" text="uiCharOpacityMin" posref="BL TL" posparent="fade" x="20" y="-2" />
<instance template="tgcw_checkbox" id="cao" text="uiCurrentActionOut" tooltip="uittCurrentActionOut" posref="BL TL" posparent="opamin" x="-20" y="-12" /> <instance template="tgcw_checkbox" id="cao" text="uiCurrentActionOut" tooltip="uittCurrentActionOut" posref="BL TL" posparent="opamin" x="-20" y="-12" />
<instance template="tgcw_checkbox" id="show_clock" text="uiShowClock" tooltip="uittShowClock" posref="BL TL" posparent="cao" x="0" y="-12" /> <instance template="tgcw_checkbox" id="show_icon_buffs" text="uiShowIconBuffs" tooltip="uittShowIconBuffs" posref="BL TL" posparent="cao" x="0" y="-12" />
<instance template="tgcw_checkbox" id="show_clock" text="uiShowClock" tooltip="uittShowClock" posref="BL TL" posparent="show_icon_buffs" x="0" y="-12" />
<instance template="tgcw_checkbox" id="show_clock_12h" text="uiShowClock12h" tooltip="uittShowClock12h" posref="BL TL" posparent="show_clock" x="0" y="-12" /> <instance template="tgcw_checkbox" id="show_clock_12h" text="uiShowClock12h" tooltip="uittShowClock12h" posref="BL TL" posparent="show_clock" x="0" y="-12" />
<instance template="tgcw_checkbox" id="show_reticle" text="uiShowReticle" tooltip="uittShowReticle" posref="BL TL" posparent="show_clock_12h" x="0" y="-12" /> <instance template="tgcw_checkbox" id="show_reticle" text="uiShowReticle" tooltip="uittShowReticle" posref="BL TL" posparent="show_clock_12h" x="0" y="-12" />
<instance template="tgcw_checkbox" id="radar_use_camera" text="uiRadarUseCamera" tooltip="uittRadarUseCamera" posref="BL TL" posparent="show_reticle" x="0" y="-12" /> <instance template="tgcw_checkbox" id="radar_use_camera" text="uiRadarUseCamera" tooltip="uittRadarUseCamera" posref="BL TL" posparent="show_reticle" x="0" y="-12" />
@ -424,12 +432,48 @@
<combo_text name="uigcEnglish" /> <combo_text name="uigcEnglish" />
<combo_text name="uigcFrancais" /> <combo_text name="uigcFrancais" />
<combo_text name="uigcDeutch" /> <combo_text name="uigcDeutch" />
<!--
<combo_text name="uigcRussian" /> <combo_text name="uigcRussian" />
<combo_text name="uigcSpanish" /> <combo_text name="uigcSpanish" />
-->
</group> </group>
<link expr="@UI:TEMP:LANGUAGE" action="game_config_change_language" /> <link expr="@UI:TEMP:LANGUAGE" action="game_config_change_language" />
<view style="sgc_title" type="text" id="translation_header_text" posref="BL TL" x="0" y="-20" hardtext="uiTranslationHeader" posparent="languages" />
<view style="sgc_title2" type="text" id="translation_languages_header" posref="BL TL" x="0" y="-10" hardtext="uiTranslationLanguages" posparent="translation_header_text" />
<view style="sgc_title2" type="text" id="translation_inverse_header" posref="TR TL" x="20" y="0" hardtext="uiTranslationInverse" posparent="translation_languages_header" />
<view style="sgc_title2" type="text" id="translation_hide_flag_header" posref="TR TL" x="20" y="0" hardtext="uiTranslationHide" posparent="translation_inverse_header" />
<view style="sgc_title2" type="text" id="translation_english_text" posref="BL TL" x="0" y="-5" hardtext="uiTranslationEnglish" posparent="translation_languages_header" />
<instance template="tgcw_checkbox" id="translation_english_inverse" posref="BM TM" x="0" y="-5" text=" " tooltip="uittTranslationInverse" posparent="translation_inverse_header" />
<instance template="tgcw_checkbox" id="translation_english_hide_flag" posref="BM TM" x="0" y="-5" text=" " tooltip="uittTranslationHide" posparent="translation_hide_flag_header" />
<view style="sgc_title2" type="text" id="translation_french_text" posref="BL TL" x="0" y="-2" hardtext="uiTranslationFrench" posparent="translation_english_text" />
<instance template="tgcw_checkbox" id="translation_french_inverse" posref="BL TL" x="0" y="-2" text=" " tooltip="uittTranslationInverse" posparent="translation_english_inverse" />
<instance template="tgcw_checkbox" id="translation_french_hide_flag" posref="BL TL" x="0" y="-2" text=" " tooltip="uittTranslationHide" posparent="translation_english_hide_flag" />
<view style="sgc_title2" type="text" id="translation_german_text" posref="BL TL" x="0" y="-2" hardtext="uiTranslationGerman" posparent="translation_french_text" />
<instance template="tgcw_checkbox" id="translation_german_inverse" posref="BL TL" x="0" y="-2" text=" " tooltip="uittTranslationInverse" posparent="translation_french_inverse" />
<instance template="tgcw_checkbox" id="translation_german_hide_flag" posref="BL TL" x="0" y="-2" text=" " tooltip="uittTranslationHide" posparent="translation_french_hide_flag" />
<view style="sgc_title2" type="text" id="translation_russian_text" posref="BL TL" x="0" y="-2" hardtext="uiTranslationRussian" posparent="translation_german_text" />
<instance template="tgcw_checkbox" id="translation_russian_inverse" posref="BL TL" x="0" y="-2" text=" " tooltip="uittTranslationInverse" posparent="translation_german_inverse" />
<instance template="tgcw_checkbox" id="translation_russian_hide_flag" posref="BL TL" x="0" y="-2" text=" " tooltip="uittTranslationHide" posparent="translation_german_hide_flag" />
<view style="sgc_title2" type="text" id="translation_spanish_text" posref="BL TL" x="0" y="-2" hardtext="uiTranslationSpanish" posparent="translation_russian_text" />
<instance template="tgcw_checkbox" id="translation_spanish_inverse" posref="BL TL" x="0" y="-2" text=" " tooltip="uittTranslationInverse" posparent="translation_russian_inverse" />
<instance template="tgcw_checkbox" id="translation_spanish_hide_flag" posref="BL TL" x="0" y="-2" text=" " tooltip="uittTranslationHide" posparent="translation_russian_hide_flag" />
<view style="sgc_title2" type="text" id="disable_translation_text" posref="BL TL" x="0" y="-10" hardtext="uiTranslationDisable" posparent="translation_spanish_text" />
<instance template="tgcw_checkbox" id="disable_translation_around" posref="BL TL" x="0" y="-5" text="uiTranslationDisableAround" tooltip="uittTranslationDisableAround" posparent="disable_translation_text" />
<instance template="tgcw_checkbox" id="disable_translation_guild" posref="BL TL" x="0" y="-2" text="uiTranslationDisableGuild" tooltip="uittTranslationDisableGuild" posparent="disable_translation_around" />
<instance template="tgcw_checkbox" id="disable_translation_universe" posref="BL TL" x="0" y="-2" text="uiTranslationDisableUniverse" tooltip="uittTranslationDisableUniverse" posparent="disable_translation_guild" />
<instance template="tgcw_checkbox" id="disable_translation_region" posref="BL TL" x="0" y="-2" text="uiTranslationDisableRegion" tooltip="uittTranslationDisableRegion" posparent="disable_translation_universe" />
<link expr="@UI:SAVE:TRANSLATION:EN:INVERSE_DISPLAY" target="translation_english_inverse:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:EN:HIDE_FLAG" target="translation_english_hide_flag:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:FR:INVERSE_DISPLAY" target="translation_french_inverse:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:FR:HIDE_FLAG" target="translation_french_hide_flag:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:DE:INVERSE_DISPLAY" target="translation_german_inverse:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:DE:HIDE_FLAG" target="translation_german_hide_flag:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:RU:INVERSE_DISPLAY" target="translation_russian_inverse:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:RU:HIDE_FLAG" target="translation_russian_hide_flag:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:ES:INVERSE_DISPLAY" target="translation_spanish_inverse:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:ES:HIDE_FLAG" target="translation_spanish_hide_flag:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:ARROUND:DISABLE" target="disable_translation_around:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:GUILD:DISABLE" target="disable_translation_guild:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:UNIVERSE:DISABLE" target="disable_translation_universe:c:pushed" />
<link expr="@UI:SAVE:TRANSLATION:REGION:DISABLE" target="disable_translation_region:c:pushed" />
</group> </group>
<ctrl style="skin_scroll" id="sb_language" align="T" target="language" posparent="crop" posref="TL TR" x="-8" y="0" /> <ctrl style="skin_scroll" id="sb_language" align="T" target="language" posparent="crop" posref="TL TR" x="-8" y="0" />
@ -467,7 +511,7 @@
<instance template="tgcw_color" id="cc_region" text="uiRegionColor" title="uiCCDRegion" tooltip="uittChooseRegionColor" posref="BL TL" posparent="cc_guild" x="0" y="-4" /> <instance template="tgcw_color" id="cc_region" text="uiRegionColor" title="uiCCDRegion" tooltip="uittChooseRegionColor" posref="BL TL" posparent="cc_guild" x="0" y="-4" />
<instance template="tgcw_color" id="cc_univ" text="uiUnivColor" title="uiCCDUniv" tooltip="uittChooseUnivColor" posref="BL TL" posparent="cc_region" x="0" y="-4" /> <instance template="tgcw_color" id="cc_univ" text="uiUnivColor" title="uiCCDUniv" tooltip="uittChooseUnivColor" posref="BL TL" posparent="cc_region" x="0" y="-4" />
<instance template="tgcw_color" id="cc_shout" text="uiShoutColor" title="uiCCDShout" tooltip="uittChooseShoutColor" posref="BL TL" posparent="cc_univ" x="0" y="-4" /> <instance template="tgcw_color" id="cc_shout" text="uiShoutColor" title="uiCCDShout" tooltip="uittChooseShoutColor" posref="BL TL" posparent="cc_univ" x="0" y="-4" />
<instance template="tgcw_color" id="cc_dyn0" text="uiDynColor0" title="uiCCDDyn0" tooltip="uittChooseDynColor0" posref="BL TL" posparent="cc_shout" x="0" y="-4" /> <instance template="tgcw_color" id="cc_dyn0" text="uiDynColor0" title="uiCCDDyn0" tooltip="uittChooseDynColor0" posref="BL TL" posparent="cc_shout" x="0" y="-16" />
<instance template="tgcw_color" id="cc_dyn1" text="uiDynColor1" title="uiCCDDyn1" tooltip="uittChooseDynColor1" posref="BL TL" posparent="cc_dyn0" x="0" y="-4" /> <instance template="tgcw_color" id="cc_dyn1" text="uiDynColor1" title="uiCCDDyn1" tooltip="uittChooseDynColor1" posref="BL TL" posparent="cc_dyn0" x="0" y="-4" />
<instance template="tgcw_color" id="cc_dyn2" text="uiDynColor2" title="uiCCDDyn2" tooltip="uittChooseDynColor2" posref="BL TL" posparent="cc_dyn1" x="0" y="-4" /> <instance template="tgcw_color" id="cc_dyn2" text="uiDynColor2" title="uiCCDDyn2" tooltip="uittChooseDynColor2" posref="BL TL" posparent="cc_dyn1" x="0" y="-4" />
<instance template="tgcw_color" id="cc_dyn3" text="uiDynColor3" title="uiCCDDyn3" tooltip="uittChooseDynColor3" posref="BL TL" posparent="cc_dyn2" x="0" y="-4" /> <instance template="tgcw_color" id="cc_dyn3" text="uiDynColor3" title="uiCCDDyn3" tooltip="uittChooseDynColor3" posref="BL TL" posparent="cc_dyn2" x="0" y="-4" />
@ -475,13 +519,17 @@
<instance template="tgcw_color" id="cc_dyn5" text="uiDynColor5" title="uiCCDDyn5" tooltip="uittChooseDynColor5" posref="BL TL" posparent="cc_dyn4" x="0" y="-4" /> <instance template="tgcw_color" id="cc_dyn5" text="uiDynColor5" title="uiCCDDyn5" tooltip="uittChooseDynColor5" posref="BL TL" posparent="cc_dyn4" x="0" y="-4" />
<instance template="tgcw_color" id="cc_dyn6" text="uiDynColor6" title="uiCCDDyn6" tooltip="uittChooseDynColor6" posref="BL TL" posparent="cc_dyn5" x="0" y="-4" /> <instance template="tgcw_color" id="cc_dyn6" text="uiDynColor6" title="uiCCDDyn6" tooltip="uittChooseDynColor6" posref="BL TL" posparent="cc_dyn5" x="0" y="-4" />
<instance template="tgcw_color" id="cc_dyn7" text="uiDynColor7" title="uiCCDDyn7" tooltip="uittChooseDynColor7" posref="BL TL" posparent="cc_dyn6" x="0" y="-4" /> <instance template="tgcw_color" id="cc_dyn7" text="uiDynColor7" title="uiCCDDyn7" tooltip="uittChooseDynColor7" posref="BL TL" posparent="cc_dyn6" x="0" y="-4" />
<instance template="tgcw_checkbox" id="enter_dontquit_cb" text="uiEnterDontQuitCB" tooltip="uittChatEnter" posparent="cc_dyn7" posref="BL TL" x="0" y="-8" /> <instance template="tgcw_checkbox" id="save_channel_cb" text="uiChanSaveCB" tooltip="uittChanSave" posparent="cc_dyn7" posref="BL TL" x="0" y="-16" />
<instance template="tgcw_checkbox" id="show_times_in_chat_cb" text="uiShowTimesInChatCB" tooltip="uittShowTimesInChat" posparent="enter_dontquit_cb" posref="BL TL" x="0" y="-8" /> <instance template="tgcw_checkbox" id="auto_channel_cb" text="uiChanAutoCB" tooltip="uittChanAuto" posparent="save_channel_cb" posref="BL TL" x="0" y="-8" />
<instance template="tgcw_checkbox" id="show_times_in_chat_cb" text="uiShowTimesInChatCB" tooltip="uittShowTimesInChat" posparent="auto_channel_cb" posref="BL TL" x="0" y="-8" />
<instance template="tgcw_checkbox" id="show_dyn_channel_name_in_chat_cb" text="uiShowDynChannelNameInChatCB" tooltip="uittShowDynChannelNameInChat" posparent="show_times_in_chat_cb" posref="BL TL" x="0" y="-8" /> <instance template="tgcw_checkbox" id="show_dyn_channel_name_in_chat_cb" text="uiShowDynChannelNameInChatCB" tooltip="uittShowDynChannelNameInChat" posparent="show_times_in_chat_cb" posref="BL TL" x="0" y="-8" />
<instance template="tgcw_checkbox" id="show_online_offline_notifications_cb" text="uiShowOnlineOfflineNotifications" tooltip="uittShowOnlineOfflineNotifications" posparent="show_dyn_channel_name_in_chat_cb" posref="BL TL" x="0" y="-8" /> <instance template="tgcw_checkbox" id="show_online_offline_notifications_cb" text="uiShowOnlineOfflineNotifications" tooltip="uittShowOnlineOfflineNotifications" posparent="show_dyn_channel_name_in_chat_cb" posref="BL TL" x="0" y="-8" />
<instance template="tgcw_scrollbarint" id="font_size" text="uiFontSize" posref="BL TL" posparent="show_online_offline_notifications_cb" x="0" y="-8" /> <instance template="tgcw_scrollbarint" id="font_size" text="uiFontSize" posref="BL TL" posparent="show_online_offline_notifications_cb" x="0" y="-8" />
<instance template="tgcw_checkbox" id="enter_dontquit_cb" text="uiEnterDontQuitCB" tooltip="uittChatEnter" posparent="font_size" posref="BL TL" x="0" y="-8" />
<link expr="@UI:SAVE:CHAT:ENTER_DONT_QUIT_CB" target="enter_dontquit_cb:c:pushed" /> <link expr="@UI:SAVE:CHAT:ENTER_DONT_QUIT_CB" target="enter_dontquit_cb:c:pushed" />
<link expr="@UI:SAVE:CHAT:SAVE_CHANNEL" target="save_channel_cb:c:pushed" />
<link expr="@UI:SAVE:CHAT:AUTO_CHANNEL" target="auto_channel_cb:c:pushed" />
<link expr="@UI:SAVE:CHAT:SHOW_TIMES_IN_CHAT_CB" target="show_times_in_chat_cb:c:pushed" /> <link expr="@UI:SAVE:CHAT:SHOW_TIMES_IN_CHAT_CB" target="show_times_in_chat_cb:c:pushed" />
<link expr="@UI:SAVE:CHAT:SHOW_DYN_CHANNEL_NAME_IN_CHAT_CB" target="show_dyn_channel_name_in_chat_cb:c:pushed" /> <link expr="@UI:SAVE:CHAT:SHOW_DYN_CHANNEL_NAME_IN_CHAT_CB" target="show_dyn_channel_name_in_chat_cb:c:pushed" />
<link expr="@UI:SAVE:CHAT:SHOW_ONLINE_OFFLINE_NOTIFICATIONS_CB" target="show_online_offline_notifications_cb:c:pushed" /> <link expr="@UI:SAVE:CHAT:SHOW_ONLINE_OFFLINE_NOTIFICATIONS_CB" target="show_online_offline_notifications_cb:c:pushed" />
@ -643,7 +691,7 @@
<instance template="tgcw_checkbox" id="hard" text="uiMouseHardware" posref="TM TL" x="0" y="-35" /> <instance template="tgcw_checkbox" id="hard" text="uiMouseHardware" posref="TM TL" x="0" y="-35" />
<instance template="tgcw_checkbox" id="inverted" text="uiMouseInverted" posparent="hard" posref="BL TL" x="0" y="-2" /> <instance template="tgcw_checkbox" id="inverted" text="uiMouseInverted" posparent="hard" posref="BL TL" x="0" y="-2" />
<instance template="tgcw_checkbox" id="dbl" text="uiMouseDblClickMode" posparent="inverted" posref="BL TL" x="0" y="-2" /> <instance template="tgcw_checkbox" id="dbl" text="uiMouseDblClickMode" posparent="inverted" posref="BL TL" x="0" y="-2" />
<instance template="tgcw_checkbox" id="tablet" text="uiMouseTablet" posparent="dbl" posref="BL TL" x="0" y="-2" /> <instance template="tgcw_checkbox" id="tablet" text="uiFreeViewTablet" posparent="dbl" posref="BL TL" x="0" y="-2" />
<view style="sgc_title2" type="text" id="inter" posref="TL TL" x="0" y="-20" hardtext="uiMouseInterface" /> <view style="sgc_title2" type="text" id="inter" posref="TL TL" x="0" y="-20" hardtext="uiMouseInterface" />
<instance template="tgcw_scrollbarint" id="dcspeed" text="uiDoubleClickSpeed" posparent="inter" posref="BL TL" x="20" y="-2" /> <instance template="tgcw_scrollbarint" id="dcspeed" text="uiDoubleClickSpeed" posparent="inter" posref="BL TL" x="20" y="-2" />
<instance template="tgcw_scrollbarfloat" id="curspeed" text="uiCursorSpeed" posparent="dcspeed" posref="BL TL" x="0" y="-2" /> <instance template="tgcw_scrollbarfloat" id="curspeed" text="uiCursorSpeed" posparent="dcspeed" posref="BL TL" x="0" y="-2" />
@ -690,6 +738,7 @@
<view style="sgc_title2" type="text" id="volume" posparent="maxtrack" posref="BL TL" x="-20" y="-2" hardtext="uiSoundVolume" /> <view style="sgc_title2" type="text" id="volume" posparent="maxtrack" posref="BL TL" x="-20" y="-2" hardtext="uiSoundVolume" />
<instance template="tgcw_scrollbarfloat" id="sfx_volume" text="uiSoundSFXVolume" posparent="volume" posref="BL TL" x="20" y="-2" /> <instance template="tgcw_scrollbarfloat" id="sfx_volume" text="uiSoundSFXVolume" posparent="volume" posref="BL TL" x="20" y="-2" />
<instance template="tgcw_scrollbarfloat" id="music_volume" text="uiSoundGameMusicVolume" posparent="sfx_volume" posref="BL TL" x="0" y="-2" /> <instance template="tgcw_scrollbarfloat" id="music_volume" text="uiSoundGameMusicVolume" posparent="sfx_volume" posref="BL TL" x="0" y="-2" />
<instance template="tgcw_scrollbarint" id="mp3_volume" text="uimwMP3Player" posparent="music_volume" posref="BL TL" x="0" y="-2" />
</group> </group>
<ctrl style="skin_scroll" id="sb_sound" align="T" target="sound" posparent="crop" posref="TL TR" x="-8" y="0" /> <ctrl style="skin_scroll" id="sb_sound" align="T" target="sound" posparent="crop" posref="TL TR" x="-8" y="0" />
<!-- *** --> <!-- *** -->
@ -750,7 +799,8 @@
<param ui="general:gam:c" type="cfg" realtime="true" widget="sbfloat" link="Gamma" /> <param ui="general:gam:c" type="cfg" realtime="true" widget="sbfloat" link="Gamma" />
<param ui="general:scale:c" type="cfg" realtime="false" ui_view="general:scale:c_res" ui_decimal="2" widget="sbfloat" link="InterfaceScale" /> <param ui="general:scale:c" type="cfg" realtime="false" ui_view="general:scale:c_res" ui_decimal="2" widget="sbfloat" link="InterfaceScale" />
<param ui="general:waitvbl:c" type="cfg" realtime="true" widget="boolbut" link="WaitVBL" /> <param ui="general:waitvbl:c" type="cfg" realtime="true" widget="boolbut" link="WaitVBL" />
<param ui="general:window_snap_distance:c" type="cfg" realtime="true" ui_view="general:window_snap_distance:c_res" ui_decimal="2" widget="sbint" link="WindowSnapDistance" />
<param ui="general:window_snap_invert:c" type="cfg" realtime="true" widget="boolbut" link="WindowSnapInvert" />
<param ui="landscape:lvi:c" type="cfg" widget="sbfloat_round" realtime="end_scroll" ui_view="landscape:lvi:c_res" ui_unit="uigcUnitMeters" link="Vision" preset="UI:TEMP:PRESET_LAND" /> <param ui="landscape:lvi:c" type="cfg" widget="sbfloat_round" realtime="end_scroll" ui_view="landscape:lvi:c_res" ui_unit="uigcUnitMeters" link="Vision" preset="UI:TEMP:PRESET_LAND" />
<param ui="landscape:ltn:c" type="cfg" widget="sbfloat_round" realtime="true" ui_view="landscape:ltn:c_res" ui_unit="uigcUnitMeters" link="LandscapeTileNear" preset="UI:TEMP:PRESET_LAND" /> <param ui="landscape:ltn:c" type="cfg" widget="sbfloat_round" realtime="true" ui_view="landscape:ltn:c_res" ui_unit="uigcUnitMeters" link="LandscapeTileNear" preset="UI:TEMP:PRESET_LAND" />
<param ui="landscape:lth:c" type="cfg" widget="sbfloat" realtime="true" ui_view="landscape:lth:c_res" ui_decimal="4" link="LandscapeThreshold" preset="UI:TEMP:PRESET_LAND" /> <param ui="landscape:lth:c" type="cfg" widget="sbfloat" realtime="true" ui_view="landscape:lth:c_res" ui_decimal="4" link="LandscapeThreshold" preset="UI:TEMP:PRESET_LAND" />
@ -786,6 +836,7 @@
<param ui="hud:fade:c" type="db" widget="boolbut" link="UI:SAVE:USER_CHAR_FADE" realtime="true" /> <param ui="hud:fade:c" type="db" widget="boolbut" link="UI:SAVE:USER_CHAR_FADE" realtime="true" />
<param ui="hud:opamin:c" type="db" widget="sbint" link="UI:SAVE:USER_CHAR_OPA_MIN" min="0" max="255" realtime="true" /> <param ui="hud:opamin:c" type="db" widget="sbint" link="UI:SAVE:USER_CHAR_OPA_MIN" min="0" max="255" realtime="true" />
<param ui="hud:cao:c" type="db" widget="boolbut" link="UI:SAVE:ACT_BAR_OUT" realtime="true" /> <param ui="hud:cao:c" type="db" widget="boolbut" link="UI:SAVE:ACT_BAR_OUT" realtime="true" />
<param ui="hud:show_icon_buffs:c" type="db" widget="boolbut" link="UI:SAVE:SHOW_ICON_BUFFS" realtime="true" />
<param ui="hud:show_clock:c" type="db" widget="boolbut" link="UI:SAVE:SHOW_CLOCK" realtime="true" /> <param ui="hud:show_clock:c" type="db" widget="boolbut" link="UI:SAVE:SHOW_CLOCK" realtime="true" />
<param ui="hud:show_clock_12h:c" type="db" widget="boolbut" link="UI:SAVE:SHOW_CLOCK_12H" realtime="true" /> <param ui="hud:show_clock_12h:c" type="db" widget="boolbut" link="UI:SAVE:SHOW_CLOCK_12H" realtime="true" />
<param ui="hud:show_reticle:c" type="db" widget="boolbut" link="UI:SAVE:SHOW_RETICLE" realtime="true" /> <param ui="hud:show_reticle:c" type="db" widget="boolbut" link="UI:SAVE:SHOW_RETICLE" realtime="true" />
@ -798,6 +849,20 @@
<param ui="alpha_colors:moa_con:c" type="db" widget="sbint" link="UI:SAVE:CONTENT_ROLLOVER_FACTOR" min="64" max="255" realtime="true" /> <param ui="alpha_colors:moa_con:c" type="db" widget="sbint" link="UI:SAVE:CONTENT_ROLLOVER_FACTOR" min="64" max="255" realtime="true" />
<param ui="alpha_colors:moa_speed:c" type="db" widget="sbint" link="UI:SAVE:ALPHA_ROLLOVER_SPEED" min="0" max="100" realtime="true" /> <param ui="alpha_colors:moa_speed:c" type="db" widget="sbint" link="UI:SAVE:ALPHA_ROLLOVER_SPEED" min="0" max="100" realtime="true" />
<param ui="alpha_colors:show_3d_item_preview:c" type="db" widget="boolbut" link="UI:SAVE:SHOW_3D_ITEM_PREVIEW" realtime="true" /> <param ui="alpha_colors:show_3d_item_preview:c" type="db" widget="boolbut" link="UI:SAVE:SHOW_3D_ITEM_PREVIEW" realtime="true" />
<param ui="language:translation_english_inverse:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:EN:INVERSE_DISPLAY" realtime="true" />
<param ui="language:translation_english_hide_flag:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:EN:HIDE_FLAG" realtime="true" />
<param ui="language:translation_french_inverse:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:FR:INVERSE_DISPLAY" realtime="true" />
<param ui="language:translation_french_hide_flag:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:FR:HIDE_FLAG" realtime="true" />
<param ui="language:translation_german_inverse:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:DE:INVERSE_DISPLAY" realtime="true" />
<param ui="language:translation_german_hide_flag:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:DE:HIDE_FLAG" realtime="true" />
<param ui="language:translation_russian_inverse:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:RU:INVERSE_DISPLAY" realtime="true" />
<param ui="language:translation_russian_hide_flag:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:RU:HIDE_FLAG" realtime="true" />
<param ui="language:translation_spanish_inverse:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:ES:INVERSE_DISPLAY" realtime="true" />
<param ui="language:translation_spanish_hide_flag:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:ES:HIDE_FLAG" realtime="true" />
<param ui="language:disable_translation_around:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:ARROUND:DISABLE" realtime="true" />
<param ui="language:disable_translation_guild:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:GUILD:DISABLE" realtime="true" />
<param ui="language:disable_translation_universe:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:UNIVERSE:DISABLE" realtime="true" />
<param ui="language:disable_translation_region:c" type="db" widget="boolbut" link="UI:SAVE:TRANSLATION:REGION:DISABLE" realtime="true" />
<param ui="chat_colors:cc_say:c" type="db" widget="colbut" link="UI:SAVE:CHAT:COLORS:SAY" realtime="true" /> <param ui="chat_colors:cc_say:c" type="db" widget="colbut" link="UI:SAVE:CHAT:COLORS:SAY" realtime="true" />
<param ui="chat_colors:cc_tell:c" type="db" widget="colbut" link="UI:SAVE:CHAT:COLORS:TELL" realtime="true" /> <param ui="chat_colors:cc_tell:c" type="db" widget="colbut" link="UI:SAVE:CHAT:COLORS:TELL" realtime="true" />
<param ui="chat_colors:cc_team:c" type="db" widget="colbut" link="UI:SAVE:CHAT:COLORS:GROUP" realtime="true" /> <param ui="chat_colors:cc_team:c" type="db" widget="colbut" link="UI:SAVE:CHAT:COLORS:GROUP" realtime="true" />
@ -819,6 +884,8 @@
<param ui="chat_colors:cc_terri:c" type="db" widget="colbut" link="UI:SAVE:CHAT:COLORS:TERRITORY" realtime="true" /> <param ui="chat_colors:cc_terri:c" type="db" widget="colbut" link="UI:SAVE:CHAT:COLORS:TERRITORY" realtime="true" />
--> -->
<param ui="chat_colors:enter_dontquit_cb:c" type="db" widget="boolbut" link="UI:SAVE:CHAT:ENTER_DONT_QUIT_CB" realtime="true" /> <param ui="chat_colors:enter_dontquit_cb:c" type="db" widget="boolbut" link="UI:SAVE:CHAT:ENTER_DONT_QUIT_CB" realtime="true" />
<param ui="chat_colors:save_channel_cb:c" type="db" widget="boolbut" link="UI:SAVE:CHAT:SAVE_CHANNEL" realtime="true" />
<param ui="chat_colors:auto_channel_cb:c" type="db" widget="boolbut" link="UI:SAVE:CHAT:AUTO_CHANNEL" realtime="true" />
<param ui="chat_colors:show_times_in_chat_cb:c" type="db" widget="boolbut" link="UI:SAVE:CHAT:SHOW_TIMES_IN_CHAT_CB" realtime="true" /> <param ui="chat_colors:show_times_in_chat_cb:c" type="db" widget="boolbut" link="UI:SAVE:CHAT:SHOW_TIMES_IN_CHAT_CB" realtime="true" />
<param ui="chat_colors:show_dyn_channel_name_in_chat_cb:c" type="db" widget="boolbut" link="UI:SAVE:CHAT:SHOW_DYN_CHANNEL_NAME_IN_CHAT_CB" realtime="true" /> <param ui="chat_colors:show_dyn_channel_name_in_chat_cb:c" type="db" widget="boolbut" link="UI:SAVE:CHAT:SHOW_DYN_CHANNEL_NAME_IN_CHAT_CB" realtime="true" />
<param ui="chat_colors:show_online_offline_notifications_cb:c" type="db" widget="boolbut" link="UI:SAVE:CHAT:SHOW_ONLINE_OFFLINE_NOTIFICATIONS_CB" realtime="true" /> <param ui="chat_colors:show_online_offline_notifications_cb:c" type="db" widget="boolbut" link="UI:SAVE:CHAT:SHOW_ONLINE_OFFLINE_NOTIFICATIONS_CB" realtime="true" />
@ -925,6 +992,7 @@
<param ui="sound:maxtrack:c" type="cfg" widget="sbint" link="MaxTrack" realtime="end_scroll" ui_view="sound:maxtrack:c_res" /> <param ui="sound:maxtrack:c" type="cfg" widget="sbint" link="MaxTrack" realtime="end_scroll" ui_view="sound:maxtrack:c_res" />
<param ui="sound:sfx_volume:c" type="cfg" widget="sbfloat" link="SoundSFXVolume" realtime="true" /> <param ui="sound:sfx_volume:c" type="cfg" widget="sbfloat" link="SoundSFXVolume" realtime="true" />
<param ui="sound:music_volume:c" type="cfg" widget="sbfloat" link="SoundGameMusicVolume" realtime="true" /> <param ui="sound:music_volume:c" type="cfg" widget="sbfloat" link="SoundGameMusicVolume" realtime="true" />
<param ui="sound:mp3_volume:c" type="db" widget="sbint" link="UI:SAVE:MP3_VOLUME" min="0" max="255" realtime="true" />
<param ui="landmark_colors:cc_misc:c" type="db" widget="colbut" link="UI:SAVE:LANDMARK:COLORS:MISC" realtime="true" /> <param ui="landmark_colors:cc_misc:c" type="db" widget="colbut" link="UI:SAVE:LANDMARK:COLORS:MISC" realtime="true" />
<param ui="landmark_colors:cc_tribe:c" type="db" widget="colbut" link="UI:SAVE:LANDMARK:COLORS:TRIBE" realtime="true" /> <param ui="landmark_colors:cc_tribe:c" type="db" widget="colbut" link="UI:SAVE:LANDMARK:COLORS:TRIBE" realtime="true" />
<param ui="landmark_colors:cc_bandit:c" type="db" widget="colbut" link="UI:SAVE:LANDMARK:COLORS:BANDIT" realtime="true" /> <param ui="landmark_colors:cc_bandit:c" type="db" widget="colbut" link="UI:SAVE:LANDMARK:COLORS:BANDIT" realtime="true" />

@ -24,40 +24,42 @@
> >
<!-- Put First NPC interaction, sorted by usage frequency--> <!-- Put First NPC interaction, sorted by usage frequency-->
<!-- trade -->
<action id="trade_item" name="uimGcmTrade" handler="context_trade_item" params="" />
<action id="trade_pact" name="uimGcmTradePact" handler="context_trade_pact" params="" />
<action id="trade_phrase" name="uimGcmTradePhase" handler="context_trade_phrase" params="" />
<action id="trade_teleport" name="uimGcmTeleport" handler="context_trade_teleport" params="" />
<action id="trade_faction" name="uimGcmFaction" handler="context_trade_faction" params="" />
<action id="trade_cosmetic" name="uimGcmCosmetic" handler="context_trade_cosmetic" params="" />
<action id="trade_guild_options" name="uimGcmGuildOptions" handler="context_trade_guild_options" params="" />
<action id="trade_outpost_building" name="uimGcmOutpostBuilding" handler="context_trade_outpost_building" params="" />
<action id="trade_guild_role_master" name="uimGcmGuildRoleMaster" handler="context_trade_guild_role_master" params="" />
<!-- choose mission -->
<action id="choose_mission" name="uimGcmMissions" handler="context_choose_mission" params=""/>
<!-- access to the web page -->
<action id="web_page" name="" handler="context_web_page" params=""/>
<!-- create guild -->
<action id="create_guild" name="uimGcmCreateGuild" handler="context_create_guild" params="" />
<!-- mission options --> <!-- mission options -->
<action id="mo0" name="" handler="mission_option" params="id=0" /> <action id="mo0" name="" handler="mission_option" params="id=0" icon="radar_mission2_16.tga" />
<action id="mo1" name="" handler="mission_option" params="id=1" /> <action id="mo1" name="" handler="mission_option" params="id=1" icon="radar_mission2_16.tga" />
<action id="mo2" name="" handler="mission_option" params="id=2" /> <action id="mo2" name="" handler="mission_option" params="id=2" icon="radar_mission2_16.tga" />
<action id="mo3" name="" handler="mission_option" params="id=3" /> <action id="mo3" name="" handler="mission_option" params="id=3" icon="radar_mission2_16.tga" />
<action id="mo4" name="" handler="mission_option" params="id=4" /> <action id="mo4" name="" handler="mission_option" params="id=4" icon="radar_mission2_16.tga" />
<action id="mo5" name="" handler="mission_option" params="id=5" /> <action id="mo5" name="" handler="mission_option" params="id=5" icon="radar_mission2_16.tga" />
<action id="mo6" name="" handler="mission_option" params="id=6" /> <action id="mo6" name="" handler="mission_option" params="id=6" icon="radar_mission2_16.tga" />
<action id="mo7" name="" handler="mission_option" params="id=7" /> <action id="mo7" name="" handler="mission_option" params="id=7" icon="radar_mission2_16.tga" />
<!-- mission ring --> <!-- mission ring -->
<action id="mr0" name="" handler="mission_ring" params="id=0" /> <action id="mr0" name="" handler="mission_ring" params="id=0" />
<action id="mr1" name="" handler="mission_ring" params="id=1" /> <action id="mr1" name="" handler="mission_ring" params="id=1" />
<action id="mr2" name="" handler="mission_ring" params="id=2" /> <action id="mr2" name="" handler="mission_ring" params="id=2" />
<action id="mr3" name="" handler="mission_ring" params="id=3" /> <action id="mr3" name="" handler="mission_ring" params="id=3" />
<!-- trade -->
<action id="trade_item" name="uimGcmTrade" handler="context_trade_item" params="" icon="ico_mission_casket.tga" />
<action id="trade_pact" name="uimGcmTradePact" handler="context_trade_pact" params="" icon="ico_mission_casket.tga" />
<action id="trade_phrase" name="uimGcmTradePhase" handler="context_trade_phrase" params="" icon="pvp_aura.tga" />
<action id="trade_teleport" name="uimGcmTeleport" handler="context_trade_teleport" params="" icon="ico_mission_casket.tga" />
<action id="trade_faction" name="uimGcmFaction" handler="context_trade_faction" params="" icon="ico_mission_package.tga" />
<action id="trade_cosmetic" name="uimGcmCosmetic" handler="context_trade_cosmetic" params="" icon="ico_tatoo.tga" />
<action id="trade_guild_options" name="uimGcmGuildOptions" handler="context_trade_guild_options" params="" icon="spe_memory.tga" />
<action id="trade_outpost_building" name="uimGcmOutpostBuilding" handler="context_trade_outpost_building" params="" icon="ge_mission_outpost_townhall.tga" />
<action id="trade_guild_role_master" name="uimGcmGuildRoleMaster" handler="context_trade_guild_role_master" params="" icon="spe_memory.tga" />
<!-- choose mission -->
<action id="choose_mission" name="uimGcmMissions" handler="context_choose_mission" params="" icon="radar_mission_16.tga" />
<!-- access to the web page -->
<action id="web_page" name="" handler="context_web_page" params="" icon="r2_icon_speak_as.tga" />
<!-- create guild -->
<action id="create_guild" name="uimGcmCreateGuild" handler="context_create_guild" params="" icon="spe_memory.tga" />
<!-- Loot/Forage/Quartering --> <!-- Loot/Forage/Quartering -->
<action id="loot_action" name="uimGcmLoot" handler="context_loot" params="" /> <action id="loot_action" name="uimGcmLoot" handler="context_loot" params="" icon="ico_looting.tga" />
<action id="quartering" name="uimGcmQuartering" handler="context_quartering" params="" /> <action id="quartering" name="uimGcmQuartering" handler="context_quartering" params="" icon="ico_looting.tga" />
<!-- New BotChat By Yoyo --> <!-- New BotChat By Yoyo -->
<action id="choose_zc_charge" name="uimGcmZoneCharge" handler="context_choose_zc_charge" params=""/> <action id="choose_zc_charge" name="uimGcmZoneCharge" handler="context_choose_zc_charge" params=""/>
<action id="cancel_zc_charge" name="uimGcmCancelZoneCharge" handler="context_cancel_zc_charge" params=""/> <action id="cancel_zc_charge" name="uimGcmCancelZoneCharge" handler="context_cancel_zc_charge" params=""/>
@ -70,45 +72,56 @@
<action id="outpost_bannish_guild" name="uimGcmOutpostBanishGuild" handler="outpost_ban_guild" params=""/> <action id="outpost_bannish_guild" name="uimGcmOutpostBanishGuild" handler="outpost_ban_guild" params=""/>
<!-- talk : engage conversation with player or ask news to a npc --> <!-- talk : engage conversation with player or ask news to a npc -->
<action id="talk" name="uimGcmTalk" handler="context_talk" params="" /> <action id="talk" name="uimGcmTalk" handler="context_talk" params="" icon="r2_mini_activity_empty_chat.tga" />
<action id="news" name="uimGcmNews" handler="context_talk" params="" /> <action id="news" name="uimGcmChat" handler="lua" params="game:TalkWithNpc(0)" icon="radar_mission3_16.tga" />
<action id="news_aggressive" name="uimGcmBullying" handler="lua" params="game:TalkWithNpc(1)" icon="bullying.tga" />
<action id="attack" name="uimGcmAttack" handler="context_attack" params="" icon="ico_blade.tga" />
<action id="info" name="uimGcmInfo" handler="open_title_help" params="from=target" icon="spe_status.tga" />
<!-- Action misc with selection --> <!-- Action misc with selection -->
<action id="duel" name="uimGcmDuel" handler="context_duel" params="" icon="pvp_duel.tga" />
<action id="unduel" name="uimGcmUnDuel" handler="context_unduel" params="" icon="pvp_neutral.tga" />
<!-- <action id="pvp_challenge" name="uimGcmPvpChallenge" handler="context_pvp_challenge" params="" /> -->
<!-- <action id="unpvp_challenge" name="uimGcmUnPvpChanllenge" handler="context_unpvp_challenge" params="" /> -->
<action id="disengage" name="uimGcmDisengage" handler="context_disengage" params="" icon="ico_disarm.tga" />
<separator/> <separator/>
<!-- ennemy -->
<action id="attack" name="uimGcmAttack" handler="context_attack" params="" />
<action id="duel" name="uimGcmDuel" handler="context_duel" params="" />
<action id="unduel" name="uimGcmUnDuel" handler="context_unduel" params="" />
<action id="pvp_challenge" name="uimGcmPvpChallenge" handler="context_pvp_challenge" params="" />
<action id="unpvp_challenge" name="uimGcmUnPvpChanllenge" handler="context_unpvp_challenge" params="" />
<action id="disengage" name="uimGcmDisengage" handler="context_disengage" params="" />
<!-- friendly --> <!-- friendly -->
<action id="assist" name="uimAssist" handler="assist_target" params="" /> <action id="assist" name="uimAssist" handler="assist_target" params="" icon="ico_aim.tga" />
<action id="follow" name="uimFollow" handler="command" params="follow" /> <action id="follow" name="uimFollow" handler="command" params="follow" icon="r2_mini_activity_follow_road.tga" />
<action id="exchange" name="uimGcmExchange" handler="context_exchange" params="" /> <action id="exchange" name="uimGcmExchange" handler="context_exchange" params="" icon="ico_exchange.tga" />
<action id="invit" name="uimGcmInvit" handler="context_invit" params="" /> <action id="invit" name="uimGcmInvit" handler="context_invit" params="" icon="tb_team.tga" />
<action id="guild_invit" name="uimGcmGuildInvit" handler="context_guild_invit" params="" /> <action id="guild_invit" name="uimGcmGuildInvit" handler="context_guild_invit" params="" icon="tb_guild.tga" />
<action id="add_to_friend_list" name="uimGcmAddToFriendList" handler="context_add_to_friend_list" params="" /> <action id="add_to_friend_list" name="uimGcmAddToFriendList" handler="context_add_to_friend_list" params="" icon="ico_preservation.tga" />
<!-- misc --> <!-- misc -->
<action id="mount" name="uimGcmMount" handler="beast_order" params="order=mount|beast_index=@UI:GCM_BEAST_SELECTED" /> <action id="mount" name="uimGcmMount" handler="beast_order" params="order=mount|beast_index=@UI:GCM_BEAST_SELECTED" icon="mektoub_mount.tga"/>
<action id="pa_follow" name="uimFollowMe" handler="beast_order" params="order=follow|beast_index=@UI:GCM_BEAST_SELECTED"/> <action id="pa_follow" name="uimFollowMe" handler="beast_order" params="order=follow|beast_index=@UI:GCM_BEAST_SELECTED" icon="lm_target.tga"/>
<action id="pa_stop" name="uimGcmStop" handler="beast_order" params="order=stop|beast_index=@UI:GCM_BEAST_SELECTED"/> <action id="pa_stop" name="uimGcmStop" handler="beast_order" params="order=stop|beast_index=@UI:GCM_BEAST_SELECTED" icon="r2ed_icon_stop.tga"/>
<action id="pa_free" name="uimGcmFree" handler="beast_order" params="order=free|beast_index=@UI:GCM_BEAST_SELECTED"/> <action id="pa_enter_stable" name="uimGcmEnterStable" handler="beast_order" params="order=enter_stable|beast_index=@UI:GCM_BEAST_SELECTED" icon="stable_enter.tga"/>
<action id="pa_enter_stable" name="uimGcmEnterStable" handler="beast_order" params="order=enter_stable|beast_index=@UI:GCM_BEAST_SELECTED"/> <action id="pa_enter_bag" name="uimEnterBag" handler="beast_order" params="order=enter_bag|beast_index=@UI:GCM_BEAST_SELECTED" icon="bag_enter.tga"/>
<action id="extract_rm" name="uimGcmExtractRM" handler="context_extract_rm" params="" /> <action id="extract_rm" name="uimGcmExtractRM" handler="context_extract_rm" params="" icon="ico_forage_buff.tga" />
<action id="info" name="uimGcmInfo" handler="open_title_help" params="from=target" /> <action id="build_totem" name="uimGcmChooseBuilding" handler="build_totem" params="" icon="building_state1.tga" />
<action id="build_totem" name="uimGcmChooseBuilding" handler="build_totem" params="" />
<action id="stop" name="uimGcmStopMove" handler="context_stop" params="" icon="r2_hand_pan.tga"/>
<action id="unseat" name="uimUnmount" handler="beast_order" params="order=unmount|beast_index=0" icon="mektoub_unmount.tga"/>
<!-- Action with no selection -->
<separator/> <separator/>
<action id="free_look" name="uiMouseHead" handler="context_free_look" params="" /> <!-- Action for GMs -->
<action id="move" name="uimGcmMove" handler="context_move" params="" /> <action id="invisible" name="Invisible" handler="command" params="a Invisible toggle" icon="ico_fear.tga" />
<action id="stop" name="uimGcmStopMove" handler="context_stop" params="" /> <action id="invulnerable" name="Invulnerable" handler="command" params="a Invulnerable toggle" icon="ico_invulnerability.tga" />
<action id="unseat" name="uimUnmount" handler="beast_order" params="order=unmount|beast_index=0" /> <action id="god" name="God" handler="command" params="a God toggle" icon="forage_spawn.tga" />
<!-- Action with no selection -->
<action id="free_look" name="uiMouseHead" handler="context_free_look" params="" icon="ico_visibility.tga" />
<action id="move" name="uimGcmMove" handler="context_move" params="" icon="ico_move.tga" />
<separator/> <separator/>
<action id="quit_team" name="uimGcmQuitTeam" handler="context_quit_team" params="" />
<action id="pa_free" name="uimGcmFree" handler="beast_order" params="order=free|beast_index=@UI:GCM_BEAST_SELECTED" icon="r2_toolbar_kill.tga"/>
<action id="quit_team" name="uimGcmQuitTeam" handler="context_quit_team" params="" icon="w_answer_16_cancel.tga"/>
</group> </group>
<!-- TEMPORARY FOR TESTS --> <!-- TEMPORARY FOR TESTS -->

@ -340,25 +340,9 @@
onclick_ok="guild_inv_get_money" onclick_ok_param="" onclick_ok="guild_inv_get_money" onclick_ok_param=""
onclick_cancel="leave_modal" onclick_cancel_param="" /> onclick_cancel="leave_modal" onclick_cancel_param="" />
</group> </group>
<!-- ************** --> <!-- ************** -->
<!-- * MAIL BOX * --> <!-- * MAIL BOX * -->
<!-- ************** --> <!-- ************** -->
<proc id="mailbox_proc_active">
<action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAILBOX|value=1" />
<action handler="browse" params="name=ui:interface:mailbox:content:html|url=home|show=0"/>
</proc>
<proc id="mailbox_proc_deactive">
<action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAILBOX|value=0" />
</proc>
<group type="menu" id="mailbox_menu" extends="base_menu_with_color">
<action id="home" name="uiHOME" handler="browse" params="name=ui:interface:mailbox:content:html|url=home"/>
</group>
<group type="container" id="mailbox" w="480" h="400" title="" global_color="false" open_button="false" force_open_out="true" header_color="UI:SAVE:WIN:COLORS:COM" <group type="container" id="mailbox" w="480" h="400" title="" global_color="false" open_button="false" force_open_out="true" header_color="UI:SAVE:WIN:COLORS:COM"
resizer="true" pop_min_w="220" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" resizer="true" pop_min_w="220" pop_min_h="96" pop_max_w="2000" pop_max_h="1600"
title_bar_open="false" lockable="true" openable="false" opened="true" movable="true" active="true" title_bar_open="false" lockable="true" openable="false" opened="true" movable="true" active="true"
@ -375,7 +359,7 @@
<group id="content" x="0" y="0" w="0" h="0" posref="TL TL" > <group id="content" x="0" y="0" w="0" h="0" posref="TL TL" >
<group type="mail_html" id="html" posref="TL TL" url="home" title_prefix="uiMailboxTitle" <group type="html" id="html" posref="TL TL" url="home" title_prefix="uiMailboxTitle"
sizeref="wh" x="0" y="0" w="0" h="0" sizeref="wh" x="0" y="0" w="0" h="0"
background_color="0 0 0 255" background_color="0 0 0 255"
error_color="255 240 48 255" error_color="255 240 48 255"
@ -422,6 +406,76 @@
</group> </group>
<tree node="mailbox"/> <tree node="mailbox"/>
<!-- ************** -->
<!-- * WEB IG * -->
<!-- ************** -->
<proc id="webig_proc_active">
<action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:WEBIG|value=1" />
</proc>
<proc id="webig_proc_deactive">
<action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:WEBIG|value=0" />
</proc>
<group type="menu" id="webig_menu" extends="base_menu_with_color">
<action id="home" name="uiHOME" handler="browse" params="name=ui:interface:webig:content:html|url=home" icon="building_state2.tga" />
</group>
<group type="container" id="webig" w="480" h="400" title="" global_color="false" open_button="false" force_open_out="true" header_color="UI:SAVE:WIN:COLORS:COM" resizer="true" pop_min_w="220" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" title_bar_open="false" lockable="true" openable="true" opened="true" movable="true" active="true" on_active="proc" on_active_params="webig_proc_active" on_deactive="proc" on_deactive_params="webig_proc_deactive">
<group id="header_closed" x="0" y="0" h="12" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:webig_menu" on_active="lua" on_active_params="game:closeWebIGBrowserHeader()" />
<group id="header_opened" x="0" y="0" w="480" h="16" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:webig_menu" on_active="lua" on_active_params="game:openWebIGBrowserHeader()">
<!-- must be frozen by default cause no undo/redo at start -->
<ctrl style="text_button_header" button_type="push_button" id="browse_redo" posref="MR MR" x="-16" y="0" hardtext="uiBrowseRedoButton" tooltip="uittBrowseRedo" onclick_l="browse_redo" params_l="name=ui:interface:webig:content:html" frozen="true" />
<ctrl style="text_button_header" button_type="push_button" id="browse_undo" posparent="browse_redo" posref="ML MR" x="-4" y="0" hardtext="uiBrowseUndoButton" tooltip="uittBrowseUndo" onclick_l="browse_undo" params_l="name=ui:interface:webig:content:html" frozen="true" />
<ctrl style="text_button_header" button_type="push_button" id="browse_refresh" posparent="browse_undo" posref="ML MR" x="-4" y="0" hardtext="uiBrowseRefresh" tooltip="uittBrowseRefresh" onclick_l="browse_refresh" params_l="name=ui:interface:webig:content:html" />
<ctrl style="text_button_header" button_type="push_button" id="browse_home" posparent="browse_refresh" posref="ML MR" x="-4" y="0" hardtext="uiBrowseHome" tooltip="uittBrowseHome" onclick_l="browse_home" params_l="name=ui:interface:webig:content:html" />
</group>
<group id="content" x="0" y="0" w="0" h="0" posref="TL TL">
<group type="webig_html" id="html" posref="TL TL" url="" home="http://app.ryzom.com/index.php" sizeref="wh" x="0" y="0" w="0" h="0" background_color="0 0 0 255" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="12" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="black2" browse_next_time="false" form_text_area_group="edit_box_widget_multiline" browse_refresh="ui:interface:webig:header_opened:browse_refresh" browse_undo="ui:interface:webig:header_opened:browse_undo" browse_redo="ui:interface:webig:header_opened:browse_redo">
<group id="black" posref="BR BR" sizeref="hw" w="-10" h="-3" inherit_gc_alpha="true" />
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
</group>
</group>
<tree node="webig" />
<group type="container" id="web_transactions" w="480" h="400" title="" global_color="false" open_button="false" force_open_out="true" header_color="UI:SAVE:WIN:COLORS:COM" resizer="true" pop_min_w="220" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" title_bar_open="false" lockable="true" openable="false" opened="true" movable="true" active="true">
<group id="header_closed" x="0" y="0" h="12" posref="TL TL" />
<group id="header_opened" x="0" y="0" w="480" h="16" posref="TL TL">
<!-- must be frozen by default cause no undo/redo at start -->
<ctrl style="text_button_header" button_type="push_button" id="browse_redo" posref="MR MR" x="-16" y="0" hardtext="uiBrowseRedoButton" tooltip="uittBrowseRedo" onclick_l="browse_redo" params_l="name=ui:interface:web_transactions:content:html" frozen="true" />
<ctrl style="text_button_header" button_type="push_button" id="browse_undo" posparent="browse_redo" posref="ML MR" x="-4" y="0" hardtext="uiBrowseUndoButton" tooltip="uittBrowseUndo" onclick_l="browse_undo" params_l="name=ui:interface:web_transactions:content:html" frozen="true" />
<ctrl style="text_button_header" button_type="push_button" id="browse_refresh" posparent="browse_undo" posref="ML MR" x="-4" y="0" hardtext="uiBrowseRefresh" tooltip="uittBrowseRefresh" onclick_l="browse_refresh" params_l="name=ui:interface:web_transactions:content:html" />
<ctrl style="text_button_header" button_type="push_button" id="browse_home" posparent="browse_refresh" posref="ML MR" x="-4" y="0" hardtext="uiBrowseHome" tooltip="uittBrowseHome" onclick_l="browse_home" params_l="name=ui:interface:web_transactions:content:html" />
</group>
<group id="content" x="0" y="0" w="0" h="0" posref="TL TL">
<group type="webig_html" id="html" posref="TL TL" url="" home="http://app.ryzom.com/init_ig.php" sizeref="wh" x="0" y="0" w="0" h="0" background_color="0 0 0 255" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="12" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="black2" browse_next_time="false" form_text_area_group="edit_box_widget_multiline" browse_refresh="ui:interface:web_transactions:header_opened:browse_refresh" browse_undo="ui:interface:web_transactions:header_opened:browse_undo" browse_redo="ui:interface:web_transactions:header_opened:browse_redo">
<group id="black" posref="BR BR" sizeref="hw" w="-10" h="-12" inherit_gc_alpha="true" />
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
</group>
</group>
<tree node="web_transactions" />
<group type="container" id="web_lua_action" w="480" h="400" title="" global_color="false" open_button="false" force_open_out="true" header_color="UI:SAVE:WIN:COLORS:COM" resizer="true" pop_min_w="220" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" title_bar_open="false" lockable="true" openable="false" opened="true" movable="true" active="true">
<group id="header_closed" x="0" y="0" h="12" posref="TL TL" />
<group id="header_opened" x="0" y="0" w="480" h="16" posref="TL TL">
<!-- must be frozen by default cause no undo/redo at start -->
<ctrl style="text_button_header" button_type="push_button" id="browse_redo" posref="MR MR" x="-16" y="0" hardtext="uiBrowseRedoButton" tooltip="uittBrowseRedo" onclick_l="browse_redo" params_l="name=ui:interface:web_lua_action:content:html" frozen="true" />
<ctrl style="text_button_header" button_type="push_button" id="browse_undo" posparent="browse_redo" posref="ML MR" x="-4" y="0" hardtext="uiBrowseUndoButton" tooltip="uittBrowseUndo" onclick_l="browse_undo" params_l="name=ui:interface:web_lua_action:content:html" frozen="true" />
<ctrl style="text_button_header" button_type="push_button" id="browse_refresh" posparent="browse_undo" posref="ML MR" x="-4" y="0" hardtext="uiBrowseRefresh" tooltip="uittBrowseRefresh" onclick_l="browse_refresh" params_l="name=ui:interface:web_lua_action:content:html" />
<ctrl style="text_button_header" button_type="push_button" id="browse_home" posparent="browse_refresh" posref="ML MR" x="-4" y="0" hardtext="uiBrowseHome" tooltip="uittBrowseHome" onclick_l="browse_home" params_l="name=ui:interface:web_lua_action:content:html" />
</group>
<group id="content" x="0" y="0" w="0" h="0" posref="TL TL">
<group type="webig_html" id="html" posref="TL TL" url="" home="http://app.ryzom.com/" sizeref="wh" x="0" y="0" w="0" h="0" background_color="0 0 0 255" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="12" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="black2" browse_next_time="false" form_text_area_group="edit_box_widget_multiline" browse_refresh="ui:interface:web_lua_action:header_opened:browse_refresh" browse_undo="ui:interface:web_lua_action:header_opened:browse_undo" browse_redo="ui:interface:web_lua_action:header_opened:browse_redo">
<group id="black" posref="BR BR" sizeref="hw" w="-10" h="-12" inherit_gc_alpha="true" />
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
</group>
</group>
<tree node="web_lua_action" />
</interface_config> </interface_config>

@ -61,7 +61,7 @@
<action handler="set" params="dblink=UI:VARIABLES:UNIVERSE_CHANEL_WARNING_WANTED|value=0" /> <action handler="set" params="dblink=UI:VARIABLES:UNIVERSE_CHANEL_WARNING_WANTED|value=0" />
<action handler="set" params="dblink=UI:SAVE:UNIVERSE_CHANEL_WARNING_AVOID|value=@UI:VARIABLES:TEMP_UNIVERSE_CHANEL_WARNING_AVOID" /> <action handler="set" params="dblink=UI:SAVE:UNIVERSE_CHANEL_WARNING_AVOID|value=@UI:VARIABLES:TEMP_UNIVERSE_CHANEL_WARNING_AVOID" />
</proc> </proc>
<group type="container" id="universe_chanel_warning" w="320" pop_min_w="320" pop_max_w="320" h="200" pop_min_h="200" pop_max_h="200" title="uiUniverseChanelWarningTitle" resizer="true" global_color="false" header_color="UI:SAVE:WIN:COLORS:HELP" title_bar_open="false" open_button="false" force_open_out="true" right_button="false" lockable="true" openable="false" opened="true" movable="true" active="true" savable="false"> <group type="container" id="universe_chanel_warning" w="360" pop_min_w="360" pop_max_w="360" h="200" pop_min_h="200" pop_max_h="200" title="uiUniverseChanelWarningTitle" resizer="true" global_color="false" header_color="UI:SAVE:WIN:COLORS:HELP" title_bar_open="false" open_button="false" force_open_out="true" right_button="false" lockable="true" openable="false" opened="true" movable="true" active="true" savable="false">
<group id="header_closed" x="0" y="0" h="12" posref="TL TL" group_onclick_r="" group_params_r=""></group> <group id="header_closed" x="0" y="0" h="12" posref="TL TL" group_onclick_r="" group_params_r=""></group>
<group id="header_opened" x="0" y="0" w="0" h="16" posref="TL TL" group_onclick_r="" group_params_r=""></group> <group id="header_opened" x="0" y="0" w="0" h="16" posref="TL TL" group_onclick_r="" group_params_r=""></group>
<group id="content" x="0" y="0" posref="TL TL" w="0" h="0"> <group id="content" x="0" y="0" posref="TL TL" w="0" h="0">
@ -71,9 +71,10 @@
</group> </group>
</group> </group>
<!-- If necessary, not already displayed this session, and not avoided by user, show the warning --> <!-- If necessary, not already displayed this session, and not avoided by user, show the warning -->
<!--
<link expr="and(@UI:VARIABLES:UNIVERSE_CHANEL_WARNING_WANTED, <link expr="and(@UI:VARIABLES:UNIVERSE_CHANEL_WARNING_WANTED,
not(@UI:VARIABLES:UNIVERSE_CHANEL_WARNING_DONE), not(@UI:VARIABLES:UNIVERSE_CHANEL_WARNING_DONE),
not(@UI:SAVE:UNIVERSE_CHANEL_WARNING_AVOID))" target="ui:interface:universe_chanel_warning:active" /> not(@UI:SAVE:UNIVERSE_CHANEL_WARNING_AVOID))" target="ui:interface:universe_chanel_warning:active" /> -->
<tree node="universe_chanel_warning"></tree> <tree node="universe_chanel_warning"></tree>
<tree node="welcome_info"></tree> <tree node="welcome_info"></tree>
<!--********************--> <!--********************-->
@ -223,7 +224,7 @@
</group> </group>
</group> </group>
</group> </group>
<define id="cs_url" value="/ticket_system/index.php?mode=load" /> <define id="cs_url" value="http://app.ryzom.com/ticket_system/index.php?mode=load" />
<group type="container" id="cs_browser" w="410" h="400" title="uiHelp" global_color="false" header_color="UI:SAVE:WIN:COLORS:HELP" resizer="true" pop_min_w="400" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" title_bar_open="false" open_button="false" force_open_out="true" lockable="true" openable="true" opened="true" movable="true" active="true"> <group type="container" id="cs_browser" w="410" h="400" title="uiHelp" global_color="false" header_color="UI:SAVE:WIN:COLORS:HELP" resizer="true" pop_min_w="400" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" title_bar_open="false" open_button="false" force_open_out="true" lockable="true" openable="true" opened="true" movable="true" active="true">
<group id="header_closed" x="0" y="0" h="12" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" on_active="lua" on_active_params="help:closeCSBrowserHeader('cs_browser')"> <group id="header_closed" x="0" y="0" h="12" posref="TL TL" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" on_active="lua" on_active_params="help:closeCSBrowserHeader('cs_browser')">
</group> </group>

@ -111,6 +111,7 @@
<tree node="keys" > <tree node="keys" >
<tree node="keys_player"/> <tree node="keys_player"/>
<tree node="keys_animals"/>
<tree node="keys_movement"/> <tree node="keys_movement"/>
<tree node="keys_actions"/> <tree node="keys_actions"/>
<tree node="keys_chat"/> <tree node="keys_chat"/>

@ -15,6 +15,14 @@ game.PrevSessionMission = - 1
-- flag set to true when the in game db has been initialized -- flag set to true when the in game db has been initialized
game.InGameDbInitialized = false game.InGameDbInitialized = false
game.WebMissionLastDesc = {}
game.CapTitle = ""
game.CapDesc = ""
game.CapChannel = ""
game.CapInfosUrl = nil
game.CapNextUrl = ""
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
@ -243,6 +251,7 @@ function game:initNpcWebPageData()
self.NpcWebPage= {}; self.NpcWebPage= {};
self.NpcWebPage.UrlTextId= 0; self.NpcWebPage.UrlTextId= 0;
self.NpcWebPage.BrowseDone= false; self.NpcWebPage.BrowseDone= false;
self.NpcWebPage.WaitingDynStr = false
end end
end end
@ -283,17 +292,14 @@ function game:onDrawNpcWebPage()
local utf8Url = ucUrl local utf8Url = ucUrl
local isRing = string.find(utf8Url, "ring_access_point=1") ~= nil local isRing = string.find(utf8Url, "ring_access_point=1") ~= nil
if isRing then if isRing then
-- when in ring mode, add the parameters ourselves. 60 sec timeout because of zope...
-- browseNpcWebPage(uiStr, utf8Url .. game.RingAccessPointFilter:getURLParameters(), false, 60)
-- Use new window after revamp
--RingAccessPoint:getWindow().active = 1
--RingAccessPoint:getWindow():center()
--RingAccessPoint:getWindow():blink(1)
--RingAccessPoint:show()
getUI("ui:interface:npc_web_browser").active = false getUI("ui:interface:npc_web_browser").active = false
runAH(nil, "context_ring_sessions", "") runAH(nil, "context_ring_sessions", "")
return return
else else
local hideWindow = string.find(utf8Url, "_hideWindow=1") ~= nil
if hideWindow then
getUI("ui:interface:npc_web_browser").active = false
end
self.NpcWebPage.BrowseDone= true; self.NpcWebPage.BrowseDone= true;
browseNpcWebPage(uiStr, utf8Url, true, 10); -- 'true' is for 'add parameters' here. 10 is standard timeout browseNpcWebPage(uiStr, utf8Url, true, 10); -- 'true' is for 'add parameters' here. 10 is standard timeout
end end
@ -302,14 +308,15 @@ function game:onDrawNpcWebPage()
-- if this is a ring window, then only the refresh button to access to filter will be available -- if this is a ring window, then only the refresh button to access to filter will be available
local isRing = string.find(utf8Url, "ring_access_point=1") ~= nil local isRing = string.find(utf8Url, "ring_access_point=1") ~= nil
local browser = getUI("ui:interface:npc_web_browser") local browser = getUI("ui:interface:npc_web_browser")
browser:find("browse_redo").active = not isRing browser:find("browse_redo").active = true
browser:find("browse_undo").active = not isRing browser:find("browse_undo").active = true
browser:find("browse_refresh").active = isRing browser:find("browse_refresh").active = true
end end
end end
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- UNUSED???
function game:initNpcWebPage() function game:initNpcWebPage()
local ui= getUICaller(); local ui= getUICaller();
if(ui~=nil) then if(ui~=nil) then
@ -318,15 +325,60 @@ function game:initNpcWebPage()
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
function string:split(Pattern)
local Results = {}
local Start = 1
local SplitStart, SplitEnd = string.find(self, Pattern, Start)
while(SplitStart)do
table.insert(Results, string.sub(self, Start, SplitStart-1))
Start = SplitEnd+1
SplitStart, SplitEnd = string.find(self, Pattern, Start)
end
table.insert(Results, string.sub(self, Start))
return Results
end
function game:getOpenAppPageMessage()
local ucUrl = getDynString(self.NpcWebPage.UrlTextId)
local url = ucUrl
surl = url:split("&")
for i=1,#surl do
if surl[i]:sub(1, 12) == "open_message" then
return base64.decode(surl[i]:sub(14))
end
end
return ""
end
function game:onDbChangeAppPage()
if getDbProp("UI:VARIABLES:CURRENT_SERVER_TICK") > self.NpcWebPage.Timeout then
local npcName = getTargetName()
local text = game:getOpenAppPageMessage()
displaySystemInfo(text, "AMB")
removeOnDbChange(getUI("ui:interface:npc_web_browser"),"@UI:VARIABLES:CURRENT_SERVER_TICK")
end
end
function game:startNpcWebPage() function game:startNpcWebPage()
self:initNpcWebPageData(); self:initNpcWebPageData();
-- set the new page to explore. -- set the new page to explore.
-- NB: must backup the Database, because don't want that the page change when clicking an other NPC -- NB: must backup the Database, because don't want that the page change when clicking an other NPC
self.NpcWebPage.UrlTextId= getDbProp('LOCAL:TARGET:CONTEXT_MENU:WEB_PAGE_URL'); if not self.NpcWebPage.WaitingDynStr then
self.NpcWebPage.BrowseDone= false; self.NpcWebPage.UrlTextId = getDbProp("LOCAL:TARGET:CONTEXT_MENU:WEB_PAGE_URL");
end
self.NpcWebPage.BrowseDone = false;
-- reset the page (empty url) and undo / redo available = isDynStringAvailable(self.NpcWebPage.UrlTextId)
if available then
if self.NpcWebPage.WaitingDynStr then
self.NpcWebPage.WaitingDynStr = false
removeOnDbChange(getUI("ui:interface:npc_web_browser"),"@UI:VARIABLES:CURRENT_SERVER_TICK")
end
local ucUrl = getDynString(self.NpcWebPage.UrlTextId)
local utf8Url = ucUrl
if utf8Url:sub(1, 4) == "http" then
runAH(nil, "browse", "name=ui:interface:npc_web_browser:content:html|url=release_wk.html|localize=1"); runAH(nil, "browse", "name=ui:interface:npc_web_browser:content:html|url=release_wk.html|localize=1");
clearHtmlUndoRedo("ui:interface:npc_web_browser:content:html"); clearHtmlUndoRedo("ui:interface:npc_web_browser:content:html");
local ui= getUI("ui:interface:npc_web_browser"); local ui= getUI("ui:interface:npc_web_browser");
@ -336,6 +388,18 @@ function game:startNpcWebPage()
ui:find("browse_redo").active = false ui:find("browse_redo").active = false
ui:find("browse_undo").active = false ui:find("browse_undo").active = false
ui:find("browse_refresh").active = false ui:find("browse_refresh").active = false
else
setTargetAsInterlocutor()
self.NpcWebPage.Timeout = getDbProp("UI:VARIABLES:CURRENT_SERVER_TICK")+7
addOnDbChange(getUI("ui:interface:npc_web_browser"),"@UI:VARIABLES:CURRENT_SERVER_TICK", "game:onDbChangeAppPage()")
-- App url, need sign it with server
runCommand("a", "openTargetApp", utf8Url)
end
else
self.NpcWebPage.WaitingDynStr = true
addOnDbChange(getUI("ui:interface:npc_web_browser"),"@UI:VARIABLES:CURRENT_SERVER_TICK", "game:startNpcWebPage()")
end
end end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
@ -377,29 +441,6 @@ end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------
function game:initFamePos()
local ui = getUICaller();
-- assign good bar with good text
local uiList = { 'fyros', 'matis', 'tryker', 'zorai', 'kami', 'karavan' };
for k,v in pairs(uiList) do
-- get ui text
local uiTextRef = getUI(getUIId(ui) .. ':' .. v);
local fameIdx = getFameDBIndex(getFameIndex(v));
-- put bar in front of it
if (fameIdx >= 0) and (fameIdx <= 5) then
local uiBar = getUI(getUIId(ui) .. ':fb' .. fameIdx);
uiBar.y = uiTextRef.y - uiTextRef.h / 2 + uiBar.h / 2;
else
debugInfo('Error init fame bar pos for ' .. v);
end
end
end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
function game:initFameTribe() function game:initFameTribe()
local ui = getUICaller(); local ui = getUICaller();
@ -418,11 +459,29 @@ end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
function game:updateFameBar(path) function game:updateFameBar(path)
local ui = getUICaller();
local thresholdKOS = getDbProp('SERVER:FAME:THRESHOLD_KOS'); local thresholdKOS = getDbProp('SERVER:FAME:THRESHOLD_KOS');
local thresholdTrade = getDbProp('SERVER:FAME:THRESHOLD_TRADE'); local thresholdTrade = getDbProp('SERVER:FAME:THRESHOLD_TRADE');
local fameValue = getDbProp(path .. ':VALUE'); local fameValue = getDbProp(path .. ':VALUE');
local fameMax = getDbProp(path .. ':THRESHOLD'); local fameMax = getDbProp(path .. ':THRESHOLD');
-- known/unknown fame
local fameVisible = fameValue ~= -128
if fameVisible then
-- show unmodified value stored in #path:VALUE
ui.t.hardtext = fameValue
else
ui.t.hardtext = "?"
end
-- show/hide fame bar components
ui.m.active = fameVisible
ui.p0.active = fameVisible
ui.p1.active = fameVisible
ui.p2.active = fameVisible
ui.p3.active = fameVisible
ui.p4.active = fameVisible
ui.bar3d.active = fameVisible
if (thresholdKOS < -100) then thresholdKOS = -100; end if (thresholdKOS < -100) then thresholdKOS = -100; end
if (thresholdKOS > 100) then thresholdKOS = 100; end if (thresholdKOS > 100) then thresholdKOS = 100; end
if (thresholdTrade < -100) then thresholdTrade = -100; end if (thresholdTrade < -100) then thresholdTrade = -100; end
@ -435,7 +494,6 @@ function game:updateFameBar(path)
if (thresholdKOS > thresholdTrade) then thresholdKOS = thresholdTrade; end if (thresholdKOS > thresholdTrade) then thresholdKOS = thresholdTrade; end
if (fameValue > fameMax) then fameValue = fameMax; end if (fameValue > fameMax) then fameValue = fameMax; end
local ui = getUICaller();
local uiPart0 = ui.p0; local uiPart0 = ui.p0;
local uiPart1 = ui.p1; local uiPart1 = ui.p1;
local uiPart2 = ui.p2; local uiPart2 = ui.p2;
@ -909,18 +967,18 @@ function RingPlayerInfo:fill(ringPoints)
-- tooltipUI.tooltip = self:tooltipRingRating(level, progress, "uiR2EDMasterlessRingRatingTooltip") -- tooltipUI.tooltip = self:tooltipRingRating(level, progress, "uiR2EDMasterlessRingRatingTooltip")
-- ecosystem Points -- ecosystem Points
-- local ecosystems = {"Basic", "Desert", "Subtropic", "Forest", "Jungle", "PrimeRoot"} local ecosystems = {"Basic", "Desert", "Subtropic", "Forest", "Jungle", "PrimeRoot"}
-- for k, eco in pairs(ecosystems) do for k, eco in pairs(ecosystems) do
-- local ecoVal = tostring(ringPoints[eco.."RingPoints"]) local ecoVal = tostring(ringPoints[eco.."RingPoints"])
-- local ecoValMax = tostring(ringPoints["Max" .. eco.."RingPoints"]) local ecoValMax = tostring(ringPoints["Max" .. eco.."RingPoints"])
-- local ecoUI = ui:find(string.lower(eco)) local ecoUI = ui:find(string.lower(eco))
-- local maxUI = ecoUI:find("max") local maxUI = ecoUI:find("max")
-- local valUI = ecoUI:find("val") local valUI = ecoUI:find("val")
-- tooltipUI = ecoUI:find("tt") tooltipUI = ecoUI:find("tt")
-- maxUI.hardtext = ecoValMax maxUI.hardtext = ecoValMax
-- valUI.hardtext = ecoVal valUI.hardtext = ecoVal
-- tooltipUI.tooltip = self:tooltipEcosystemPoints(ecoVal, ecoValMax, "uiR2ED" .. eco .. "PointsTooltip") tooltipUI.tooltip = self:tooltipEcosystemPoints(ecoVal, ecoValMax, "uiR2ED" .. eco .. "PointsTooltip")
-- end end
end end
-------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------
@ -1013,6 +1071,27 @@ function RingPlayerInfo:getLevelRatingAndImprovementRate(val)
return level, progress return level, progress
end end
--------------------------------------------------------------------------------------------------------------
--
function game:updateOrganization(path, uiOrgText, uiStatusText, uiPointsText)
local org = getDbProp(path.."1:VALUE")
getUICaller()[uiOrgText].hardtext = i18n.get('uiOrganization_' .. org)
local status = getDbProp(path.."2:VALUE")
getUICaller()[uiStatusText].hardtext= status
local points = getDbProp(path.."3:VALUE")
getUICaller()[uiPointsText].hardtext= points
end
------------------------------------------------------------------------------------------------------------
function game:organizationTooltip()
-- set the tooltip in InterfaceManager
setContextHelpText( i18n.get('uittOrganization') );
end
-------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------
function game:popMissionList() function game:popMissionList()

@ -31,9 +31,9 @@
<template name="tipc_score" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" <template name="tipc_score" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0"
text="" val="" maxval="" baseval="" tooltip="" > text="" val="" maxval="" baseval="" tooltip="" >
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" > <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
<view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" /> <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
<view type="text_number" id="max" posref="MR MR" x="-4" y="-2" color="255 255 255 255" shadow="true" fontsize="12" value="#maxval" positive="true" /> <view type="text_number" id="max" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" value="#maxval" positive="true" />
<view type="text" id="sep" posparent="max" posref="TL TR" x="-1" color="255 255 255 255" shadow="true" fontsize="12" hardtext="/" /> <view type="text" id="sep" posparent="max" posref="TL TR" x="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="/" />
<view type="text_number" id="val" posparent="max" posref="TL TR" x="-10" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" /> <view type="text_number" id="val" posparent="max" posref="TL TR" x="-10" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" />
<link expr="ifthenelse(lt(@#maxval,@#baseval), '182 39 0 255', <link expr="ifthenelse(lt(@#maxval,@#baseval), '182 39 0 255',
@ -46,8 +46,8 @@
<template name="tipc_scoreEP" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" <template name="tipc_scoreEP" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0"
text="" val="" maxval="" baseval="" level="" mod="" tooltip="" > text="" val="" maxval="" baseval="" level="" mod="" tooltip="" >
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" > <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
<view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" /> <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
<view type="text_number" id="val" posref="MR MR" x="-4" y="-2" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" /> <view type="text_number" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" />
<link expr="ifthenelse(lt(@#val,@#baseval), '182 39 0 255', <link expr="ifthenelse(lt(@#val,@#baseval), '182 39 0 255',
ifthenelse(gt(@#val,@#baseval), '180 165 0 255', '255 255 255 255'))" target="val:color" /> ifthenelse(gt(@#val,@#baseval), '180 165 0 255', '255 255 255 255'))" target="val:color" />
@ -58,8 +58,8 @@
<template name="tipc_charac" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" <template name="tipc_charac" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0"
text="" val="" suffix="" tooltip="" > text="" val="" suffix="" tooltip="" >
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" > <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
<view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" /> <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
<view type="text_number" id="val" posref="MR MR" x="-4" y="-2" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" suffix="#suffix" /> <view type="text_number" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" suffix="#suffix" />
<ctrl type="tooltip" id="tt" sizeref="wh" tooltip="#tooltip" /> <ctrl type="tooltip" id="tt" sizeref="wh" tooltip="#tooltip" />
</group> </group>
</template> </template>
@ -67,8 +67,8 @@
<template name="tipc_characReg" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" <template name="tipc_characReg" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0"
text="" val="" baseval="" suffix="" tooltip="" > text="" val="" baseval="" suffix="" tooltip="" >
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" > <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
<view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" /> <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
<view type="text_number" id="val" posref="MR MR" x="-4" y="-2" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" suffix="#suffix" /> <view type="text_number" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" value="#val" positive="true" suffix="#suffix" />
<link expr="ifthenelse(lt(@#val,@#baseval), '182 39 0 255', <link expr="ifthenelse(lt(@#val,@#baseval), '182 39 0 255',
ifthenelse(gt(@#val,@#baseval), '180 165 0 255', '255 255 255 255'))" target="val:color" /> ifthenelse(gt(@#val,@#baseval), '180 165 0 255', '255 255 255 255'))" target="val:color" />
<ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipScore('#baseval', '#val','#tooltip')" /> <ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipScore('#baseval', '#val','#tooltip')" />
@ -80,8 +80,8 @@
<template name="tipc_magic_protect" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" <template name="tipc_magic_protect" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0"
val="" tooltip="" > val="" tooltip="" >
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" > <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
<view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiProtect_#id" /> <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiProtect_#id" />
<view type="text" id="val" posref="MR MR" x="-4" y="-2" color="255 255 255 255" shadow="true" fontsize="12" hardtext="" /> <view type="text" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="" />
<ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipMagicProtect('#val','uittProtect_#id')" /> <ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipMagicProtect('#val','uittProtect_#id')" />
<!-- change text when db change --> <!-- change text when db change -->
<link expr="depends(@#val,@%player_protect_maxratio)" action="lua:game:displayMagicProtect('#val')" /> <link expr="depends(@#val,@%player_protect_maxratio)" action="lua:game:displayMagicProtect('#val')" />
@ -93,8 +93,8 @@
<template name="tipc_magic_resist" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0" <template name="tipc_magic_resist" posparent="parent" x="0" y="0" h="16" posref="TL TL" id="" sizeref="w" w="0"
val="" tooltip="" > val="" tooltip="" >
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" > <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
<view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiResist_#id" /> <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiResist_#id" />
<view type="text" id="val" posref="MR MR" x="-4" y="-2" color="255 255 255 255" shadow="true" fontsize="12" hardtext="" /> <view type="text" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="" />
<ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipMagicResist('#val','uittResist_#id')" /> <ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:game:tooltipMagicResist('#val','uittResist_#id')" />
<!-- change text when db change. NB: resist depends also on skill --> <!-- change text when db change. NB: resist depends also on skill -->
<link expr="depends(@#val,@%player_resist_maxratio,@UI:VARIABLES:TRACK_SKILL_CHANGE)" action="lua:game:displayMagicResist('#val')" /> <link expr="depends(@#val,@%player_resist_maxratio,@UI:VARIABLES:TRACK_SKILL_CHANGE)" action="lua:game:displayMagicResist('#val')" />
@ -108,10 +108,10 @@
text="" > text="" >
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" > <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
<view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" /> <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
<view type="text" id="max" posref="MR MR" x="-4" y="-1" color="255 255 255 255" shadow="true" fontsize="12" hardtext="0" /> <view type="text" id="max" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="0" />
<view type="text" id="sep" posref="MR MR" x="-20" y="-1" color="255 255 255 255" shadow="true" fontsize="12" hardtext="/" /> <view type="text" id="sep" posref="MR MR" x="-20" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="/" />
<view type="text" id="val" posref="MR MR" x="-37" y="-1" color="255 255 255 255" shadow="true" fontsize="12" hardtext="0" /> <view type="text" id="val" posref="MR MR" x="-37" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="0" />
<ctrl type="tooltip" id="tt" sizeref="wh" /> <ctrl type="tooltip" id="tt" sizeref="wh" />
@ -125,7 +125,7 @@
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" > <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
<view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" /> <view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
<view type="text" id="val" posref="MR MR" x="-4" y="-2" color="255 255 255 255" shadow="true" fontsize="12" hardtext="0"/> <view type="text" id="val" posref="MR MR" x="-4" y="0" color="255 255 255 255" shadow="true" fontsize="12" hardtext="0"/>
<ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:RingPlayerInfo:tooltipRRPs('#val','#tooltip')" /> <ctrl type="tooltip" id="tt" sizeref="wh" on_tooltip="lua:RingPlayerInfo:tooltipRRPs('#val','#tooltip')" />
<link expr="@#val" action="lua:RingPlayerInfo:updateRRPSLevel('#val', '#tooltip')" /> <link expr="@#val" action="lua:RingPlayerInfo:updateRRPSLevel('#val', '#tooltip')" />
@ -141,7 +141,7 @@
<view type="bitmap" id="jauge_graph" posref="TL TL" texture="jauge.tga" color="#color" global_color="false" /> <view type="bitmap" id="jauge_graph" posref="TL TL" texture="jauge.tga" color="#color" global_color="false" />
</group> </group>
<view type="text" id="t" posref="TL TL" x="16" y="-3" color="255 255 255 255" global_color="false" fontsize="10" shadow="true" hardtext="#text" /> <view type="text" id="t" posref="TL TL" x="16" y="2" color="255 255 255 255" global_color="false" fontsize="10" shadow="true" hardtext="#text" />
<!-- <!--
<view type="text_number" id="max" posref="MR MR" x="-12" y="-2" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" value="#maxval" positive="true" /> <view type="text_number" id="max" posref="MR MR" x="-12" y="-2" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" value="#maxval" positive="true" />
<view type="text" id="sep" posparent="max" posref="TL TR" x="-1" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="/" /> <view type="text" id="sep" posparent="max" posref="TL TR" x="-1" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="/" />
@ -165,7 +165,7 @@
text="" > text="" >
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" > <group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y" sizeref="#sizeref" >
<view type="text" id="t" posref="TL TL" y="-1" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" /> <view type="text" id="t" posref="TL TL" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#text" />
<view type="bitmap" id="b_jauge_rating" posref="MR MR" y="0" texture="slot_jauge.tga" inherit_gc_alpha="false" /> <view type="bitmap" id="b_jauge_rating" posref="MR MR" y="0" texture="slot_jauge.tga" inherit_gc_alpha="false" />
<instance template="jauge_rating" id="jauge_rating" posref="MR MR" color="214 56 7 255" color_gray="160 42 5 255" <instance template="jauge_rating" id="jauge_rating" posref="MR MR" color="214 56 7 255" color_gray="160 42 5 255"
@ -191,8 +191,8 @@
<variable entry="UI:TITLE" type="sint64" value="-1"/> <variable entry="UI:TITLE" type="sint64" value="-1"/>
<group type="container" id="info_player_skills" w="500" title="uiSkillsTitle" global_color="false" header_color="UI:SAVE:WIN:COLORS:PLA" <group type="container" id="info_player_skills" w="540" title="uiSkillsTitle" global_color="false" header_color="UI:SAVE:WIN:COLORS:PLA"
min_w="330" max_w="500" min_h="565" max_h="1600" pop_max_h="800" min_w="350" max_w="540" min_h="550" max_h="1600" pop_max_h="800"
on_active="proc" on_active_params="progression_proc_active" on_active="proc" on_active_params="progression_proc_active"
on_deactive="proc" on_deactive_params="progression_proc_deactive" on_deactive="proc" on_deactive_params="progression_proc_deactive"
open_button="false" force_open_out="true" title_bar_open="false" open_button="false" force_open_out="true" title_bar_open="false"
@ -205,47 +205,36 @@
group_params_r="menu=ui:interface:base_menu_with_color" > group_params_r="menu=ui:interface:base_menu_with_color" >
</group> </group>
<!--
<group id="header_opened" x="0" y="0" w="100" h="48" posref="TL TL" <group id="header_opened" x="0" y="0" w="100" h="48" posref="TL TL"
group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color"> group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color">
<group type="tab" id="info_player_skills_tabs" child_resize_w="true" h="24" posref="TL TL" x="0" y="-24" > <group type="tab" id="info_player_skills_tabs" child_resize_w="true" h="24" posref="TL TL" x="0" y="-24" >
<ctrl style="tab_button_new" id="tab0" x="0" posref="TL TL" group="content:basics_skills" hardtext="uiR2EDBasicSkills" onclick_r="" params_r="" onclick_l="" params_l="" /> <ctrl style="tab_button_new" id="tab0" x="0" posref="TL TL" group="content:basics_skills" hardtext="uiR2EDBasicSkills" onclick_r="" params_r="" onclick_l="" params_l="" />
<ctrl style="tab_button_new" id="tab1" posparent="tab0" group="content:ring_skills" hardtext="uiR2EDRingSkills" onclick_r="" params_r="" onclick_l="" params_l="" /> <ctrl style="tab_button_new" id="tab1" posparent="tab0" group="content:ring_skills" hardtext="uiR2EDRingSkills" onclick_r="" params_r="" onclick_l="" params_l="" />
<ctrl style="tab_button_new" id="tab2" posparent="tab1" group="content:rpjobs" hardtext="uiRpJobs" onclick_r="" params_r="" />
<ctrl style="tab_button_new" id="tab3" posparent="tab2" group="content:webinfos" hardtext="uiPlayerInfos" onclick_r="" params_r="" onclick_l="" params_l="" />
</group> </group>
<view type="bitmap" id="sep" posparent="info_player_skills_tabs" posref="BR BL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" /> <view type="bitmap" id="sep" posparent="info_player_skills_tabs" posref="BR BL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" />
</group> </group>
-->
<group id="header_opened" x="0" y="0" w="400" h="552" posref="TL TL"
group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color">
<!-- <group id="basics_skills" sizeref="wh" w="0" y="0" h="0" posref="TL TL"> --> <group id="content" x="0" y="0" h="550" posref="TL TL">
<group id="title" posref="TL TL" sizeref="w" w="-1" h="24" y="-22" > <group id="basics_skills" sizeref="wh" w="0" y="0" h="0" posref="TL TL">
<view type="text" id="player_title_txt" posref="TL TL" x="0" y="-4" hardtext="uiPlayerTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<group type="combo_box" id="player_title" w="300" h="20" value="UI:TITLE" posparent="player_title_txt" posref="TR TL" x="4" y="4" on_select_start="title_combobox_button" > <view type="text" id="character_race_title" posparent="basics_skills" posref="TL TL" x="0" y="-10" hardtext="uiRaceBold" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
<instance template="combo_box_def1" /> <view type="text" id="character_race_name" posparent="character_race_title" posref="TR TL" shadow="true" color="255 200 55 255" global_color="false" x="2" fontsize="12" hardtext="" />
</group>
<instance template="text_tt" posparent="player_title" tooltip="uittIdentityTitle" />
<link expr="@UI:TITLE" action="title_combobox_changed" />
</group> <group id="guild" posref="TL TL" sizeref="w" h="14" y="-30" >
<ctrl style="text_button_16" id="inf" posref="TR TR" y="-24" wmargin="8" hardtext="uiInfo" tooltip="uittIdentityInfo" onclick_l="open_title_help" params_l="from=user"/>
<group id="guild" posref="TL TL" sizeref="w" h="12" y="-52" >
<view type="text" id="guild_title" posref="TL TL" x="0" y="0" hardtext="uiGuildMembership" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/> <view type="text" id="guild_title" posref="TL TL" x="0" y="0" hardtext="uiGuildMembership" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<view type="text_id" id="name" posparent="guild_title" posref="TR TL" shadow="true" color="255 255 255 255" global_color="true" fontsize="12" textid="SERVER:GUILD:NAME" dynamic_string="false"/> <view type="text_id" id="name" posparent="guild_title" posref="TR TL" shadow="true" color="255 200 55 255" global_color="false" x="2" fontsize="12" textid="SERVER:GUILD:NAME" dynamic_string="false"/>
</group> </group>
<group id="scores" posref="TL TL" sizeref="w5" w="-1" h="188" y="-72" > <group id="scores" posref="TL TL" sizeref="w5" w="-1" h="188" y="-52" >
<view type="text" id="Skill_t" posref="TL TL" x="0" y="0" hardtext="uiScoreTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/> <view type="text" id="Skill_t" posref="TL TL" x="0" y="0" hardtext="uiScoreTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<group id="black" posref="TL TL" x="0" sizeref="w" y="-14" w="0" h="172" inherit_gc_alpha="true" > <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="172" inherit_gc_alpha="true" >
<view type="text" id="values" posref="TL TL" x="4" y="-4" hardtext="uiValues" shadow="true" fontsize="10" color="255 255 255 255" /> <view type="text" id="values" posref="TL TL" x="4" y="-4" hardtext="uiValues" shadow="true" fontsize="10" color="255 255 255 255" />
<instance template="tipc_score" id="lif" posref="TL TL" x="8" y="-20" w="-8" tooltip="uittIdentityHP" <instance template="tipc_score" id="lif" posref="TL TL" x="8" y="-20" w="-8" tooltip="uittIdentityHP"
@ -274,9 +263,9 @@
</group> </group>
<group id="caracs" posref="TM TL" sizeref="w5" w="-1" x="1" h="188" y="-72" > <group id="caracs" posref="TM TL" sizeref="w5" w="-1" x="1" h="188" y="-52" >
<view type="text" id="Skill_t" posref="TL TL" x="0" y="0" hardtext="uiCaracsTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/> <view type="text" id="Skill_t" posref="TL TL" x="0" y="0" hardtext="uiCaracsTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<group id="black" posref="TL TL" x="0" sizeref="w" y="-14" w="0" h="172" inherit_gc_alpha="true" > <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="172" inherit_gc_alpha="true" >
<instance template="tipc_charac" id="hpmax" posref="TL TL" x="8" y="-20" w="-8" <instance template="tipc_charac" id="hpmax" posref="TL TL" x="8" y="-20" w="-8"
text="uiCarac_HpMax" val="%player_carac_hpmax" tooltip="uittIdentityCons" /> text="uiCarac_HpMax" val="%player_carac_hpmax" tooltip="uittIdentityCons" />
@ -300,9 +289,9 @@
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/> <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
</group> </group>
<group id="skillpoints" posref="TL TL" sizeref="w5" w="-1" h="83" y="-264" > <group id="skillpoints" posref="TL TL" sizeref="w5" w="-1" h="83" y="-248" >
<view type="text" id="sp" posref="TL TL" x="0" y="0" hardtext="uiSkillPoints" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/> <view type="text" id="sp" posref="TL TL" x="0" y="0" hardtext="uiSkillPoints" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<group id="black" posref="TL TL" x="0" sizeref="w" y="-14" w="0" h="67" inherit_gc_alpha="true" > <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="67" inherit_gc_alpha="true" >
<instance template="skill_points_widget" id="sp0" global_color="true" posref="TL TL" x="0" y="-4" hardtext="uiSkillPoints0" value="%skill_points_0" tooltip="uittIdentitySkillFight" fontsize_text="12" fontsize_number="12" /> <instance template="skill_points_widget" id="sp0" global_color="true" posref="TL TL" x="0" y="-4" hardtext="uiSkillPoints0" value="%skill_points_0" tooltip="uittIdentitySkillFight" fontsize_text="12" fontsize_number="12" />
<instance template="skill_points_widget" id="sp1" posparent="sp0" global_color="true" posref="BL TL" x="0" hardtext="uiSkillPoints1" value="%skill_points_1" tooltip="uittIdentitySkillMagic" fontsize_text="12" fontsize_number="12" /> <instance template="skill_points_widget" id="sp1" posparent="sp0" global_color="true" posref="BL TL" x="0" hardtext="uiSkillPoints1" value="%skill_points_1" tooltip="uittIdentitySkillMagic" fontsize_text="12" fontsize_number="12" />
@ -313,9 +302,9 @@
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/> <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
</group> </group>
<group id="misc" posref="TM TL" sizeref="w5" w="-1" x="1" h="83" y="-264" > <group id="misc" posref="TM TL" sizeref="w5" w="-1" x="1" h="83" y="-248" >
<view type="text" id="cm" posref="TL TL" x="0" y="0" hardtext="uiCaracMisc" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/> <view type="text" id="cm" posref="TL TL" x="0" y="0" hardtext="uiCaracMisc" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<group id="black" posref="TL TL" x="0" sizeref="w" y="-14" w="0" h="67" inherit_gc_alpha="true" > <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="67" inherit_gc_alpha="true" >
<!-- Total Malus: Must multiply by 2 the Equip Malus that is in Server DB, to have it in percentage --> <!-- Total Malus: Must multiply by 2 the Equip Malus that is in Server DB, to have it in percentage -->
<instance template="tipc_charac" id="total_malus" posref="TL TL" x="8" y="-4" w="-8" <instance template="tipc_charac" id="total_malus" posref="TL TL" x="8" y="-4" w="-8"
@ -340,12 +329,12 @@
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/> <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
</group> </group>
<group id="resists" posref="TL TL" sizeref="w5" w="-1" h="155" y="-351" > <group id="resists" posref="TL TL" sizeref="w5" w="-1" h="157" y="-338" >
<view type="text" id="resists_t" posref="TL TL" x="0" y="0" hardtext="uiResistsTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/> <view type="text" id="resists_t" posref="TL TL" x="0" y="0" hardtext="uiResistsTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<instance template="text_tt" posparent="resists_t" tooltip="uittMagicResistTable" /> <instance template="text_tt" posparent="resists_t" tooltip="uittMagicResistTable" />
<group id="black" posref="TL TL" x="0" sizeref="w" y="-14" w="0" h="141" inherit_gc_alpha="true" > <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="140" inherit_gc_alpha="true" >
<instance template="tipc_magic_resist" id="Desert" posref="TL TL" x="8" y="-10" w="-8" <instance template="tipc_magic_resist" id="Desert" posref="TL TL" x="8" y="-8" w="-8"
val="%player_resist_desert" /> val="%player_resist_desert" />
<instance template="tipc_magic_resist" id="Forest" posparent="Desert" posref="BL TL" y="0" <instance template="tipc_magic_resist" id="Forest" posparent="Desert" posref="BL TL" y="0"
val="%player_resist_forest" /> val="%player_resist_forest" />
@ -359,20 +348,20 @@
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/> <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
</group> </group>
<group id="magic_protect" posref="TM TL" sizeref="w5" w="-1" x="1" h="155" y="-351" > <group id="magic_protect" posref="TM TL" sizeref="w5" w="-1" h="158" y="-337" >
<view type="text" id="protections_t" posref="TL TL" x="0" y="0" hardtext="uiMagicProtectTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/> <view type="text" id="protections_t" posref="TL TL" x="0" y="0" hardtext="uiMagicProtectTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<instance template="text_tt" posparent="protections_t" tooltip="uittMagicProtectTable" /> <instance template="text_tt" posparent="protections_t" tooltip="uittMagicProtectTable" />
<group id="black" posref="TL TL" x="0" sizeref="w" y="-14" w="0" h="141" inherit_gc_alpha="true" > <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="140" inherit_gc_alpha="true" >
<instance template="tipc_magic_protect" id="Acid" posref="TL TL" x="8" y="-10" w="-8" <instance template="tipc_magic_protect" id="Acid" posref="TL TL" x="8" y="-8" w="-8"
val="%player_protect_acid" /> val="%player_protect_acid" />
<instance template="tipc_magic_protect" id="Cold" posparent="Acid" posref="BL TL" y="0" <instance template="tipc_magic_protect" id="Cold" posparent="Acid" posref="BL TL" y="0"
val="%player_protect_cold" /> val="%player_protect_cold" />
<instance template="tipc_magic_protect" id="Fire" posparent="Cold" posref="BL TL" y="0" <instance template="tipc_magic_protect" id="Rot" posparent="Cold" posref="BL TL" y="0"
val="%player_protect_fire" />
<instance template="tipc_magic_protect" id="Rot" posparent="Fire" posref="BL TL" y="0"
val="%player_protect_rot" /> val="%player_protect_rot" />
<instance template="tipc_magic_protect" id="Shockwave" posparent="Rot" posref="BL TL" y="0" <instance template="tipc_magic_protect" id="Fire" posparent="Rot" posref="BL TL" y="0"
val="%player_protect_fire" />
<instance template="tipc_magic_protect" id="Shockwave" posparent="Fire" posref="BL TL" y="0"
val="%player_protect_shockwave" /> val="%player_protect_shockwave" />
<instance template="tipc_magic_protect" id="Poison" posparent="Shockwave" posref="BL TL" y="0" <instance template="tipc_magic_protect" id="Poison" posparent="Shockwave" posref="BL TL" y="0"
val="%player_protect_poison" /> val="%player_protect_poison" />
@ -385,18 +374,18 @@
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/> <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
</group> </group>
<group id="dodge" posref="TL TL" sizeref="w5" w="-1" h="40" y="-512" > <group id="dodge" posref="TL TL" sizeref="w5" w="-1" h="42" y="-500" >
<view type="text" id="defense_t" posref="TL TL" x="0" y="0" hardtext="uiDefenseTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/> <view type="text" id="defense_t" posref="TL TL" x="0" y="0" hardtext="uiDefenseTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<group id="black" posref="TL TL" x="0" sizeref="w" y="-14" w="0" h="26" inherit_gc_alpha="true" > <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="24" inherit_gc_alpha="true" >
<instance template="tipc_scoreEP" id="dodge" posref="TL TL" x="8" y="-10" w="-8" <instance template="tipc_scoreEP" id="dodge" posref="TL TL" x="8" y="-5" w="-8"
text="uiDodge" val="%player_dodge_current" maxval="%player_dodge_base" baseval="%player_dodge_base" tooltip="uittIdentityDodge" level="%player_dodge_current" mod="%player_dodge_success_mod"/> text="uiDodge" val="%player_dodge_current" maxval="%player_dodge_base" baseval="%player_dodge_base" tooltip="uittIdentityDodge" level="%player_dodge_current" mod="%player_dodge_success_mod"/>
</group> </group>
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/> <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
</group> </group>
<group id="parry" posref="TM TL" sizeref="w5" w="-1" x="1" h="40" y="-512" > <group id="parry" posref="TM TL" sizeref="w5" w="-1" h="42" y="-500" >
<group id="black" posref="TL TL" x="0" sizeref="w" y="-14" w="0" h="26" inherit_gc_alpha="true" > <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="24" inherit_gc_alpha="true" >
<instance template="tipc_scoreEP" id="parry" posref="TL TL" x="8" y="-10" w="-8" <instance template="tipc_scoreEP" id="parry" posref="TL TL" x="8" y="-5" w="-8"
text="uiParry" val="%player_parry_current" maxval="%player_parry_base" baseval="%player_parry_base" tooltip="uittIdentityParry" level="%player_parry_current" mod="%player_parry_success_mod"/> text="uiParry" val="%player_parry_current" maxval="%player_parry_base" baseval="%player_parry_base" tooltip="uittIdentityParry" level="%player_parry_current" mod="%player_parry_success_mod"/>
</group> </group>
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/> <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/>
@ -406,80 +395,66 @@
<instance template="faction_points_widget" id="fp" posref="TL TL" x="0" y="-555" /> <instance template="faction_points_widget" id="fp" posref="TL TL" x="0" y="-555" />
--> -->
<!-- </group> --> </group>
<!--
<group id="ring_skills" sizeref="wh" w="0" y="0" h="0" posref="TL TL"> <group id="ring_skills" sizeref="wh" w="0" y="0" h="0" posref="TL TL">
<instance template="ecosystem_points_widget" id="ep" posref="TL TL" x="0" y="-10" />
<group id="ecosystem_points" posref="TL TL" y="-35" sizeref="w5" w="-4" child_resize_h="true" child_resize_hmargin="16"> <instance template="faction_points_widget" id="fp" posparent="ep" posref="BL TL" x="0" y="-10" />
<instance template="org_points_widget" id="op" posparent="fp" posref="BL TL" x="0" y="-10" />
<instance template="inner_thin_border_group" /> <group id="pvp_points" posparent="op" posref="BL TL" sizeref="w" w="-1" h="50" y="-10">
<view type="text" id="pvppoints_t" posref="TL TL" x="0" y="0" hardtext="uiPvpPoints" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
<instance template="ecosystem_points" id="basic" posref="TL TL" x="8" y="-8" w="-16" tooltip="uiR2EDBasicsPointsTooltip" <group id="black" posref="TL TL" x="0" sizeref="w" y="-18" w="0" h="30" inherit_gc_alpha="true">
text="uiR2EDBasicsPoints"/> <view type="bitmap" id="icon" posref="ML ML" x="8" y="0" inherit_gc_alpha="false" texture="points_pvp_24.tga" global_color="false" />
<view type="text" id="total" posref="ML ML" x="34" y="0" hardtext="uiPvpTotal" shadow="true" color="255 255 255 255" global_color="true" fontsize="12" />
<instance template="ecosystem_points" id="desert" posparent="basic" posref="BL TL" y="0" tooltip="uiR2EDDesertPointsTooltip" <view type="text_number" id="val" posref="MR MR" x="-8" y="0" color="255 255 255 255" global_color="true" fontsize="12" value="SERVER:USER:RRPS_LEVELS0:VALUE" shadow="true" />
text="uiR2EDDesertPoints"/> </group>
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
<instance template="ecosystem_points" id="subtropic" posparent="desert" posref="BL TL" y="0" tooltip="uiR2EDSubtropicPointsTooltip" </group>
text="uiR2EDSubtropicPoints"/> <group id="ark_points" posparent="pvp_points" posref="BL TL" sizeref="wh" h="200" w="0" y="-5">
<view type="text" id="arkpoints_t" posref="TL TL" x="0" y="0" hardtext="uiR2EDRrpsLevelTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
<instance template="ecosystem_points" id="forest" posparent="subtropic" posref="BL TL" y="0" tooltip="uiR2EDForestPointsTooltip" <group id="black" posref="TL TL" x="0" sizeref="w" y="-16" w="0" h="210" inherit_gc_alpha="true">
text="uiR2EDForestPoints"/> <group type="webig_html" id="html" posref="TL TL" url="https://app.ryzom.com/app_arcc/index.php?action=mScript_Run&amp;script_name=DisplayPoints&amp;no_html_header=1" title_prefix="" sizeref="wh" x="-5" y="5" w="0" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="100 255 100 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="10" paragraph_begin_space="1" multi_line_space_factor="0.25" td_begin_space="16" li_begin_space="4" ul_begin_space="12" li_indent="0" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="black2" home="https://app.ryzom.com/app_arcc/index.php?action=mScript_Run&amp;script_name=DisplayPoints&amp;no_html_header=1" browse_next_time="true" form_text_area_group="edit_box_widget_multiline">
<group id="black" posref="BR BR" sizeref="hw" w="-12" h="-12" inherit_gc_alpha="true" />
<instance template="ecosystem_points" id="jungle" posparent="forest" posref="BL TL" y="0" tooltip="uiR2EDJunglePointsTooltip" <view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
text="uiR2EDJunglePoints"/> <group active="1" type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" />
<instance template="ecosystem_points" id="primeroot" posparent="jungle" posref="BL TL" y="0" tooltip="uiR2EDPrimeRootPointsTooltip" </group>
text="uiR2EDPrimeRootPoints"/> </group>
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
</group> </group>
<view type="text" id="ecosystem_points_title" posparent="ecosystem_points" posref="TL BL" x="0" y="0" hardtext="uiR2EDEcosystemPointsTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<group id="level_rrps" posref="TR TL" posparent="ecosystem_points" y="0" x="8" sizeref="w" w="-4" child_resize_h="true" child_resize_hmargin="16">
<instance template="inner_thin_border_group" />
<instance template="level_rrps" id="rrps_20" posref="TL TL" x="8" y="-8" w="-16" tooltip="uiR2EDRrpsLevel20Tooltip"
text="uiR2EDRrpsLevel20" val="%rrps_level_20" />
<instance template="level_rrps" id="rrps_50" posparent="rrps_20" posref="BL TL" y="0" tooltip="uiR2EDRrpsLevel50Tooltip"
text="uiR2EDRrpsLevel50" val="%rrps_level_50" />
<instance template="level_rrps" id="rrps_100" posparent="rrps_50" posref="BL TL" y="0" tooltip="uiR2EDRrpsLevel100Tooltip"
text="uiR2EDRrpsLevel100" val="%rrps_level_100" />
<instance template="level_rrps" id="rrps_150" posparent="rrps_100" posref="BL TL" y="0" tooltip="uiR2EDRrpsLevel150Tooltip"
text="uiR2EDRrpsLevel150" val="%rrps_level_150" />
<instance template="level_rrps" id="rrps_200" posparent="rrps_150" posref="BL TL" y="0" tooltip="uiR2EDRrpsLevel200Tooltip"
text="uiR2EDRrpsLevel200" val="%rrps_level_200" />
<instance template="level_rrps" id="rrps_250" posparent="rrps_200" posref="BL TL" y="0" tooltip="uiR2EDRrpsLevel250Tooltip"
text="uiR2EDRrpsLevel250" val="%rrps_level_250" />
</group> </group>
<view type="text" id="level_rrps_title" posparent="level_rrps" posref="TL BL" x="0" y="0" hardtext="uiR2EDRrpsLevelTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<group id="ring_rating" posref="BL TL" sizeparent="parent" posparent="ecosystem_points" y="-30" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="16">
<instance template="inner_thin_border_group" />
<instance template="ring_rating" id="author_ring_rating" posref="TL TL" x="8" y="-8" w="-16"
text="uiR2EDAuthorRingRating" />
<instance template="ring_rating" id="am_ring_rating" posparent="author_ring_rating" posref="BL TL" y="0"
text="uiR2EDAMRingRating" />
<instance template="ring_rating" id="masterless_ring_rating" posparent="am_ring_rating" posref="BL TL" y="0" <group h="0" id="rpjobs" posref="TL TL" sizeref="wh" w="0" y="0">
text="uiR2EDMasterlessRingRating" /> <ctrl style="text_button_header" button_type="push_button" id="browse_home" posref="TR TR" x="-1" y="-2" hardtext="uiBrowseRefresh" tooltip="uittBrowseRefresh" onclick_l="browse_home" params_l="name=ui:interface:info_player_skills:content:rpjobs:html" />
<group type="webig_html" id="html" posref="TL TL" url="http://app.ryzom.com/app_rpjobs/index.php" title_prefix="" sizeref="wh" x="0" y="-8" w="0" h="0" background_color="0 0 0 255" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="100 255 100 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="10" paragraph_begin_space="1" multi_line_space_factor="0.25" td_begin_space="16" li_begin_space="4" ul_begin_space="12" li_indent="0" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="black2" home="http://app.ryzom.com/app_rpjobs/index.php" browse_next_time="true" form_text_area_group="edit_box_widget_multiline">
<group id="black" posref="BR BR" sizeref="hw" w="-12" h="-12" inherit_gc_alpha="true" />
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
</group> </group>
<view type="text" id="ring_rating_title" posparent="ring_rating" posref="TL BL" x="0" y="0" hardtext="uiR2EDRingRatingTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12"/>
<group h="0" id="webinfos" posref="TL TL" sizeref="wh" w="0" y="0">
<group id="title" posref="TL TL" sizeref="w" active="false" w="-1" h="24" y="-8">
<view type="text" id="player_title_txt" posref="TL TL" x="8" y="-4" hardtext="uiPlayerTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
<group type="combo_box" id="player_title" w="300" h="20" value="UI:TITLE" posparent="player_title_txt" posref="TR TL" x="4" y="4" on_select_start="title_combobox_button">
<instance template="combo_box_def1" />
</group> </group>
--> <instance template="text_tt" posparent="player_title" tooltip="uittIdentityTitle" />
<link expr="@UI:TITLE" action="title_combobox_changed" />
</group>
<ctrl style="text_button_16" id="inf" posref="TR TR" active="false" y="-2" x="-70" hardtext="uiInfo" tooltip="uittIdentityInfo" onclick_l="open_title_help" params_l="from=user" />
<ctrl style="text_button_header" button_type="push_button" id="browse_home" posref="TR TR" x="-1" y="-2" hardtext="uiBrowseRefresh" tooltip="uittBrowseRefresh" onclick_l="browse_home" params_l="name=ui:interface:info_player_skills:content:webinfos:html" />
<group type="webig_html" id="html" posref="TL TL" url="http://app.ryzom.com/app_profile/index.php" title_prefix="" sizeref="wh" x="0" y="-8" w="0" h="0" background_color="0 0 0 255" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="100 255 100 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="10" paragraph_begin_space="1" multi_line_space_factor="0.25" td_begin_space="16" li_begin_space="4" ul_begin_space="12" li_indent="0" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="black2" home="http://app.ryzom.com/app_profile/index.php" browse_next_time="true" form_text_area_group="edit_box_widget_multiline">
<group id="black" posref="BR BR" sizeref="hw" w="-12" h="-12" inherit_gc_alpha="true" />
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
</group>
<view color="166 166 166 255" h="1" id="sep" posparent="info_player_skills_tabs" posref="BR BL" scale="true" sizeparent="parent" sizeref="w" texture="blank.tga" type="bitmap" w="0" />
</group> </group>
</group> </group>
@ -513,7 +488,7 @@
<!-- For now, the KOS system does not work, so pust instead no trade <!-- For now, the KOS system does not work, so pust instead no trade
<ctrl type="tooltip" id="ttp0" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameKOS" /> <ctrl type="tooltip" id="ttp0" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameKOS" />
--> -->
<ctrl type="tooltip" id="ttp0" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameKOS" /> <ctrl type="tooltip" id="ttp0" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameNoTrade" />
<ctrl type="tooltip" id="ttp1" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameNoTrade" /> <ctrl type="tooltip" id="ttp1" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameNoTrade" />
<ctrl type="tooltip" id="ttp2" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameWeakTrade" /> <ctrl type="tooltip" id="ttp2" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameWeakTrade" />
<ctrl type="tooltip" id="ttp3" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameNormal" /> <ctrl type="tooltip" id="ttp3" posref="BL BL" x="0" y="4" h="16" w="10" tooltip="uittFameNormal" />
@ -521,7 +496,7 @@
<view type="bitmap" id="m" texture="blank.tga" posref="BL BL" scale="true" x="0" w="4" h="24" y="0" global_color="false" /> <view type="bitmap" id="m" texture="blank.tga" posref="BL BL" scale="true" x="0" w="4" h="24" y="0" global_color="false" />
<ctrl type="tooltip" id="ttm" posparent="m" x="0" y="0" sizeref="wh" w="0" h="0" on_tooltip="lua:game:updateFameBarTT('#path')" /> <ctrl type="tooltip" id="ttm" posparent="m" x="0" y="0" sizeref="wh" w="0" h="0" on_tooltip="lua:game:updateFameBarTT('#path')" />
<view type="text_number" id="t" posref="BM BM" x="0" y="4" color="255 255 255 255" global_color="false" fontsize="12" value="#path:VALUE" shadow="true" /> <view type="text" id="t" posref="BM BM" x="0" y="4" color="255 255 255 255" global_color="false" fontsize="12" value="#path:VALUE" shadow="true" />
<link expr="depends(@SERVER:FAME:THRESHOLD_TRADE, @SERVER:FAME:THRESHOLD_KOS, @#path:VALUE, @#path:THRESHOLD)" <link expr="depends(@SERVER:FAME:THRESHOLD_TRADE, @SERVER:FAME:THRESHOLD_KOS, @#path:VALUE, @#path:THRESHOLD)"
action="lua:game:updateFameBar('#path')" /> action="lua:game:updateFameBar('#path')" />
@ -530,9 +505,16 @@
<template name="fame_tribe_line" x="0" y="0" w="400" h="28" posref="TL TL" keep="true" id="" path="" > <template name="fame_tribe_line" x="0" y="0" w="400" h="28" posref="TL TL" keep="true" id="" path="" >
<group id="#id" posref="#posref" w="#w" h="#h" x="#x" y="#y" > <group id="#id" posref="#posref" w="#w" h="#h" x="#x" y="#y" >
<instance template="fame_bar" id="fb" x="180" path="#path" /> <view type="bitmap" id="bg" texture="blank.tga" posref="MM MM" scale="true" sizeref="wh" w="0" h="-2" global_color="false" color="255 255 255 10" />
<view type="text" id="t" posref="ML ML" x="4" y="-2" color="255 255 255 255" fontsize="10" value="xxx tribe name" shadow="true" /> <instance template="fame_bar" id="fb" x="180" y="2" path="#path" />
<link expr="or(ne(@#path:VALUE,0),ne(@#path:TREND,0))" target="active" /> <view type="text" id="t" posref="ML ML" x="2" y="0" color="255 255 255 255" fontsize="10" value="xxx tribe name" shadow="true" />
</group>
</template>
<template name="fame_tribe_line_icon" x="0" y="0" w="400" h="28" posref="TL TL" posparent="" keep="true" id="" path="" hardtext="" icon="">
<group id="#id" posref="#posref" posparent="#posparent" w="#w" h="#h" x="#x" y="#y">
<instance template="fame_bar" id="fb" x="180" y="2" path="#path" />
<view type="bitmap" id="icon" posref="ML ML" x="0" y="0" color="255 255 255 255" texture="#icon" inherit_gc_alpha="false" global_color="false" />
<view type="text" id="t" posref="MR ML" posparent="icon" x="4" y="0" color="255 255 255 255" fontsize="10" hardtext="#hardtext" shadow="true" />
</group> </group>
</template> </template>
@ -548,7 +530,7 @@
<group type="container" id="fame" title="uiFameTitle" global_color="false" header_color="UI:SAVE:WIN:COLORS:PLA" <group type="container" id="fame" title="uiFameTitle" global_color="false" header_color="UI:SAVE:WIN:COLORS:PLA"
resizer="false" pop_min_w="420" pop_min_h="310" pop_max_w="420" pop_max_h="800" w="420" h="310" resizer="false" pop_min_w="435" pop_min_h="310" pop_max_w="435" pop_max_h="800" w="435" h="310"
on_active="proc" on_active_params="fame_proc_active" on_active="proc" on_active_params="fame_proc_active"
on_deactive="proc" on_deactive_params="fame_proc_deactive" on_deactive="proc" on_deactive_params="fame_proc_deactive"
lockable="true" openable="false" opened="true" movable="true" active="false" title_class="formated"> lockable="true" openable="false" opened="true" movable="true" active="false" title_class="formated">
@ -579,17 +561,17 @@
</group> </group>
<group id="content" x="0" y="0" h="272" posref="TL TL" > <group id="content" x="0" y="0" h="330" posref="TL TL">
<group id="you" posref="TL TL" x="0" y="-12" sizeref="wh" w="0" h="0" lua_class="game:initFamePos()" > <group id="you" posref="TL TL" x="0" y="-4" sizeref="wh" w="0" h="0">
<!-- Civilisation --> <!-- Civilisation -->
<view type="text" id="fyros" posref="TL TL" x="4" y="-10" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameFyros" /> <instance template="fame_tribe_line_icon" x="8" y="-4" posref="TL TL" id="fyros" path="SERVER:FAME:PLAYER1" hardtext="uiFameFyros" icon="points_fyros_24.tga" />
<view type="text" id="matis" posref="TL TL" x="4" y="-38" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameMatis" /> <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="matis" posparent="fyros" path="SERVER:FAME:PLAYER0" hardtext="uiFameMatis" icon="points_matis_24.tga" />
<view type="text" id="tryker" posref="TL TL" x="4" y="-66" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameTryker" /> <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="tryker" posparent="matis" path="SERVER:FAME:PLAYER2" hardtext="uiFameTryker" icon="points_tryker_24.tga" />
<view type="text" id="zorai" posref="TL TL" x="4" y="-94" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameZorai" /> <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="zorai" posparent="tryker" path="SERVER:FAME:PLAYER3" hardtext="uiFameZorai" icon="points_zorai_24.tga" />
<group id="civ_allegiance_group" posref="TL TL" x="4" y="-130" child_resize_h="true" child_resize_w="true" > <group id="civ_allegiance_group" x="0" y="-8" posref="BL TL" posparent="zorai" child_resize_h="true" child_resize_w="true">
<view type="text" id="civ_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCiv" /> <view type="text" id="civ_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCiv" />
<view type="text" id="civ_allegiance_val" posparent="civ_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" /> <view type="text" id="civ_allegiance_val" posparent="civ_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" />
<link expr="@SERVER:FAME:CIV_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:FAME:CIV_ALLEGIANCE', 'civ_allegiance_val')" /> <link expr="@SERVER:FAME:CIV_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:FAME:CIV_ALLEGIANCE', 'civ_allegiance_val')" />
@ -597,18 +579,19 @@
</group> </group>
<ctrl style="text_button_16" id="neutral_civ" <ctrl style="text_button_16" id="neutral_civ"
active = "false" active="false"
posparent="civ_allegiance_group" posref="MR ML" x="14" y="2" posparent="civ_allegiance_group"
posref="MR ML" x="14" y="0"
hardtext="uiFameAllegianceCivSetNeutral" tooltip="uiFameAllegianceCivSetNeutralTT" hardtext="uiFameAllegianceCivSetNeutral" tooltip="uiFameAllegianceCivSetNeutralTT"
onclick_l="fame_set_neutral" params_l="type=civ|force=0" global_color="true" /> onclick_l="fame_set_neutral" params_l="type=civ|force=0" global_color="true" />
<!-- <link expr="and(eq(@SERVER:FAME:CIV_ALLEGIANCE, 0),not(eq(@UI:VARIABLES:CDB_INIT_IN_PROGRESS, 0)))" target="neutral_civ:active" /> -->
<link expr="and(eq(@SERVER:FAME:CIV_ALLEGIANCE, 0),not(isDBInitInProgress()))" target="neutral_civ:active" /> <link expr="and(eq(@SERVER:FAME:CIV_ALLEGIANCE, 0),not(isDBInitInProgress()))" target="neutral_civ:active" />
<!-- Cult --> <!-- Cult -->
<view type="text" id="kami" posref="TL TL" x="4" y="-180" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameKami" /> <instance template="fame_tribe_line_icon" x="0" y="-14" posref="BL TL" id="kami" posparent="civ_allegiance_group" path="SERVER:FAME:PLAYER4" hardtext="uiFameKami" icon="points_kami_24.tga" />
<view type="text" id="karavan" posref="TL TL" x="4" y="-208" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameKaravan" /> <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="karavan" posparent="kami" path="SERVER:FAME:PLAYER5" hardtext="uiFameKaravan" icon="points_karavan_24.tga" />
<instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="black_kami" posparent="karavan" path="SERVER:FAME:PLAYER6" hardtext="uiFameMarauders" icon="points_marauder_24.tga" />
<group id="cult_allegiance_group" posref="TL TL" x="4" y="-240" child_resize_h="true" child_resize_w="true" > <group id="cult_allegiance_group" posref="BL TL" x="0" y="-8" posparent="black_kami" child_resize_h="true" child_resize_w="true">
<view type="text" id="cult_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCult" /> <view type="text" id="cult_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCult" />
<view type="text" id="cult_allegiance_val" posparent="cult_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" /> <view type="text" id="cult_allegiance_val" posparent="cult_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" />
<link expr="@SERVER:FAME:CULT_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:FAME:CULT_ALLEGIANCE', 'cult_allegiance_val')" /> <link expr="@SERVER:FAME:CULT_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:FAME:CULT_ALLEGIANCE', 'cult_allegiance_val')" />
@ -616,31 +599,36 @@
</group> </group>
<ctrl style="text_button_16" id="neutral_cult" <ctrl style="text_button_16" id="neutral_cult"
active = "false" active="false"
posparent="cult_allegiance_group" posref="MR ML" x="14" y="2" posparent="cult_allegiance_group" posref="MR ML" x="14" y="0"
hardtext="uiFameAllegianceCultSetNeutral" tooltip="uiFameAllegianceCultSetNeutralTT" hardtext="uiFameAllegianceCultSetNeutral" tooltip="uiFameAllegianceCultSetNeutralTT"
onclick_l="fame_set_neutral" params_l="type=cult|force=0" global_color="true" /> onclick_l="fame_set_neutral" params_l="type=cult|force=0" global_color="true" />
<!-- <link expr="and(eq(@SERVER:FAME:CULT_ALLEGIANCE, 0),not(eq(@UI:VARIABLES:CDB_INIT_IN_PROGRESS, 0)))" target="neutral_cult:active" /> -->
<link expr="and(eq(@SERVER:FAME:CULT_ALLEGIANCE, 0),not(isDBInitInProgress()))" target="neutral_cult:active" /> <link expr="and(eq(@SERVER:FAME:CULT_ALLEGIANCE, 0),not(isDBInitInProgress()))" target="neutral_cult:active" />
<!-- pool of bars (dynamically y-positionned from lua script) --> <!-- Organization -->
<instance template="fame_bar" id="fb0" x="194" path="SERVER:FAME:PLAYER0" /> <view type="text" id="organization_text" posref="TL BL" posparent="organization" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiOrganization" />
<instance template="fame_bar" id="fb1" x="194" path="SERVER:FAME:PLAYER1" /> <group id="organization" posref="BL BL" x="8" y="8" h="34" w="-12" sizeref="w">
<instance template="fame_bar" id="fb2" x="194" path="SERVER:FAME:PLAYER2" /> <view type="text" id="name" posref="TL TL" x="2" y="-5" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" hardtext="" />
<instance template="fame_bar" id="fb3" x="194" path="SERVER:FAME:PLAYER3" /> <view type="text" id="text_points" posref="BL BL" x="4" y="2" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiPoints" />
<instance template="fame_bar" id="fb4" x="194" path="SERVER:FAME:PLAYER4" /> <view type="text" id="points" posparent="text_points" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" hardtext="0" />
<instance template="fame_bar" id="fb5" x="194" path="SERVER:FAME:PLAYER5" /> <view type="text" id="status" posref="BR BR" x="-4" y="2" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" hardtext="0" />
<view type="text" id="text_status" posparent="status" posref="ML MR" x="-4" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiSkillJobLVL" />
<link expr="@SERVER:USER:RRPS_LEVELS1" action="lua:game:updateOrganization('SERVER:USER:RRPS_LEVELS', 'name', 'status', 'points')" />
<link expr="@SERVER:USER:RRPS_LEVELS2" action="lua:game:updateOrganization('SERVER:USER:RRPS_LEVELS', 'name', 'status', 'points')" />
<link expr="@SERVER:USER:RRPS_LEVELS3" action="lua:game:updateOrganization('SERVER:USER:RRPS_LEVELS', 'name', 'status', 'points')" />
<instance template="text_tt" posparent="parent" on_tooltip="lua:game:organizationTooltip()" />
<instance template="inner_thin_border" inherit_gc_alpha="true" />
</group> </group>
</group>
<group id="guild" posref="TL TL" x="0" y="-12" sizeref="wh" w="0" h="0" lua_class="game:initFamePos()" > <group id="guild" posref="TL TL" x="0" y="-4" sizeref="wh" w="0" h="0">
<!-- Civilisation --> <!-- Civilisation -->
<view type="text" id="fyros" posref="TL TL" x="4" y="-10" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameFyros" /> <instance template="fame_tribe_line_icon" x="8" y="-4" posref="TL TL" id="fyros" path="SERVER:GUILD:FAME:1" hardtext="uiFameFyros" icon="points_fyros_24.tga" />
<view type="text" id="matis" posref="TL TL" x="4" y="-38" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameMatis" /> <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="matis" posparent="fyros" path="SERVER:GUILD:FAME:0" hardtext="uiFameMatis" icon="points_matis_24.tga" />
<view type="text" id="tryker" posref="TL TL" x="4" y="-66" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameTryker" /> <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="tryker" posparent="matis" path="SERVER:GUILD:FAME:2" hardtext="uiFameTryker" icon="points_tryker_24.tga" />
<view type="text" id="zorai" posref="TL TL" x="4" y="-94" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameZorai" /> <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="zorai" posparent="tryker" path="SERVER:GUILD:FAME:3" hardtext="uiFameZorai" icon="points_zorai_24.tga" />
<group id="civ_allegiance_group" posref="TL TL" x="4" y="-130" child_resize_h="true" child_resize_w="true" > <group id="civ_allegiance_group" x="0" y="-8" posref="BL TL" posparent="zorai" child_resize_h="true" child_resize_w="true">
<view type="text" id="civ_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCiv" /> <view type="text" id="civ_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCiv" />
<view type="text" id="civ_allegiance_val" posparent="civ_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" /> <view type="text" id="civ_allegiance_val" posparent="civ_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" />
<link expr="@SERVER:GUILD:FAME:CIV_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:GUILD:FAME:CIV_ALLEGIANCE', 'civ_allegiance_val')" /> <link expr="@SERVER:GUILD:FAME:CIV_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:GUILD:FAME:CIV_ALLEGIANCE', 'civ_allegiance_val')" />
@ -655,36 +643,29 @@
<link expr="ne(@UI:VARIABLES:USER:GUILD_GRADE, 0)" target="neutral_civ:frozen" /> <link expr="ne(@UI:VARIABLES:USER:GUILD_GRADE, 0)" target="neutral_civ:frozen" />
<!-- Cult --> <!-- Cult -->
<view type="text" id="kami" posref="TL TL" x="4" y="-180" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameKami" /> <instance template="fame_tribe_line_icon" x="0" y="-14" posref="BL TL" id="kami" posparent="civ_allegiance_group" path="SERVER:GUILD:FAME:4" hardtext="uiFameKami" icon="points_kami_24.tga" />
<view type="text" id="karavan" posref="TL TL" x="4" y="-208" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiFameKaravan" /> <instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="karavan" posparent="kami" path="SERVER:GUILD:FAME:5" hardtext="uiFameKaravan" icon="points_karavan_24.tga" />
<instance template="fame_tribe_line_icon" x="0" y="0" posref="BL TL" id="black_kami" posparent="karavan" path="SERVER:GUILD:FAME:6" hardtext="uiFameMarauders" icon="points_marauder_24.tga" />
<group id="cult_allegiance_group" posref="TL TL" x="4" y="-240" child_resize_h="true" child_resize_w="true" > <group id="cult_allegiance_group" posref="BL TL" x="0" y="-8" posparent="black_kami" child_resize_h="true" child_resize_w="true">
<view type="text" id="cult_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCult" /> <view type="text" id="cult_allegiance" posref="TL TL" x="0" y="0" color="255 255 255 255" fontsize="10" global_color="true" shadow="true" hardtext="uiFameAllegianceCult" />
<view type="text" id="cult_allegiance_val" posparent="cult_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" /> <view type="text" id="cult_allegiance_val" posparent="cult_allegiance" posref="MR ML" x="4" y="0" color="255 255 255 255" fontsize="10" global_color="false" shadow="true" />
<link expr="@SERVER:GUILD:FAME:CULT_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:GUILD:FAME:CULT_ALLEGIANCE', 'cult_allegiance_val')" /> <link expr="@SERVER:GUILD:FAME:CULT_ALLEGIANCE" action="lua:game:updateAllegiance('SERVER:GUILD:FAME:CULT_ALLEGIANCE', 'cult_allegiance_val')" />
<instance template="text_tt" posparent="parent" on_tooltip="lua:game:fameAllegianceTooltipCultGuild()" /> <instance template="text_tt" posparent="parent" on_tooltip="lua:game:fameAllegianceTooltipCultGuild()" />
</group> </group>
<ctrl style="text_button_16" id="neutral_cult" <ctrl style="text_button_16" id="neutral_cult"
posparent="cult_allegiance_group" posref="MR ML" x="14" y="2" posparent="cult_allegiance_group" posref="MR ML" x="14" y="2"
hardtext="uiFameAllegianceCultSetNeutral" tooltip="uiFameAllegianceCultSetNeutralGuildTT" hardtext="uiFameAllegianceCultSetNeutral" tooltip="uiFameAllegianceCultSetNeutralGuildTT"
onclick_l="fame_set_neutral" params_l="type=cult_guild|force=0" global_color="true" /> onclick_l="fame_set_neutral" params_l="type=cult_guild|force=0" global_color="true" />
<link expr="eq(@SERVER:GUILD:FAME:CULT_ALLEGIANCE, 0)" target="neutral_cult:active" /> <link expr="eq(@SERVER:GUILD:FAME:CULT_ALLEGIANCE, 0)" target="neutral_cult:active" />
<link expr="ne(@UI:VARIABLES:USER:GUILD_GRADE, 0)" target="neutral_cult:frozen" /> <link expr="ne(@UI:VARIABLES:USER:GUILD_GRADE, 0)" target="neutral_cult:frozen" />
<instance template="fame_bar" id="fb0" x="194" path="SERVER:GUILD:FAME:0" />
<instance template="fame_bar" id="fb1" x="194" path="SERVER:GUILD:FAME:1" />
<instance template="fame_bar" id="fb2" x="194" path="SERVER:GUILD:FAME:2" />
<instance template="fame_bar" id="fb3" x="194" path="SERVER:GUILD:FAME:3" />
<instance template="fame_bar" id="fb4" x="194" path="SERVER:GUILD:FAME:4" />
<instance template="fame_bar" id="fb5" x="194" path="SERVER:GUILD:FAME:5" />
</group> </group>
<group id="tribes" posref="TL TL" x="0" y="-4" sizeref="wh" w="0" h="-10" lua_class="game:initFameTribe()" > <group id="tribes" posref="TL TL" x="0" y="-4" sizeref="wh" w="0" h="-10" lua_class="game:initFameTribe()">
<group id="black" posparent="list" posref="TL TL" x="-14" sizeref="wh" w="-16" h="4" inherit_gc_alpha="true" /> <group id="black" posparent="list" posref="TL TL" x="-4" sizeref="wh" w="-3" h="4" inherit_gc_alpha="true" />
<!--<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/> --> <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
<group id="list" type="list" posref="TL TL" x="14" y="-4" sizeref="wh" w="-20" h="-6" > <group id="list" type="list" posref="TL TL" x="16" y="-4" sizeref="wh" w="-12" h="-6">
<vector template="fame_tribe_line" _size="%max_fame_tribe" _firstpos="TL TL" _nextpos="BL TL" index="$i" id="line$i" path="SERVER:FAME:TRIBE$i" /> <vector template="fame_tribe_line" _size="%max_fame_tribe" _firstpos="TL TL" _nextpos="BL TL" index="$i" id="line$i" path="SERVER:FAME:TRIBE$i" />
</group> </group>
@ -692,13 +673,13 @@
</group> </group>
<!-- TODO_SPIRE: when spire OK, remove active="false". see TODO_SPIRE --> <!-- TODO_SPIRE: when spire OK, remove active="false". see TODO_SPIRE -->
<group id="pvp" posref="TL TL" x="0" y="-4" sizeref="wh" w="0" h="-10" active="false" > <group id="pvp" posref="TL TL" x="0" y="-4" sizeref="wh" w="0" h="-10" active="false">
<!-- Texts --> <!-- Texts -->
<view type="text" id="allegiance_header" posref="TL TL" x="4" y="-10" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpFameAllegiance" multi_line="true" multi_line_space="0" global_color="false"/> <view type="text" id="allegiance_header" posref="TL TL" x="4" y="-10" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpFameAllegiance" multi_line="true" multi_line_space="0" global_color="false" />
<view type="text" id="cult_allegiance_pts" posparent="allegiance_header" posref="BL TL" x="0" y="-4" color="255 255 255 255" fontsize="10" shadow="true" hardtext="" multi_line="true" multi_line_space="0"/> <view type="text" id="cult_allegiance_pts" posparent="allegiance_header" posref="BL TL" x="0" y="-4" color="255 255 255 255" fontsize="10" shadow="true" hardtext="" multi_line="true" multi_line_space="0" />
<view type="text" id="civ_allegiance_pts" posparent="cult_allegiance_pts" posref="BL TL" x="0" y="0" color="255 255 255 255" fontsize="10" shadow="true" hardtext="" multi_line="true" multi_line_space="0"/> <view type="text" id="civ_allegiance_pts" posparent="cult_allegiance_pts" posref="BL TL" x="0" y="-8" color="255 255 255 255" fontsize="10" shadow="true" hardtext="" multi_line="true" multi_line_space="0" />
<view type="text" id="pvpEffectsInfo" posparent="civ_allegiance_pts" posref="BL TL" x="0" y="0" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpEffectInfo" multi_line="true" multi_line_space="0" global_color="false"/> <view type="text" id="pvpEffectsInfo" posparent="civ_allegiance_pts" posref="BL TL" x="0" y="0" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpEffectInfo" multi_line="true" multi_line_space="0" global_color="false" />
<!-- Tooltips --> <!-- Tooltips -->
<instance template="text_tt" posparent="allegiance_header" tooltip="uittPvpFameAllegianceInfo" /> <instance template="text_tt" posparent="allegiance_header" tooltip="uittPvpFameAllegianceInfo" />
@ -709,12 +690,12 @@
<!-- Black background --> <!-- Black background -->
<group id="black" posref="TL TL" x="10" y="-85" sizeparent="parent" sizeref="wh" w="-14" h="-85" inherit_gc_alpha="true" /> <group id="black" posref="TL TL" x="10" y="-85" sizeparent="parent" sizeref="wh" w="-14" h="-85" inherit_gc_alpha="true" />
<instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true"/> <instance template="inner_thin_border" posparent="black" inherit_gc_alpha="true" />
<!-- Spire effects with scroll bar --> <!-- Spire effects with scroll bar -->
<group id="list" posref="TL TL" x="10" y="-88" sizeparent="parent" sizeref="w" w="-14" h="0" max_sizeparent="parent" max_sizeref="h" max_h="-91" child_resize_h="true" child_resize_hmargin="8"> <group id="list" posref="TL TL" x="10" y="-88" sizeparent="parent" sizeref="w" w="-14" h="0" max_sizeparent="parent" max_sizeref="h" max_h="-91" child_resize_h="true" child_resize_hmargin="8">
<view type="text" id="pvpEffectsBonusMalusInfo" posref="TL TL" x="4" y="-2" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpFameNoCivAllegiance" multi_line="true" multi_line_space="0" global_color="false"/> <view type="text" id="pvpEffectsBonusMalusInfo" posref="TL TL" x="4" y="-2" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpFameNoCivAllegiance" multi_line="true" multi_line_space="0" global_color="false" />
<view type="text" id="pvpEffectsBonusMalus" posparent="pvpEffectsBonusMalusInfo" posref="BL TL" x="4" y="-4" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpFameNoCivAllegiance" multi_line="true" multi_line_space="0"/> <view type="text" id="pvpEffectsBonusMalus" posparent="pvpEffectsBonusMalusInfo" posref="BL TL" x="4" y="-4" color="255 255 255 255" fontsize="10" shadow="true" hardtext="uiPvpFameNoCivAllegiance" multi_line="true" multi_line_space="0" />
<!-- Update spire effects --> <!-- Update spire effects -->
<link expr="depends(@SERVER:PVP_EFFECTS)" action="lua:game:getPvpEffects()" /> <link expr="depends(@SERVER:PVP_EFFECTS)" action="lua:game:getPvpEffects()" />
@ -762,7 +743,7 @@
<!-- Change Title --> <!-- Change Title -->
<template name="t_mission_proc_title_step" nb=""> <template name="t_mission_proc_title_step" nb="">
<action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:step#nb:textid_dblink|value='SERVER:MISSIONS:@0:GOALS:#nb:TEXT'" /> <!-- <action handler="set" params="target_property=ui:interface:info_player_journal:content:desc:step#nb:textid_dblink|value='SERVER:MISSIONS:@0:GOALS:#nb:TEXT'" /> -->
<action handler="remove_link" params="id=mission_link_step#nb" /> <action handler="remove_link" params="id=mission_link_step#nb" />
<action handler="add_link" params="id=mission_link_step#nb|expr=ne(@SERVER:MISSIONS:@0:GOALS:#nb:TEXT,0)|target=ui:interface:info_player_journal:content:desc:step#nb:active|action=lua|params=game:onNewMissionStepAdded(#nb)" /> <action handler="add_link" params="id=mission_link_step#nb|expr=ne(@SERVER:MISSIONS:@0:GOALS:#nb:TEXT,0)|target=ui:interface:info_player_journal:content:desc:step#nb:active|action=lua|params=game:onNewMissionStepAdded(#nb)" />
</template> </template>
@ -951,7 +932,7 @@
<!-- mission combo box menu --> <!-- mission combo box menu -->
<group id="mission_cb_menu" type="modal" mouse_pos="false" exit_click_out="true" w="300" h="300" active="false"> <group id="mission_cb_menu" type="modal" mouse_pos="false" exit_click_out="true" w="300" h="300" active="false">
<group id="mission_list" active="true" posref="TL TL" x="0" y="-2" sizeref="w" w="-16" child_resize_h="true" child_resize_hmargin="2" max_sizeref="wh" max_w="-4" max_h="-4" > <group id="mission_list" active="true" posref="TL TL" x="6" y="-2" sizeref="w" w="-10" child_resize_h="true" child_resize_hmargin="2" max_sizeref="wh" max_w="-4" max_h="-4" >
<vector template="t_mission_title" _size="%ipj_nb_mission" _firstpos="TL TL" _nextpos="BL TL" _xfirst="0" id="title$i" stepindex="$i" /> <vector template="t_mission_title" _size="%ipj_nb_mission" _firstpos="TL TL" _nextpos="BL TL" _xfirst="0" id="title$i" stepindex="$i" />
<vector template="t_group_mission_title" posparent="%ipj_last_title" _size="%ipj_nb_group_mission" _firstpos="BL TL" _nextpos="BL TL" _xfirst="0" id="group_title$i" stepindex="$i" /> <vector template="t_group_mission_title" posparent="%ipj_last_title" _size="%ipj_nb_group_mission" _firstpos="BL TL" _nextpos="BL TL" _xfirst="0" id="group_title$i" stepindex="$i" />
</group> </group>
@ -987,14 +968,14 @@
<group type="menu" id="mission_journal_menu" extends="base_menu_with_color"> <group type="menu" id="mission_journal_menu" extends="base_menu_with_color">
<action id="caption_toggle" name="uiCaptionToggle" handler="lua:game:toggleMissionJournalCaption()"/> <action id="caption_toggle" name="uiCaptionToggle" handler="lua:game:toggleMissionJournalCaption()" icon="r2_icon_properties.tga" />
</group> </group>
<!-- Main container : info_player_journal --> <!-- Main container : info_player_journal -->
<group type="container" id="info_player_journal" w="280" h="182" title="uiJournalTitle" <group type="container" id="info_player_journal" w="280" h="382" title="uiJournalTitle"
global_color="false" opened="true" openable="false" header_color="UI:SAVE:WIN:COLORS:PLA" global_color="false" opened="true" openable="false" header_color="UI:SAVE:WIN:COLORS:PLA"
resizer="true" pop_min_w="292" pop_min_h="152" pop_max_w="800" pop_max_h="800" resizer="true" pop_min_w="292" pop_min_h="137" pop_max_w="800" pop_max_h="800"
movable="true" active="false" movable="true" active="false"
on_active="proc" on_active_params="mission_proc_active" on_active="proc" on_active_params="mission_proc_active"
on_deactive="set" on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:MISSIONS|value=0" on_deactive="set" on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:MISSIONS|value=0"
@ -1030,15 +1011,29 @@
<group id="content" x="0" y="0" w="0" h="0" posref="TL TL" <group id="content" x="0" y="0" w="0" h="0" posref="TL TL"
group_onclick_r="active_menu" group_params_r="menu=ui:interface:mission_journal_menu" group_onclick_r="active_menu" group_params_r="menu=ui:interface:mission_journal_menu"
> >
<group id="mission_combo" type="group_wheel" posref="TL TL" x="0" y="-6" sizeref="w" w="-21" h="20"
<group id="cap_group" x="0" y="0" sizeref="w" w="0" h="48" posref="TL TL" active="true">
<view type="bitmap" id="cap_icon" w="40" h="40" y="0" scale="true" global_color="false" color="255 255 255 255" texture="ico_task_generic.tga" />
<view type="bitmap" id="cap_mini_icon" w="15" h="15" scale="true" posref="TR TL" posparent="cap_icon" x="2" y="0" texture="ico_cap_mini.tga" global_color="false" inherit_gc_alpha="false" />
<view type="text" id="cap_title" x="2" y="0" shadow="true" global_color="false" posref="TR TL" posparent="cap_mini_icon" color="255 189 0 255" fontsize="12" hardtext="uiWelcomeWhatTitle" />
<view type="text" id="cap_desc" x="4" y="-15" global_color="false" posref="TR TL" posparent="cap_icon" fontsize="10" hardtext="uittMissionJournal" />
<view type="bar" id="cap_progress" active="false" posparent="cap_icon" posref="TR TL" x="4" y="-32" mini="true" value="UI:TEMP:CAP_PROGRESS" range="100" />
<view type="text" id="cap_infos" posparent="cap_icon" posref="TR TL" sizeref="w" x="72" y="-28" global_color="false" fontsize="10" hardtext="" />
<ctrl type="button" button_type="push_button" id="cap_ctrl" w="-22" h="40" x="0" y="0" sizeref="w" col_over="255 255 255 90" tx_over="blank.tga" scale="true" onclick_l="lua:game:openInfosUrl()" tooltip="uittExpandMissionList" tooltip_posref="TR TL"/>
<ctrl type="button" active="true" button_type="push_button" id="expand_mission_list" posparent="cap_ctrl" posref="TR TL" w="20" h="20" x="-1" y="-2" scale="true" color="192 192 192 255" tx_normal="w_pad_popup.tga" col_over="255 255 255 225" tx_over="w_pad_popup.tga" col_pushed="192 192 192 255" tx_pushed="w_pad_popup.tga" tooltip="uittShowCapPopup" onclick_l="lua:game:switchCapPopup()" />
<ctrl type="button" active="true" button_type="push_button" id="show_in_map" posparent="cap_ctrl" posref="TR TL" w="20" h="20" x="-1" y="-24" scale="true" color="192 192 192 255" tx_normal="lm_mission.tga" col_over="255 255 255 225" tx_over="lm_mission.tga" col_pushed="192 192 192 255" tx_pushed="lm_mission.tga" tooltip="uittShowCapInMap" onclick_l="lua:game:showCapInMap()" />
</group>
<group id="mission_combo" type="group_wheel" posref="TL TL" x="2" y="-52" sizeref="w" w="-26" h="24"
on_wheel_up="lua" on_wheel_up_params="game:onMissionComboWheelUp()" on_wheel_up="lua" on_wheel_up_params="game:onMissionComboWheelUp()"
on_wheel_down="lua" on_wheel_down_params="game:onMissionComboWheelDown()" on_wheel_down="lua" on_wheel_down_params="game:onMissionComboWheelDown()"
> >
<!-- DECORATION --> <!-- DECORATION -->
<instance template="box_widget" id="back" sizeref="wh" w="0" h="0" /> <instance template="box_widget" id="back" sizeref="wh" w="0" h="0" />
<view type="bitmap" active="false" id="arrow" posref="MR MR" x="-2" texture="W_arrow_down_0.tga"/> <view type="bitmap" active="false" id="arrow" posref="MR MR" x="-2" texture="W_arrow_down_0.tga"/>
<view type="bitmap" active="false" id="mission_ico" posref="ML ML" x="1" y="0" texture="Small_Task_Generic.tga" global_color="false" inherit_gc_alpha="false" /> <view type="bitmap" active="false" id="mission_ico" posref="ML ML" x="4" y="0" texture="Small_Task_Generic.tga" global_color="false" inherit_gc_alpha="false" />
<view type="text_id" active="false" id="mission_title" posparent="mission_ico" x="4" y="0" posref="MR ML" fontsize="10" textid="SERVER:MISSIONS:0:TITLE" <view type="text_id" active="false" id="mission_title" posparent="mission_ico" x="6" y="0" posref="MR ML" fontsize="10" textid="SERVER:MISSIONS:0:TITLE"
over_extend_view_text="true" over_extend_view_text="true"
auto_clamp="true" auto_clamp="true"
auto_clamp_offset="16" auto_clamp_offset="16"
@ -1056,43 +1051,32 @@
<view type="text" id="no_selected_mission" active="false" x="4" y="0" posref="ML ML" fontsize="10" hardtext="uiClickToSelectAMission"/> <view type="text" id="no_selected_mission" active="false" x="4" y="0" posref="ML ML" fontsize="10" hardtext="uiClickToSelectAMission"/>
<view type="text" id="no_available_mission" active="true" x="4" y="0" posref="ML ML" fontsize="10" hardtext="uiNoAvailableMission"/> <view type="text" id="no_available_mission" active="true" x="4" y="0" posref="ML ML" fontsize="10" hardtext="uiNoAvailableMission"/>
</group> </group>
<ctrl style="skin_scroll" id="sv" posref="TL TL" x="0" y="-8" target="mission_list" target_stepy="18" /> <ctrl style="skin_scroll" id="sv" posref="TL TL" x="0" y="-52" target="mission_list" target_stepy="18" />
<ctrl type="button" active="true" button_type="push_button" id="expand_mission_list" w="20" h="16" scale="false" <ctrl type="button" active="true" button_type="push_button" id="expand_mission_list" w="20" h="20" x="-1" y="-52" scale="true"
color="192 192 192 255" tx_normal="Switch_Ratio.tga" color="192 192 192 255" tx_normal="Switch_Ratio.tga"
col_over="255 255 255 225" tx_over="Switch_Ratio.tga" col_over="255 255 255 225" tx_over="Switch_Ratio.tga"
col_pushed="192 192 192 255" tx_pushed="Switch_Ratio.tga" col_pushed="192 192 192 255" tx_pushed="Switch_Ratio.tga"
posref="TR TR" x="2" y="-10" posref="TR TR"
tooltip="uittExpandMissionList" tooltip="uittExpandMissionList"
onclick_l="lua:game:expandMissionList()" onclick_l="lua:game:expandMissionList()"
/> />
<group id="fake" posref="TL TL" x="0" y="-8" sizeref="wh5" w="0" h="-42" > <group id="fake" posref="TL TL" x="0" y="-40" sizeref="" w="0" h="42" >
</group> </group>
<!-- <!--
<group id="fake" posref="TL TL" x="0" y="-4" h="0"> <group id="fake" posref="TL TL" x="0" y="-4" h="0">
</group> </group>
--> -->
<group id="separator_bis" posref="BL TL" posparent="fake" sizeparent="parent" sizeref="w" w="0" h="8" x="0" y="0" > <group id="separator" posref="BL TL" posparent="fake" sizeparent="parent" sizeref="w" w="0" h="8" x="0" y="-5" >
<view type="bitmap" id="sep_lef" posref="TL TL" texture="Skin_Sep_L.tga" inherit_gc_alpha="false" />
<view type="bitmap" id="sep_mid" posref="MM MM" scale="true" sizeref="w" w="-16" h="4" texture="Skin_Sep_M.tga" inherit_gc_alpha="false" />
<view type="bitmap" id="sep_rig" posref="TR TR" texture="Skin_Sep_R.tga" inherit_gc_alpha="false" />
</group>
<view type="text" id="mission_fixed_entry" posparent="separator_bis" active="false" y="-2" posref="BL TL" fontsize="10" hardtext="bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla"
over_extend_view_text="true"
auto_clamp="true"
/>
<group id="separator" posref="BL TL" posparent="mission_fixed_entry" sizeparent="parent" sizeref="w" w="0" h="8" x="0" y="0" >
<view type="bitmap" id="sep_lef" posref="TL TL" texture="Skin_Sep_L.tga" inherit_gc_alpha="false" /> <view type="bitmap" id="sep_lef" posref="TL TL" texture="Skin_Sep_L.tga" inherit_gc_alpha="false" />
<view type="bitmap" id="sep_mid" posref="MM MM" scale="true" sizeref="w" w="-16" h="4" texture="Skin_Sep_M.tga" inherit_gc_alpha="false" /> <view type="bitmap" id="sep_mid" posref="MM MM" scale="true" sizeref="w" w="-16" h="4" texture="Skin_Sep_M.tga" inherit_gc_alpha="false" />
<view type="bitmap" id="sep_rig" posref="TR TR" texture="Skin_Sep_R.tga" inherit_gc_alpha="false" /> <view type="bitmap" id="sep_rig" posref="TR TR" texture="Skin_Sep_R.tga" inherit_gc_alpha="false" />
</group> </group>
<group id="desc" posref="BL TL" posparent="separator" x="12" y="0" sizeparent="parent" max_sizeref="wh5" max_w="0" max_h="18" sizeref="w" w="-12" <group id="desc" posref="BL TL" posparent="separator" x="9" y="0" sizeparent="parent" max_sizeref="w" max_w="0" max_h="-42" sizeref="w" w="-12"
child_resize_h="true" child_resize_hmargin="4" h="0" > child_resize_h="true" child_resize_hmargin="24" h="0" >
<group id="uppart" x="0" y="-4" sizeref="w" w="0" h="0" child_resize_h="true" posref="TL TL" > <group id="uppart" x="0" y="-4" sizeref="w" w="0" h="0" child_resize_h="true" posref="TL TL" >
@ -1105,12 +1089,17 @@
</group> </group>
<group id="timer" posparent="uppart" posref="BL TL" x="5" y="-5" child_resize_h="true" child_resize_w="true"> <group id="web" w="0" h="64" posparent="uppart" posref="BL TL" y="-2" x="-5" sizeref="w">
<view id="background_bitmap" type="bitmap" posref="MM MM" sizeref="wh" w="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" color="0 0 0 125" global_color="false" />
<instance template="webig_html_noborder" home="#home" browse_redo="#browse_redo" browse_undo="#browse_undo" browse_refresh="#browse_refresh" x="-1" w="240" y="7" h="64"/>
</group>
<group id="timer" posparent="web" posref="BL TL" x="10" y="-5" child_resize_h="true" child_resize_w="true">
<view type="bar" id="b" ultra_mini="true" posref="TL TL" color="255 255 255 255" value="UI:VARIABLES:CURRENT_SERVER_TICK" range="SERVER:MISSIONS:0:END_DATE" reference="SERVER:MISSIONS:0:BEGIN_DATE" /> <view type="bar" id="b" ultra_mini="true" posref="TL TL" color="255 255 255 255" value="UI:VARIABLES:CURRENT_SERVER_TICK" range="SERVER:MISSIONS:0:END_DATE" reference="SERVER:MISSIONS:0:BEGIN_DATE" />
<view type="text" id="t" posparent="b" posref="TR TL" x="4" color="255 255 255 255" fontsize="8" shadow="true" hardtext="" /> <view type="text" id="t" posparent="b" posref="TR TL" x="4" color="255 255 255 255" fontsize="8" shadow="true" hardtext="" />
</group> </group>
<view type="bitmap" id="bottom_sizer" posparent="uppart" posref="BL TL" x="0" y="-20" texture="blank.tga" color="0 0 0 0" scale="false" global_color="false" /> <view type="bitmap" id="bottom_sizer" posparent="web" posref="BL TL" x="5" y="-22" texture="blank.tga" color="0 0 0 0" scale="false" global_color="false" />
<view type="bitmap" id="mid_sep" posref="BL BL" y="4" posparent="bottom_sizer" sizeparent="parent" scale="true" sizeref="w" w="0" h="2" texture="W_line_hor.tga" /> <view type="bitmap" id="mid_sep" posref="BL BL" y="4" posparent="bottom_sizer" sizeparent="parent" scale="true" sizeref="w" w="0" h="2" texture="W_line_hor.tga" />
@ -1142,6 +1131,16 @@
<tree node="info_player_journal"/> <tree node="info_player_journal"/>
<group id="cap_popup" title="" type="container" posref="MM MM" x="" y="" movable="false" pop_max_h="80" pop_min_h="80" pop_min_w="800" pop_max_w="800" resizer="true" opened="false" openable="false" options="compass" header_active="false" right_button="false">
<group id="html" type="html" posref="TL TL" url="" title_prefix="uiQuickhelpTitle" sizeref="wh" x="0" y="0" w="0" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="patch_off.tga" checkbox_bitmap_pushed="patch_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline" >
<group id="black" posref="BR BR" sizeref="hw" inherit_gc_alpha="true"/>
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" color="0 0 0 0" texture="blank.tga" global_color="false"/>
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000"/>
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
</group>
<tree node="cap_popup" />
<!-- update ui when one goes from start island to mainland --> <!-- update ui when one goes from start island to mainland -->
<link expr="depends(@SERVER:USER:IS_NEWBIE)" action="lua:game:onMissionJournalOpened()" /> <link expr="depends(@SERVER:USER:IS_NEWBIE)" action="lua:game:onMissionJournalOpened()" />
<link expr="depends(@SERVER:USER:IS_TRIAL)" action="lua:game:onMissionJournalOpened()" /> <link expr="depends(@SERVER:USER:IS_TRIAL)" action="lua:game:onMissionJournalOpened()" />
@ -1172,10 +1171,12 @@
<!-- Message popup center --> <!-- Message popup center -->
<template name="message_popup_center" keep="true" posparent="parent" posref="BM BM" id="" > <template name="message_popup_center" keep="true" posparent="parent" posref="BM BM" id="" >
<group id="#id" child_resize_h="true" sizeref="w" w="-50" posparent="#posparent" posref="#posref" win_priority="%win_priority_highest" use_cursor="false"> <group id="#id" child_resize_h="true" sizeref="w9" w="0" posparent="#posparent" posref="#posref" win_priority="%win_priority_highest" use_cursor="false">
<!-- do not change id (used for setting right skill name) --> <!-- do not change id (used for setting right skill name) -->
<view type="text" id="name" fontsize="16" posref="TM TM" shadow="true" global_color="false" line_maxw="1000" multi_line="true" justification="clip_word" /> <view type="text" id="name" fontsize="16" posref="TM TM" shadow="true" global_color="false" line_maxw="1000" multi_line="true" justification="centered" />
<view type="bitmap" id="iconA" posparent="name" posref="ML MR" w="16" h="16" x="-5" color="255 255 255 255" render_layer="1" slot="false" texture="" global_color="false" />
<view type="bitmap" id="iconZ" posparent="name" posref="MR ML" w="16" h="16" x="5" color="255 255 255 255" render_layer="1" slot="false" texture="" global_color="false" />
</group> </group>
@ -1201,25 +1202,55 @@
</template> </template>
<!--***********************-->
<!--* RPJOB TEMPLATES *-->
<!--***********************-->
<template h="48" id="" name="rpjob_title" posparent="parent" posref="TL TL" sizeref="w" suffix="" text="" tooltip="" val="" w="0" x="0" y="0">
<group h="#h" id="#id" posparent="#posparent" posref="#posref" sizeref="#sizeref" w="#w" x="#margin_x" y="#y">
<view global_color="false" id="icon" posref="TL TL" texture="#rpjob_icon" type="bitmap" x="4" y="-4" />
<view color="#color" fontsize="16" hardtext="#text" id="t" posref="MR ML" posparent="icon" shadow="true" type="text" x="5" />
</group>
</template>
<template h="48" id="" name="rpjob_infos" posparent="parent" posref="TL TL" sizeref="w" suffix="" text="" tooltip="" val="" w="0" x="0" y="0">
<group h="#h" id="#id" posparent="#posparent" posref="#posref" sizeref="#sizeref" w="#w" x="#margin_x" y="#y">
<view color="0 0 0 255" h="48" w="48" scale="true" global_color="false" id="bg" posref="TL TL" parent="#id" texture="blank.tga" type="bitmap" />
<view global_color="false" id="icon" posref="TL TL" texture="#rpjob_icon" type="bitmap" x="4" y="-4" />
<view global_color="false" color="255 255 255 255" fontsize="13" id="t" posref="TR TL" posparent="icon" shadow="true" w="#w" type="text" x="10" />
<group h="20" id="bar3d" posref="BR BL" posparent="icon" sizeref="w" w="340" x="8" y="0">
<instance inherit_gc_alpha="true" posref="BL BL" y="1" w="370" x="5" template="frame_widget" h="18" />
<view color="0 0 0 255" h="16" id="bar" posparent="bar3d" posref="BL BL" scale="true" texture="blank.tga" type="bitmap" w="368" x="5" y="2" />
<view h="16" id="level" posparent="bar3d" posref="BL BL" scale="true" texture="blank.tga" type="bitmap" w="368" x="5" y="2" />
<view global_color="false" fontsize="12" hardtext="" id="t" posref="MM MM" posparent="bar" shadow="false" w="#w" type="text" y="-2" />
</group>
<view global_color="false" color="255 255 155 255" fontsize="11" hardtext="" id="echelon_value" posref="TR TR" posparent="bar3d" shadow="true" w="#w" type="text" x="-5" y="20" />
<view fontsize="11" hardtext="uiEchelon" id="echelon" posref="TL TR" posparent="echelon_value" shadow="true" w="#w" type="text" x="2" />
</group>
</template>
<!--***********************--> <!--***********************-->
<!--* NPC WEB PAGE *--> <!--* NPC WEB PAGE *-->
<!--***********************--> <!--***********************-->
<group type="container" id="npc_web_browser" w="800" h="600" title="???" global_color="false" header_color="UI:SAVE:WIN:COLORS:HELP" <group type="container" id="npc_web_browser" w="480" h="400" title="???" global_color="false" header_color="UI:SAVE:WIN:COLORS:HELP"
resizer="true" pop_min_w="500" pop_min_h="400" pop_max_w="2000" pop_max_h="1600" resizer="true" pop_min_w="220" pop_min_h="96" pop_max_w="2000" pop_max_h="1600"
title_bar_open="false" open_button="false" title_bar_open="false" open_button="false" force_open_out="true"
lockable="true" openable="false" opened="true" movable="true" active="false" lockable="true" openable="true" opened="true" movable="true" active="false"
on_active="proc" on_active_params="npc_web_browser_proc_active" on_deactive="proc" on_deactive_params="npc_web_browser_proc_deactive"
localize="false" localize="false"
active_savable="false" > active_savable="false" >
<group id="header_closed" x="0" y="0" h="12" posref="TL TL" <group id="header_closed" x="0" y="0" h="12" posref="TL TL"
group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" > group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color"
on_active="lua" on_active_params="game:closeNpcWebBrowserHeader()" >
</group> </group>
<group id="header_opened" x="0" y="0" w="0" h="16" posref="TL TL" <group id="header_opened" x="0" y="0" w="480" h="16" posref="TL TL"
group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" > group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color"
on_active="lua" on_active_params="game:openNpcWebBrowserHeader()" >
<!-- must be frozen by default cause no undo/redo at start --> <!-- must be frozen by default cause no undo/redo at start -->
<ctrl style="text_button_header" button_type="push_button" id="browse_redo" posref="MR MR" x="-16" y="0" <ctrl style="text_button_header" button_type="push_button" id="browse_redo" posref="MR MR" x="-16" y="0"
@ -1230,15 +1261,15 @@
params_l="name=ui:interface:npc_web_browser:content:html" frozen="true" /> params_l="name=ui:interface:npc_web_browser:content:html" frozen="true" />
<ctrl style="text_button_header" active="false" id="browse_filter" x="-16" y="0" posref="ML MR" posparent="browse_undo" <ctrl style="text_button_header" active="false" id="browse_filter" x="-16" y="0" posref="ML MR" posparent="browse_undo"
text_y="-2" onclick_l="lua" params_l="game.RingAccessPointFilter:open()" hardtext="uiRingAccessPointFilter" fontsize="10" /> text_y="0" onclick_l="lua" params_l="game.RingAccessPointFilter:open()" hardtext="uiRingAccessPointFilter" fontsize="10" />
<ctrl style="text_button_header" active="false" id="browse_refresh" x="-4" y="0" posref="ML MR" posparent="browse_filter" <ctrl style="text_button_header" active="false" id="browse_refresh" x="-4" y="0" posref="ML MR" posparent="browse_filter"
text_y="-2" onclick_l="lua" params_l="game.RingAccessPointFilter:validate()" hardtext="uiBotChatRefresh" fontsize="10" /> text_y="0" onclick_l="lua" params_l="game.RingAccessPointFilter:validate()" hardtext="uiBotChatRefresh" fontsize="10" />
</group> </group>
<group id="content" x="0" y="0" w="0" h="0" posref="TL TL" > <group id="content" x="0" y="0" w="0" h="0" posref="TL TL" >
<group type="html" id="html" posref="TL TL" posparent="parent" url="home" title_prefix="" <group type="webig_html" id="html" posref="TL TL" posparent="parent" url="home" title_prefix=""
sizeref="wh" x="0" y="0" w="0" h="0" sizeref="wh" x="0" y="0" w="0" h="0"
background_color="0 0 0 255" background_color="0 0 0 255"
error_color="255 240 48 255" error_color="255 240 48 255"
@ -1291,5 +1322,38 @@
</group> </group>
<tree node="npc_web_browser" /> <tree node="npc_web_browser" />
<template name="ark_mission" w="45" keep="true" icon="blank.tga" tooltip="" text1="" text2="" text3="" text1_color="255 255 255 255" text2_color="255 255 255 255" text3_color="255 255 255 255" color="0 0 0 0" color_over="255 255 255 50" shadow="true" bg="w_slot_item.tga" params_l="" params_r="" x="0" y="0">
<group id="#id" posref="MM MM" w="0" h="45" x="0" y="0" sizeref="w">
<view type="bitmap" id="icon" posref="ML ML" x="2" y="0" texture="#icon" global_color="false" />
<view type="text" id="text1" x="48" y="-2" w="0" sizeref="w" posref="TL TL" color="#text1_color" shadow="#shadow" fontsize="10" hardtext="#text1" global_color="false" multi_line="true" />
<view type="text" id="text2" x="0" y="-2" w="0" sizeref="w" posparent="text1" color="#text2_color" posref="BL TL" shadow="#shadow" fontsize="10" hardtext="#text2" global_color="false" multi_line="false" />
<view type="text" id="text3" x="0" y="-2" w="0" sizeref="w" posparent="text2" color="#text3_color" posref="BL TL" shadow="#shadow" fontsize="10" hardtext="#text3" global_color="false" multi_line="false" />
<ctrl type="button" id="ctrl" button_type="push_button" global_color_normal="false" posref="ML ML" w="-1" x="1" y="0" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" scale="true" sizeref="w" h="44" tooltip="#tooltip" color="#color" col_over="#color_over" col_pushed="255 255 255 0" onclick_l="lua" params_l="#params_l" onclick_r="lua" params_r="#params_r" />
</group>
</template>
<group type="container" id="ark_mission_catalog" active="false" w="950" h="700" pop_max_w="950" pop_max_h="700" pop_min_w="950" pop_min_h="700" header_color="UI:SAVE:WIN:COLORS:COM" posref="TL TL" title="Mission Catalog" global_color="true" global_color_over="true" right_button="true" movable="true" lockable="true" openable="true" opened="true" resizer="true" active_savable="false">
<group id="header_closed" x="0" y="0" w="120" h="16" posref="TL TL" on_active="lua" on_active_params="WebBrowser:saveWindowPop()" />
<group id="header_opened" x="0" y="0" w="950" h="16" posref="TL TL" on_active="lua" on_active_params="WebBrowser:restoreWindowPop()" />
<group id="content" x="0" y="0" w="0" h="0" posref="TL TL">
<group id="htmlA" type="html" posref="ML ML" url="http://app.ryzom.com" title_prefix="" sizeref="h" x="-16" y="10" w="220" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline">
<group id="black" posref="BR BR" sizeref="hw" w="-16" h="-12" inherit_gc_alpha="true" />
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" color="255 255 255 0" />
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" x="8" />
</group>
<group id="htmlB" type="html" posref="ML ML" url="http://app.ryzom.com" title_prefix="" sizeref="h" x="190" y="10" w="740" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline">
<group id="black" posref="BR BR" sizeref="hw" w="-16" h="-12" inherit_gc_alpha="true" />
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" color="255 255 255 0" />
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" x="8" />
</group>
</group>
</group>
<tree node="ark_mission_catalog" />
<group type="container" id="storyline_window" active="true" w="0" h="0" pop_max_w="0" pop_max_h="0" pop_min_w="0" pop_min_h="0"></group>
<tree node="storyline_window" />
</interface_config> </interface_config>

@ -7,6 +7,29 @@ if (game==nil) then
game= {}; game= {};
end end
if (game.ui_props == nil) then
game.ui_props = {}
end
if arkNpcShop == nil then
arkNpcShop = {}
end
------------------------------------------------------------------------------------------------------------
--
function string:split(Pattern)
local Results = {}
local Start = 1
local SplitStart, SplitEnd = string.find(self, Pattern, Start)
while(SplitStart)do
table.insert(Results, string.sub(self, Start, SplitStart-1))
Start = SplitEnd+1
SplitStart, SplitEnd = string.find(self, Pattern, Start)
end
table.insert(Results, string.sub(self, Start))
return Results
end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- called when server send an invitaion we receive a text id containing the string to display (invitor name) -- called when server send an invitaion we receive a text id containing the string to display (invitor name)
function game:onTeamInvation(textID) function game:onTeamInvation(textID)
@ -37,6 +60,48 @@ function game:teamInvitationRefuse()
sendMsgToServer('TEAM:JOIN_PROPOSAL_DECLINE'); sendMsgToServer('TEAM:JOIN_PROPOSAL_DECLINE');
end end
------------------------------------------------------------------------------------------------------------
-- send team invite from friendslist
function game:teamInvite(uiID)
runAH(nil, 'talk', 'mode=0|text=/invite '.. getUI('ui:interface:' .. uiID).title)
end
------------------------------------------------------------------------------------------------------------
-- send team invite from guildwindow
function game:teamInviteFromGuild(uiID)
runAH(nil, 'talk', 'mode=0|text=/invite ' .. getGuildMemberName(tonumber(uiID:split(":m")[2])))
end
------------------------------------------------------------------------------------------------------------
--Send Guild invite from guildwindow
function game:invToGuild()
player = getUI('ui:interface:add_guild'):find('edit_text').hardtext:split(">")[2]
if(player ~= '')then
runAH(nil, 'talk', 'mode=0|text=/guildinvite ' .. player)
end
runAH(nil, 'leave_modal', '')
end
------------------------------------------------------------------------------------------------------------
--Check and active invite to guild button
function game:updateGLinvB()
if(getUI('ui:interface:guild').active)then
for v = 0, (getNbGuildMembers()-1) do
local invB = getUI('ui:interface:guild:content:tab_guild_info:invite')
if(getPlayerName() == getGuildMemberName(v))then
--debugInfo(getGuildMemberName(v))
if(getGuildMemberGrade(v) ~= 'Member')then
if(invB.active == false)then
invB.active = true
end
else
invB.active = false
end
end
end
end
end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
-- --
function game:switchChatTab(dbEntry) function game:switchChatTab(dbEntry)
@ -556,6 +621,66 @@ function game:openWebIGBrowserHeader()
end end
end end
------------------------------------------------------------------------------------------------------------
--
function game:closeWindowHeader()
local ui = getUICaller().parent;
local id = ui.id;
if game.ui_props[id] == nil then
game.ui_props[id] = {}
end
-- save size
game.ui_props[id].w = ui.w
game.ui_props[id].h = ui.h
game.ui_props[id].pop_min_h = ui.pop_min_h
-- reduce window size
ui.pop_min_h = 32
ui.h = 0;
ui.w = 150
end
------------------------------------------------------------------------------------------------------------
--
function game:openWindowHeader()
local ui = getUICaller().parent;
local id = ui.id;
-- set size from saved values
if game.ui_props[id].pop_min_h ~= nil then
ui.pop_min_h = game.ui_props[id].pop_min_h
end
if game.ui_props[id].h ~= nil then
ui.h = game.ui_props[id].h
end
if ui_webig_browser_w ~= nil then
ui.w = game.ui_props[id].w;
end
end
------------------------------------------------------------------------------------------------------------
function game:openGuildIsland(url_island)
local nbMember = getNbGuildMembers();
local params = "";
for i = 0,(nbMember-1) do
local memberGrade = getGuildMemberGrade(i);
if (memberGrade == "Leader") or (memberGrade == "HighOfficer") then
params = params .. string.lower(getGuildMemberName(i)) .. "=" .. memberGrade.."&";
end
end
local x,y,z = getPlayerPos()
params = params .. "&posx=" .. tostring(x) .. "&posy=" .. tostring(y) .. "&posz=" .. tostring(z)
getUI("ui:interface:guild:content:tab_island:props:html"):browse(url_island.."params="..params);
runAH(nil, "browse_home", "name=ui:interface:guild:content:tab_island:inv:html")
end
------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------
local SavedUrl = ""; local SavedUrl = "";
function game:chatUrl(url) function game:chatUrl(url)
@ -569,3 +694,516 @@ function game:chatUrlBrowse()
runAH(nil, "browse", "name=ui:interface:webig:content:html|url=" .. SavedUrl) runAH(nil, "browse", "name=ui:interface:webig:content:html|url=" .. SavedUrl)
end end
------------------------------------------------------------------------------------------------------------
--
if game.sDynChat == nil then game.sDynChat = {} end
-- called from onInGameDbInitialized
function game:openChannels()
if getDbProp("UI:SAVE:CHAT:AUTO_CHANNEL") > 0 then
local uc = readUserChannels()
if uc then
local index = 0
for _ in pairs(uc) do
index = index + 1
end
local channels = {}
for i = 0, index-1 do
local node = uc[tostring(i)]
channels[tonumber(node.id)] = {
rgba = node.rgba,
name = node.name,
passwd = node.passwd
}
end
local t = {}
for k in pairs(channels) do table.insert(t, k) end
table.sort(t)
-- sorted
for _, id in ipairs(t) do
local found = false
for i = 0, getMaxDynChan()-1 do
if getDbProp("UI:SAVE:ISENABLED:DYNAMIC_CHAT"..i) == 1 then
local cname = getDbProp("SERVER:DYN_CHAT:CHANNEL"..i..":NAME")
if isDynStringAvailable(cname) then
local chan = getDynString(cname):toUtf8()
-- already opened?
if channels[id].name == chan then found = true end
end
end
end
if not found then
self:connectUserChannel(channels[id].name.." "..channels[id].passwd)
-- now restore colors
if channels[id].rgba ~= '' then
local i = 0
local c = {}
local rgba = {[0]="R", [1]="G", [2]="B", [3]="A"}
for color in string.gmatch(channels[id].rgba, "%d+") do
c[rgba[i]] = tonumber(color)
i = i + 1
end
setDbRGBA("UI:SAVE:CHAT:COLORS:DYN:"..id, CRGBA(c.R, c.G, c.B, c.A))
end
end
end
end
end
end
-- store channel detail before it open
function game:connectUserChannel(args)
local argv = {}
for w in string.gmatch(args, "%S+") do
table.insert(argv, w)
end
if #argv > 0 then
local params = argv[1]
if #argv == 2 then
for _, ch in pairs(self.sDynChat) do
if ch[argv[1]] then ch[argv[1]] = nil end
end
if argv[2] ~= '*' and argv[2] ~= '***' then
table.insert(self.sDynChat, {[argv[1]]=argv[2]})
end
params = params.." "..argv[2]
end
runAH(nil, "talk", "mode=0|text=/a connectUserChannel "..params)
end
end
-- save user created channels
function game:saveChannel(verbose)
if verbose == nil then
verbose = false
end
local channels = {}
for i = 0, getMaxDynChan()-1 do
if getDbProp("UI:SAVE:ISENABLED:DYNAMIC_CHAT"..i) == 1 then
local cname = getDbProp("SERVER:DYN_CHAT:CHANNEL"..i..":NAME")
if isDynStringAvailable(cname) then
local chan = getDynString(cname):toUtf8()
local found = false
-- avoid empty cvar case
if getClientCfgVar("ChannelIgnoreFilter") then
for _, k in pairs(getClientCfgVar("ChannelIgnoreFilter")) do
if k == chan then found = true end
end
if not found then
-- store current colors
local cRGBA = getDbRGBA("UI:SAVE:CHAT:COLORS:DYN:"..i)
local password = ''
-- include private channels
for _, k in pairs(game.sDynChat) do
if k[chan] then password = k[chan] end
end
channels[tostring(i)] = {
rgba = cRGBA,
name = chan,
passwd = password
}
end
end
end
end
end
saveUserChannels(channels, verbose)
end
------------------------------------------------------------------------------------------------------------
--
function game:chatWelcomeMsg(input)
local msg
local name
if not input then
input = getUICaller().params_r
if input then
input = input:match("ED:([^_]+)"):lower()
end
end
local chat = input
local temp = "UI:TEMP:ONCHAT:"
if game.InGameDbInitialized then
-- is input chat a dynamic channel?
if type(input) == "number" then
local id = getDbProp("SERVER:DYN_CHAT:CHANNEL"..input..":NAME")
if isDynStringAvailable(id) then
name = getDynString(id):toUtf8()
-- variable for this session
if getDbProp(temp..name) == 0 then
-- faction, nation and organization
for k, v in pairs({
kami = i18n.get("uiFameAllegiance2"),
karavan = i18n.get("uiFameAllegiance3"),
fyros = i18n.get("uiFameAllegiance4"),
matis = i18n.get("uiFameAllegiance5"),
tryker = i18n.get("uiFameAllegiance6"),
zorai = i18n.get("uiFameAllegiance7"),
marauder = i18n.get("uiFameMarauders"),
ranger = i18n.get("uiOrganization_7")
}) do
if name == v:toUtf8() then
msg = i18n.get("uiWelcome_"..k)
name = v:toUtf8()
end
end
end
-- chat_group_filter sParam
chat = "dyn_chat"..input
end
else
-- around, region and universe
if getDbProp(temp..input) == 0 then
msg = i18n.get("uiWelcome_"..input)
name = input
end
end
if msg then
displayChatMessage(tostring(msg), input)
-- save for this session
addDbProp(temp..name, 1)
end
end
runAH(getUICaller(), "chat_group_filter", chat)
end
function game:TalkWithNpc(bullying)
setTargetAsInterlocutor()
if bullying == 1 then
runCommand("a", "openTargetUrl", "1")
else
runCommand("a", "openTargetUrl")
end
end
-----------------------------------
--- ARK NPC SHOP
function tablelength(T)
if T == nil then
return 0
end
local count = 0
for _ in pairs(T) do count = count + 1 end
return count
end
function arkNpcShop:showBuy()
getUI("ui:interface:ark_shop_buy_item"):find("ok").active=true
end
function arkNpcShop:openSection(url)
framewin = getUI("ui:interface:ark_npc_shop"):find("buy"):renderHtml(arkNpcShop.PleaseWait)
getUI("ui:interface:web_transactions"):find("html"):browse(url)
end
function arkNpcShop:updateWindow(px, py)
local x, y, z = getPlayerPos()
local stop = false
if (px-x)*(px-x)+(py-y)*(py-y) > 25 then
local w = getUI("ui:interface:ark_npc_shop")
w.active = false
setOnDraw(w, "")
getUI("ui:interface:ark_shop_buy_item").active = false
arkNpcShop.player_can_buy = false
broadcast(arkNpcShop.TooFar)
end
local diff = math.floor((nltime.getLocalTime() - arkNpcShop.lastMultipleItemsUpdate ) / 10)
if diff >= 100 then
arkNpcShop.lastMultipleItemsUpdate = nltime.getLocalTime()
if arkNpcShop.player_money_per_items ~= nil then
for item, price in pairs(arkNpcShop.player_money_per_items) do
if arkNpcShop.lastMultipleItemsIndex[item] == nil then
arkNpcShop.lastMultipleItemsIndex[item] = {}
end
for i = 1,5 do
local w = getUI("ui:interface:ark_npc_shop"):find("ark_npc_shop_item_"..item.."_price"..tostring(i))
if w ~= nil and arkNpcShop.all_items[item] ~= nil and arkNpcShop.all_items[item][i] ~= nil then
if price[i] ~= nil and price[i] < 1 then
if arkNpcShop.lastMultipleItemsIndex[item][i] == nil then
arkNpcShop.lastMultipleItemsIndex[item][i] = 0
end
arkNpcShop.lastMultipleItemsIndex[item][i] = arkNpcShop.lastMultipleItemsIndex[item][i] + 1
if arkNpcShop.lastMultipleItemsIndex[item][i] > tablelength(arkNpcShop.all_items[item][i]) then
arkNpcShop.lastMultipleItemsIndex[item][i] = 1
end
local sheet = arkNpcShop.all_items[item][i][arkNpcShop.lastMultipleItemsIndex[item][i]]
if sheet ~= ".sitem" then
setDbProp("UI:TEMP:ARK:ITEM:"..item.."_"..tostring(i)..":SHEET", getSheetId(sheet))
end
end
end
end
end
end
end
end
function arkNpcShop:checkitems(db, items, quality, id)
total = 0
for i = 0, 499, 1 do
local sheet = getDbProp("SERVER:INVENTORY:BAG:"..tostring(i)..":SHEET")
if sheet ~= 0 then
local name = string.lower(getSheetName(sheet))
for _, item in pairs(items) do
if name == item then
debug(item)
local qual = getDbProp("SERVER:INVENTORY:BAG:"..tostring(i)..":QUALITY")
local quant = getDbProp("SERVER:INVENTORY:BAG:"..tostring(i)..":QUANTITY")
if qual >= quality then
total = total + quant
setDbProp(db..":SHEET", sheet)
setDbProp(db..":QUALITY", qual)
end
end
end
end
end
return total
end
function arkNpcShop:getHtmlIcon(id, item)
if string.sub(item[2], 1, 1) == "#" then
addDbProp("UI:TEMP:ARK:SELECTITEM:RESALE_FLAG", 0)
if string.sub(item[3], 1, 1) == "!" then
webig:addSheet("UI:TEMP:ARK:SELECTITEM", getSheetId(item[7]), item[4], tonumber(string.sub(item[3], 2)))
else
webig:addSheet("UI:TEMP:ARK:SELECTITEM", getSheetId(item[7]), item[4], 1)
end
addDbProp("UI:TEMP:ARK:SELECTITEM:USER_COLOR", item[9])
return [[<div class="ryzom-ui-grouptemplate" style="template:arkshop_inv_item;id:inv_special_bag_item;usesheet:true;isvirtual:false;sheetdb:UI:TEMP:ARK:SELECTITEM;w:40;params_r:arkNpcShop:OpenSheetInfosWindow(]]..id..[[);"></div>]]
else
return [[<div class="ryzom-ui-grouptemplate" style="template:arkshop_inv_item;id:inv_special_bag_item;usesheet:false;isvirtual:true;w:44;quantity: ;quality:]]..item[4]..[[;tooltip:u:]]..item[6]..[[;gc2:true;gc1:true;img1:]]..item[2]..[[;col_over:0 0 0 0"></div>]]
end
end
function arkNpcShop:OpenSheetInfosWindow(id)
local w = getUI("ui:interface:ark_npc_shop")
local x = w:find("buy"):find("ark_npc_shop_item_"..tostring(id))
runAH(x:find("sheet"), "open_help_auto", "")
end
function arkNpcShop:HideHelpWindow(id)
-- Check what help window are active
local help_active={}
for i = 0,7 do
help_active[i] = getUI("ui:interface:sheet_help"..i).active
end
arkNpcShop:OpenSheetInfosWindow(id)
-- Apply previous stats of help window
for i = 0,7 do
getUI("ui:interface:sheet_help"..i).active = help_active[i]
end
end
function arkNpcShop:OpenItemWindow(id, buy)
local item = arkNpcShop.items[id]
if arkNpcShop.all_items[id] ~= nil and arkNpcShop.all_items[id].need_real_item ~= nil then
arkNpcShop.max_quantity = 1
else
if string.sub(item[3], 1, 1) == "!" then
arkNpcShop.max_quantity = 1
else
arkNpcShop.max_quantity = item[3]
end
end
arkNpcShop:HideHelpWindow(id)
local non_buy_window_w = 400
local ui_item_preview = getUI("ui:interface:ark_shop_buy_item:content:header_opened:item_preview")
if ui_item_preview then
ui_item_preview.active = false
end
local ui_item_show_desc = getUI("ui:interface:ark_shop_buy_item:content:header_opened:desc")
if ui_item_show_desc then
ui_item_show_desc.active = item[2] == "#sheet"
end
if string.sub(item[2], 1, 1) == "#" then
local item_type = getSheetFamily(item[7])
local display_preview = item_type == "SHIELD" or item_type == "ARMOR" or item_type == "MELEE_WEAPON" or item_type == "RANGE_WEAPON"
if ui_item_preview then
ui_item_preview.active = display_preview
end
if display_preview then
non_buy_window_w = 495
else
-- Items who are not named items must display help window when no buy
if buy == nil and item[2] == "#sheet" then
arkNpcShop:OpenSheetInfosWindow(id)
return
end
end
end
if buy == true then
arkNpcShop.price = item[1]
setDbProp("UI:TEMP:ARK_MONEY_PRICE", arkNpcShop.price)
setDbProp("UI:TEMP:ARK_MONEY_TOTAL", arkNpcShop.price)
if arkNpcShop.price > arkNpcShop.player_money then
arkNpcShop.player_can_buy = false
else
arkNpcShop.player_can_buy = true
end
end
local framewin = getUI("ui:interface:ark_shop_buy_item")
if framewin == nil then
createRootGroupInstance("webig_bot_chat_buy_item", "ark_shop_buy_item", {id="content", infosclick="arkNpcShop:OpenSheetInfosWindow("..id..")", onclick="arkNpcShop:Buy("..id..")"})
framewin = getUI("ui:interface:ark_shop_buy_item")
framewin.x = math.ceil(((getUI("ui:interface").w - framewin.w))/2)
framewin.y = math.ceil(((getUI("ui:interface").h + framewin.h))/2)
end
runAH(nil, "proc", "ark_shop_animate_preview_body")
if buy == true then
local eb = framewin:find("edit"):find("eb")
eb.input_string = 1
eb:setFocusOnText()
eb:setSelectionAll()
framewin:find("item_total_price"):find("icone").texture = arkNpcShop.MoneyIcon
framewin:find("item_price"):find("icone").texture = arkNpcShop.MoneyIcon
framewin:find("item_total_price"):find("tt").tooltip = arkNpcShop.Money
framewin:find("item_price"):find("tt").tooltip = arkNpcShop.Money
arkNpcShop.window_params = {-70, 305, 408}
else
arkNpcShop.window_params = {-20, 380, non_buy_window_w}
end
framewin:find("top").active = buy == true -- active onlye if buy
framewin:find("scroll_text").y=arkNpcShop.window_params[1]
framewin:find("scroll_text").h=arkNpcShop.window_params[2]
framewin.w=arkNpcShop.window_params[3]
framewin.uc_title = getUCtf8(item[6])
if buy == true then
local html = ""
html = arkNpcShop:getHtmlIcon(id, item)
framewin:find("buy_sell_slot"):renderHtml(html)
if string.sub(item[5], 1 , 8) == "https://" then
framewin:find("ok").active=false
framewin:find("infos"):renderHtml(arkNpcShop.PleaseWait)
framewin:find("infos"):browse(item[5])
else
framewin:find("ok").active=true
framewin:find("infos"):renderHtml("<table width='380px'><tr><td>"..item[5].."</td></tr></table>")
end
arkNpcShop:CheckMoney()
-- framewin:setModalParentList("ui:interface:ark_npc_shop")
else
html = arkNpcShop:getHtmlIcon(id, item)
framewin:find("infos"):renderHtml([[
<table width="100%">
<tr>
<td width="40px" valign="top">]]..html..[[</td>
<td >]]..item[5]..[[</td>
</tr>
</table>
]])
end
framewin:find("desc").params_l = "arkNpcShop:OpenSheetInfosWindow("..id..")"
framewin:find("ok").params_l = "arkNpcShop:Buy("..id..")"
framewin.opened=true
framewin.active=true
end
function arkNpcShop:CheckMoney()
local win = getUI("ui:interface:ark_shop_buy_item")
local value = tonumber(win:find("edit"):find("eb").input_string)
if value == nil or value == 0 then
value = 1
end
if arkNpcShop.max_quantity ~= 0 and value > arkNpcShop.max_quantity then
win:find("edit"):find("eb").input_string = arkNpcShop.max_quantity
value = arkNpcShop.max_quantity
end
local total = arkNpcShop.price*value
if total > arkNpcShop.player_money then
win:find("ok").hardtext="uiNotEnoughMoney"
arkNpcShop.player_can_buy = false
else
win:find("ok").hardtext = arkNpcShop.ActionName
arkNpcShop.player_can_buy = true
end
setDbProp("UI:TEMP:ARK_MONEY_TOTAL", total)
end
function arkNpcShop:Close()
local framewin = getUI("ui:interface:ark_npc_shop")
if framewin ~= nil then
framewin.active=false
end
framewin = getUI("ui:interface:ark_shop_buy_item")
if framewin ~= nil then
framewin.active=false
end
end
function arkNpcShop:timer(id, len)
local diff = math.floor((nltime.getLocalTime() - savedTime) / 50)
getUI("ui:interface:current_action").active=true
setDbProp("UI:PHRASE:ACT_BAR_LEN", (100/len)*diff)
if diff >= len then
getUI("ui:interface:current_action").active=false
setOnDraw(getUI("ui:interface:current_action"), "")
local quantity = getUI("ui:interface:ark_shop_buy_item"):find("edit"):find("eb").input_string
getUI("ui:interface:web_transactions"):find("html"):browse(arkNpcShop.ValidateUrl..quantity.."&item_id="..id.."&item_selection="..arkNpcShop.selectedItems[id])
end
end
function arkNpcShop:Buy(id)
local item = arkNpcShop.items[id]
local win = getUI("ui:interface:ark_shop_buy_item")
local quantity = win:find("edit"):find("eb").input_string
if arkNpcShop.player_can_buy then
local message = ucstring()
message:fromUtf8("@{F5FF}"..getUI("ui:interface:target").title..": @{FF0F}I\'m checking to see if you\'re trying to rip him off... ")
-- displaySystemInfo(message, "BC")
if arkNpcShop.AtysPoint then
if item[8] == 0 then
local message = ucstring()
message:fromUtf8(arkNpcShop.AtysPointsBuyMessage)
displaySystemInfo(message, "BC")
savedTime = nltime.getLocalTime()
getUI("ui:interface:current_action").active=true
local len = item[1]
if len > 200 then
len = 200
end
setOnDraw(getUI("ui:interface:current_action"), "arkNpcShop:timer("..id..", "..tostring(len)..")")
else
getUI("ui:interface:web_transactions"):find("html"):browse(arkNpcShop.ValidateUrl..quantity.."&item_id="..id.."&item_selection="..arkNpcShop.selectedItems[id])
end
else
getUI("ui:interface:web_transactions"):find("html"):browse(arkNpcShop.ValidateUrl..quantity.."&item_id="..id.."&item_selection="..arkNpcShop.selectedItems[id])
end
end
arkNpcShop:Close()
end

@ -148,6 +148,11 @@
<instance template="edit_box_widget" id="add_contact_eb" posref="TL TL" x="6" y="-24" child_resize_h="true" w="200" onenter="add_contact" max_num_bytes="255" entry_type="playername" /> <instance template="edit_box_widget" id="add_contact_eb" posref="TL TL" x="6" y="-24" child_resize_h="true" w="200" onenter="add_contact" max_num_bytes="255" entry_type="playername" />
<instance template="button_ok_cancel" posparent="add_contact_eb" posref="BR TR" x="0" y="0" onclick_ok="add_contact" onclick_ok_param="" onclick_cancel="leave_modal" onclick_cancel_param="" /> <instance template="button_ok_cancel" posparent="add_contact_eb" posref="BR TR" x="0" y="0" onclick_ok="add_contact" onclick_ok_param="" onclick_cancel="leave_modal" onclick_cancel_param="" />
</group> </group>
<group type="modal" id="change_contact_group" exit_click_out="true" posref="MM MR" w="212" child_resize_h="true" child_resize_hmargin="14" options="skin_modal" on_active="set_keyboard_focus" on_active_params="target=ui:interface:change_contact_group:change_contact_group_eb:eb|select_all=false">
<view type="text" id="text" posref="TL TL" x="8" y="-8" color="255 255 255 255" global_color="false" fontsize="12" shadow="true" hardtext="uiPeopleChangeContactGroup" />
<instance template="edit_box_widget" id="change_contact_group_eb" posref="TL TL" x="6" y="-24" child_resize_h="true" w="200" onenter="change_contact_group" max_num_bytes="255" entry_type="text" />
<instance template="button_ok_cancel" posparent="change_contact_group_eb" posref="BR TR" x="0" y="0" onclick_ok="change_contact_group" onclick_ok_param="" onclick_cancel="leave_modal" onclick_cancel_param="" />
</group>
<!-- ***************** --> <!-- ***************** -->
<!-- * CHAT TEMPLATE * --> <!-- * CHAT TEMPLATE * -->
<!-- ***************** --> <!-- ***************** -->
@ -242,7 +247,7 @@
</group> </group>
<!-- a template of a dynamic chat tab --> <!-- a template of a dynamic chat tab -->
<template name="temp_tab_dyn_chat" keep="true" nb="" id="" posparent="" posref="TR TL"> <template name="temp_tab_dyn_chat" keep="true" nb="" id="" posparent="" posref="TR TL">
<ctrl style="tab_button_new" id="#id" group="content:cb:dyn_chat#nb" posparent="#posparent" posref="#posref" textid="SERVER:DYN_CHAT:CHANNEL#nb:NAME" dynamic_string="true" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:DYNAMIC_CHAT#nb|value=1" onclick_l="chat_group_filter" params_l="dyn_chat#nb" /> <ctrl style="tab_button_new" id="#id" group="content:cb:dyn_chat#nb" posparent="#posparent" posref="#posref" textid="SERVER:DYN_CHAT:CHANNEL#nb:NAME" dynamic_string="true" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:DYNAMIC_CHAT#nb|value=1" onclick_l="lua" params_l="game:chatWelcomeMsg(#nb)" />
<link expr="and(and(ne(@SERVER:DYN_CHAT:CHANNEL#nb:NAME,0), @UI:SAVE:ISENABLED:DYNAMIC_CHAT#nb), <link expr="and(and(ne(@SERVER:DYN_CHAT:CHANNEL#nb:NAME,0), @UI:SAVE:ISENABLED:DYNAMIC_CHAT#nb),
not(@UI:SAVE:ISDETACHED:DYNAMIC_CHAT#nb))" target="#id:active" /> not(@UI:SAVE:ISDETACHED:DYNAMIC_CHAT#nb))" target="#id:active" />
</template> </template>
@ -266,13 +271,13 @@
<group type="container" id="#id" w="#w" h="#h" posparent="#posparent" resizer="true" openable="false" popable="false" open_when_popup="true" header_active="false" right_button="false" pop_min_w="244" pop_min_h="128" pop_max_w="2000" pop_max_h="1600" global_color="false" global_color_over="true" lockable="true" help_page="interf_chat.html" resizer_top_size="5"> <group type="container" id="#id" w="#w" h="#h" posparent="#posparent" resizer="true" openable="false" popable="false" open_when_popup="true" header_active="false" right_button="false" pop_min_w="244" pop_min_h="128" pop_max_w="2000" pop_max_h="1600" global_color="false" global_color_over="true" lockable="true" help_page="interf_chat.html" resizer_top_size="5">
<group id="header_closed" x="0" y="0" h="0" posref="TL TL"></group> <group id="header_closed" x="0" y="0" h="0" posref="TL TL"></group>
<group id="header_opened" x="0" y="0" w="100" h="28" posref="TL TL" group_onclick_r="select_chat_source"> <group id="header_opened" x="0" y="0" w="100" h="28" posref="TL TL" group_onclick_r="select_chat_source">
<group type="tab" id="channel_select" child_resize_w="true" h="24" posref="TL TL" x="10" y="0" max_w="0" max_sizeref="w"> <group type="tab" id="channel_select" child_resize_w="true" h="24" posref="TL TL" x="0" y="-4" max_w="0" max_sizeref="w">
<ctrl style="tab_button_new" id="tab0" x="0" posref="TL TL" group="content:cb:around" hardtext="uitabChatAround" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:AROUND_ME|value=1" onclick_l="chat_group_filter" params_l="around" tooltip="uittChatAround" tooltip_parent="win" /> <ctrl style="tab_button_new" id="tab0" x="0" posref="TL TL" group="content:cb:around" hardtext="uitabChatAround" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:AROUND_ME|value=1" onclick_l="lua" params_l="game:chatWelcomeMsg()" tooltip="uittChatAround" tooltip_parent="win" />
<ctrl style="tab_button_new" id="tab1" posparent="tab0" group="content:cb:region" hardtext="uitabChatRegion" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:REGION_CHAT|value=1" onclick_l="chat_group_filter" params_l="region" tooltip="uittChatRegion" tooltip_parent="win" /> <ctrl style="tab_button_new" id="tab1" posparent="tab0" group="content:cb:region" hardtext="uitabChatRegion" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:REGION_CHAT|value=1" onclick_l="lua" params_l="game:chatWelcomeMsg()" tooltip="uittChatRegion" tooltip_parent="win" />
<ctrl style="tab_button_new" id="tab2" posparent="tab1" group="content:cb:team" hardtext="uitabChatTeam" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:TEAM_CHAT|value=1" onclick_l="chat_group_filter" params_l="team" tooltip="uittChatTeam" tooltip_parent="win" /> <ctrl style="tab_button_new" id="tab2" posparent="tab1" group="content:cb:team" hardtext="uitabChatTeam" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:TEAM_CHAT|value=1" onclick_l="chat_group_filter" params_l="team" tooltip="uittChatTeam" tooltip_parent="win" />
<ctrl style="tab_button_new" id="tab3" posparent="tab2" group="content:cb:guild" hardtext="uitabChatGuild" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:GUILD_CHAT|value=1" onclick_l="chat_group_filter" params_l="guild" tooltip="uittChatGuild" tooltip_parent="win" /> <ctrl style="tab_button_new" id="tab3" posparent="tab2" group="content:cb:guild" hardtext="uitabChatGuild" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:GUILD_CHAT|value=1" onclick_l="chat_group_filter" params_l="guild" tooltip="uittChatGuild" tooltip_parent="win" />
<!-- Yes order is strange, but don't want to modify all the ugly hardcoded code --> <!-- Yes order is strange, but don't want to modify all the ugly hardcoded code -->
<ctrl style="tab_button_new" id="tab6" posparent="tab3" group="content:cb:universe" hardtext="uitabChatUniverse" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:UNIVERSE_CHAT|value=1" onclick_l="chat_group_filter" params_l="universe" tooltip="uittChatUniverse" tooltip_parent="win" /> <ctrl style="tab_button_new" id="tab6" posparent="tab3" group="content:cb:universe" hardtext="uitabChatUniverse" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:UNIVERSE_CHAT|value=1" onclick_l="lua" params_l="game:chatWelcomeMsg()" tooltip="uittChatUniverse" tooltip_parent="win" />
<ctrl style="tab_button_new" id="tab4" posparent="tab6" group="content:cb:sysinfo" hardtext="uitabChatSysInfo" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:SYSTEM_INFO|value=1" onclick_l="chat_group_filter" params_l="sysinfo" tooltip="uittChatSysInfo" tooltip_parent="win" /> <ctrl style="tab_button_new" id="tab4" posparent="tab6" group="content:cb:sysinfo" hardtext="uitabChatSysInfo" onclick_r="set" params_r="dblink=UI:SAVE:ISDETACHED:SYSTEM_INFO|value=1" onclick_l="chat_group_filter" params_l="sysinfo" tooltip="uittChatSysInfo" tooltip_parent="win" />
<ctrl style="tab_button_new" id="tab5" posparent="tab4" group="content:cb:user" hardtext="uitabChatUser" onclick_l="chat_group_filter" params_l="user" tooltip="uittChatUser" tooltip_parent="win" /> <ctrl style="tab_button_new" id="tab5" posparent="tab4" group="content:cb:user" hardtext="uitabChatUser" onclick_l="chat_group_filter" params_l="user" tooltip="uittChatUser" tooltip_parent="win" />
<!-- Fixed number of dynamic chat allowed. force _firstpos and _nextpos to have correctly aligned tab--> <!-- Fixed number of dynamic chat allowed. force _firstpos and _nextpos to have correctly aligned tab-->
@ -306,8 +311,7 @@
@UI:SAVE:ISDETACHED:SYSTEM_INFO)" target="ui:interface:system_info:active" /> @UI:SAVE:ISDETACHED:SYSTEM_INFO)" target="ui:interface:system_info:active" />
<link expr="@UI:SAVE:ISDETACHED:USER_CHAT" target="ui:interface:user_chat:active" /> <link expr="@UI:SAVE:ISDETACHED:USER_CHAT" target="ui:interface:user_chat:active" />
</group> </group>
<view type="bitmap" id="sep0" posparent="channel_select" posref="BL BL" x="-10" w="10" h="1" scale="true" texture="blank.tga" color="166 166 166 255" /> <view type="bitmap" id="sep" posparent="channel_select" posref="BR BL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" />
<view type="bitmap" id="sep1" posparent="channel_select" posref="BR BL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" />
</group> </group>
<!-- scroll target element will be set from c++ code: it does not exist on template build time --> <!-- scroll target element will be set from c++ code: it does not exist on template build time -->
@ -377,8 +381,8 @@
</proc> </proc>
<!-- When the universe chat is activated, we must display a warning the first time <!-- When the universe chat is activated, we must display a warning the first time
Must do it on the variable manipulation, not when the window is shown (because it is always shown/hid at start of game) Must do it on the variable manipulation, not when the window is shown (because it is always shown/hid at start of game)
-->
<link expr="@UI:SAVE:ISDETACHED:UNIVERSE_CHAT" cond="eq(@UI:SAVE:ISDETACHED:UNIVERSE_CHAT,1)" action="set" params="dblink=UI:VARIABLES:UNIVERSE_CHANEL_WARNING_WANTED|value=1" /> <link expr="@UI:SAVE:ISDETACHED:UNIVERSE_CHAT" cond="eq(@UI:SAVE:ISDETACHED:UNIVERSE_CHAT,1)" action="set" params="dblink=UI:VARIABLES:UNIVERSE_CHANEL_WARNING_WANTED|value=1" />
-->
<!-- *************** --> <!-- *************** -->
<!-- * SYSTEM INFO * --> <!-- * SYSTEM INFO * -->
<!-- *************** --> <!-- *************** -->
@ -494,14 +498,22 @@
<template name="contact_id_friend" keep="true" posparent="parent" w="256" h="64" title=""> <template name="contact_id_friend" keep="true" posparent="parent" w="256" h="64" title="">
<group type="container" id="#id" w="#w" posparent="#posparent" title="#title" openable="false" popable="false" open_when_popup="true" pop_min_w="216" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" header_color="UI:SAVE:WIN:COLORS:COM" global_color="false" global_color_over="true" lockable="true" movable_in_parent_list="true"> <group type="container" id="#id" w="#w" posparent="#posparent" title="#title" openable="false" popable="false" open_when_popup="true" pop_min_w="216" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" header_color="UI:SAVE:WIN:COLORS:COM" global_color="false" global_color_over="true" lockable="true" movable_in_parent_list="true">
<group id="header_closed" x="0" y="0" h="12" posref="TL TL" group_onclick_l="tell_contact"> <group id="header_closed" x="0" y="0" h="12" posref="TL TL" group_onclick_l="tell_contact">
<ctrl type="button" id="chat_button" button_type="push_button" posref="MR MR" x="-4" tx_normal="contact_chat.tga" tx_pushed="contact_chat.tga" tx_over="W_button_14_over.tga" global_color_normal="false" global_color_over="true" global_color_pushed="false" onclick_l="contact_direct_chat" tooltip="uittTell" tooltip_parent="win" /> <view type="bitmap" id="online" posref="MR MR" x="-4" texture="w_online.tga" global_color="false" />
<view type="bitmap" id="online" posref="MR MR" x="-20" texture="w_online.tga" global_color="false" />
<ctrl type="tooltip" id="tt_online" posparent="online" posref="MR MR" x="0" y="0" sizeref="wh" w="0" h="0" tooltip="uittFriendsOnline" tooltip_parent="win" /> <ctrl type="tooltip" id="tt_online" posparent="online" posref="MR MR" x="0" y="0" sizeref="wh" w="0" h="0" tooltip="uittFriendsOnline" tooltip_parent="win" />
<ctrl type="button" id="profile_button" button_type="push_button" posref="MR MR" x="-36" tx_normal="profile.tga" tx_pushed="profile.tga" tx_over="profile.tga" global_color_normal="false" global_color_over="false" global_color_pushed="false" onclick_l="open_title_help" params_l="from=contact" tooltip="uittContactInfo" tooltip_parent="win" /> <ctrl type="button" id="profile_button" button_type="push_button" posref="MR MR" x="-20" tx_normal="profile.tga" tx_pushed="profile.tga" tx_over="profile.tga" global_color_normal="false" global_color_over="false" global_color_pushed="false" onclick_l="open_title_help" params_l="from=contact" tooltip="uittContactInfo" tooltip_parent="win" />
<view type="bitmap" id="blocked" posref="MR MR" x="-50" y="0" texture="w_answer_16_cancel.tga" global_color="false" active="false" /> <ctrl type="button" id="invite_button" button_type="push_button" posref="MR MR" x="-36" tx_normal="team_invite.tga" tx_pushed="team_invite.tga" tx_over="W_button_14_over.tga" global_color_normal="false" global_color_over="false" global_color_pushed="false" onclick_l="lua" params_l="game:teamInvite('#id')" tooltip="uimGcmInvit" tooltip_parent="win" />
<ctrl type="button" id="chat_button" button_type="push_button" posref="MR MR" x="-52" tx_normal="contact_chat.tga" tx_pushed="contact_chat.tga" tx_over="W_button_14_over.tga" global_color_normal="false" global_color_over="true" global_color_pushed="false" onclick_l="contact_direct_chat" tooltip="uittTell" tooltip_parent="win" />
<view type="bitmap" id="blocked" posref="MR MR" x="-64" texture="w_answer_16_cancel.tga" global_color="false" active="false" />
</group> </group>
</group> </group>
</template> </template>
<!-- group header in friend list -->
<template name="people_list_group_header" keep="true" active="true" movable="false" opened="true" id="system">
<group type="container" id="#id" w="252" active="#active" movable="#movable" opened="#opened" header_color="UI:SAVE:WIN:COLORS:COM" global_color="false" global_color_over="true">
<group id="header_closed" x="0" y="0" h="16" posref="TL TL" />
<group id="header_opened" x="0" y="0" h="16" posref="TL TL" />
</group>
</template>
<!-- when you want to directly chat with a friend --> <!-- when you want to directly chat with a friend -->
<template name="contact_chat_friend" keep="true" posparent="parent" w="256" h="64" title=""> <template name="contact_chat_friend" keep="true" posparent="parent" w="256" h="64" title="">
<group type="container" id="#id" x="64" y="128" w="#w" h="64" posparent="#posparent" title="#title" resizer="true" openable="true" opened="true" popable="false" movable="true" pop_min_w="216" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" header_color="UI:SAVE:WIN:COLORS:COM" global_color="false" global_color_over="true"> <group type="container" id="#id" x="64" y="128" w="#w" h="64" posparent="#posparent" title="#title" resizer="true" openable="true" opened="true" popable="false" movable="true" pop_min_w="216" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" header_color="UI:SAVE:WIN:COLORS:COM" global_color="false" global_color_over="true">
@ -527,7 +539,7 @@
</group> </group>
<!-- allow to create a party chat from any chat box & to hide / show the edit box --> <!-- allow to create a party chat from any chat box & to hide / show the edit box -->
<group type="menu" id="base_chat_box_menu_with_eb_toggle" extends="base_chat_box_menu"> <group type="menu" id="base_chat_box_menu_with_eb_toggle" extends="base_chat_box_menu">
<action id="toggle_chat_eb_vis" name="uimToggleChatEBVis" handler="toggle_chat_eb_vis" params="" /> <action id="toggle_chat_eb_vis" name="uimToggleChatEBVis" handler="toggle_chat_eb_vis" params="" icon="r2_icon_chat_small.tga" />
<separator /> <separator />
</group> </group>
<!-- MainChat Group menu. Code appends entries for selecting chat source (if tab is user chat) --> <!-- MainChat Group menu. Code appends entries for selecting chat source (if tab is user chat) -->
@ -556,6 +568,7 @@
<action id="dyn6" name="6" usergroup_l="chat_menu_button" usergroup_params_l="chat_db=DYNAMIC_CHAT6" /> <action id="dyn6" name="6" usergroup_l="chat_menu_button" usergroup_params_l="chat_db=DYNAMIC_CHAT6" />
<action id="dyn7" name="7" usergroup_l="chat_menu_button" usergroup_params_l="chat_db=DYNAMIC_CHAT7" /> <action id="dyn7" name="7" usergroup_l="chat_menu_button" usergroup_params_l="chat_db=DYNAMIC_CHAT7" />
</action> </action>
<action id="save" name="uimChanSave" handler="lua:game:saveChannel(true)" icon="r2_icon_save_small.tga" />
<separator /> <separator />
</group> </group>
<!-- User Chat menu. Code append entries for selecting chat source --> <!-- User Chat menu. Code append entries for selecting chat source -->
@ -571,8 +584,8 @@
<!-- ****************** --> <!-- ****************** -->
<!-- Menu to select the target --> <!-- Menu to select the target -->
<group type="menu" id="around_me_target_menu" extends="base_menu"> <group type="menu" id="around_me_target_menu" extends="base_menu">
<action id="team_target" name="uiSAY" handler="chat_target_selected" params="say" /> <action id="team_target" name="uiSAY" handler="chat_target_selected" params="say" icon="r2_icon_dialog_mini.tga" />
<action id="team_target" name="uiSHOUT" handler="chat_target_selected" params="shout" /> <action id="team_target" name="uiSHOUT" handler="chat_target_selected" params="shout" icon="r2_icon_dialog_mini_over.tga" />
</group> </group>
<template name="around_me_id" keep="true" posparent="parent" w="256" h="64" title=""> <template name="around_me_id" keep="true" posparent="parent" w="256" h="64" title="">
<group type="container" id="#id" w="#w" posparent="#posparent" title="#title" openable="false" popable="false" open_when_popup="true" pop_min_w="216" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" header_color="UI:SAVE:WIN:COLORS:COM" global_color="false" global_color_over="true" lockable="true"> <group type="container" id="#id" w="#w" posparent="#posparent" title="#title" openable="false" popable="false" open_when_popup="true" pop_min_w="216" pop_min_h="96" pop_max_w="2000" pop_max_h="1600" header_color="UI:SAVE:WIN:COLORS:COM" global_color="false" global_color_over="true" lockable="true">
@ -593,9 +606,9 @@
<!-- ************** --> <!-- ************** -->
<!-- menu on a member of the team for the leader --> <!-- menu on a member of the team for the leader -->
<group type="menu" id="team_member_menu" extends="base_menu_with_color"> <group type="menu" id="team_member_menu" extends="base_menu_with_color">
<action id="dismiss" name="uimDismiss" handler="dismiss_member" params="" /> <action id="dismiss" name="uimDismiss" handler="dismiss_member" params="" icon="r2ed_kicked_char.tga" />
<action id="leader" name="uimSetTeamLeader" handler="set_team_leader" params=""/> <action id="leader" name="uimSetTeamLeader" handler="set_team_leader" params="" icon="r2_toolbar_group_small.tga" />
<action id="successor" name="uimSetSuccesor" handler="set_successor" params=""/> <action id="successor" name="uimSetSuccesor" handler="set_successor" params="" icon="r2_player_admin.tga" />
<!-- <action id="emote" name="uimEmotes" hanlder="" params=""> <!-- <action id="emote" name="uimEmotes" hanlder="" params="">
<action id="emote1" name="uimEmote1" handler="emote" params="emote_id=0"/> <action id="emote1" name="uimEmote1" handler="emote" params="emote_id=0"/>
<action id="emote2" name="uimEmote2" handler="emote" params="emote_id=1"/> <action id="emote2" name="uimEmote2" handler="emote" params="emote_id=1"/>
@ -613,8 +626,8 @@
<action id="command5" name="uimCommand5" handler="" params=""/> <action id="command5" name="uimCommand5" handler="" params=""/>
<action id="command6" name="uimCommand6" handler="" params=""/> <action id="command6" name="uimCommand6" handler="" params=""/>
</action>--> </action>-->
<action id="target" name="uimTarget" handler="team_target" params="" /> <action id="target" name="uimTarget" handler="team_target" params="" icon="ico_aim.tga" />
<action id="compass" name="uimTeamCompass" handler="set_team_compas" params="compass=ui:interface:compass" /> <action id="compass" name="uimTeamCompass" handler="set_team_compas" params="compass=ui:interface:compass" icon="lm_user_pushed.tga" />
<separator /> <separator />
</group> </group>
<!-- links to enable leader options --> <!-- links to enable leader options -->
@ -637,6 +650,7 @@
<group type="menu" id="friend_list_menu" extends="base_chat_box_menu_with_eb_toggle"> <group type="menu" id="friend_list_menu" extends="base_chat_box_menu_with_eb_toggle">
<action id="remove" name="uimRemove" handler="remove_contact" params="" /> <action id="remove" name="uimRemove" handler="remove_contact" params="" />
<action id="move" name="uimMoveToIgnoreList" handler="move_contact" params="list=0" /> <action id="move" name="uimMoveToIgnoreList" handler="move_contact" params="list=0" />
<action id="group" name="uimChangeGroup" handler="change_contact_group_begin" params="group=ui:interface:change_contact_group" />
<separator /> <separator />
</group> </group>
<group type="menu" id="friend_list_menu_offline_unblocked" extends="friend_list_menu"> <group type="menu" id="friend_list_menu_offline_unblocked" extends="friend_list_menu">
@ -947,7 +961,7 @@
<!-- **************** --> <!-- **************** -->
<!-- * CONTACT LIST * --> <!-- * CONTACT LIST * -->
<!-- **************** --> <!-- **************** -->
<group type="container" id="contact_list" w="260" title="uiContactListTitle" movable="true" active="false" opened="true" resizer="false" pop_min_h="89" openable="false" on_active="set" on_active_params="dblink=UI:VARIABLES:ISACTIVE:CONTACT_LIST|value=1" on_deactive="set" on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:CONTACT_LIST|value=0" header_color="UI:SAVE:WIN:COLORS:COM" global_color="false" global_color_over="true"> <group type="container" id="contact_list" w="260" title="uiContactListTitle" movable="true" active="false" opened="true" resizer="false" pop_min_h="89" openable="true" on_active="set" on_active_params="dblink=UI:VARIABLES:ISACTIVE:CONTACT_LIST|value=1" on_deactive="set" on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:CONTACT_LIST|value=0" header_color="UI:SAVE:WIN:COLORS:COM" global_color="false" global_color_over="true">
<group id="header_closed" x="0" y="0" h="16" posref="TL TL"></group> <group id="header_closed" x="0" y="0" h="16" posref="TL TL"></group>
<group id="header_opened" x="0" y="0" w="176" h="16" posref="TL TL"></group> <group id="header_opened" x="0" y="0" w="176" h="16" posref="TL TL"></group>
<group id="content" x="0" y="0" h="0" posref="TL TL"></group> <group id="content" x="0" y="0" h="0" posref="TL TL"></group>
@ -1053,5 +1067,42 @@
<group type="menu" id="chat_copy_action_menu" extends="base_menu"> <group type="menu" id="chat_copy_action_menu" extends="base_menu">
<action id="copy" name="uiCopy" handler="copy_chat" params="from_modal" /> <action id="copy" name="uiCopy" handler="copy_chat" params="from_modal" />
</group> </group>
<proc id="ark_shop_animate_preview_body">
<action handler="set" params="target_property=ui:interface:ark_shop_buy_item:content:header_opened:item_preview:scene_item_preview:char:anim|value=0" />
</proc>
<template name="arkshop_inv_item" sheetdb="UI:TEMP:ARK:ITEM:0" usesheet="false" isvirtual="true" lock="false" render_layer1="1" render_layer2="2" fontsize="8" render_layer3="3" render_layer4="4" w="45" over="grey_0.tga" keep="true" img1scale="false" img2scale="false" img1="token_basic.tga" img2="" img3="" tooltip="" quality="" quantity="" overlay="" text="" text2="" text3="" overlay_active="0" overlay2_active="0" qualquan_active="0" color="255 255 255 255" gc1="false" gc2="false" gc3="true" ctrlcolor="0 0 0 0" color2="255 255 255 255" color3="255 255 255 255" colover="255 255 255 30" bg="w_slot_item.tga" params_l="" params_r="" x="0" y="0">
<group id="#id" posref="MM MM" w="#w" h="45" x="#x" y="#y" sizeref="" render_layer="#render_layer1">
<ctrl type="sheet" tooltip="#text" onclick_r="open_help_auto" active="#usesheet" id="sheet" value="#sheetdb" posref="ML ML" y="0" x="#x" render_layer="#render_layer2" use_quality="true" use_quantity="true" />
<view type="bitmap" id="back" posref="ML ML" h="40" w="40" scale="true" x="#x" y="0" render_layer="#render_layer1" texture="#bg" global_color="false" />
<group id="virtual" active="#isvirtual" posref="MM MM" posparent="back">
<ctrl type="button" id="tooltip" button_type="push_button" global_color_normal="false" scale="true" posref="ML ML" x="2" y="0" w="40" h="40" tooltip="#tooltip" render_layer="#render_layer1" onclick_l="lua" params_l="#params_l" onclick_r="lua" params_r="#params_r" />
<view type="bitmap" id="ref" posref="MM MM" x="0" y="0" scale="true" w="40" h="40" color="0 0 0 0" texture="blank.tga" />
<view type="bitmap" id="img1" posref="MM MM" x="0" y="0" scale="#img1scale" w="40" h="40" render_layer="#render_layer2" texture="#img1" global_color="false" />
<view type="bitmap" id="img2" posref="MM MM" posparent="img1" scale="#img2scale" w="40" h="40" render_layer="#render_layer2" x="0" y="0" texture="#img2" global_color="false" />
<view type="bitmap" id="img3" posref="MM MM" posparent="img1" render_layer="#render_layer2" x="0" y="0" texture="#img3" global_color="false" />
<view type="bitmap" id="img4" posref="BM BM" posparent="img1" scale="true" w="38" h="10" render_layer="#render_layer3" x="-2" y="2" active="#qualquan_active" texture="blank.tga" global_color="true" color="0 0 0 150" />
<view type="bitmap" id="black" posref="TL TL" posparent="ref" render_layer="#render_layer2" active="#overlay_active" w="40" h="10" x="0" y="0" scale="true" color="0 0 0 255" texture="blank.tga" global_color="false" />
<view type="text" id="overlay" posref="TR TR" posparent="ref" render_layer="#render_layer2" x="-3" y="0" hardtext="#overlay" fontsize="7" color="255 255 255 255" shadow="true" global_color="false" />
<view type="bitmap" id="black2" posref="BL BL" posparent="ref" render_layer="3" active="#overlay2_active" w="40" h="10" x="0" y="0" scale="true" color="0 0 0 155" texture="blank.tga" global_color="false" />
<view type="text" id="quantity" posref="BL BL" posparent="ref" render_layer="#render_layer3" x="0" y="0" hardtext="#quantity" fontsize="8" color="255 255 255 255" shadow="true" global_color="false" />
<view type="text" id="quality" posref="BR BR" posparent="ref" render_layer="#render_layer3" x="0" y="0" hardtext="#quality" fontsize="8" color="255 255 255 255" shadow="true" global_color="true" />
</group>
<view type="bitmap" id="over" posref="ML ML" h="40" w="#w" scale="true" x="#x" y="0" render_layer="#render_layer4" texture="#over" global_color="false" />
<view type="bitmap" id="lock" posref="TL TL" h="16" w="16" x="0" y="0" active="#lock" render_layer="#render_layer4" texture="pin_on.tga" global_color="false" />
<view type="text" id="text1" posref="TR TL" posparent="back" x="5" y="1" multi_line="true" format_taged="true" fontsize="8" hardtext_format="#text" color="#color1" shadow="true" global_color="#gc1" />
<view type="text" id="text2" posref="BL TL" posparent="text1" x="0" y="0" multi_line="true" format_taged="true" fontsize="#fontsize" hardtext_format="#text2" color="#color2" shadow="true" global_color="#gc2" />
<view type="text" id="text3" posref="BL TL" posparent="text2" x="0" y="-2" multi_line="true" format_taged="true" fontsize="#fontsize" hardtext_format="#text3" color="#color3" shadow="true" global_color="#gc3" />
<ctrl type="button" id="ctrl" button_type="push_button" global_color_normal="false" posref="ML ML" x="#x" y="0" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" scale="true" w="#w" h="40" color="#ctrlcolor" col_over="#colover" col_pushed="#colover" render_layer="#render_layer2" onclick_l="lua" params_l="#params_l" onclick_r="lua" params_r="#params_r" />
</group>
</template>
<template name="arkshop_inv_mission" sheetdb="UI:TEMP:ARK:ITEM:0" usesheet="false" usesheet_reward="false" isvirtual="true" render_layer1="1" render_layer2="2" fontsize="8" render_layer3="3" w="45" keep="true" img1="token_basic.tga" img2="" img3="" tooltip="" quality="" quantity="" overlay="" text="" text2="" text3="" color="255 255 255 255" gc1="false" gc2="false" gc3="true" ctrlcolor="0 0 0 0" color2="255 255 255 255" color3="255 255 255 255" colover="255 255 255 30" bg="w_slot_item.tga" params_l="" params_r="" x="0" y="0">
<group id="#id" posref="MM MM" w="#w" h="45" x="#x" y="#y" sizeref="" render_layer="#render_layer1">
<ctrl type="sheet" tooltip="#text" onclick_r="open_help_auto" active="#usesheet" id="sheet" value="#sheetdb" posref="MR MR" y="0" x="0" render_layer="#render_layer3" use_quality="true" use_quantity="true" />
<view type="bitmap" id="back" posref="ML ML" h="40" w="40" scale="true" x="0" y="0" render_layer="#render_layer1" texture="points_atys.tga" global_color="false" />
<view type="bitmap" id="back2" posref="MM MM" posparent="back" h="40" w="40" scale="false" x="0" y="0" render_layer="#render_layer2" texture="https://app.ryzom.com/app_arcc/data/app/Scripts//1/5/0/4/assets/mission_elyps.png" global_color="false" />
<view type="text" id="text1" posref="TR TL" posparent="back" x="5" y="1" format_taged="true" fontsize="8" hardtext="#text" color="#color1" shadow="true" global_color="#gc1" />
<view type="text" id="text2" posref="BL TL" posparent="text1" x="0" y="2" format_taged="true" fontsize="#fontsize" hardtext="#text2" color="#color2" shadow="true" global_color="#gc2" />
<ctrl type="button" id="ctrl" button_type="push_button" global_color_normal="false" posref="ML ML" x="1" y="0" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" scale="true" w="#w" h="40" color="#ctrlcolor" col_over="#colover" col_pushed="#colover" render_layer="#render_layer2" onclick_l="lua" params_l="#params_l" onclick_r="lua" params_r="#params_r" />
</group>
</template>
</interface_config> </interface_config>

@ -23,6 +23,35 @@
<!-- Yoyo: prefer show an empty list when clicking --> <!-- Yoyo: prefer show an empty list when clicking -->
<!-- <action handler="leave_modal" cond="eq(getprop('ui:interface:bag_choose:list:nbelt'),0)" /> --> <!-- <action handler="leave_modal" cond="eq(getprop('ui:interface:bag_choose:list:nbelt'),0)" /> -->
</proc> </proc>
<proc id="select_special_items">
<action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:ryzhome:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=1" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_content:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_bottom:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_tab:active|value=0" />
<action handler="lua" params="artefact:restorePact()" />
<action handler="browse_home" params="name=ui:interface:inventory:content:bag:webitems:html" />
</proc>
<proc id="select_ryzhome_items">
<action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:ryzhome:active|value=1" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_content:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_bottom:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_tab:active|value=0" />
<action handler="lua" params="artefact:restorePact()" />
<action handler="browse_home" params="name=ui:interface:inventory:content:bag:ryzhome:html" />
</proc>
<proc id="select_bag_items">
<action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=1" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:ryzhome:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_content:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_bottom:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_tab:active|value=0" />
<action handler="lua" params="artefact:restorePact()" />
</proc>
<!-- ************* --> <!-- ************* -->
<!-- * EQUIPMENT * --> <!-- * EQUIPMENT * -->
<!-- ************* --> <!-- ************* -->
@ -228,7 +257,7 @@
<template name="tinv_animal" id="" bag_entry="" info_entry="" icon_db=""> <template name="tinv_animal" id="" bag_entry="" info_entry="" icon_db="">
<group id="#id" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0"> <group id="#id" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0">
<instance template="tinv_nbslots_bulk_weight" id="ibw" x="0" inv_branch_nb="%max_animal_invslot" inv_branch="#bag_entry" inv_bulk_max="#info_entry:BULK_MAX" /> <instance template="tinv_nbslots_bulk_weight" id="ibw" x="0" inv_branch_nb="%max_animal_invslot" inv_branch="#bag_entry" inv_bulk_max="#info_entry:BULK_MAX" />
<instance template="tinv_item_list" id="iil" y="-18" sizeref="wh" h="-16" <instance template="tinv_item_list" id="iil" y="-16" sizeref="wh" h="-16"
inv_branch_nb="%max_animal_invslot" inv_branch="#bag_entry" inv_type="#icon_db" animal_status="#info_entry:STATUS" /> inv_branch_nb="%max_animal_invslot" inv_branch="#bag_entry" inv_type="#icon_db" animal_status="#info_entry:STATUS" />
<view type="text" id="disable_txt" posref="BL BL" x="2" y="2" color="255 255 255 255" shadow="true" fontsize="10" /> <view type="text" id="disable_txt" posref="BL BL" x="2" y="2" color="255 255 255 255" shadow="true" fontsize="10" />
<link expr="getAnimalInventoryStateText(@#info_entry:STATUS)" target="disable_txt:hardtext" /> <link expr="getAnimalInventoryStateText(@#info_entry:STATUS)" target="disable_txt:hardtext" />
@ -238,7 +267,7 @@
<!-- FAKE SOLUTION --> <!-- FAKE SOLUTION -->
<group type="container" id="inventory" header_active="false" <group type="container" id="inventory" header_active="false"
resizer="true" pop_min_w="430" pop_min_h="240" pop_max_w="920" pop_max_h="1600" w="400" h="400" resizer="true" pop_min_w="380" pop_min_h="265" pop_max_w="920" pop_max_h="1600" w="380" h="265"
movable="true" active="false" opened="true" openable="false" movable="true" active="false" opened="true" openable="false"
global_color="false" global_color_over="true" global_color="false" global_color_over="true"
on_active="set" on_active_params="dblink=UI:VARIABLES:ISACTIVE:INVENTORY|value=1" on_active="set" on_active_params="dblink=UI:VARIABLES:ISACTIVE:INVENTORY|value=1"
@ -259,8 +288,11 @@
<ctrl style="tab_button_new" id="tab3" posparent="tab2" group="content:pa1" hardtext="uitabInvPAMount1" tooltip="uiTabInfo" onclick_r="show" params_r="inv_pa1" onclick_l="" params_l="" /> <ctrl style="tab_button_new" id="tab3" posparent="tab2" group="content:pa1" hardtext="uitabInvPAMount1" tooltip="uiTabInfo" onclick_r="show" params_r="inv_pa1" onclick_l="" params_l="" />
<ctrl style="tab_button_new" id="tab4" posparent="tab3" group="content:pa2" hardtext="uitabInvPAMount2" tooltip="uiTabInfo" onclick_r="show" params_r="inv_pa2" onclick_l="" params_l="" /> <ctrl style="tab_button_new" id="tab4" posparent="tab3" group="content:pa2" hardtext="uitabInvPAMount2" tooltip="uiTabInfo" onclick_r="show" params_r="inv_pa2" onclick_l="" params_l="" />
<ctrl style="tab_button_new" id="tab5" posparent="tab4" group="content:pa3" hardtext="uitabInvPAMount3" tooltip="uiTabInfo" onclick_r="show" params_r="inv_pa3" onclick_l="" params_l="" /> <ctrl style="tab_button_new" id="tab5" posparent="tab4" group="content:pa3" hardtext="uitabInvPAMount3" tooltip="uiTabInfo" onclick_r="show" params_r="inv_pa3" onclick_l="" params_l="" />
<ctrl style="tab_button_new" id="tab6" posparent="tab5" group="content:guild" hardtext="uitabInvGuild" tooltip="uiTabInfo" onclick_r="set" params_r="dblink=UI:SAVE:INVENTORY_GUILD_WANT_POPUP|value=1" onclick_l="" params_l="" /> <ctrl style="tab_button_new" id="tab6" posparent="tab5" group="content:pa4" hardtext="uitabInvPAZig1" tooltip="uiTabInfo" onclick_r="show" params_r="inv_pa4" onclick_l="" params_l="" />
<ctrl style="tab_button_new" id="tab7" posparent="tab6" group="content:room" hardtext="uitabInvRoom" tooltip="uiTabInfo" onclick_r="show" params_r="inv_room" onclick_l="" params_l="" /> <ctrl style="tab_button_new" id="tab7" posparent="tab6" group="content:pa5" hardtext="uitabInvPAZig2" tooltip="uiTabInfo" onclick_r="show" params_r="inv_pa5" onclick_l="" params_l="" />
<ctrl style="tab_button_new" id="tab8" posparent="tab7" group="content:pa6" hardtext="uitabInvPAZig3" tooltip="uiTabInfo" onclick_r="show" params_r="inv_pa6" onclick_l="" params_l="" />
<ctrl style="tab_button_new" id="tab9" posparent="tab8" group="content:guild" hardtext="uitabInvGuild" tooltip="uiTabInfo" onclick_r="set" params_r="dblink=UI:SAVE:INVENTORY_GUILD_WANT_POPUP|value=1" onclick_l="" params_l="" />
<ctrl style="tab_button_new" id="tab10" posparent="tab9" group="content:room" hardtext="uitabInvRoom" tooltip="uiTabInfo" onclick_r="show" params_r="inv_room" onclick_l="" params_l="" />
<link expr="not(@UI:VARIABLES:ISACTIVE:INV_BAG)" target="tab0:active" /> <link expr="not(@UI:VARIABLES:ISACTIVE:INV_BAG)" target="tab0:active" />
<link expr="not(@UI:VARIABLES:ISACTIVE:INV_EQUIP)" target="tab1:active" /> <link expr="not(@UI:VARIABLES:ISACTIVE:INV_EQUIP)" target="tab1:active" />
@ -269,14 +301,17 @@
<link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA1), isAnimalStatusPresent(@%pa_beast1:STATUS))" target="tab3:active" /> <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA1), isAnimalStatusPresent(@%pa_beast1:STATUS))" target="tab3:active" />
<link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA2), isAnimalStatusPresent(@%pa_beast2:STATUS))" target="tab4:active" /> <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA2), isAnimalStatusPresent(@%pa_beast2:STATUS))" target="tab4:active" />
<link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA3), isAnimalStatusPresent(@%pa_beast3:STATUS))" target="tab5:active" /> <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA3), isAnimalStatusPresent(@%pa_beast3:STATUS))" target="tab5:active" />
<link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA4), isAnimalStatusPresent(@%pa_beast4:STATUS))" target="tab6:active" />
<link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA5), isAnimalStatusPresent(@%pa_beast5:STATUS))" target="tab7:active" />
<link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_PA6), isAnimalStatusPresent(@%pa_beast6:STATUS))" target="tab8:active" />
<!-- MAX_INVENTORY_ANIMAL --> <!-- MAX_INVENTORY_ANIMAL -->
<link expr="switch(@%pa_beast0:TYPE, 'uitabInvPAMount0', 'uitabInvPAMount0', 'uitabInvPAPacker0', 'uitabInvPADemon0')" target="tab2:hardtext" /> <link expr="switch(@%pa_beast0:TYPE, 'uitabInvPAMount0', 'uitabInvPAMount0', 'uitabInvPAPacker0', 'uitabInvPADemon0')" target="tab2:hardtext" />
<link expr="switch(@%pa_beast1:TYPE, 'uitabInvPAMount1', 'uitabInvPAMount1', 'uitabInvPAPacker1', 'uitabInvPADemon1')" target="tab3:hardtext" /> <link expr="switch(@%pa_beast1:TYPE, 'uitabInvPAMount1', 'uitabInvPAMount1', 'uitabInvPAPacker1', 'uitabInvPADemon1')" target="tab3:hardtext" />
<link expr="switch(@%pa_beast2:TYPE, 'uitabInvPAMount2', 'uitabInvPAMount2', 'uitabInvPAPacker2', 'uitabInvPADemon2')" target="tab4:hardtext" /> <link expr="switch(@%pa_beast2:TYPE, 'uitabInvPAMount2', 'uitabInvPAMount2', 'uitabInvPAPacker2', 'uitabInvPADemon2')" target="tab4:hardtext" />
<link expr="switch(@%pa_beast3:TYPE, 'uitabInvPAMount3', 'uitabInvPAMount3', 'uitabInvPAPacker3', 'uitabInvPADemon3')" target="tab5:hardtext" /> <link expr="switch(@%pa_beast3:TYPE, 'uitabInvPAMount3', 'uitabInvPAMount3', 'uitabInvPAPacker3', 'uitabInvPADemon3')" target="tab5:hardtext" />
<link expr="and(%is_guild_present, not(@UI:SAVE:INVENTORY_GUILD_WANT_POPUP), @UI:TEMP:INVENTORY_GUILD_OPENED)" target="tab6:active" /> <link expr="and(%is_guild_present, not(@UI:SAVE:INVENTORY_GUILD_WANT_POPUP), @UI:TEMP:INVENTORY_GUILD_OPENED)" target="tab9:active" />
<link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_ROOM), @UI:TEMP:INVENTORY_ROOM_OPENED)" target="tab7:active" /> <link expr="and(not(@UI:VARIABLES:ISACTIVE:INV_ROOM), @UI:TEMP:INVENTORY_ROOM_OPENED)" target="tab10:active" />
</group> </group>
<view type="bitmap" id="sep" posparent="inv_select" posref="BR BL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" /> <view type="bitmap" id="sep" posparent="inv_select" posref="BR BL" sizeparent="parent" sizeref="w" w="0" h="1" scale="true" texture="blank.tga" color="166 166 166 255" />
@ -290,9 +325,28 @@
<!-- bag --> <!-- bag -->
<group id="bag" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0"> <group id="bag" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0">
<!-- Special Items -->
<ctrl style="text_button_16" id="bag_items" posref="TL TL" y="-2" x="10" wmargin="8" hardtext="uitabInvBag" tooltip="uitabInvBag" onclick_l="proc" params_l="select_bag_items" />
<ctrl style="text_button_16" id="special_items" posref="TR TL" posparent="bag_items" y="0" x="2" wmargin="8" hardtext="uiSpecialLabo" tooltip="uiSpecialLabo" onclick_l="proc" params_l="select_special_items" />
<ctrl style="text_button_16" id="ryzhome_items" posref="TR TL" posparent="special_items" y="0" x="2" wmargin="8" hardtext="RyzHome" tooltip="RyzHome" onclick_l="proc" params_l="select_ryzhome_items" />
<ctrl id="artefact_tab" type="button" posref="TR TL" posparent="ryzhome_items" y="0" x="2" active="0" tooltip="Artefact" instant_help="false" tx_normal="r2_palette_act.tga" tx_pushed="r2_palette_act.tga" tx_over="r2_palette_act.tga" />
<group id="webitems" posref="TL TL" sizeref="wh" h="-35" w="0" x="-10" y="-15" active="0">
<instance id="html" template="webig_html_noborder" x="0" home="http://app.ryzom.com/app_arcc/index.php?action=mItem_DisplayUserItems" browse_redo="" browse_undo="" browse_refresh="" />
</group>
<group id="ryzhome" posref="TL TL" sizeref="wh" h="-35" w="0" x="-10" y="-15" active="0">
<instance id="html" template="webig_html_noborder" x="0" home="http://app.ryzom.com/app_arcc/index.php?action=mRyzhome_DisplayUserItems" browse_redo="" browse_undo="" browse_refresh="" />
</group>
<group id="artefact_content" posref="TL TL" sizeref="wh" h="-35" w="0" x="-8" y="-15" active="0">
<instance id="html" template="webig_html_noborder" x="0" home="" browse_redo="" browse_undo="" browse_refresh="" />
</group>
<group id="artefact_bottom" posref="BR BR" sizeref="wh" h="0" w="0" x="0" y="0" global_color="false" active="0">
<ctrl id="detach" type="button" button_type="push_button" posref="BR MR" y="30" x="-4" tx_normal="W_win_popup.tga" tx_pushed="W_win_popup.tga" tx_over="W_button_16_over.tga" onclick_l="proc" params_l="artefact_win_detach" />
<instance template="check_box" id="autopact_cb" posref="BR MR" y="10" x="-1" fontsize="9" tooltip="uiArtefactHelp" instant_help="false" dblink="UI:SAVE:TELEPORT:DO_PACT" />
<view type="text" id="autopact_vt" posref="BR MR" x="-23" y="10" hardtext="" />
</group>
<instance template="tinv_nbslots_bulk_weight" id="ibw" x="0" inv_branch="%bag" inv_bulk_max="%bag_bulk_max" /> <instance template="tinv_nbslots_bulk_weight" id="ibw" x="0" inv_branch="%bag" inv_bulk_max="%bag_bulk_max" />
<instance template="tinv_item_list" id="iil" inv_branch_nb="%max_bag_invslot" y="-18" sizeref="wh" h="-16" inv_branch="%bag" inv_type="INV_BAG" /> <instance template="tinv_item_list" id="iil" inv_branch_nb="%max_bag_invslot" y="-18" sizeref="wh" h="-16" inv_branch="%bag" inv_type="INV_BAG" />
<instance template="argent" id="money" posref="BL BL" x="4" y="0" value="%money" /> <instance template="argent" id="money" posref="BL BL" x="4" y="2" value="%money" />
</group> </group>
<!-- pa0 --> <!-- pa0 -->
@ -307,11 +361,20 @@
<!-- pa3 --> <!-- pa3 -->
<instance template="tinv_animal" id="pa3" info_entry="%pa_beast3" bag_entry="%pa_bag3" icon_db="INV_PA3" /> <instance template="tinv_animal" id="pa3" info_entry="%pa_beast3" bag_entry="%pa_bag3" icon_db="INV_PA3" />
<!-- pa4 -->
<instance template="tinv_animal" id="pa4" info_entry="%pa_beast4" bag_entry="%pa_bag4" icon_db="INV_PA4" />
<!-- pa5 -->
<instance template="tinv_animal" id="pa5" info_entry="%pa_beast5" bag_entry="%pa_bag5" icon_db="INV_PA5" />
<!-- pa6 -->
<instance template="tinv_animal" id="pa6" info_entry="%pa_beast6" bag_entry="%pa_bag6" icon_db="INV_PA6" />
<!-- guild --> <!-- guild -->
<group id="guild" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0"> <group id="guild" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0">
<instance template="tinv_nbslots_bulk_weight" id="ibw" x="0" inv_branch="%guild_inv_dbentry" inv_bulk_max="%guild_inv_bulk_max" /> <instance template="tinv_nbslots_bulk_weight" id="ibw" x="0" inv_branch="%guild_inv_dbentry" inv_bulk_max="%guild_inv_bulk_max" />
<instance template="tinv_item_list" id="iil" inv_branch_nb="%max_guild_invslot" y="-18" sizeref="wh" h="-16" inv_branch="%guild_inv_dbentry" inv_type="INV_GUILD" /> <instance template="tinv_item_list" id="iil" inv_branch_nb="%max_guild_invslot" y="-18" sizeref="wh" h="-16" inv_branch="%guild_inv_dbentry" inv_type="INV_GUILD" />
<instance template="argent" id="money" posref="BL BL" x="4" y="0" value="%guild_inv_money" /> <instance template="argent" id="money" posref="BL BL" x="4" y="2" value="%guild_inv_money" />
<ctrl style="new_element_header" id="getmoney_but" posref="MR ML" posparent="money" x="4" wmargin="8" <ctrl style="new_element_header" id="getmoney_but" posref="MR ML" posparent="money" x="4" wmargin="8"
hardtext="uittGetMoney" onclick_l="proc" params_l="guild_get_money" /> hardtext="uittGetMoney" onclick_l="proc" params_l="guild_get_money" />
<ctrl style="new_element_header" id="putmoney_but" posref="MR ML" posparent="getmoney_but" x="4" wmargin="8" <ctrl style="new_element_header" id="putmoney_but" posref="MR ML" posparent="getmoney_but" x="4" wmargin="8"
@ -322,7 +385,7 @@
<group id="room" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0"> <group id="room" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0">
<instance template="tinv_nbslots_bulk_weight" id="ibw" x="-4" inv_branch="%room_inv_dbentry" inv_bulk_max="%room_inv_bulk_max" /> <instance template="tinv_nbslots_bulk_weight" id="ibw" x="-4" inv_branch="%room_inv_dbentry" inv_bulk_max="%room_inv_bulk_max" />
<instance template="tinv_item_list" id="iil" inv_branch_nb="%max_room_invslot" y="-18" sizeref="wh" h="-16" inv_branch="%room_inv_dbentry" inv_type="INV_ROOM" /> <instance template="tinv_item_list" id="iil" inv_branch_nb="%max_room_invslot" y="-18" sizeref="wh" h="-16" inv_branch="%room_inv_dbentry" inv_type="INV_ROOM" />
<instance template="argent" id="money" posref="BL BL" x="4" y="0" value="%room_inv_money" /> <instance template="argent" id="money" posref="BL BL" x="4" y="2" value="%room_inv_money" />
</group> </group>
</group> </group>
@ -434,26 +497,26 @@
<!-- context menu for memory button --> <!-- context menu for memory button -->
<group type="menu" id="cm_memory_phrase" extends="base_menu" on_active="phrase_check_can_cristalize"> <group type="menu" id="cm_memory_phrase" extends="base_menu" on_active="phrase_check_can_cristalize">
<action id="cri" name="uimCristalize" handler="phrase_cristalize" /> <action id="cri" name="uimCristalize" handler="phrase_cristalize" icon="cristal_spell.tga" />
<!-- The erase phrase on the memory is possible only if the phrase composition is not active, and the current phrase is not executed --> <!-- The erase phrase on the memory is possible only if the phrase composition is not active, and the current phrase is not executed -->
<action id="for" name="uimPhraseDel" handler="delete_phrase_or_forget_macro" cond="and(eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0),isPhraseMenuNotExecuting())" /> <action id="for" name="uimPhraseDel" handler="delete_phrase_or_forget_macro" cond="and(eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0),isPhraseMenuNotExecuting())" icon="r2ed_not_current_act.tga" />
<!-- The edit direct on the memory is possible only if the phrase composition is not active, and the current phrase is not executed --> <!-- The edit direct on the memory is possible only if the phrase composition is not active, and the current phrase is not executed -->
<action id="edi" name="uimPhraseEdit" handler="phrase_edit" cond="and(eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0),isPhraseMenuNotExecuting())" /> <action id="edi" name="uimPhraseEdit" handler="phrase_edit" cond="and(eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0),isPhraseMenuNotExecuting())" icon="r2ed_edit_dialog.tga" />
<action id="inf" name="uimInfos" handler="open_phraseid_help" /> <action id="inf" name="uimInfos" handler="open_phraseid_help" icon="brick_default.tga" />
<action id="cut" name="uiEditCut" handler="phrase_memory_copy" params="mode=cut" /> <action id="cut" name="uiEditCut" handler="phrase_memory_copy" params="mode=cut" icon="ico_extracting.tga" />
<action id="copy" name="uiEditCopy" handler="phrase_memory_copy" /> <action id="copy" name="uiEditCopy" handler="phrase_memory_copy" icon="r2ed_tool_copy.tga" />
</group> </group>
<!-- context menu for memory button, when slot is empty --> <!-- context menu for memory button, when slot is empty -->
<group type="menu" id="cm_memory_phrase_empty" extends="base_menu"> <group type="menu" id="cm_memory_phrase_empty" extends="base_menu">
<!-- The new direct on the memory is possible only if the phrase composition is not active --> <!-- The new direct on the memory is possible only if the phrase composition is not active -->
<action id="new" name="uimPhraseNew" handler="phrase_new" cond="eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0)" /> <action id="new" name="uimPhraseNew" handler="phrase_new" cond="eq(@UI:VARIABLES:PHRASE_COMPOSITION:ACTIVE,0)" icon="curs_create.tga" />
<action id="paste" name="uiEditPaste" handler="memorize_phrase_or_macro" /> <action id="paste" name="uiEditPaste" handler="memorize_phrase_or_macro" icon="r2ed_tool_paste.tga" />
</group> </group>
<!-- context menu for memory button when it is a macro--> <!-- context menu for memory button when it is a macro-->
<group type="menu" id="cm_memory_macro" extends="base_menu" on_active="phrase_check_can_cristalize"> <group type="menu" id="cm_memory_macro" extends="base_menu" on_active="phrase_check_can_cristalize">
<action id="for" name="uimForgetMacro" handler="delete_phrase_or_forget_macro" /> <action id="for" name="uimForgetMacro" handler="delete_phrase_or_forget_macro" icon="r2ed_not_current_act.tga" />
</group> </group>
<!-- Defines memory ctrl --> <!-- Defines memory ctrl -->
@ -469,7 +532,9 @@
<!-- Defines memory ctrl --> <!-- Defines memory ctrl -->
<template name="ctrl_alt_memory" index="" posref="TL TL" posparent="parent" x="0" y="0" tx_noitem=""> <template name="ctrl_alt_memory" index="" posref="TL TL" posparent="parent" x="0" y="0" tx_noitem="">
<ctrl type="sheet" id="s#index" value="UI:PHRASE:MEMORY_ALT:#index" nature="sphraseid" brick_over="true" x="#x" y="#y" posref="#posref" posparent="#posparent" tx_noitem="#tx_noitem" <ctrl type="sheet" id="s#index" value="UI:PHRASE:MEMORY_ALT:#index" nature="sphraseid" brick_over="true" x="#x" y="#y" posref="#posref" posparent="#posparent" tx_noitem="#tx_noitem"
dragable="false" is_shortcut="false" oncandrop="can_memorize_phrase_or_macro" ondrop="memorize_phrase_or_macro" dragable="true"
menu_r="ui:interface:cm_memory_phrase" menu_r_empty_slot="ui:interface:cm_memory_phrase_empty" is_shortcut="false" drag_copy="true"
onclick_r="phrase_memory_before_menu"
onclick_l="cast_phrase_or_create_new" onclick_l="cast_phrase_or_create_new"
tooltip_parent="win" tooltip_posref="TR TL" tooltip_posref_alt="TL TR" /> tooltip_parent="win" tooltip_posref="TR TL" tooltip_posref_alt="TL TR" />
</template> </template>
@ -556,7 +621,7 @@
<group type="select_number" id="select_memory" value="UI:PHRASE:SELECT_MEMORY" loop="true" min="1" max="10" x="9" y="0" w="297" h="52" posparent="shortcuts" posref="MM MM" delta="1"> <group type="select_number" id="select_memory" value="UI:PHRASE:SELECT_MEMORY" loop="true" min="1" max="10" x="9" y="0" w="297" h="52" posparent="shortcuts" posref="MM MM" delta="1">
<view type="bitmap" id="slot_number" posref="MR MR" texture="W_slot_number.tga" /> <view type="bitmap" id="slot_number" posref="MR MR" texture="W_slot_number.tga" />
<view type="text" id="number" posparent="slot_number" posref="MM MM" x="-1" y="-2" color="255 255 255 255" fontsize="12" shadow="true" hardtext="0" global_color="false" /> <view type="text" id="number" posparent="slot_number" posref="MM MM" x="0" y="0" color="255 255 255 255" fontsize="10" shadow="true" hardtext="0" global_color="false" />
<ctrl type="button" id="arrow_up" button_type="push_button" posref="TR TR" x="-2" y="-6" tx_normal="W_arrow_up_1.tga" tx_pushed="W_arrow_up_1.tga" tx_over="W_button_12_over.tga" tooltip="uittHandSet" tooltip_parent="win" /> <ctrl type="button" id="arrow_up" button_type="push_button" posref="TR TR" x="-2" y="-6" tx_normal="W_arrow_up_1.tga" tx_pushed="W_arrow_up_1.tga" tx_over="W_button_12_over.tga" tooltip="uittHandSet" tooltip_parent="win" />
<ctrl type="button" id="arrow_down" button_type="push_button" posref="BR BR" x="-2" y="6" tx_normal="W_arrow_down_1.tga" tx_pushed="W_arrow_down_1.tga" tx_over="W_button_12_over.tga" tooltip="uittHandSet" tooltip_parent="win" /> <ctrl type="button" id="arrow_down" button_type="push_button" posref="BR BR" x="-2" y="6" tx_normal="W_arrow_down_1.tga" tx_pushed="W_arrow_down_1.tga" tx_over="W_button_12_over.tga" tooltip="uittHandSet" tooltip_parent="win" />
</group> </group>

@ -296,6 +296,7 @@
<key name="N/A" action="dock_undock_chat" params="SYSTEM_INFO" /> <key name="N/A" action="dock_undock_chat" params="SYSTEM_INFO" />
<key name="KeyM" shift="1" action="show_hide" params="mailbox" /> <key name="KeyM" shift="1" action="show_hide" params="mailbox" />
<key name="KeyW" shift="1" action="show_hide" params="webig"/> <key name="KeyW" shift="1" action="show_hide" params="webig"/>
<key name="N/A" action="show_hide" params="appzone"/>
<key name="KeyG" shift="1" action="show_hide" params="guild_forum" /> <key name="KeyG" shift="1" action="show_hide" params="guild_forum" />
<key name="KeyD" ctrl="1" action="show_hide" params="debug_info" /> <key name="KeyD" ctrl="1" action="show_hide" params="debug_info" />
<key name="KeyF5" action="talk_untalk" /> <key name="KeyF5" action="talk_untalk" />

@ -273,6 +273,7 @@
<key name="N/A" action="dock_undock_chat" params="SYSTEM_INFO" /> <key name="N/A" action="dock_undock_chat" params="SYSTEM_INFO" />
<key name="KeyM" shift="1" action="show_hide" params="mailbox" /> <key name="KeyM" shift="1" action="show_hide" params="mailbox" />
<key name="KeyW" shift="1" action="show_hide" params="webig"/> <key name="KeyW" shift="1" action="show_hide" params="webig"/>
<key name="N/A" action="show_hide" params="appzone"/>
<key name="KeyG" shift="1" action="show_hide" params="guild_forum" /> <key name="KeyG" shift="1" action="show_hide" params="guild_forum" />
<key name="KeyF5" action="talk_untalk" /> <key name="KeyF5" action="talk_untalk" />
<key name="N/A" action="show_hide" params="r2ed_ring_window" /> <key name="N/A" action="show_hide" params="r2ed_ring_window" />

@ -273,6 +273,7 @@
<key name="N/A" action="dock_undock_chat" params="SYSTEM_INFO" /> <key name="N/A" action="dock_undock_chat" params="SYSTEM_INFO" />
<key name="KeyM" shift="1" action="show_hide" params="mailbox" /> <key name="KeyM" shift="1" action="show_hide" params="mailbox" />
<key name="KeyW" shift="1" action="show_hide" params="webig"/> <key name="KeyW" shift="1" action="show_hide" params="webig"/>
<key name="N/A" action="show_hide" params="appzone"/>
<key name="KeyG" shift="1" action="show_hide" params="guild_forum" /> <key name="KeyG" shift="1" action="show_hide" params="guild_forum" />
<key name="KeyF5" action="talk_untalk" /> <key name="KeyF5" action="talk_untalk" />
<key name="N/A" action="show_hide" params="r2ed_ring_window" /> <key name="N/A" action="show_hide" params="r2ed_ring_window" />

@ -24,8 +24,9 @@
<leaf name="SHEET" type="I32" /> <leaf name="SHEET" type="I32" />
<leaf name="QUALITY" type="I10" /> <leaf name="QUALITY" type="I10" />
<leaf name="QUANTITY" type="I10" /> <leaf name="QUANTITY" type="I10" />
<leaf name="CREATE_TIME" type="I32" />
<leaf name="SERIAL" type="I32" />
<leaf name="USER_COLOR" type="I3" /> <leaf name="USER_COLOR" type="I3" />
<leaf name="CHARAC_BUFFS" type="I8" />
<leaf name="LOCKED" type="I10" /> <leaf name="LOCKED" type="I10" />
<leaf name="WEIGHT" type="I16" /> <leaf name="WEIGHT" type="I16" />
<!-- weight. see DB_WEIGHT_SCALE--> <!-- weight. see DB_WEIGHT_SCALE-->
@ -44,14 +45,15 @@
</branch> </branch>
</branch> </branch>
<!-- MAX_INVENTORY_ANIMAL --> <!-- MAX_INVENTORY_ANIMAL -->
<branch name="PACK_ANIMAL" count="4"> <branch name="PACK_ANIMAL" count="7">
<branch name="" count="500"> <branch name="" count="500">
<!-- Common Item Data --> <!-- Common Item Data -->
<leaf name="SHEET" type="I32" /> <leaf name="SHEET" type="I32" />
<leaf name="QUALITY" type="I10" /> <leaf name="QUALITY" type="I10" />
<leaf name="QUANTITY" type="I10" /> <leaf name="QUANTITY" type="I10" />
<leaf name="CREATE_TIME" type="I32" />
<leaf name="SERIAL" type="I32" />
<leaf name="USER_COLOR" type="I3" /> <leaf name="USER_COLOR" type="I3" />
<leaf name="CHARAC_BUFFS" type="I8" />
<leaf name="LOCKED" type="I10" /> <leaf name="LOCKED" type="I10" />
<leaf name="WEIGHT" type="I16" /> <leaf name="WEIGHT" type="I16" />
<!-- weight. see DB_WEIGHT_SCALE--> <!-- weight. see DB_WEIGHT_SCALE-->
@ -84,8 +86,9 @@
<leaf name="SHEET" type="I32" /> <leaf name="SHEET" type="I32" />
<leaf name="QUALITY" type="I10" /> <leaf name="QUALITY" type="I10" />
<leaf name="QUANTITY" type="I10" /> <leaf name="QUANTITY" type="I10" />
<leaf name="CREATE_TIME" type="I32" />
<leaf name="SERIAL" type="I32" />
<leaf name="USER_COLOR" type="I3" /> <leaf name="USER_COLOR" type="I3" />
<leaf name="CHARAC_BUFFS" type="I8" />
<!-- No LOCKED state --> <!-- No LOCKED state -->
<leaf name="WEIGHT" type="I16" /> <leaf name="WEIGHT" type="I16" />
<!-- weight. see DB_WEIGHT_SCALE--> <!-- weight. see DB_WEIGHT_SCALE-->
@ -109,8 +112,9 @@
<leaf name="SHEET" type="I32" /> <leaf name="SHEET" type="I32" />
<leaf name="QUALITY" type="I10" /> <leaf name="QUALITY" type="I10" />
<leaf name="QUANTITY" type="I10" /> <leaf name="QUANTITY" type="I10" />
<leaf name="CREATE_TIME" type="I32" />
<leaf name="SERIAL" type="I32" />
<leaf name="USER_COLOR" type="I3" /> <leaf name="USER_COLOR" type="I3" />
<leaf name="CHARAC_BUFFS" type="I8" />
<leaf name="WEIGHT" type="I16" /> <leaf name="WEIGHT" type="I16" />
<!-- weight. see DB_WEIGHT_SCALE--> <!-- weight. see DB_WEIGHT_SCALE-->
<leaf name="NAMEID" type="I32" /> <leaf name="NAMEID" type="I32" />
@ -144,8 +148,9 @@
<leaf name="SHEET" type="I32" /> <leaf name="SHEET" type="I32" />
<leaf name="QUALITY" type="I10" /> <leaf name="QUALITY" type="I10" />
<leaf name="QUANTITY" type="I10" /> <leaf name="QUANTITY" type="I10" />
<leaf name="CREATE_TIME" type="I32" />
<leaf name="SERIAL" type="I32" />
<leaf name="USER_COLOR" type="I3" /> <leaf name="USER_COLOR" type="I3" />
<leaf name="CHARAC_BUFFS" type="I8" />
<leaf name="LOCKED" type="I10" /> <leaf name="LOCKED" type="I10" />
<leaf name="WEIGHT" type="I16" /> <leaf name="WEIGHT" type="I16" />
<!-- weight. see DB_WEIGHT_SCALE--> <!-- weight. see DB_WEIGHT_SCALE-->
@ -179,8 +184,9 @@
<leaf name="SHEET" type="I32" /> <leaf name="SHEET" type="I32" />
<leaf name="QUALITY" type="I10" /> <leaf name="QUALITY" type="I10" />
<leaf name="QUANTITY" type="I10" /> <leaf name="QUANTITY" type="I10" />
<leaf name="CREATE_TIME" type="I32" />
<leaf name="SERIAL" type="I32" />
<leaf name="USER_COLOR" type="I3" /> <leaf name="USER_COLOR" type="I3" />
<leaf name="CHARAC_BUFFS" type="I8" />
<!-- <leaf name="LOCKED" type="I10"/> No longer needed --> <!-- <leaf name="LOCKED" type="I10"/> No longer needed -->
<leaf name="WEIGHT" type="I16" /> <leaf name="WEIGHT" type="I16" />
<!-- weight. see DB_WEIGHT_SCALE--> <!-- weight. see DB_WEIGHT_SCALE-->
@ -199,8 +205,9 @@
<leaf name="SHEET" type="I32" /> <leaf name="SHEET" type="I32" />
<leaf name="QUALITY" type="I10" /> <leaf name="QUALITY" type="I10" />
<leaf name="QUANTITY" type="I10" /> <leaf name="QUANTITY" type="I10" />
<leaf name="CREATE_TIME" type="I32" />
<leaf name="SERIAL" type="I32" />
<leaf name="USER_COLOR" type="I3" /> <leaf name="USER_COLOR" type="I3" />
<leaf name="CHARAC_BUFFS" type="I8" />
<!-- <leaf name="LOCKED" type="I10"/> No longer needed --> <!-- <leaf name="LOCKED" type="I10"/> No longer needed -->
<leaf name="WEIGHT" type="I16" /> <leaf name="WEIGHT" type="I16" />
<!-- weight. see DB_WEIGHT_SCALE--> <!-- weight. see DB_WEIGHT_SCALE-->
@ -228,9 +235,10 @@
<leaf name="SHEET" type="I32" /> <leaf name="SHEET" type="I32" />
<leaf name="QUALITY" type="I10" /> <leaf name="QUALITY" type="I10" />
<leaf name="QUANTITY" type="I10" /> <leaf name="QUANTITY" type="I10" />
<leaf name="CREATE_TIME" type="I32" />
<leaf name="SERIAL" type="I32" />
<!-- No LOCKED state --> <!-- No LOCKED state -->
<leaf name="USER_COLOR" type="I3" /> <leaf name="USER_COLOR" type="I3" />
<leaf name="CHARAC_BUFFS" type="I8" />
<leaf name="WEIGHT" type="I16" /> <leaf name="WEIGHT" type="I16" />
<!-- weight. see DB_WEIGHT_SCALE--> <!-- weight. see DB_WEIGHT_SCALE-->
<leaf name="NAMEID" type="I32" /> <leaf name="NAMEID" type="I32" />

@ -428,8 +428,8 @@ This MUST follow the Enum MISSION_DESC::TIconId
<param name="ctrl_sheet_gray_color" value="255 255 255 100" /> <param name="ctrl_sheet_gray_color" value="255 255 255 100" />
<param name="ctrl_sheet_redify_color" value="255 100 100 100" /> <param name="ctrl_sheet_redify_color" value="255 100 100 100" />
<param name="ctrl_text_redify_color" value="255 32 32 160" /> <param name="ctrl_text_redify_color" value="255 32 32 160" />
<param name="font" value="uiFontSans" /> <param name="font" value="ryzom.ttf" />
<param name="monospace_font" value="uiFontMonospace" /> <param name="monospace_font" value="ryzom_monospace.ttf" />
<param name="add_coef_font" value="3" /> <param name="add_coef_font" value="3" />
<param name="mul_coef_anim" value="0.8" /> <param name="mul_coef_anim" value="0.8" />
<param name="bubbles_timeout" value="10" /> <param name="bubbles_timeout" value="10" />

@ -30,7 +30,7 @@
<group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" > <group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" >
<!-- BACKGROUND --> <!-- BACKGROUND -->
<view type="bitmap" posref="TL TL" id="bl" texture="launcher_bg.tga" global_color="false" render_layer="-1" /> <view type="bitmap" posref="TL TL" id="bl" texture="new_launcher_bg.tga" global_color="false" render_layer="-1" />
<instance template="log_box" id="window" y="-8" posref="MM MM" w="1024" h="768" color="0 0 0 0"/> <instance template="log_box" id="window" y="-8" posref="MM MM" w="1024" h="768" color="0 0 0 0"/>
<!-- <!--
<view type="bitmap" posref="MM MM" id="log" texture="launcher_log.tga" global_color="false" render_layer="-1" /> <view type="bitmap" posref="MM MM" id="log" texture="launcher_log.tga" global_color="false" render_layer="-1" />
@ -218,7 +218,7 @@
<group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" > <group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" >
<!-- BACKGROUND --> <!-- BACKGROUND -->
<view type="bitmap" posref="TL TL" id="bl" texture="launcher_bg.tga" global_color="false" render_layer="-2" /> <view type="bitmap" posref="TL TL" id="bl" texture="new_launcher_bg.tga" global_color="false" render_layer="-2" />
<instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" /> <instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" />
<view type="bitmap" id="kami" posparent="window" posref="TR TR" x="-50" y="-24" texture="log_kami.tga" global_color="false" render_layer="-1" /> <view type="bitmap" id="kami" posparent="window" posref="TR TR" x="-50" y="-24" texture="log_kami.tga" global_color="false" render_layer="-1" />
@ -323,7 +323,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
<group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" > <group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" >
<!-- BACKGROUND --> <!-- BACKGROUND -->
<view type="bitmap" posref="TL TL" id="bl" texture="launcher_bg.tga" global_color="false" render_layer="-2" /> <view type="bitmap" posref="TL TL" id="bl" texture="new_launcher_bg.tga" global_color="false" render_layer="-2" />
<instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" /> <instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" />
<!-- EXIT BUTTON --> <!-- EXIT BUTTON -->
@ -378,7 +378,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
<group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" > <group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" >
<!-- BACKGROUND --> <!-- BACKGROUND -->
<view type="bitmap" posref="TL TL" id="bl" texture="launcher_bg.tga" global_color="false" render_layer="-2" /> <view type="bitmap" posref="TL TL" id="bl" texture="new_launcher_bg.tga" global_color="false" render_layer="-2" />
<instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" /> <instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" />
<!-- EXIT BUTTON --> <!-- EXIT BUTTON -->
@ -435,7 +435,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
<group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" > <group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" >
<!-- BACKGROUND --> <!-- BACKGROUND -->
<view type="bitmap" posref="TL TL" id="bl" texture="launcher_bg.tga" global_color="false" render_layer="-2" /> <view type="bitmap" posref="TL TL" id="bl" texture="new_launcher_bg.tga" global_color="false" render_layer="-2" />
<instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" /> <instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" />
<!-- EXIT BUTTON --> <!-- EXIT BUTTON -->
@ -543,7 +543,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
<group id="eula" w="1024" h="768" posref="MM MM" active="false" > <group id="eula" w="1024" h="768" posref="MM MM" active="false" >
<!-- BACKGROUND --> <!-- BACKGROUND -->
<view type="bitmap" posref="TL TL" id="bl" texture="launcher_bg.tga" global_color="false" render_layer="-2" /> <view type="bitmap" posref="TL TL" id="bl" texture="new_launcher_bg.tga" global_color="false" render_layer="-2" />
<instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" /> <instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" />
<!-- EXIT BUTTON --> <!-- EXIT BUTTON -->
@ -588,7 +588,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
<group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" > <group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" >
<!-- BACKGROUND --> <!-- BACKGROUND -->
<view type="bitmap" posref="TL TL" id="bl" texture="launcher_bg.tga" global_color="false" render_layer="-2" /> <view type="bitmap" posref="TL TL" id="bl" texture="new_launcher_bg.tga" global_color="false" render_layer="-2" />
<instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" /> <instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" />
<!-- EXIT BUTTON --> <!-- EXIT BUTTON -->
@ -668,7 +668,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
<group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" > <group id="content" x="0" y="0" w="1024" h="768" posref="TL TL" >
<!-- BACKGROUND --> <!-- BACKGROUND -->
<view type="bitmap" posref="TL TL" id="bl" texture="launcher_bg.tga" global_color="false" render_layer="-2" /> <view type="bitmap" posref="TL TL" id="bl" texture="new_launcher_bg.tga" global_color="false" render_layer="-2" />
<instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" /> <instance template="log_box" id="window" y="-8" posref="MM MM" w="800" h="440" />
<!-- Window --> <!-- Window -->
@ -687,7 +687,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
text_ref="BM BM" text_y="0" text_ref="BM BM" text_y="0"
on_focus="create_account_rules" on_focus_params="rules_login" reset_focus_on_hide="false" max_historic="0" on_focus="create_account_rules" on_focus_params="rules_login" reset_focus_on_hide="false" max_historic="0"
onenter="set_keyboard_focus" params="target=ui:login:create_account:content:submit_gr:eb_password:eb|select_all=false" onenter="set_keyboard_focus" params="target=ui:login:create_account:content:submit_gr:eb_password:eb|select_all=false"
prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="12" color="135 243 28 255" /> prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="20" color="135 243 28 255" />
<!-- password --> <!-- password -->
<view type="text" id="txt_pas" posparent="txt_log" posref="BL TL" hardtext="uiPassword" fontsize="12" x="0" y="-30" color="255 255 255 255" /> <view type="text" id="txt_pas" posparent="txt_log" posref="BL TL" hardtext="uiPassword" fontsize="12" x="0" y="-30" color="255 255 255 255" />
@ -696,7 +696,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
text_ref="BM BM" text_y="-2" text_ref="BM BM" text_y="-2"
on_focus="create_account_rules" on_focus_params="rules_password" reset_focus_on_hide="false" max_historic="0" entry_type="password" on_focus="create_account_rules" on_focus_params="rules_password" reset_focus_on_hide="false" max_historic="0" entry_type="password"
onenter="set_keyboard_focus" params="target=ui:login:create_account:content:submit_gr:eb_confirm_password:eb|select_all=false" onenter="set_keyboard_focus" params="target=ui:login:create_account:content:submit_gr:eb_confirm_password:eb|select_all=false"
prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="20" color="135 243 28 255" /> prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="60" color="135 243 28 255" />
<!-- confirm password --> <!-- confirm password -->
<view type="text" id="txt_confirm_pas" posparent="txt_pas" posref="BL TL" hardtext="uiConfirmPassword" fontsize="12" x="0" y="-30" color="255 255 255 255" /> <view type="text" id="txt_confirm_pas" posparent="txt_pas" posref="BL TL" hardtext="uiConfirmPassword" fontsize="12" x="0" y="-30" color="255 255 255 255" />
@ -705,7 +705,7 @@ on_enter="leave_modal" options="no_bordure" mouse_pos="false" exit_key_pushed="t
text_ref="BM BM" text_y="-2" text_ref="BM BM" text_y="-2"
on_focus="create_account_rules" on_focus_params="rules_password_conf" reset_focus_on_hide="false" max_historic="0" entry_type="password" on_focus="create_account_rules" on_focus_params="rules_password_conf" reset_focus_on_hide="false" max_historic="0" entry_type="password"
onenter="set_keyboard_focus" params="target=ui:login:create_account:content:submit_gr:eb_email:eb|select_all=false" onenter="set_keyboard_focus" params="target=ui:login:create_account:content:submit_gr:eb_email:eb|select_all=false"
prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="20" color="135 243 28 255" /> prompt="" enter_loose_focus="true" multi_line="false" max_num_chars="60" color="135 243 28 255" />
<!-- email --> <!-- email -->
<view type="text" id="txt_email" posparent="txt_confirm_pas" posref="BL TL" hardtext="uiEmail" fontsize="12" x="0" y="-30" color="255 255 255 255" /> <view type="text" id="txt_email" posparent="txt_confirm_pas" posref="BL TL" hardtext="uiEmail" fontsize="12" x="0" y="-30" color="255 255 255 255" />

@ -852,7 +852,7 @@
<group type="modal" id="valid_message_box" exit_click_out="false" posref="MM MM" w="1024" h="768" <group type="modal" id="valid_message_box" exit_click_out="false" posref="MM MM" w="1024" h="768"
on_enter="proc" on_enter_params="proc_valid_message_box_ok" options="no_bordure" mouse_pos="false" on_enter="proc" on_enter_params="proc_valid_message_box_ok" options="no_bordure" mouse_pos="false"
> >
<view type="bitmap" posref="MM MM" id="log" texture="launcher_bg.tga" global_color="false" render_layer="-1" /> <view type="bitmap" posref="MM MM" id="log" texture="new_launcher_bg.tga" global_color="false" render_layer="-1" />
<view type="text" id="text" posref="MM MM" line_maxw="412" w="412" x="0" y="0" color="135 243 28 255" fontsize="18" shadow="true" multi_line="true" multi_line_space="0" case_mode="%case_first_sentence_letter_up"/> <view type="text" id="text" posref="MM MM" line_maxw="412" w="412" x="0" y="0" color="135 243 28 255" fontsize="18" shadow="true" multi_line="true" multi_line_space="0" case_mode="%case_first_sentence_letter_up"/>
@ -909,7 +909,6 @@
<variable entry="UI:glob_var:help:$i:QUANTITY" type="sint32" value="0" size="%MAX_HELP_WINDOW"/> <variable entry="UI:glob_var:help:$i:QUANTITY" type="sint32" value="0" size="%MAX_HELP_WINDOW"/>
<variable entry="UI:glob_var:help:$i:SLOT_TYPE" type="sint32" value="0" size="%MAX_HELP_WINDOW"/> <variable entry="UI:glob_var:help:$i:SLOT_TYPE" type="sint32" value="0" size="%MAX_HELP_WINDOW"/>
<variable entry="UI:glob_var:help:$i:USER_COLOR" type="sint32" value="1" size="%MAX_HELP_WINDOW"/> <variable entry="UI:glob_var:help:$i:USER_COLOR" type="sint32" value="1" size="%MAX_HELP_WINDOW"/>
<variable entry="UI:glob_var:help:$i:CHARAC_BUFFS" type="sint8" value="0" size="%MAX_HELP_WINDOW"/>
<variable entry="UI:glob_var:help:$i:ENCHANT" type="sint32" value="0" size="%MAX_HELP_WINDOW"/> <variable entry="UI:glob_var:help:$i:ENCHANT" type="sint32" value="0" size="%MAX_HELP_WINDOW"/>
<variable entry="UI:glob_var:help:$i:RM_CLASS_TYPE" type="sint32" value="0" size="%MAX_HELP_WINDOW"/> <variable entry="UI:glob_var:help:$i:RM_CLASS_TYPE" type="sint32" value="0" size="%MAX_HELP_WINDOW"/>
<variable entry="UI:glob_var:help:$i:RM_FABER_STAT_TYPE" type="sint32" value="0" size="%MAX_HELP_WINDOW"/> <variable entry="UI:glob_var:help:$i:RM_FABER_STAT_TYPE" type="sint32" value="0" size="%MAX_HELP_WINDOW"/>

@ -211,6 +211,7 @@
<!-- the id must be keys_### where ### is the name of the category --> <!-- the id must be keys_### where ### is the name of the category -->
<!-- dont remember if you add / remove a category to update hierarchy.xml --> <!-- dont remember if you add / remove a category to update hierarchy.xml -->
<instance template="t_all_keys" id="keys_player" title="uiKeysPlayerTitle" /> <instance template="t_all_keys" id="keys_player" title="uiKeysPlayerTitle" />
<instance template="t_all_keys" id="keys_animals" title="uiAnimalsTitle" />
<instance template="t_all_keys" id="keys_movement" title="uiKeysMovementTitle" /> <instance template="t_all_keys" id="keys_movement" title="uiKeysMovementTitle" />
<instance template="t_all_keys" id="keys_actions" title="uiKeysActionsTitle" /> <instance template="t_all_keys" id="keys_actions" title="uiKeysActionsTitle" />
<instance template="t_all_keys" id="keys_chat" title="uiKeysChatTitle" /> <instance template="t_all_keys" id="keys_chat" title="uiKeysChatTitle" />
@ -235,11 +236,11 @@
<!-- ++++++++++++++++ --> <!-- ++++++++++++++++ -->
<group type="menu" id="options_macro" exit_click_b="true" extends="base_menu" > <group type="menu" id="options_macro" exit_click_b="true" extends="base_menu" >
<action name="uimMacroExec" handler="macros_exec" /> <action name="uimMacroExec" handler="macros_exec" icon="r2ed_tool_start.tga"/>
<action name="uimMacroEdit" handler="macros_edit" /> <action name="uimMacroEdit" handler="macros_edit" icon="r2ed_edit_dialog_small.tga" />
<action name="uimMacroCopy" handler="macros_copy" /> <action name="uimMacroCopy" handler="macros_copy" icon="r2ed_tool_copy.tga" />
<separator/> <separator/>
<action name="uimMacroDel" handler="macros_del" /> <action name="uimMacroDel" handler="macros_del" icon="patch_off.tga" />
</group> </group>
<!-- Template defining one macro in the macros container --> <!-- Template defining one macro in the macros container -->
@ -305,6 +306,10 @@
<ctrl style="new_element_header" id="add_button" posref="MR MR" x="-16" y="0" wmargin="8" hardtext="uittNewMacro" <ctrl style="new_element_header" id="add_button" posref="MR MR" x="-16" y="0" wmargin="8" hardtext="uittNewMacro"
onclick_l="macros_new_macro" /> onclick_l="macros_new_macro" />
<ctrl style="new_element_header" id="save_button" posparent="add_button" posref="ML MR" x="-4" y="0" wmargin="8" hardtext="uiSaveUI"
onclick_l="save_ui" />
</group> </group>
<group id="content" x="0" y="0" over="true" child_resize_h="true" child_resize_hmargin="4" posref="TL TL" > <group id="content" x="0" y="0" over="true" child_resize_h="true" child_resize_hmargin="4" posref="TL TL" >
@ -326,12 +331,12 @@
<!-- +++++++++++++ --> <!-- +++++++++++++ -->
<group type="menu" id="options_macro_command" exit_click_b="true" extends="base_menu" > <group type="menu" id="options_macro_command" exit_click_b="true" extends="base_menu" >
<action name="uimMCMoveUp" handler="new_macro_cmd_move_up" /> <action name="uimMCMoveUp" handler="new_macro_cmd_move_up" icon="w_arrow_up_0.tga"/>
<action name="uimMCMoveDown" handler="new_macro_cmd_move_down" /> <action name="uimMCMoveDown" handler="new_macro_cmd_move_down" icon="w_arrow_down_0.tga" />
<action name="uimMCEdit" handler="new_macro_cmd_edit" /> <action name="uimMCEdit" handler="new_macro_cmd_edit" icon="r2ed_edit_dialog_small.tga" />
<action name="uimMCCopy" handler="new_macro_cmd_copy" /> <action name="uimMCCopy" handler="new_macro_cmd_copy" icon="r2ed_tool_copy.tga" />
<separator/> <separator/>
<action name="uimMCDel" handler="new_macro_cmd_delete" /> <action name="uimMCDel" handler="new_macro_cmd_delete" icon="patch_off.tga" />
</group> </group>
<!-- Definition d'une commande dans une macro --> <!-- Definition d'une commande dans une macro -->
@ -656,6 +661,7 @@
<tree node="keys" > <tree node="keys" >
<tree node="keys_player"/> <tree node="keys_player"/>
<tree node="keys_animals"/>
<tree node="keys_movement"/> <tree node="keys_movement"/>
<tree node="keys_actions"/> <tree node="keys_actions"/>
<tree node="keys_chat"/> <tree node="keys_chat"/>

@ -10,6 +10,9 @@ end
game.mapTextures = {} game.mapTextures = {}
-- game.mapTextures["zorai_map.tga"] = "tryker_map.tga" -- game.mapTextures["zorai_map.tga"] = "tryker_map.tga"
-- Dynamic points for the map
game.mapArkPoints = {}
-- register alternative texture for map -- register alternative texture for map
function game:setAltMap(mapName, altMap) function game:setAltMap(mapName, altMap)
self.mapTextures[mapName] = altMap self.mapTextures[mapName] = altMap
@ -20,10 +23,85 @@ function game:removeAltMap(mapName)
self.mapTextures[mapName] = nil self.mapTextures[mapName] = nil
end end
function game:addMapArkPoint(section, x, y, name, title, texture, url, h)
if game.mapArkPoints[section] == nil then
game.mapArkPoints[section] = {}
end
if url == nil then
game.mapArkPoints[section][name] = {x, y, title, texture, "", ""}
else
if h ~= nil and h > 0 then
game.mapArkPoints[section][name] = {x, y, title, texture, "", "game:openMapArkPointHelp([["..url.."]], "..tostring(h)..")"}
else
game.mapArkPoints[section][name] = {x, y, title, texture, "game:openUrlOnWebig([["..url.."]])", "game:updateMapArkPointColor()"}
end
end
end
function game:delMapArkPoint(section, name)
game.mapArkPoints[section][name] = nil
end
function game:delMapArkSection(section)
game.mapArkPoints[section] = nil
end
function game:updateMapArkPointColor()
local button = getUICaller()
button.texture_over = "lm_respawn_over.tga"
end
function game:openMapArkPointHelp(url, h)
local whm = getUI("ui:interface:webig_html_modal")
local x, y = getMousePos()
whm.x = x
whm.y = y
debug(whm)
if whm.active == false then
runAH(nil, "enter_modal", "group=ui:interface:webig_html_modal")
whm.child_resize_h = false
whm.w = 480
if h == nil then
h = 240
end
whm.h = h
if game.mapMapArkPointHelpUrl ~= url then
whm_html = getUI("ui:interface:webig_html_modal:html")
whm_html:renderHtml("<body style:'background-color: #ffffff00'>...</body>")
if whm_html ~= nil then
whm_html:browse(url)
game.mapMapArkPointHelpUrl = url
end
end
setOnDraw(getUI("ui:interface:webig_html_modal"), "game:updateMapArkPointHelp()")
game.mapArkPointHelpOpened = 1
end
end
function game:updateMapArkPointHelp()
local caller = getUI("ui:interface:webig_html_modal")
local x, y = getMousePos()
x0 = game.mapArkPointHelpMousePosX
if caller.x ~= 0 or caller.y ~= 0 then
if x < caller.x - 20 or x > caller.x + caller.w + 20 or y < caller.y - caller.h - 20 or y > caller.y + 20 then
setOnDraw(getUI("ui:interface:webig_html_modal"), "")
runAH(nil, "leave_modal", "group=ui:interface:webig_html_modal")
end
end
end
-- map = getUI("ui:interface:map:content:map_content:actual_map") -- map = getUI("ui:interface:map:content:map_content:actual_map")
function game:onLoadMap(map) function game:onLoadMap(map)
-- debugInfo("onLoadMap(id=".. map.id ..", texture=".. map.texture ..")"); -- debugInfo("onLoadMap(id=".. map.id ..", texture=".. map.texture ..")");
delArkPoints()
game.mapMapArkPointHelpUrl = ""
for section, points in pairs(game.mapArkPoints) do
for name, point in pairs(points) do
addLandMark(point[1], point[2], point[3], point[4], "lua", point[5], "", "", "lua", point[6])
end
end
-- if alt view not enabled -- if alt view not enabled
if getDbProp("UI:VARIABLES:SHOW_ALT_MAP") == 0 or map:isIsland() then if getDbProp("UI:VARIABLES:SHOW_ALT_MAP") == 0 or map:isIsland() then
return return
@ -34,9 +112,12 @@ function game:onLoadMap(map)
-- debugInfo("-- using ".. self.mapTextures[texture] .." for " .. texture) -- debugInfo("-- using ".. self.mapTextures[texture] .." for " .. texture)
return self.mapTextures[texture] return self.mapTextures[texture]
end end
end end
-- register map overrride -- register map overrride
-- game:setAltMap("fyros_map.tga", "fyros_map_sp.tga") -- game:setAltMap("fyros_map.tga", "fyros_map_sp.tga")
-- TEST
-- game:addMapArkPoint("vip", 4154,-3305, "vip_allegory", "", "allegory_16.tga", "https://app.ryzom.com/app_arcc/index.php?action=mScript_Run&script=9894&vip=allegory_vip&title=fct_allegory_maker&gender=1", 140)

@ -7,31 +7,55 @@
<!-- flag for game:onLoadMap() handler to override map texture or not --> <!-- flag for game:onLoadMap() handler to override map texture or not -->
<variable entry="UI:VARIABLES:SHOW_ALT_MAP" type="bool" value="0" /> <variable entry="UI:VARIABLES:SHOW_ALT_MAP" type="bool" value="0" />
<!-- icon for landmark menu user group -->
<template name="landmark_row_icon" keep="true"
id="" posref="TL TL" sizeref="w" posparent="parent" x="0" y="0" w="24" h="18"
icon_id="icon" icon_x="0" icon_y="-4" icon_color="80 80 80 255" icon_texture="lm_user.tga">
<group id="#id" posref="#posref" posparent="#posparent" sizeref="#sizeref" x="#x" y="#y" w="#w" h="#h">
<view type="bitmap" id="#icon_id" posref="MM MM" x="#icon_x" y="#icon_y" color="#icon_color"
global_color="false" texture="#icon_texture" />
</group>
</template>
<!-- base menu of landmark --> <!-- base menu of landmark -->
<group type="menu" id="land_mark_menu" extends="base_menu"> <group type="menu" id="land_mark_menu" extends="base_menu">
<action id="target" name="uiTargetLM" handler="land_mark_selected" params=""/> <action id="target" name="uiTargetLM" handler="land_mark_selected" params="" icon="ico_aim.tga" />
<action id="lmteleport" name="uiTeleport" handler="land_mark_teleport" params=""/> <action id="lmteleport" name="uiTeleport" handler="land_mark_teleport" params="" icon="mp_batiment_noyau_maduk.tga" />
<separator/>
</group> </group>
<!-- modal box to confirm removal of landmark -->
<group type="modal" id="remove_user_landmark_confirm" exit_click_out="true" posref="TL TL" x="-8" y="8" w="100" h="60" options="skin_modal">
<view type="bitmap" id="b" posref="TL TL" x="4" y="-4" global_color="false" texture="w_warning_2.tga" />
<view type="text" id="t" posref="TL TL" x="20" y="-5" color="233 197 42 255" fontsize="12" shadow="true" global_color="false" hardtext="uiRemove" />
<instance template="button_ok_cancel" posref="BR BR" x="-4" y="4" onclick_ok="remove_user_landmark" onclick_ok_param="" onclick_cancel="leave_modal" onclick_cancel_param="" />
</group>
<!-- menu of user landmark --> <!-- menu of user landmark -->
<group type="menu" id="user_land_mark_menu" extends="land_mark_menu"> <group type="menu" id="user_land_mark_menu_base" extends="land_mark_menu">
<action id="remove" name="uiRemove" handler="remove_user_landmark" params=""/> <action id="remove" name="uiRemove" handler="enter_modal" params="group=ui:interface:remove_user_landmark_confirm" icon="ico_aim.tga"/>
<action id="rename" name="uiRename" handler="rename_user_landmark" params=""/> <action id="rename" name="uiRename" handler="rename_user_landmark" params="" icon="r2ed_edit_dialog.tga"/>
<separator/>
</group>
<group type="menu" id="user_land_mark_menu" extends="user_land_mark_menu_base">
<!-- closest landmarks added from c++ at the end of the menu -->
</group> </group>
<!-- menu of map --> <!-- menu of map -->
<group type="menu" id="map_menu" extends="base_menu" <group type="menu" id="map_menu" extends="base_menu"
on_active="lua" on_active="lua"
on_active_params="if r2 and r2.Mode == 'Edit' then r2:setCurrentTool('') end" on_active_params="if r2 and r2.Mode == 'Edit' then r2:setCurrentTool('') end"
> >
<action id="create" name="uiCreateUserLM" handler="create_user_landmark" params=""/> <action id="create" name="uiCreateUserLM" handler="create_user_landmark" params="" icon="lm_mission.tga"/>
<action id="teleport" name="uiTeleport" handler="map_teleport" params=""/> <action id="teleport" name="uiTeleport" handler="map_teleport" params="" icon="mp_batiment_noyau_maduk.tga"/>
<action id="create_at_user_pos" name="uiCreateUserLMAtUserPos" handler="create_user_landmark_at_user_pos" params=""/> <action id="create_at_user_pos" name="uiCreateUserLMAtUserPos" handler="create_user_landmark_at_user_pos" params="" icon="r2ed_entry_point_over.tga"/>
<separator/>
<action id="search" name="uiMapSearch" handler="proc" params="map_search_show" icon="ico_location.tga"/>
<separator/> <separator/>
<action id="search" name="uiMapSearch" handler="proc" params="map_search_show"/> <action id="center" name="uiMenuCenter" handler="map_center" params="map=ui:interface:map:content:map_content:actual_map" icon="curs_pick.tga"/>
<separator/> <separator/>
<action id="center" name="uiMenuCenter" handler="map_center" params="map=ui:interface:map:content:map_content:actual_map"/>
</group> </group>
<!-- menu of map (ring version) --> <!-- menu of map (ring version) -->
@ -39,7 +63,8 @@
on_active="lua" on_active="lua"
on_active_params="if r2 and r2.Mode == 'Edit' then r2:setCurrentTool('') end" on_active_params="if r2 and r2.Mode == 'Edit' then r2:setCurrentTool('') end"
> >
<action id="center" name="uiMenuCenter" handler="map_center" params="map=ui:interface:map:content:map_content:actual_map"/> <action id="teleport" name="uiTeleport" handler="map_teleport" params="" icon="mp_batiment_noyau_maduk.tga"/>
<action id="center" name="uiMenuCenter" handler="map_center" params="map=ui:interface:map:content:map_content:actual_map" icon="curs_pick.tga"/>
</group> </group>
@ -206,7 +231,28 @@
<action handler="land_mark_filter" params="map=ui:interface:map:content:map_content:actual_map|group=@0" /> <action handler="land_mark_filter" params="map=ui:interface:map:content:map_content:actual_map|group=@0" />
</proc> </proc>
<define id="map_min_size" value="256" /> <define id="map_min_size_h" value="256" />
<define id="map_min_size_w" value="256" />
<define id="map_respawn_min_size_h" value="256" />
<define id="map_respawn_min_size_w" value="260" />
<variable entry="UI:VARIABLES:ISACTIVE:MAP_EVENTS" type="sint32" value="0" />
<proc id="map_events_toggle">
<action handler="browse_home" params="name=ui:interface:map:content:map_content:lm_events:html" cond="not(@UI:VARIABLES:ISACTIVE:MAP_EVENTS)" />
<action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_EVENTS|value=not(@UI:VARIABLES:ISACTIVE:MAP_EVENTS)"/>
</proc>
<proc id="map_events_hide">
<action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_EVENTS|value=0)"/>
</proc>
<proc id="map_events_show">
<action handler="set" params="dblink=UI:VARIABLES:ISACTIVE:MAP_EVENTS|value=1)"/>
</proc>
<!-- used to override onclick handler --> <!-- used to override onclick handler -->
<proc id="dummy_proc" /> <proc id="dummy_proc" />
@ -233,8 +279,8 @@
</template> </template>
<group id="map" type="container" posref="BL TL" min_w="%map_min_size" max_w="16384" w="256" h="256" x="352" y="200" min_h="%map_min_size" max_h="16384" <group id="map" type="container" posref="BL TL" min_w="%map_min_size_w" max_w="16384" w="385" h="256" x="352" y="200" min_h="%map_min_size_h" max_h="16384"
resizer="true" pop_max_h="16384" pop_min_h="%map_min_size" pop_max_w="16384" pop_min_w="%map_min_size" resizer="true" pop_max_h="16384" pop_min_h="%map_min_size_h" pop_max_w="16384" pop_min_w="%map_min_size_w"
openable="false" opened="true" openable="false" opened="true"
movable="true" open_button="false" movable="true" open_button="false"
savable="true" savable="true"
@ -246,12 +292,12 @@
<group id="header_closed" x="0" y="0" h="16" posref="TL TL" > <group id="header_closed" x="0" y="0" h="16" posref="TL TL" >
</group> </group>
<group id="header_opened" x="0" y="0" w="256" h="16" posref="TL TL" <group id="header_opened" x="0" y="0" w="385" h="16" posref="TL TL"
group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" > group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" >
</group> </group>
<group id="content" x="0" y="0" h="0" posref="TL TL" > <group id="content" x="0" y="0" h="0" posref="TL TL" >
<group id="map_content" posref="TL TL" sizeref="wh" w="0" h="-12" y="-12" > <group id="map_content" posref="TL TL" sizeref="wh" w="0" h="-7" y="-6" >
<!-- back --> <!-- back -->
<ctrl type="button" id="map_back" button_type="push_button" posref="TL TL" y="0" x="4" tx_normal="w_back_map.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga" <ctrl type="button" id="map_back" button_type="push_button" posref="TL TL" y="0" x="4" tx_normal="w_back_map.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga"
@ -265,16 +311,21 @@
<!-- center on player --> <!-- center on player -->
<ctrl type="button" id="center" button_type="push_button" posparent="zoom_out" posref="TR TL" y="0" x="4" tx_normal="w_center_map.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga" <ctrl type="button" id="center" button_type="push_button" posparent="zoom_out" posref="TR TL" y="0" x="4" tx_normal="w_center_map.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga"
onclick_l="map_center" params_l="map=ui:interface:map:content:map_content:actual_map" tooltip="uittCenter" /> onclick_l="map_center" params_l="map=ui:interface:map:content:map_content:actual_map" tooltip="uittCenter" />
<!-- search -->
<ctrl type="button" id="lm_search_btn" button_type="push_button" posparent="center" posref="TR TL" y="0" x="4" tx_normal="w_help_1.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga" <ctrl type="button" id="lm_search_btn" button_type="push_button" posparent="center" posref="TR TL" y="0" x="4" tx_normal="w_help_1.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga"
onclick_l="proc" params_l="map_search_toggle" tooltip="uittMapSearch" /> onclick_l="proc" params_l="map_search_toggle" tooltip="uittMapSearch" />
<!-- open dynamish events overlay-->
<ctrl type="button" id="lm_events_btn" button_type="push_button" posparent="lm_search_btn" posref="TR TL" global_color="false" scale="true" y="0" x="4" h="16" w="16" tx_normal="dyn_event.tga" tx_pushed="W_button_16_over.tga" tx_over="W_button_16_over.tga"
onclick_l="proc" params_l="map_events_toggle" tooltip="uiR2Events" />
<view type="text" id="events" x="4" y="0" posref="BR BL" posparent="lm_events_btn" color="244 147 49 255" fontsize="12" shadow="true" hardtext="" global_color="false" />
<view type="text" id="time" x="12" y="0" posparent="lm_search_btn" posref="MR ML" color="255 255 255 255" fontsize="12" shadow="true" hardtext="" /> <view type="text" id="time" x="4" y="-18" posref="TL TL" color="255 255 255 255" fontsize="12" shadow="true" hardtext="" />
<view type="text" id="weather" x="8" y="-16" posref="TL TL" color="255 255 255 255" fontsize="12" shadow="true" hardtext="" /> <view type="text" id="weather" x="4" y="-32" posref="TL TL" color="255 255 255 255" fontsize="12" shadow="true" hardtext="" />
<ctrl type="tooltip" id="weather_tt" posparent="weather" sizeref="wh" w="0" h="0" tooltip="" tooltip_parent="ctrl" tooltip_posref="BL TL" /> <ctrl type="tooltip" id="weather_tt" posparent="weather" sizeref="wh" w="0" h="0" tooltip="" tooltip_parent="ctrl" tooltip_posref="BL TL" />
<instance template="box_widget" id="back" posref="TL TL" sizeref="wh" w="-2" h="-32" x="1" y="-32" render_layer="0" /> <instance template="box_widget" id="back" posref="TL TL" sizeref="wh" w="-2" h="-50" x="1" y="-50" render_layer="0" />
<group type="map" id="actual_map" sizeref="wh" w="-4" h="-4" posparent="back" posref="TL TL" x="2" y="-2" render_layer="1" <group type="map" id="actual_map" sizeref="wh" w="-4" h="-6" posparent="back" posref="TL TL" x="2" y="-2" render_layer="1"
group_onclick_r="world_map_right_click" group_onclick_r="world_map_right_click"
group_params_r="map=ui:interface:map:content:map_content:actual_map" group_params_r="map=ui:interface:map:content:map_content:actual_map"
@ -395,6 +446,22 @@
/> />
<!-- border around the map --> <!-- border around the map -->
<group id="lm_events"
posparent="back"
active="false"
posref="TL TL"
sizeref="h"
x="2"
y="2"
h="-4"
w="50"
child_resize_w="true">
<view type="bitmap" id="bg" posref="ML ML" sizeref="h" w="355"
scale="true" color="0 0 0 0" global_color="false" texture="blank.tga" />
<instance template="webig_html" />
</group>
<link expr="@UI:VARIABLES:ISACTIVE:MAP_EVENTS" target="lm_events:active" />
<group id="lm_search" <group id="lm_search"
posparent="back" posparent="back"
posref="TR TR" posref="TR TR"
@ -456,8 +523,8 @@
<proc id="respawn_map_activated"> <proc id="respawn_map_activated">
<action handler="exit_free_look" /> <action handler="exit_free_look" />
<action handler="set" params="dblink=UI:VARIABLES:RESPAWN:MSG_SENT|value=0" /> <action handler="set" params="dblink=UI:VARIABLES:RESPAWN:MSG_SENT|value=0" />
<!-- <action handler="add_link" params="id=respawn_timer_link|expr=secondsToTimeString(div(mul(div(sub(%player_percent_max,abs(@%player_hp_percent)),%player_percent_max),%time_before_auto_respawn),10))|target=ui:interface:respawn_map:content:map_content:timer:t:hardtext" /> --> <!-- <action handler="add_link" params="id=respawn_timer_link|expr=secondsToTimeString(div(mul(div(sub(%player_percent_max,abs(@%player_hp_percent)),%player_percent_max),%time_before_auto_respawn),10))|target=ui:interface:respawn_map:content:map_content:timer:t:uc_hardtext" /> -->
<action handler="add_link" params="id=respawn_timer_link|expr=secondsToTimeString(mul(div(sub(%player_percent_max,abs(@%player_hp_percent)),%player_percent_max),%time_before_auto_respawn))|target=ui:interface:respawn_map:content:map_content:timer:t:hardtext" /> <action handler="add_link" params="id=respawn_timer_link|expr=secondsToTimeString(mul(div(sub(%player_percent_max,abs(@%player_hp_percent)),%player_percent_max),%time_before_auto_respawn))|target=ui:interface:respawn_map:content:map_content:timer:t:uc_hardtext" />
<action handler="add_link" params="id=respawn_acttimer_link|expr=depends(@%player_hp_percent)|action=respawn_map_valid|params=map=ui:interface:respawn_map:content:map_content:actual_map|cond=and(eq(abs(@%player_hp_percent), %player_percent_max), and(lt(@%player_hp_percent,0), eq(@UI:VARIABLES:CDB_INIT_IN_PROGRESS, 0)) ,ne(@UI:VARIABLES:RESPAWN:MSG_SENT,1)) " /> <action handler="add_link" params="id=respawn_acttimer_link|expr=depends(@%player_hp_percent)|action=respawn_map_valid|params=map=ui:interface:respawn_map:content:map_content:actual_map|cond=and(eq(abs(@%player_hp_percent), %player_percent_max), and(lt(@%player_hp_percent,0), eq(@UI:VARIABLES:CDB_INIT_IN_PROGRESS, 0)) ,ne(@UI:VARIABLES:RESPAWN:MSG_SENT,1)) " />
<action handler="add_link" params="id=respawn_showtimer_link|expr=lt(abs(@%player_hp_percent), %player_percent_max)|target=ui:interface:respawn_map:content:map_content:timer:active" /> <action handler="add_link" params="id=respawn_showtimer_link|expr=lt(abs(@%player_hp_percent), %player_percent_max)|target=ui:interface:respawn_map:content:map_content:timer:active" />
</proc> </proc>
@ -469,8 +536,8 @@
</proc> </proc>
<!-- The Respawn Map Group --> <!-- The Respawn Map Group -->
<group id="respawn_map" type="container" posref="BL TL" min_w="%map_min_size" max_w="16384" w="256" h="256" x="352" y="200" min_h="%map_min_size" max_h="16384" <group id="respawn_map" type="container" posref="BL TL" min_w="%map_respawn_min_size_w" max_w="16384" w="260" h="256" x="352" y="200" min_h="%map_respawn_min_size_h" max_h="16384"
resizer="true" pop_max_h="16384" pop_min_h="%map_min_size" pop_max_w="16384" pop_min_w="%map_min_size" resizer="true" pop_max_h="16384" pop_min_h="%map_respawn_min_size_h" pop_max_w="16384" pop_min_w="%map_respawn_min_size_w"
openable="false" opened="true" right_button="false" openable="false" opened="true" right_button="false"
movable="true" open_button="false" movable="true" open_button="false"
savable="true" active_savable="false" savable="true" active_savable="false"
@ -483,7 +550,7 @@
<group id="header_closed" x="0" y="0" h="16" posref="TL TL" > <group id="header_closed" x="0" y="0" h="16" posref="TL TL" >
</group> </group>
<group id="header_opened" x="0" y="0" h="16" w="256" posref="TL TL" <group id="header_opened" x="0" y="0" h="16" w="260" posref="TL TL"
group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" > group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" >
</group> </group>

@ -0,0 +1,128 @@
-- misc
--
if misc == nil then
misc = {}
end
-- convert CRGBA to hexadecimal 6-digits
function misc:toHexRGBA(rgba)
return string.format("%.2x%.2x%.2x%.2x", rgba.R, rgba.G, rgba.B, rgba.A)
end
-- convert hexadecimal to its short-hand version
function misc:toHexShort(hex)
local s = ''
for i = 1, #str, 2 do s = s..string.sub(hex:lower(), i, i) end
return s
end
-- ready to use colored chat string
function misc:encodeColorTag(hex, str)
return "@{"..self:toHexShort(hex).."}"..str
end
--
-- inventories observer
function misc:initInvObserver(
inventory,
func_add,
func_del,
func_change,
item_filter
)
if self.invObserver == nil then
self.invObserver = {
maxSlots = 499, obs = {}
}
function self.invObserver:__remove(n)
if #self.obs > 0 then
self.obs[n] = nil
end
end
function self.invObserver:__update(n)
self.obs[n].cache = nil
self:__observ(n)
end
function self.invObserver:__observ(n)
local t = {}
local n = n or 1
if #self.obs <= 0 then
return
end
for i = 0, self.maxSlots do
local sheet = getDbProp(self.obs[n].inv..":"..i..":SHEET")
if sheet > 0 then
t[sheet] = getDbProp(self.obs[n].inv..":"..i..":QUANTITY")
if self.obs[n].filter then
local name = getSheetName(sheet)
if not name:match(self.obs[n].filter) then
t[sheet] = nil
end
end
end
end
if not self.obs[n].cache then
self.obs[n].cache = t
t = {}
return
end
local lenT = function(t)
local i = 0
for _ in pairs(t) do i = i + 1 end return i
end
local t_len, b_len = lenT(t), lenT(self.obs[n].cache)
if t_len ~= b_len then
if t_len > b_len then
self.obs[n].onAdd(n)
else
self.obs[n].onDel(n)
end
self:__update(n)
return
end
for k, v in pairs(self.obs[n].cache) do
local found = false
for k1, v1 in pairs(t) do
if k == k1 then found = true
break
end
end
if found then
for k1, v1 in pairs(t) do
if k == k1 then
if v == v1 then break end
self.obs[n].onChange(n)
self:__update(n)
end
end
else
self:__update(n)
end
end
end
function self.invObserver:add(uiWindow, n)
if uiWindow then
setOnDraw(uiWindow, formatUI("misc.invObserver:__observ(#1)", n))
end
end
function self.invObserver:remove(uiWindow, n)
if uiWindow then
setOnDraw(uiWindow, "")
self:__remove(n)
end
end
self.invObserver.__index = self.invObserver
end
if inventory then
self.invObserver.obs[#self.invObserver.obs+1] =
{
inv = inventory,
onAdd = func_add,
onDel = func_del,
onChange = func_change,
filter = item_filter,
cache = nil
}
end
return setmetatable(misc, self.invObserver)
end

@ -353,12 +353,12 @@
<proc id="proc_finish3"> <proc id="proc_finish3">
<action handler="proc" params="appear_disable_buttons" /> <action handler="proc" params="appear_disable_buttons" />
<action handler="set" params="dblink=UI:TEMP:FROM|value=1" /> <action handler="set" params="dblink=UI:TEMP:FROM|value=1" />
<!--
<action handler="set" params="dblink=UI:NEXT_SCREEN|value=%screen_location" /> <action handler="set" params="dblink=UI:NEXT_SCREEN|value=%screen_location" />
<action handler="copy" params="dbdst=UI:CURRENT_SCREEN|dbsrc=UI:NEXT_SCREEN" /> <action handler="copy" params="dbdst=UI:CURRENT_SCREEN|dbsrc=UI:NEXT_SCREEN" />
<!-- -->
<action handler="set" params="dblink=UI:TEMP:CHAR3D:DEST|value=1" /> <action handler="set" params="dblink=UI:TEMP:CHAR3D:DEST|value=1" />
<action handler="ask_create_char" params="name=ui:outgame:appear_name:eb|caracs=UI:TEMP:JOB_|charsum=UI:TEMP:CHAR3D|loc=UI:TEMP:CHAR3D:DEST|slot=@UI:TEMP:CHARSELSLOT" /> <action handler="ask_create_char" params="name=ui:outgame:appear_name:eb|caracs=UI:TEMP:JOB_|charsum=UI:TEMP:CHAR3D|loc=UI:TEMP:CHAR3D:DEST|slot=@UI:TEMP:CHARSELSLOT" />
-->
</proc> </proc>

@ -13,8 +13,8 @@
<param name="ctrl_sheet_gray_color" value="255 255 255 128" /> <param name="ctrl_sheet_gray_color" value="255 255 255 128" />
<param name="ctrl_sheet_redify_color" value="255 100 100 128" /> <param name="ctrl_sheet_redify_color" value="255 100 100 128" />
<param name="ctrl_text_redify_color" value="255 32 32 160" /> <param name="ctrl_text_redify_color" value="255 32 32 160" />
<param name="font" value="uiFontSans" /> <param name="font" value="ryzom.ttf" />
<param name="monospace_font" value="uiFontMonospace" /> <param name="monospace_font" value="ryzom_monospace.ttf" />
<param name="add_coef_font" value="0" /> <param name="add_coef_font" value="0" />
<param name="mul_coef_anim" value="1.0" /> <param name="mul_coef_anim" value="1.0" />
<param name="bubbles_timeout" value="10" /> <param name="bubbles_timeout" value="10" />

@ -37,15 +37,15 @@
<!-- JENA BACK --> <!-- JENA BACK -->
<view type="bitmap" id="jena" render_layer="-1" <view type="bitmap" id="jena" render_layer="-1"
global_color="false" color="255 255 255 255" posref="TL TL" x="0" y="0" texture="launcher_bg.tga" /> global_color="false" color="255 255 255 255" posref="TL TL" x="0" y="0" texture="new_launcher_bg.tga" />
<!-- Quit Button --> <!-- Quit Button -->
<ctrl style="valid_txt_button" id="finish_but" posref="BR BR" x="-40" y="24" hardtext="uiQuit" <ctrl style="valid_txt_button" id="finish_but" posref="BR BR" x="-40" y="130" hardtext="uiQuit"
onover="play_sound" params_over="name=charsel_quit_over" onover="play_sound" params_over="name=charsel_quit_over"
onclick_l="proc" params_l="proc_con_quit"/> onclick_l="proc" params_l="proc_con_quit"/>
<view type="text" id="title" posref="BM BM" y="24" hardtext="uiConnecting" fontsize="20"/> <view type="text" id="title" posref="MM MM" y="24" hardtext="uiConnecting" fontsize="20"/>
<!-- BLACK SCREEN FADE --> <!-- BLACK SCREEN FADE -->

@ -10,17 +10,17 @@
<!-- JENA BACK --> <!-- JENA BACK -->
<view type="bitmap" id="jena" render_layer="-1" <view type="bitmap" id="jena" render_layer="-1"
global_color="false" color="255 255 255 255" posref="TL TL" x="0" y="0" texture="launcher_bg.tga" /> global_color="false" color="255 255 255 255" posref="TL TL" x="0" y="0" texture="new_launcher_bg.tga" />
<!-- Quit Button --> <!-- Quit Button -->
<ctrl style="valid_txt_button" id="quit" posref="BR BR" x="-40" y="24" hardtext="uiQuit" <ctrl style="valid_txt_button" id="quit" posref="BR BR" x="-40" y="130" hardtext="uiQuit"
onover="play_sound" params_over="name=charsel_quit_over" onover="play_sound" params_over="name=charsel_quit_over"
onclick_l="proc" params_l="proc_con_quit"/> onclick_l="proc" params_l="proc_con_quit"/>
<view type="text" id="title1" posref="BM BM" y="48" hardtext="uiCrashing1" fontsize="20"/> <view type="text" id="title1" posref="MM MM" y="48" hardtext="uiCrashing1" fontsize="20"/>
<view type="text" id="title2" posref="BM BM" y="24" hardtext="uiCrashing2" fontsize="20"/> <view type="text" id="title2" posref="MM MM" y="24" hardtext="uiCrashing2" fontsize="20"/>
<view type="text" id="title3" posref="BM BM" y="0" hardtext="uiCrashing3" fontsize="20"/> <view type="text" id="title3" posref="MM MM" y="0" hardtext="uiCrashing3" fontsize="20"/>
</group> </group>
<!-- This link is used to display the right screen among the outgame screens --> <!-- This link is used to display the right screen among the outgame screens -->

@ -591,12 +591,14 @@
onclick_l="proc" params_l="proc_charsel_play"/> onclick_l="proc" params_l="proc_charsel_play"/>
--> -->
<ctrl style="valid_txt_button" id="play_but" posref="BR BM" x="-112" y="76" hardtext="uiCharSel_Play" <ctrl style="valid_txt_button" id="play_but" posref="BR BM" x="-112" y="56" hardtext="uiCharSel_Play"
onover="play_sound" params_over="name=specie_but_over" onover="play_sound" params_over="name=specie_but_over"
onclick_l="lua" params_l="outgame:launchGame()"/> onclick_l="lua" params_l="outgame:launchGame()"/>
<!--
<ctrl style="valid_txt_button" id="edit_session_but" posref="BR BM" x="-112" y="36" hardtext="uiLaunchEditor" <ctrl style="valid_txt_button" id="edit_session_but" posref="BR BM" x="-112" y="36" hardtext="uiLaunchEditor"
onover="play_sound" params_over="name=specie_but_over" onover="play_sound" params_over="name=specie_but_over"
onclick_l="proc" params_l="proc_charsel_edit_menu"/> onclick_l="proc" params_l="proc_charsel_edit_menu"/>
-->
<ctrl style="valid_txt_button" id="del_but" posref="BR BL" x="-794" y="56" hardtext="uiCharSel_Del" <ctrl style="valid_txt_button" id="del_but" posref="BR BL" x="-794" y="56" hardtext="uiCharSel_Del"
onover="play_sound" params_over="name=specie_but_over" onover="play_sound" params_over="name=specie_but_over"
@ -642,8 +644,8 @@
<!-- TITLE --> <!-- TITLE -->
<group id="title" w="292" h="46" y="-6" x="-272" posref="TR TR"> <group id="title" w="292" h="46" y="-6" x="-272" posref="TR TR">
<view type="text" id="title1" posref="TM TM" global_color="false" render_layer="2" fontsize="20" shadow="true" y="1" hardtext="uiCP_title1"/> <view type="text" id="title1" posref="TM TM" global_color="false" render_layer="2" fontsize="20" shadow="true" y="0" hardtext="uiCP_title1"/>
<view type="text" id="title2" posref="BM BM" global_color="false" render_layer="2" fontsize="20" shadow="true" y="3" hardtext="uiCP_selection"/> <view type="text" id="title2" posref="BM BM" global_color="false" render_layer="2" fontsize="20" shadow="true" y="0" hardtext="uiCP_selection"/>
</group> </group>
@ -696,7 +698,6 @@
onclick_l="leave_modal" /> onclick_l="leave_modal" />
</group> </group>
<!-- Web box
<group id="webstart" posref="BR BR" w="100" h="60" active="true" > <group id="webstart" posref="BR BR" w="100" h="60" active="true" >
<group id="content" x="0" y="0" w="100" h="60" posref="MM MM" > <group id="content" x="0" y="0" w="100" h="60" posref="MM MM" >
<group id="webstart_html" type="html" posref="MM MM" <group id="webstart_html" type="html" posref="MM MM"
@ -743,7 +744,6 @@
</group> </group>
</group> </group>
</group> </group>
-->
</group> </group>

@ -83,7 +83,7 @@
tx_normal="qh_off" tx_pushed="qh_on" tx_over="qh_off" wmin="80" wmargin="40" tx_normal="qh_off" tx_pushed="qh_on" tx_over="qh_off" wmin="80" wmargin="40"
global_color_normal="false" global_color_over="false" global_color_pushed="false" global_color_normal="false" global_color_over="false" global_color_pushed="false"
color="255 255 255 255" col_over="255 255 255 0" col_pushed="255 255 255 255" color="255 255 255 255" col_over="255 255 255 0" col_pushed="255 255 255 255"
text_y="2" fontsize="13" shadow="true" text_y="2" fontsize="14" shadow="true"
text_color_normal="222 201 182 255" text_color_normal="222 201 182 255"
text_color_pushed="222 201 182 255" text_color_pushed="222 201 182 255"
text_color_over="255 255 255 255" text_color_over="255 255 255 255"

@ -13,8 +13,8 @@
<param name="ctrl_sheet_gray_color" value="255 255 255 128" /> <param name="ctrl_sheet_gray_color" value="255 255 255 128" />
<param name="ctrl_sheet_redify_color" value="255 100 100 128" /> <param name="ctrl_sheet_redify_color" value="255 100 100 128" />
<param name="ctrl_text_redify_color" value="255 32 32 160" /> <param name="ctrl_text_redify_color" value="255 32 32 160" />
<param name="font" value="uiFontSans" /> <param name="font" value="ryzom.ttf" />
<param name="monospace_font" value="uiFontMonospace" /> <param name="monospace_font" value="ryzom_monospace.ttf" />
<param name="add_coef_font" value="3" /> <param name="add_coef_font" value="3" />
<param name="mul_coef_anim" value="0.8" /> <param name="mul_coef_anim" value="0.8" />
<param name="bubbles_timeout" value="10" /> <param name="bubbles_timeout" value="10" />

@ -1085,6 +1085,7 @@
<!-- Choice --> <!-- Choice -->
<ctrl style="text_button_pvp_outpost" id="neutral" posref="BL TL" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('neutral')" hardtext="uiOutpostJoinPVPNeutral" color="128 128 255 255" /> <ctrl style="text_button_pvp_outpost" id="neutral" posref="BL TL" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('neutral')" hardtext="uiOutpostJoinPVPNeutral" color="128 128 255 255" />
<ctrl style="text_button_pvp_outpost" active="false" id="random" posref="BL TL" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('neutral')" hardtext="uiCharSel_CreateRan" color="128 128 255 255" />
<ctrl style="text_button_pvp_outpost" id="attack" posref="BM TM" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('attack')" hardtext="uiOutpostJoinPVPAttack" color="255 128 128 255" /> <ctrl style="text_button_pvp_outpost" id="attack" posref="BM TM" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('attack')" hardtext="uiOutpostJoinPVPAttack" color="255 128 128 255" />
<ctrl style="text_button_pvp_outpost" id="defend" posref="BR TR" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('defend')" hardtext="uiOutpostJoinPVPDefend" color="128 255 128 255" /> <ctrl style="text_button_pvp_outpost" id="defend" posref="BR TR" posparent="timer_decl" onclick_l="lua:game:outpostPvpJoin('defend')" hardtext="uiOutpostJoinPVPDefend" color="128 255 128 255" />
<!-- Hide according to possibilities --> <!-- Hide according to possibilities -->

@ -255,7 +255,7 @@
--> -->
<!-- The modal for Brick selection. NB: don't exit on lclick cause of scrollbar --> <!-- The modal for Brick selection. NB: don't exit on lclick cause of scrollbar -->
<group type="modal" id="build_phrase_select_brick" x="0" y="0" w="280" posref="BL TL" child_resize_h="true" child_resize_hmargin="4" options="skin_modal" > <group type="modal" id="build_phrase_select_brick" x="0" y="0" w="285" posref="BL TL" child_resize_h="true" child_resize_hmargin="4" options="skin_modal" >
<!-- This group is here only to ensure that the modal is not too small --> <!-- This group is here only to ensure that the modal is not too small -->
<group id="fake_minh" posref="TL TL" sizeref="w" w="0" h="30" /> <group id="fake_minh" posref="TL TL" sizeref="w" w="0" h="30" />
@ -266,7 +266,7 @@
y="-4" y="-4"
xitem="2" yitem="-2" xitem="2" yitem="-2"
xtext="32" ytext="-2" xtext="32" ytext="-2"
xcost="230" ycost="-8" xcost="235" ycost="-8"
hspace="4" hspace="4"
array="false" array="false"
value="UI:PHRASE:SELECT" value="UI:PHRASE:SELECT"
@ -287,7 +287,7 @@
shadow="true" shadow="true"
multi_line="true" multi_line="true"
multi_line_space="0" multi_line_space="0"
line_maxw="180" line_maxw="210"
> >
<!-- the scroll --> <!-- the scroll -->
<ctrl style="skin_scroll" id="scroll_row" posref="TL TL" y="-2" /> <ctrl style="skin_scroll" id="scroll_row" posref="TL TL" y="-2" />
@ -501,7 +501,6 @@
<variable entry="UI:PHRASE:FABER:MP_SELECT:$i:QUALITY" type="sint32" value="0" size="%phrase_faber_selection_max" /> <variable entry="UI:PHRASE:FABER:MP_SELECT:$i:QUALITY" type="sint32" value="0" size="%phrase_faber_selection_max" />
<variable entry="UI:PHRASE:FABER:MP_SELECT:$i:QUANTITY" type="sint32" value="0" size="%phrase_faber_selection_max" /> <variable entry="UI:PHRASE:FABER:MP_SELECT:$i:QUANTITY" type="sint32" value="0" size="%phrase_faber_selection_max" />
<variable entry="UI:PHRASE:FABER:MP_SELECT:$i:USER_COLOR" type="sint32" value="1" size="%phrase_faber_selection_max" /> <variable entry="UI:PHRASE:FABER:MP_SELECT:$i:USER_COLOR" type="sint32" value="1" size="%phrase_faber_selection_max" />
<variable entry="UI:PHRASE:FABER:MP_SELECT:$i:CHARAC_BUFFS" type="sint8" value="0" size="%phrase_faber_selection_max" />
<variable entry="UI:PHRASE:FABER:MP_SELECT:$i:WEIGHT" type="sint32" value="0" size="%phrase_faber_selection_max" /> <variable entry="UI:PHRASE:FABER:MP_SELECT:$i:WEIGHT" type="sint32" value="0" size="%phrase_faber_selection_max" />
<!-- Define varaibles for the mp selected array--> <!-- Define varaibles for the mp selected array-->
<template name="phrase_faber_def_build_mps" index="" id="" > <template name="phrase_faber_def_build_mps" index="" id="" >
@ -509,7 +508,6 @@
<variable entry="UI:PHRASE:FABER:MP_BUILD:#index:$i:QUALITY" type="sint32" value="0" size="%phrase_faber_max_mp_slot" /> <variable entry="UI:PHRASE:FABER:MP_BUILD:#index:$i:QUALITY" type="sint32" value="0" size="%phrase_faber_max_mp_slot" />
<variable entry="UI:PHRASE:FABER:MP_BUILD:#index:$i:QUANTITY" type="sint32" value="0" size="%phrase_faber_max_mp_slot" /> <variable entry="UI:PHRASE:FABER:MP_BUILD:#index:$i:QUANTITY" type="sint32" value="0" size="%phrase_faber_max_mp_slot" />
<variable entry="UI:PHRASE:FABER:MP_BUILD:#index:$i:USER_COLOR" type="sint32" value="1" size="%phrase_faber_max_mp_slot" /> <variable entry="UI:PHRASE:FABER:MP_BUILD:#index:$i:USER_COLOR" type="sint32" value="1" size="%phrase_faber_max_mp_slot" />
<variable entry="UI:PHRASE:FABER:MP_BUILD:#index:$i:CHARAC_BUFFS" type="sint8" value="0" size="%phrase_faber_max_mp_slot" />
<variable entry="UI:PHRASE:FABER:MP_BUILD:#index:$i:WEIGHT" type="sint32" value="0" size="%phrase_faber_max_mp_slot" /> <variable entry="UI:PHRASE:FABER:MP_BUILD:#index:$i:WEIGHT" type="sint32" value="0" size="%phrase_faber_max_mp_slot" />
</template> </template>
<vector template="phrase_faber_def_build_mps" id="yoyo_pipo_faber$i" index="$i" _size="%phrase_faber_max_item_req" _firstpos="TL TL" _xfirst="0" _nextpos="TR TL" _yfirst="0" /> <vector template="phrase_faber_def_build_mps" id="yoyo_pipo_faber$i" index="$i" _size="%phrase_faber_max_item_req" _firstpos="TL TL" _xfirst="0" _nextpos="TR TL" _yfirst="0" />
@ -523,7 +521,6 @@
<variable entry="UI:PHRASE:FABER:STACK_SELECT:QUALITY" type="sint32" value="0" /> <variable entry="UI:PHRASE:FABER:STACK_SELECT:QUALITY" type="sint32" value="0" />
<variable entry="UI:PHRASE:FABER:STACK_SELECT:QUANTITY" type="sint32" value="0" /> <variable entry="UI:PHRASE:FABER:STACK_SELECT:QUANTITY" type="sint32" value="0" />
<variable entry="UI:PHRASE:FABER:STACK_SELECT:USER_COLOR" type="sint32" value="1" /> <variable entry="UI:PHRASE:FABER:STACK_SELECT:USER_COLOR" type="sint32" value="1" />
<variable entry="UI:PHRASE:FABER:STACK_SELECT:CHARAC_BUFFS" type="sint8" value="0" />
<variable entry="UI:PHRASE:FABER:STACK_SELECT:WEIGHT" type="sint32" value="0" /> <variable entry="UI:PHRASE:FABER:STACK_SELECT:WEIGHT" type="sint32" value="0" />
<!-- declare the dummy mp stack selection value --> <!-- declare the dummy mp stack selection value -->
<variable entry="UI:PHRASE:FABER:STACK_SELECT:CUR_QUANTITY" type="sint32" value="0" /> <variable entry="UI:PHRASE:FABER:STACK_SELECT:CUR_QUANTITY" type="sint32" value="0" />
@ -533,7 +530,6 @@
<variable entry="UI:PHRASE:FABER:RESULT_ITEM:QUALITY" type="sint32" value="0" /> <variable entry="UI:PHRASE:FABER:RESULT_ITEM:QUALITY" type="sint32" value="0" />
<variable entry="UI:PHRASE:FABER:RESULT_ITEM:QUANTITY" type="sint32" value="0" /> <variable entry="UI:PHRASE:FABER:RESULT_ITEM:QUANTITY" type="sint32" value="0" />
<variable entry="UI:PHRASE:FABER:RESULT_ITEM:USER_COLOR" type="sint32" value="1" /> <variable entry="UI:PHRASE:FABER:RESULT_ITEM:USER_COLOR" type="sint32" value="1" />
<variable entry="UI:PHRASE:FABER:RESULT_ITEM:CHARAC_BUFFS" type="sint8" value="0" />
<variable entry="UI:PHRASE:FABER:RESULT_ITEM:LOCKED" type="sint32" value="0" /> <variable entry="UI:PHRASE:FABER:RESULT_ITEM:LOCKED" type="sint32" value="0" />
<variable entry="UI:PHRASE:FABER:RESULT_ITEM:WEIGHT" type="sint32" value="0" /> <variable entry="UI:PHRASE:FABER:RESULT_ITEM:WEIGHT" type="sint32" value="0" />
<variable entry="UI:PHRASE:FABER:RESULT_ITEM:NAMEID" type="sint32" value="0" /> <variable entry="UI:PHRASE:FABER:RESULT_ITEM:NAMEID" type="sint32" value="0" />
@ -596,10 +592,10 @@
<template name="faber_item_req" posref="" posparent="parent" x="0" y="0" item_req="" id="" > <template name="faber_item_req" posref="" posparent="parent" x="0" y="0" item_req="" id="" >
<group id="#id" x="#x" y="#y" posref="#posref" posparent="#posparent" w="350" child_resize_h="true" > <group id="#id" x="#x" y="#y" posref="#posref" posparent="#posparent" w="350" child_resize_h="true" >
<!-- The item part info Icon. Hidden if a formula MP and not an item part --> <!-- The item part info Icon. Hidden if a formula MP and not an item part -->
<view type="bitmap" id="icon" posref="TL TL" scale="true" x="0" y="0" w="24" h="24" global_color="false" /> <view type="bitmap" id="icon" posref="TL TL" scale="true" x="5" y="0" w="24" h="24" global_color="false" />
<!-- The item part/formula MP info text --> <!-- The item part/formula MP info text -->
<view type="text" id="text" posref="TL TL" x="26" y="-8" <view type="text" id="text" posref="TL TL" x="30" y="-8"
color="255 255 255 255" global_color="true" fontsize="10" shadow="true" /> color="255 255 255 255" global_color="true" fontsize="10" shadow="true" />
<!-- The Quantity of item required info text --> <!-- The Quantity of item required info text -->
@ -621,9 +617,9 @@
<!-- Template for a MPStat in Faber --> <!-- Template for a MPStat in Faber -->
<template name="template_mp_faber_stat" id="" x="0" y="-2" posparent="item_result" posref="" > <template name="template_mp_faber_stat" id="" x="0" y="-2" posparent="item_result" posref="" >
<group id="#id" posparent="#posparent" posref="#posref" x="#x" y="#y" w="350" h="16" active="false" > <group id="#id" posparent="#posparent" posref="#posref" x="#x" y="#y" w="380" h="18" active="false" >
<view type="text" id="text" line_maxw="170" posref="ML ML" over_extend_view_text="true" /> <view type="text" id="text" line_maxw="190" posref="ML ML" over_extend_view_text="true" />
<view type="bar" id="bar" posref="MR MR" x="-50" value="0" range="100" /> <view type="bar" id="bar" posref="MR MR" x="-55" value="0" range="100" />
<view type="text" id="textstat" posref="MR MR" /> <view type="text" id="textstat" posref="MR MR" />
<ctrl type="tooltip" id="tt" sizeref="wh" w="0" h="0" tooltip="" /> <ctrl type="tooltip" id="tt" sizeref="wh" w="0" h="0" tooltip="" />
</group> </group>
@ -643,7 +639,7 @@
<!-- container modal on hand --> <!-- container modal on hand -->
<!-- on_enter="phrase_faber_validate_on_enter" --> <!-- on_enter="phrase_faber_validate_on_enter" -->
<group style="container_modal" id="phrase_faber_execution" w="780" h="516" title="uiPhraseFaberExecute" <group style="container_modal" id="phrase_faber_execution" w="800" h="516" title="uiPhraseFaberExecute"
modal_parent="gestionsets|bot_chat_missions" header_color="UI:SAVE:WIN:COLORS:INV" pop_max_h="716" modal_parent="gestionsets|bot_chat_missions" header_color="UI:SAVE:WIN:COLORS:INV" pop_max_h="716"
on_active="proc" on_active_params="proc_phrase_faber_opened" on_active="proc" on_active_params="proc_phrase_faber_opened"
on_deactive="proc" on_deactive_params="proc_phrase_faber_closed" on_deactive="proc" on_deactive_params="proc_phrase_faber_closed"
@ -654,8 +650,8 @@
<group id="header_opened" x="0" y="0" w="0" h="496" posref="TL TL" > <group id="header_opened" x="0" y="0" w="0" h="496" posref="TL TL" >
<!-- BACK --> <!-- BACK -->
<group id="back" posref="TL TL" w="772" h="424" x="0" y="-44"> <group id="back" posref="TL TL" w="792" h="424" x="0" y="-44">
<instance template="box_widget" id="back_root" posref="TL TL" w="772" h="424" x="0" y="0" /> <instance template="box_widget" id="back_root" posref="TL TL" w="792" h="424" x="0" y="0" />
</group> </group>
<!-- Help info --> <!-- Help info -->
@ -670,6 +666,11 @@
multi_line="true" line_maxw="250" multi_line_space="0" hardtext="uiTextHelpSelectFaberPlanSlot" /> multi_line="true" line_maxw="250" multi_line_space="0" hardtext="uiTextHelpSelectFaberPlanSlot" />
<link expr="eq(@UI:PHRASE:FABER:FABER_PLAN:SHEET, 0)" target="faber_plan_info:active" /> <link expr="eq(@UI:PHRASE:FABER:FABER_PLAN:SHEET, 0)" target="faber_plan_info:active" />
<view type="text" id="name" posparent="faber_plan" posref="TR TL" x="4" y="0" color="255 255 255 255" shadow="true" fontsize="10" multi_line="false" line_maxw="350" hardtext="" over_extend_view_text="true" />
<view type="text" id="desc" posparent="name" posref="BL TL" x="0" y="0" color="255 255 255 255" shadow="true" fontsize="8" multi_line="false" line_maxw="350" hardtext="" over_extend_view_text="true" />
<link expr="ne(@UI:PHRASE:FABER:FABER_PLAN:SHEET, 0)" target="name:active,desc:active" />
<link expr="@UI:PHRASE:FABER:FABER_PLAN:SHEET" action="lua:game:updatePhraseFaberPreview('UI:PHRASE:FABER:FABER_PLAN:SHEET')" />
<!-- The Success Rate info. Must be multiline for Formating --> <!-- The Success Rate info. Must be multiline for Formating -->
<view type="text" id="success_text" posparent="back" posref="TL TL" x="8" y="-36" color="255 255 255 255" shadow="true" fontsize="12" <view type="text" id="success_text" posparent="back" posref="TL TL" x="8" y="-36" color="255 255 255 255" shadow="true" fontsize="12"
multi_line="true" line_maxw="350" multi_line_space="0" hardtext="" /> multi_line="true" line_maxw="350" multi_line_space="0" hardtext="" />
@ -686,17 +687,20 @@
<ctrl style="skin_scroll" id="sv" posparent="back" posref="TL TL" x="4" y="-60" target="item_reqs" /> <ctrl style="skin_scroll" id="sv" posparent="back" posref="TL TL" x="4" y="-60" target="item_reqs" />
<!-- RESULT ITEM --> <!-- RESULT ITEM -->
<group id="item_result" posparent="back" posref="TR TR" x="-20" y="-4" w="360" child_resize_h="true" max_h="368" > <group id="item_result" posparent="back" posref="TR TR" x="-10" y="-6" w="390" child_resize_h="true" max_h="375" >
<instance template="inner_thin_border" inherit_gc_alpha="true" /> <instance template="inner_thin_border" inherit_gc_alpha="true" />
<!-- Text Header --> <!-- Text Header -->
<view type="text" id="header" posref="TL TL" y="0" hardtext="uiFaberItemResultHeader"/> <!-- for item, pacts, .. --> <view type="text" id="header" posref="TL TL" x="5" y="-2" hardtext="uiFaberItemResultHeader"/> <!-- for item, pacts, .. -->
<!-- item result --> <!-- item result -->
<ctrl type="sheet" id="item_result" nature="item" value="UI:PHRASE:FABER:RESULT_ITEM" posparent="header" posref="BL TL" x="0" y="-2" tooltip="uittFaberItemResult" /> <ctrl type="sheet" id="item_result" nature="item" value="UI:PHRASE:FABER:RESULT_ITEM" posparent="header" posref="BL TL" y="-4" tooltip="uittFaberItemResult" />
<view type="text" id="name" posparent="item_result" posref="TR TL" x="4" y="0" fontsize="10" multi_line="false" line_maxw="340" hardtext="uittFaberItemResult" over_extend_view_text="true" />
<view type="text" id="desc" posparent="name" posref="BL TL" x="0" y="0" fontsize="8" multi_line="false" line_maxw="340" hardtext="..." over_extend_view_text="true" />
<link expr="@UI:PHRASE:FABER:RESULT_ITEM:SHEET" action="lua:game:updatePhraseFaberPreview('UI:PHRASE:FABER:RESULT_ITEM:SHEET')" />
<!-- Stat Preview --> <!-- Stat Preview -->
<vector template="template_mp_faber_stat" id="stat$i" _size="%MAX_STAT_MP_CRAFT" _firstpos="BL TL" _xfirst="0" _yfirst="-2" _nextpos="BL TL" /> <vector template="template_mp_faber_stat" id="stat$i" _size="%MAX_STAT_MP_CRAFT" _firstpos="BL TL" _xfirst="0" _yfirst="-6" _nextpos="BL TL" />
</group> </group>
<ctrl style="skin_scroll" id="sv_ir" posparent="back" posref="TR TR" x="-8" y="-44" target="item_result" /> <ctrl style="skin_scroll" id="sv_ir" posparent="back" posref="TR TR" x="-8" y="-44" target="item_result" />

@ -952,12 +952,23 @@ end
-- called by C++ code when the tooltip of a buff item is about to be displayed -- called by C++ code when the tooltip of a buff item is about to be displayed
function game:updateBuffItemTooltip(buffItem) function game:updateBuffItemTooltip(buffItem)
local ttWin = getUI("ui:interface:buff_item_context_help") local ttWin = getUI("ui:interface:buff_item_context_help")
local item = buffItem:getItemInfo()
local text = buffItem:getName() local text = buffItem:getName()
self:setPhraseTooltipCarac(ttWin, "hp_buff", buffItem:getHpBuff()) self:setPhraseTooltipCarac(ttWin, "hp_buff", item.HpBuff)
self:setPhraseTooltipCarac(ttWin, "sta_buff", buffItem:getStaBuff()) self:setPhraseTooltipCarac(ttWin, "sta_buff", item.StaBuff)
self:setPhraseTooltipCarac(ttWin, "sap_buff", buffItem:getSapBuff()) self:setPhraseTooltipCarac(ttWin, "sap_buff", item.SapBuff)
self:setPhraseTooltipCarac(ttWin, "focus_buff", buffItem:getFocusBuff()) self:setPhraseTooltipCarac(ttWin, "focus_buff", item.FocusBuff)
self:setPhraseTooltipCarac(ttWin, "durability", item.Hp)
-- / max
if item.HpMax == 0 then
ttWin:find("durability_sep").active = false
ttWin:find("durability_max").active = false
else
ttWin:find("durability_sep").active = true
ttWin:find("durability_max").active = true
ttWin:find("durability_max").hardtext = item.HpMax
end
updateTooltipCoords() updateTooltipCoords()
return text return text

@ -39,8 +39,8 @@
<group id="jauge_bar" posref="TL TL" w="#w" h="16"> <group id="jauge_bar" posref="TL TL" w="#w" h="16">
<view type="bitmap" id="jauge_graph" posref="TL TL" texture="jauge.tga" color="#color" global_color="false" /> <view type="bitmap" id="jauge_graph" posref="TL TL" texture="jauge.tga" color="#color" global_color="false" />
</group> </group>
<view type="text" id="t" posref="TL TL" x="16" y="-3" color="255 255 255 255" global_color="false" fontsize="10" shadow="true" hardtext="#text" /> <view type="text" id="t" posref="TL TL" x="16" y="-1" color="255 255 255 255" global_color="false" fontsize="10" shadow="true" hardtext="#text" />
<view type="text_number" id="max" posref="MR MR" x="-12" y="-2" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" value="#maxval" positive="true" /> <view type="text_number" id="max" posref="MR MR" x="-12" y="0" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" value="#maxval" positive="true" />
<view type="text" id="sep" posparent="max" posref="TL TR" x="-1" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="/" /> <view type="text" id="sep" posparent="max" posref="TL TR" x="-1" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="/" />
<view type="text_number" id="val" posparent="max" posref="TL TR" x="-10" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" value="#val" positive="true" /> <view type="text_number" id="val" posparent="max" posref="TL TR" x="-10" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" value="#val" positive="true" />
<link expr="div(mul(abs(@#val_bar), #w), %player_percent_max)" target="jauge_bar:w" /> <link expr="div(mul(abs(@#val_bar), #w), %player_percent_max)" target="jauge_bar:w" />
@ -52,9 +52,9 @@
<!-- AFFICHAGE DES BARRES --> <!-- AFFICHAGE DES BARRES -->
<!-- ******************** --> <!-- ******************** -->
<group type="menu" id="player_jauge_menu" extends="base_menu_with_color"> <group type="menu" id="player_jauge_menu" extends="base_menu_with_color">
<action id="sap_bardisplay" name="uiSapBarDisplay" handler="set" params="dblink=UI:SAVE:PLAYER:DISP_SAP|value=not(@UI:SAVE:PLAYER:DISP_SAP)" /> <action id="sap_bardisplay" name="uiSapBarDisplay" handler="set" params="dblink=UI:SAVE:PLAYER:DISP_SAP|value=not(@UI:SAVE:PLAYER:DISP_SAP)" icon="ico_wisdom.tga" />
<action id="sta_bardisplay" name="uiStaBarDisplay" handler="set" params="dblink=UI:SAVE:PLAYER:DISP_STA|value=not(@UI:SAVE:PLAYER:DISP_STA)" /> <action id="sta_bardisplay" name="uiStaBarDisplay" handler="set" params="dblink=UI:SAVE:PLAYER:DISP_STA|value=not(@UI:SAVE:PLAYER:DISP_STA)" icon="ico_wellbalanced.tga" />
<action id="foc_bardisplay" name="uiFocBarDisplay" handler="set" params="dblink=UI:SAVE:PLAYER:DISP_FOC|value=not(@UI:SAVE:PLAYER:DISP_FOC)" /> <action id="foc_bardisplay" name="uiFocBarDisplay" handler="set" params="dblink=UI:SAVE:PLAYER:DISP_FOC|value=not(@UI:SAVE:PLAYER:DISP_FOC)" icon="ico_will.tga" />
</group> </group>
<link expr="depends(@UI:SAVE:PLAYER:DISP_SAP, @UI:SAVE:PLAYER:DISP_STA, @UI:SAVE:PLAYER:DISP_FOC)" action="lua" params="game:updatePlayerBars()" /> <link expr="depends(@UI:SAVE:PLAYER:DISP_SAP, @UI:SAVE:PLAYER:DISP_STA, @UI:SAVE:PLAYER:DISP_FOC)" action="lua" params="game:updatePlayerBars()" />
<link expr="depends(@SERVER:CHARACTER_INFO:PVP_FACTION_TAG)" action="lua" params="game:updatePvpTag()" /> <link expr="depends(@SERVER:CHARACTER_INFO:PVP_FACTION_TAG)" action="lua" params="game:updatePvpTag()" />
@ -164,9 +164,11 @@
<!-- Temp DB that may contains other static bonus (XPcatalyzer, RingXPcatalyzer, PVP Outpost) --> <!-- Temp DB that may contains other static bonus (XPcatalyzer, RingXPcatalyzer, PVP Outpost) -->
<variable entry="UI:VARIABLES:BONUS:$i:SHEET" type="sint32" value="0" size="%num_local_bonus_malus" /> <variable entry="UI:VARIABLES:BONUS:$i:SHEET" type="sint32" value="0" size="%num_local_bonus_malus" />
<variable entry="UI:VARIABLES:BONUS:$i:DISABLED" type="sint32" value="0" size="%num_local_bonus_malus" /> <variable entry="UI:VARIABLES:BONUS:$i:DISABLED" type="sint32" value="0" size="%num_local_bonus_malus" />
<variable entry="UI:VARIABLES:BONUS:$i:DISABLED_TIME" type="sint32" value="0" size="%num_local_bonus_malus" />
<variable entry="UI:VARIABLES:BONUS:$i:SPECIAL_TOOLTIP" type="sint32" value="0" size="%num_local_bonus_malus" /> <variable entry="UI:VARIABLES:BONUS:$i:SPECIAL_TOOLTIP" type="sint32" value="0" size="%num_local_bonus_malus" />
<variable entry="UI:VARIABLES:MALUS:$i:SHEET" type="sint32" value="0" size="%num_local_bonus_malus" /> <variable entry="UI:VARIABLES:MALUS:$i:SHEET" type="sint32" value="0" size="%num_local_bonus_malus" />
<variable entry="UI:VARIABLES:MALUS:$i:DISABLED" type="sint32" value="0" size="%num_local_bonus_malus" /> <variable entry="UI:VARIABLES:MALUS:$i:DISABLED" type="sint32" value="0" size="%num_local_bonus_malus" />
<variable entry="UI:VARIABLES:MALUS:$i:DISABLED_TIME" type="sint32" value="0" size="%num_local_bonus_malus" />
<variable entry="UI:VARIABLES:MALUS:$i:SPECIAL_TOOLTIP" type="sint32" value="0" size="%num_local_bonus_malus" /> <variable entry="UI:VARIABLES:MALUS:$i:SPECIAL_TOOLTIP" type="sint32" value="0" size="%num_local_bonus_malus" />
<variable entry="UI:VARIABLES:SHOW_BONUS" type="sint32" value="0" /> <variable entry="UI:VARIABLES:SHOW_BONUS" type="sint32" value="0" />
<variable entry="UI:VARIABLES:SHOW_MALUS" type="sint32" value="0" /> <variable entry="UI:VARIABLES:SHOW_MALUS" type="sint32" value="0" />
@ -185,9 +187,9 @@
</group> </group>
</template> </template>
<!-- The Bonus Malus Window --> <!-- The Bonus Malus Window -->
<group type="container" id="bonus_malus" w="116" h="80" title="" global_color="false" global_color_over="true" resizer="false" header_active="false" right_button="false" movable="true" active="true" opened="true" openable="false" on_active="set" on_active_params="dblink=UI:VARIABLES:ISACTIVE:BONUS_MALUS|value=1" on_deactive="set" on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:BONUS_MALUS|value=0" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" options="compass"> <group type="container" id="bonus_malus" w="118" h="80" title="" global_color="false" global_color_over="true" resizer="false" header_active="false" right_button="false" movable="true" active="true" opened="true" openable="false" on_active="set" on_active_params="dblink=UI:VARIABLES:ISACTIVE:BONUS_MALUS|value=1" on_deactive="set" on_deactive_params="dblink=UI:VARIABLES:ISACTIVE:BONUS_MALUS|value=0" group_onclick_r="active_menu" group_params_r="menu=ui:interface:base_menu_with_color" options="compass">
<group id="header_closed" x="0" y="0" h="0" posref="TL TL" /> <group id="header_closed" x="0" y="0" h="0" posref="TL TL" />
<group id="header_opened" x="0" y="0" w="116" child_resize_h="true" child_resize_hmargin="7" posref="TL TL"> <group id="header_opened" x="0" y="0" w="118" child_resize_h="true" child_resize_hmargin="7" posref="TL TL">
<!-- WINDOW TOOLTIP --> <!-- WINDOW TOOLTIP -->
<!-- display the tooltip only when the window is empty (so players understand what it is) --> <!-- display the tooltip only when the window is empty (so players understand what it is) -->
<ctrl type="tooltip" id="tt_empty" instant_help="true" posref="TM TM" x="0" y="-3" sizeref="w" w="-6" h="22" tooltip="uittBonusMalusWindow" tooltip_parent="win" /> <ctrl type="tooltip" id="tt_empty" instant_help="true" posref="TM TM" x="0" y="-3" sizeref="w" w="-6" h="22" tooltip="uittBonusMalusWindow" tooltip_parent="win" />
@ -195,7 +197,7 @@
<!-- BONUS --> <!-- BONUS -->
<group id="bonus" x="2" y="-4" sizeref="w" w="0" child_resize_h="true" posref="TL TL"> <group id="bonus" x="2" y="-4" sizeref="w" w="0" child_resize_h="true" posref="TL TL">
<!-- Special list_sheet that display some disable bitmap if needed according to DB --> <!-- Special list_sheet that display some disable bitmap if needed according to DB -->
<group type="list_sheet_bonus_malus" id="bonuses" sizeref="w" w="0" value="UI:VARIABLES:BONUS" posref="TL TL" y="0" wspace="2" hspace="12" maxitem="%num_local_bonus_malus" rowmin="1" rowmax="4" nature="sbrick" array="false" lmargin="0" rmargin="0" tmargin="0" bmargin="1" column_max="4" column_center="false" disable_texture="MG_suppression.tga" onclick_r="open_sbrick_help" params_r="test_aura_disabled=1" onclick_l="lua:game:onLeftClickBonus()" on_tooltip="aura_modifier_tooltip" child_resize_h="true" tooltip_parent="win"></group> <group type="list_sheet_bonus_malus" id="bonuses" sizeref="w" w="0" value="UI:VARIABLES:BONUS" posref="TL TL" y="0" wspace="2" hspace="16" maxitem="%num_local_bonus_malus" rowmin="1" rowmax="4" nature="sbrick" array="false" lmargin="2" rmargin="2" tmargin="0" bmargin="1" column_max="4" column_center="false" disable_texture="MG_suppression.tga" onclick_r="open_sbrick_help" params_r="test_aura_disabled=1" onclick_l="lua:game:onLeftClickBonus()" on_tooltip="aura_modifier_tooltip" child_resize_h="true" tooltip_parent="win" regen_text="true" regen_text_y="-12" regen_text_fontsize="9" regen_text_color="255 255 0" regen_text_disabled_color="200 200 200"></group>
<!-- small texts under icons. For now do only the first 4th bonus. Do it later for other if needed --> <!-- small texts under icons. For now do only the first 4th bonus. Do it later for other if needed -->
<instance template="t_text_bonus" id="text0" x="13" y="-26" /> <instance template="t_text_bonus" id="text0" x="13" y="-26" />
<instance template="t_text_bonus" id="text1" x="41" y="-26" /> <instance template="t_text_bonus" id="text1" x="41" y="-26" />
@ -211,7 +213,7 @@
<!-- MALUS --> <!-- MALUS -->
<group id="malus" y="-2" sizeparent="parent" sizeref="w" w="0" child_resize_h="true" posparent="dummy_pos" posref="BL TL"> <group id="malus" y="-2" sizeparent="parent" sizeref="w" w="0" child_resize_h="true" posparent="dummy_pos" posref="BL TL">
<!-- Special list_sheet that display some disable bitmap if needed according to DB --> <!-- Special list_sheet that display some disable bitmap if needed according to DB -->
<group type="list_sheet_bonus_malus" id="maluses" sizeref="w" w="0" value="UI:VARIABLES:MALUS" posref="TL TL" y="0" wspace="2" hspace="12" maxitem="%num_local_bonus_malus" rowmin="1" rowmax="4" nature="sbrick" array="false" lmargin="0" rmargin="0" tmargin="0" bmargin="0" column_max="4" column_center="false" disable_texture="MG_suppression.tga" onclick_r="open_sbrick_help" params_r="test_aura_disabled=1" onclick_l="lua:game:onLeftClickMalus()" on_tooltip="aura_modifier_tooltip" child_resize_h="true" tooltip_parent="win"></group> <group type="list_sheet_bonus_malus" id="maluses" sizeref="w" w="0" value="UI:VARIABLES:MALUS" posref="TL TL" y="0" wspace="2" hspace="16" maxitem="%num_local_bonus_malus" rowmin="1" rowmax="4" nature="sbrick" array="false" lmargin="0" rmargin="0" tmargin="0" bmargin="0" column_max="4" column_center="false" disable_texture="MG_suppression.tga" onclick_r="open_sbrick_help" params_r="test_aura_disabled=1" onclick_l="lua:game:onLeftClickMalus()" on_tooltip="aura_modifier_tooltip" child_resize_h="true" tooltip_parent="win" regen_text="true" regen_text_y="-12" regen_text_fontsize="9" regen_text_color="255 255 0" regen_text_disabled_color="200 200 200"></group>
<link expr="@UI:VARIABLES:SHOW_MALUS" target="active" /> <link expr="@UI:VARIABLES:SHOW_MALUS" target="active" />
</group> </group>
</group> </group>
@ -223,22 +225,24 @@
<!-- Animals MENU --> <!-- Animals MENU -->
<!-- Each Option is enabled/disabled at open according to the animal selected --> <!-- Each Option is enabled/disabled at open according to the animal selected -->
<group type="menu" id="animal_menu_all" extends="base_menu_with_color" on_active="animal_menu_option"> <group type="menu" id="animal_menu_all" extends="base_menu_with_color" on_active="animal_menu_option">
<action id="follow" name="uimFollowMe" handler="beast_order" params="order=follow|beast_index=@UI:BEAST_SELECTED" /> <action id="follow" name="uimFollowMe" handler="beast_order" params="order=follow|beast_index=@UI:BEAST_SELECTED" icon="lm_target.tga" />
<action id="stop" name="uimStop" handler="beast_order" params="order=stop|beast_index=@UI:BEAST_SELECTED" /> <action id="stop" name="uimStop" handler="beast_order" params="order=stop|beast_index=@UI:BEAST_SELECTED" icon="r2ed_icon_stop.tga" />
<action id="free" name="uimFree" handler="beast_order" params="order=free|beast_index=@UI:BEAST_SELECTED" /> <action id="free" name="uimFree" handler="beast_order" params="order=free|beast_index=@UI:BEAST_SELECTED" icon="r2_icon_despawn.tga" />
<action id="enter_stable" name="uimEnterStable" handler="beast_order" params="order=enter_stable|beast_index=@UI:BEAST_SELECTED" /> <action id="enter_stable" name="uimEnterStable" handler="beast_order" params="order=enter_stable|beast_index=@UI:BEAST_SELECTED" icon="stable_enter.tga" />
<action id="leave_stable" name="uimLeaveStable" handler="beast_order" params="order=leave_stable|beast_index=@UI:BEAST_SELECTED" /> <action id="leave_stable" name="uimLeaveStable" handler="beast_order" params="order=leave_stable|beast_index=@UI:BEAST_SELECTED" icon="stable_leave.tga" />
<separator /> <separator />
</group> </group>
<!-- Each Option is enabled/disabled at open according to the animal selected --> <!-- Each Option is enabled/disabled at open according to the animal selected -->
<group type="menu" id="animal_menu" extends="base_menu" on_active="animal_menu_option"> <group type="menu" id="animal_menu" extends="base_menu" on_active="animal_menu_option">
<action id="follow" name="uimFollowMe" handler="beast_order" params="order=follow|beast_index=@UI:BEAST_SELECTED" /> <action id="follow" name="uimFollowMe" handler="beast_order" params="order=follow|beast_index=@UI:BEAST_SELECTED" icon="lm_target.tga" />
<action id="stop" name="uimStop" handler="beast_order" params="order=stop|beast_index=@UI:BEAST_SELECTED" /> <action id="stop" name="uimStop" handler="beast_order" params="order=stop|beast_index=@UI:BEAST_SELECTED" icon="r2ed_icon_stop.tga" />
<action id="free" name="uimFree" handler="beast_order" params="order=free|beast_index=@UI:BEAST_SELECTED" /> <action id="free" name="uimFree" handler="beast_order" params="order=free|beast_index=@UI:BEAST_SELECTED" icon="r2_icon_despawn.tga" />
<action id="enter_stable" name="uimEnterStable" handler="beast_order" params="order=enter_stable|beast_index=@UI:BEAST_SELECTED" /> <action id="enter_stable" name="uimEnterStable" handler="beast_order" params="order=enter_stable|beast_index=@UI:BEAST_SELECTED" icon="stable_enter.tga" />
<action id="leave_stable" name="uimLeaveStable" handler="beast_order" params="order=leave_stable|beast_index=@UI:BEAST_SELECTED" /> <action id="leave_stable" name="uimLeaveStable" handler="beast_order" params="order=leave_stable|beast_index=@UI:BEAST_SELECTED" icon="stable_leave.tga" />
<action id="mount" name="uimMount" handler="beast_order" params="order=mount|beast_index=@UI:BEAST_SELECTED" /> <action id="enter_bag" name="uimEnterBag" handler="beast_order" params="order=enter_bag|beast_index=@UI:BEAST_SELECTED" icon="bag_enter.tga" />
<action id="unseat" name="uimUnmount" handler="beast_order" params="order=unmount|beast_index=@UI:BEAST_SELECTED" /> <action id="leave_bag" name="uimLeaveBag" handler="beast_order" params="order=leave_bag|beast_index=@UI:BEAST_SELECTED" icon="bag_leave.tga" />
<action id="mount" name="uimMount" handler="beast_order" params="order=mount|beast_index=@UI:BEAST_SELECTED" icon="mektoub_mount.tga" />
<action id="unseat" name="uimUnmount" handler="beast_order" params="order=unmount|beast_index=@UI:BEAST_SELECTED" icon="mektoub_unmount.tga" />
</group> </group>
<!-- temp variable to store the animal selected <!-- temp variable to store the animal selected
0: All animals 0: All animals
@ -286,13 +290,16 @@
<!-- animal status icon --> <!-- animal status icon -->
<view type="bitmap" id="animal_alive_landscape" posref="MR MR" x="-124" w="14" h="14" scale="true" texture="mektoub_map.tga" /> <view type="bitmap" id="animal_alive_landscape" posref="MR MR" x="-124" w="14" h="14" scale="true" texture="mektoub_map.tga" />
<instance template="text_tt" tooltip="uittAliveLandscape" posparent="animal_alive_landscape" tooltip_parent="win" /> <instance template="text_tt" tooltip="uittAliveLandscape" posparent="animal_alive_landscape" tooltip_parent="win" />
<link expr="and(isAnimalStatusAlive(@#beast_db_entry:STATUS),not(isAnimalStatusInStable(@#beast_db_entry:STATUS)))" target="animal_alive_landscape:active,tt_animal_alive_landscape:active" /> <link expr="and(isAnimalStatusAlive(@#beast_db_entry:STATUS),not(isAnimalStatusInStable(@#beast_db_entry:STATUS)),not(isAnimalStatusInBag(@#beast_db_entry:STATUS)))" target="animal_alive_landscape:active,tt_animal_alive_landscape:active" />
<view type="bitmap" id="animal_stable" posref="MR MR" x="-124" w="14" h="14" scale="true" texture="building_state2.tga" /> <view type="bitmap" id="animal_stable" posref="MR MR" x="-124" w="14" h="14" scale="true" texture="building_state2.tga" />
<instance template="text_tt" tooltip="uittStable" posparent="animal_stable" tooltip_parent="win" /> <instance template="text_tt" tooltip="uittStable" posparent="animal_stable" tooltip_parent="win" />
<link expr="isAnimalStatusInStable(@#beast_db_entry:STATUS)" target="animal_stable:active,tt_animal_stable:active" /> <link expr="isAnimalStatusInStable(@#beast_db_entry:STATUS)" target="animal_stable:active,tt_animal_stable:active" />
<view type="bitmap" id="animal_dead" posref="MR MR" x="-124" w="14" h="14" scale="true" texture="MP_skull.tga" /> <view type="bitmap" id="animal_dead" posref="MR MR" x="-124" w="14" h="14" scale="true" texture="MP_skull.tga" />
<instance template="text_tt" tooltip="uittDead" posparent="animal_dead" tooltip_parent="win" /> <instance template="text_tt" tooltip="uittDead" posparent="animal_dead" tooltip_parent="win" />
<link expr="isAnimalStatusDead(@#beast_db_entry:STATUS)" target="animal_dead:active,tt_animal_dead:active" /> <link expr="isAnimalStatusDead(@#beast_db_entry:STATUS)" target="animal_dead:active,tt_animal_dead:active" />
<view type="bitmap" id="animal_in_bag" posref="MR MR" x="-124" w="14" h="14" scale="true" texture="ico_mission_purse.tga" />
<instance template="text_tt" tooltip="uittInBag" posparent="animal_in_bag" tooltip_parent="win" />
<link expr="isAnimalStatusInBag(@#beast_db_entry:STATUS)" target="animal_in_bag:active,tt_animal_in_bag:active" />
<view type="bitmap" id="weight" posref="MR MR" x="-84" texture="W_weight.tga" /> <view type="bitmap" id="weight" posref="MR MR" x="-84" texture="W_weight.tga" />
<ctrl type="tooltip" id="tt_weight" posparent="weight" posref="MR MR" x="0" y="0" sizeref="wh" w="28" h="14" tooltip="uittAnimalWeight" tooltip_parent="win" /> <ctrl type="tooltip" id="tt_weight" posparent="weight" posref="MR MR" x="0" y="0" sizeref="wh" w="28" h="14" tooltip="uittAnimalWeight" tooltip_parent="win" />
<view type="text" id="weight_txt" posparent="weight" posref="TL TR" x="-2" y="-2" color="255 255 255 255" shadow="true" fontsize="8" /> <view type="text" id="weight_txt" posparent="weight" posref="TL TR" x="-2" y="-2" color="255 255 255 255" shadow="true" fontsize="8" />
@ -320,6 +327,9 @@
<instance template="pa_template" index="2" bars_entry="UI:VARIABLES:BARS:ANIMAL:1" beast_db_entry="%pa_beast1" bag_path="%pa_bag1" /> <instance template="pa_template" index="2" bars_entry="UI:VARIABLES:BARS:ANIMAL:1" beast_db_entry="%pa_beast1" bag_path="%pa_bag1" />
<instance template="pa_template" index="3" bars_entry="UI:VARIABLES:BARS:ANIMAL:2" beast_db_entry="%pa_beast2" bag_path="%pa_bag2" /> <instance template="pa_template" index="3" bars_entry="UI:VARIABLES:BARS:ANIMAL:2" beast_db_entry="%pa_beast2" bag_path="%pa_bag2" />
<instance template="pa_template" index="4" bars_entry="UI:VARIABLES:BARS:ANIMAL:3" beast_db_entry="%pa_beast3" bag_path="%pa_bag3" /> <instance template="pa_template" index="4" bars_entry="UI:VARIABLES:BARS:ANIMAL:3" beast_db_entry="%pa_beast3" bag_path="%pa_bag3" />
<instance template="pa_template" index="5" bars_entry="UI:VARIABLES:BARS:ANIMAL:4" beast_db_entry="%pa_beast4" bag_path="%pa_bag4" />
<instance template="pa_template" index="6" bars_entry="UI:VARIABLES:BARS:ANIMAL:5" beast_db_entry="%pa_beast5" bag_path="%pa_bag5" />
<instance template="pa_template" index="7" bars_entry="UI:VARIABLES:BARS:ANIMAL:6" beast_db_entry="%pa_beast6" bag_path="%pa_bag6" />
<!-- ***************************** --> <!-- ***************************** -->
<!-- * ANIMAL(S) DEAD WINDOW * --> <!-- * ANIMAL(S) DEAD WINDOW * -->
<!-- ***************************** --> <!-- ***************************** -->
@ -368,11 +378,17 @@
<instance template="animal_inventory_template" id="inv_pa1" title="1" info_entry="%pa_beast1" bag_entry="%pa_bag1" icon_db="INV_PA1" /> <instance template="animal_inventory_template" id="inv_pa1" title="1" info_entry="%pa_beast1" bag_entry="%pa_bag1" icon_db="INV_PA1" />
<instance template="animal_inventory_template" id="inv_pa2" title="2" info_entry="%pa_beast2" bag_entry="%pa_bag2" icon_db="INV_PA2" /> <instance template="animal_inventory_template" id="inv_pa2" title="2" info_entry="%pa_beast2" bag_entry="%pa_bag2" icon_db="INV_PA2" />
<instance template="animal_inventory_template" id="inv_pa3" title="3" info_entry="%pa_beast3" bag_entry="%pa_bag3" icon_db="INV_PA3" /> <instance template="animal_inventory_template" id="inv_pa3" title="3" info_entry="%pa_beast3" bag_entry="%pa_bag3" icon_db="INV_PA3" />
<instance template="animal_inventory_template" id="inv_pa4" title="4" info_entry="%pa_beast4" bag_entry="%pa_bag4" icon_db="INV_PA4" />
<instance template="animal_inventory_template" id="inv_pa5" title="5" info_entry="%pa_beast5" bag_entry="%pa_bag5" icon_db="INV_PA5" />
<instance template="animal_inventory_template" id="inv_pa6" title="6" info_entry="%pa_beast6" bag_entry="%pa_bag6" icon_db="INV_PA6" />
<tree node="animal_global"> <tree node="animal_global">
<!-- MAX_INVENTORY_ANIMAL --> <!-- MAX_INVENTORY_ANIMAL -->
<tree node="userpa1" /> <tree node="userpa1" />
<tree node="userpa2" /> <tree node="userpa2" />
<tree node="userpa3" /> <tree node="userpa3" />
<tree node="userpa4" /> <tree node="userpa4" />
<tree node="userpa5" />
<tree node="userpa6" />
<tree node="userpa7" />
</tree> </tree>
</interface_config> </interface_config>

@ -3064,13 +3064,13 @@ text_y="-2"
<!--<view type="text" id="help_text" posref="TL TL" posparent="parent" x="0" y="-14" color="255 255 255 255" fontsize="12" shadow="true" <!--<view type="text" id="help_text" posref="TL TL" posparent="parent" x="0" y="-14" color="255 255 255 255" fontsize="12" shadow="true"
global_color="true" hardtext="" multi_line="true" multi_line_space="0" /> global_color="true" hardtext="" multi_line="true" multi_line_space="0" />
--> -->
<ctrl type="button" id="show_again" button_type="toggle_button" posref="BL BL" posparent="tb_enclosing" x="0" y="-14" <ctrl type="button" id="custom_bbox_enabled" button_type="toggle_button" posref="BL BL" posparent="tb_enclosing" x="0" y="-14"
tx_normal="w_slot_on.tga" tx_pushed="w_opacity_on.tga" tx_over="w_slot_on.tga" pushed="true" tx_normal="w_slot_on.tga" tx_pushed="w_opacity_on.tga" tx_over="w_slot_on.tga" pushed="true"
color="255 255 255 255" col_pushed="255 255 255 255" col_over="255 255 255 0" color="255 255 255 255" col_pushed="255 255 255 255" col_over="255 255 255 0"
onclick_l="lua" onclick_l="lua"
params_l="r2.CustomBBox:updateFromUI()" params_l="r2.CustomBBox:updateFromUI()"
/> />
<view type="text" id="show_again_label" posparent="show_again" posref="MR ML" x="4" y="-3" global_color="true" fontsize="12" shadow="true" hardtext="uiR2showMessageAgain" auto_clamp="true"/> <view type="text" id="text_custom" posparent="custom_bbox_enabled" posref="MR ML" x="4" y="-3" global_color="true" fontsize="12" shadow="true" hardtext="uiR2showMessageAgain" auto_clamp="true"/>
<ctrl style="button_ok" x="0" y="6" posref="BM BM" text_y="0" <ctrl style="button_ok" x="0" y="6" posref="BM BM" text_y="0"
onclick_l="proc" params_l="help_close" hardtext="uittOK" /> onclick_l="proc" params_l="help_close" hardtext="uittOK" />

@ -91,6 +91,11 @@
<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: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: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" /> <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>
<proc id="proc_reset_interface"> <proc id="proc_reset_interface">
@ -238,6 +243,29 @@
<action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_FOC|value=1" /> <action handler="set" params="dblink=UI:SAVE:PLAYER:DISP_FOC|value=1" />
<action handler="set" params="dblink=UI:SAVE:ACT_BAR_OUT|value=1" /> <action handler="set" params="dblink=UI:SAVE:ACT_BAR_OUT|value=1" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:EN:INVERSE_DISPLAY|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:EN:HIDE_FLAG|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:FR:INVERSE_DISPLAY|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:FR:HIDE_FLAG|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:DE:INVERSE_DISPLAY|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:DE:HIDE_FLAG|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:RU:INVERSE_DISPLAY|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:RU:HIDE_FLAG|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:ES:INVERSE_DISPLAY|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:ES:HIDE_FLAG|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:SAY:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:SHOUT:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:TEAM:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:GUILD:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:CIVILIZATION:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:TERRITORY:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:UNIVERSE:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:TELL:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:PLAYER:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:ARROUND:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:SYSTEM:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:TRANSLATION:REGION:DISABLE|value=0" />
<action handler="set" params="dblink=UI:SAVE:CHAT:FONT_SIZE|value=10" /> <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: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:SHADOWED_TEXT|value=1" />
@ -261,6 +289,7 @@
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_ARMOR|value=1" /> <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_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_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_PET|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_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_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_TP|value=1" /> <action handler="set" params="dblink=UI:SAVE:INV_BAG:FILTER_TP|value=1" />
@ -269,13 +298,16 @@
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_ARMOR|value=1" /> <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_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_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_PET|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_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_MISSMP|value=1" /> <action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA0:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:SORT_TYPE|value=0" /> <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: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_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_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_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_PET|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_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_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_TP|value=1" /> <action handler="set" params="dblink=UI:SAVE:INV_PA1:FILTER_TP|value=1" />
@ -284,6 +316,7 @@
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_ARMOR|value=1" /> <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_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_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_PET|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_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_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_TP|value=1" /> <action handler="set" params="dblink=UI:SAVE:INV_PA2:FILTER_TP|value=1" />
@ -292,14 +325,43 @@
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_ARMOR|value=1" /> <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_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_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_PET|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_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_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_TP|value=1" /> <action handler="set" params="dblink=UI:SAVE:INV_PA3:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA4:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA4:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA4:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA4:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA4:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA4:FILTER_PET|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA4:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA4:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA4:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA5:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA5:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA5:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA5:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA5:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA5:FILTER_PET|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA5:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA5:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA5:FILTER_TP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA6:SORT_TYPE|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA6:ICON_LIST|value=0" />
<action handler="set" params="dblink=UI:SAVE:INV_PA6:FILTER_ARMOR|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA6:FILTER_WEAPON|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA6:FILTER_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA6:FILTER_PET|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA6:FILTER_MP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA6:FILTER_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_PA6: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: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: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_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_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_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_PET|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_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_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_TP|value=1" /> <action handler="set" params="dblink=UI:SAVE:INV_GUILD:FILTER_TP|value=1" />
@ -308,6 +370,7 @@
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_ARMOR|value=1" /> <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_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_TOOL|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_PET|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_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_MISSMP|value=1" />
<action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_TP|value=1" /> <action handler="set" params="dblink=UI:SAVE:INV_ROOM:FILTER_TP|value=1" />

@ -241,8 +241,8 @@
<group type="menu" id="ring_session_menu" options="context_menu_back" case_mode="0"> <group type="menu" id="ring_session_menu" options="context_menu_back" case_mode="0">
<action id="join" name="uiRAP_MenuJoin" handler="lua" params="RingAccessPoint:onJoin()" /> <action id="join" name="uiRAP_MenuJoin" handler="lua" params="RingAccessPoint:onJoin()" icon="r2ed_tool_redo.tga" />
<action id="tell" name="uiRAP_MenuTell" handler="lua" params="RingAccessPoint:onTell()" /> <action id="tell" name="uiRAP_MenuTell" handler="lua" params="RingAccessPoint:onTell()" icon="r2_icon_dialog_mini.tga" />
</group> </group>
@ -468,10 +468,10 @@
<group type="menu" id="ring_char_menu" options="context_menu_back" case_mode="0"> <group type="menu" id="ring_char_menu" options="context_menu_back" case_mode="0">
<action id="teleport" name="uiRAP_MenuTeleportTo" handler="lua" params="CharTracking:onTeleportTo()" /> <action id="teleport" name="uiRAP_MenuTeleportTo" handler="lua" params="CharTracking:onTeleportTo()" icon="mp_batiment_noyau_maduk.tga" />
<action id="kick" name="uiRAP_MenuKick" handler="lua" params="CharTracking:onKick()" /> <action id="kick" name="uiRAP_MenuKick" handler="lua" params="CharTracking:onKick()" icon="r2ed_kicked_char.tga" />
<action id="unkick" name="uiRAP_MenuUnkick" handler="lua" params="CharTracking:onUnkick()" /> <action id="unkick" name="uiRAP_MenuUnkick" handler="lua" params="CharTracking:onUnkick()" icon="ryzhome_invite.tga" />
<action id="tell" name="uiRAP_MenuCharTell" handler="lua" params="CharTracking:onTell()" /> <action id="tell" name="uiRAP_MenuCharTell" handler="lua" params="CharTracking:onTell()" icon="r2_icon_dialog_mini.tga" />
</group> </group>
<group type="container" id="ring_chars_tracking" title="uiRAP_CharsTitle" global_color="false" line_at_bottom="false" <group type="container" id="ring_chars_tracking" title="uiRAP_CharsTitle" global_color="false" line_at_bottom="false"

@ -0,0 +1,242 @@
RyzhomeBar = {
id = "ui:interface:webig_ryzhome_toolbar",
saveuri = "http://app.ryzom.com/app_ryzhome/index.php?action=toolbar_save",
selectedPage = 1
}
function RyzhomeBar:close()
getUI("ui:interface:webig_ryzhome_toolbar").active=false
self:saveConfig()
end
function RyzhomeBar:addItems()
local url = "http://app.ryzom.com/app_arcc/index.php?action=player_ryzhome_LuaListItems&command=add"
getUI("ui:interface:web_transactions:content:html"):browse(url)
end
function RyzhomeBar:moveItems()
local url = "http://app.ryzom.com/app_arcc/index.php?action=player_ryzhome_LuaListItems&command=move"
getUI("ui:interface:web_transactions:content:html"):browse(url)
end
function RyzhomeBar:removeItems()
local url = "http://app.ryzom.com/app_arcc/index.php?action=player_ryzhome_LuaListItems&command=remove"
getUI("ui:interface:web_transactions:content:html"):browse(url)
end
function RyzhomeBar:inviteFriend()
local url = "http://app.ryzom.com/app_arcc/index.php?action=player_ryzhome_InviteFriend"
getUI("ui:interface:web_transactions:content:html"):browse(url)
end
function RyzhomeBar:listFriends()
getUI("ui:interface:web_transactions:content:html"):browse(RyzhomeBar.listFriendsUrl)
getUI("ui:interface:web_transactions:header_opened:browse_undo").active=false
getUI("ui:interface:web_transactions:header_opened:browse_redo").active=false
getUI("ui:interface:web_transactions:header_opened:browse_refresh").active=false
getUI("ui:interface:web_transactions:header_opened:browse_home").active=false
local wt = getUI("ui:interface:web_transactions")
wt.w=316
wt.h=420
wt.pop_min_w=316
wt.pop_max_w=316
wt.pop_min_h=420
wt.pop_max_h=420
local framewin = getUI("ui:interface:webig_ryzhome_list_item")
if framewin ~= nil then
framewin.active=false
wt.x = framewin.x
wt.y = framewin.y
end
getUI("ui:interface:web_transactions").active=true
setOnDraw(getUI("ui:interface:web_transactions"), "RyzhomeBar:autocloseWebTransactions()")
end
function RyzhomeBar:autocloseWebTransactions()
local current_url = getUI("ui:interface:web_transactions:content:html").url
if (current_url ~= RyzhomeBar.listFriendsUrl and current_url ~= inviteFriendsUrl) then
local framewin = getUI("ui:interface:webig_ryzhome_list_item")
framewin.x = getUI("ui:interface:web_transactions").x
framewin.y = getUI("ui:interface:web_transactions").y
getUI("ui:interface:web_transactions").active=false
setOnDraw(getUI("ui:interface:web_transactions"), "")
end
end
function RyzhomeBar:serialize()
local ui = getUI(self.id)
local url = "&posx=" .. tostring(ui.x) .. "&posy=" .. tostring(ui.y)
return url
end
function RyzhomeBar:updateNbrItems(offset)
RyzhomeBar.nbrItems = RyzhomeBar.nbrItems + offset
if RyzhomeBar.nbrItems == 0 then
getUI("ui:interface:webig_ryzhome_toolbar:content:new_items_quantity").hardtext=""
else
getUI("ui:interface:webig_ryzhome_toolbar:content:new_items_quantity").hardtext=tostring(RyzhomeBar.nbrItems)
end
end
function RyzhomeBar:saveConfig()
local url = self.saveuri .. self:serialize()
getUI("ui:interface:web_transactions:content:html"):browse(url)
end
function RyzhomeBar:movePage(offset)
RyzhomeBar.selectedPage = RyzhomeBar.selectedPage + offset
if RyzhomeBar.selectedPage <= 0 then
RyzhomeBar.selectedPage = 1
elseif RyzhomeBar.selectedPage > RyzhomeBar.nbrPages then
RyzhomeBar.selectedPage = RyzhomeBar.nbrPages
end
getUI("ui:interface:webig_ryzhome_list_item:header_opened:page").hardtext=tostring(RyzhomeBar.selectedPage).." / "..tostring(RyzhomeBar.nbrPages)
RyzhomeBar:setupItems()
end
function RyzhomeBar:listItems()
RyzhomeBar.recently_removed_item = false
local framewin = getUI("ui:interface:webig_ryzhome_list_item")
--framewin.opened=true
framewin.active=true
if framewin.x == 0 and framewin.y == 0 then
local ui = getUI("ui:interface")
framewin.x = (ui.w - framewin.w) / 2
framewin.y = (ui.h + framewin.h) / 2
end
if RyzhomeBar.Items == nil then
RyzhomeBar.Items = {}
end
end
function RyzhomeBar:useItem(id)
id = tostring(RyzhomeBar.Items[RyzhomeBar.selectedPage][id][1])
if RyzhomeBar.itemCommand == "add" then
RyzhomeBar:addItem(id)
elseif RyzhomeBar.itemCommand == "remove" then
RyzhomeBar:removeItem(id)
elseif RyzhomeBar.itemCommand == "move" then
RyzhomeBar:moveItem(id)
end
end
function RyzhomeBar:addItem(id)
local url = "http://app.ryzom.com/app_arcc/index.php?action=player_ryzhome_Place&command=add&id="..id
getUI("ui:interface:web_transactions:content:html"):browse(url)
end
function RyzhomeBar:removeItem(id)
RyzhomeBar.recently_removed_item = true
RyzhomeBar:spawnItems()
local v = RyzhomeBar.spawnedItems[id]
runAH(nil,"add_shape", "shape=sp_mort.ps|x="..v[2].."|y="..v[3].."|z="..v[4].."|angle="..v[5].."|scale="..tostring(tonumber(v[6])*4)..v[7]..v[8]..v[9])
local url = "http://app.ryzom.com/app_arcc/index.php?action=player_ryzhome_Remove&id="..id
getUI("ui:interface:web_transactions:content:html"):browse(url)
end
function RyzhomeBar:moveItem(id)
local url = "http://app.ryzom.com/app_arcc/index.php?action=player_ryzhome_Place&command=move&id="..id
getUI("ui:interface:web_transactions:content:html"):browse(url)
end
function RyzhomeBar:highlightItem(id)
if RyzhomeBar.itemCommand == "add" then
return
end
if RyzhomeBar.recently_removed_item then
RyzhomeBar.recently_removed_item = false
else
RyzhomeBar:spawnItems()
local v = RyzhomeBar.spawnedItems[tostring(RyzhomeBar.Items[RyzhomeBar.selectedPage][id][1])]
if v then
runAH(nil, "add_shape", "shape=ma_acc_ascenseur.ps|x="..v[2].."|y="..v[3].."|z="..v[4].."|angle="..v[5].."|scale="..tostring(tonumber(v[6])*2)..v[7]..v[8]..v[9])
end
end
end
function RyzhomeBar:callFriendUrl(action, target)
local url = "http://app.ryzom.com/app_arcc/index.php?action=player_ryzhome_"..action.."&amp;target="..target
getUI("ui:interface:web_transactions:content:html"):browse(url)
end
function RyzhomeBar:spawnItems()
runAH(nil, "remove_shapes", "")
for k,v in pairs(RyzhomeBar.spawnedItems) do
runAH(nil, "add_shape", "shape="..v[1].."|x="..v[2].."|y="..v[3].."|z="..v[4].."|angle="..v[5].."|scale="..v[6]..v[7]..v[8]..v[9])
end
end
function RyzhomeBar:setupItems()
for k = 1, 8 do
getUI("ui:interface:webig_ryzhome_list_item:header_opened"):find(":but"..tostring(k)).active=false
getUI("ui:interface:webig_ryzhome_list_item:header_opened"):find(":icon"..tostring(k)).active=false
getUI("ui:interface:webig_ryzhome_list_item:header_opened"):find(":text"..tostring(k)).uc_hardtext=""
getUI("ui:interface:webig_ryzhome_list_item:header_opened"):find(":info"..tostring(k)).uc_hardtext=""
end
for k,v in pairs(RyzhomeBar.Items[RyzhomeBar.selectedPage]) do
if k ~= nil then
getUI("ui:interface:webig_ryzhome_list_item:header_opened"):find(":icon"..tostring(k)).active=true
getUI("ui:interface:webig_ryzhome_list_item:header_opened"):find(":but"..tostring(k)).active=true
local text = ucstring()
text:fromUtf8(v[3])
getUI("ui:interface:webig_ryzhome_list_item:header_opened"):find(":text"..tostring(k)).uc_hardtext=text
text:fromUtf8(v[4])
getUI("ui:interface:webig_ryzhome_list_item:header_opened"):find(":info"..tostring(k)).uc_hardtext=text
end
end
end
if RyzhomePlace == nil then
RyzhomePlace = {
saveuri = "",
}
end
function RyzhomePlace:move(x, y, z)
pos_x=pos_x+x
pos_y=pos_y+y
pos_z=pos_z+z
RyzhomePlace:update()
end
function RyzhomePlace:rot(a)
pos_a=pos_a+a
RyzhomePlace:update()
end
function RyzhomePlace:reset()
--Ryzhome:addShapes()
pos_x, pos_y, pos_z = getPlayerPos()
pos_a = (3.14*getUI("ui:interface:compass:arrow3d:arrow").rotz)/18
RyzhomePlace:addShape()
RyzhomeBar:spawnItems()
end
function RyzhomePlace:update()
RyzhomePlace:addShapes()
RyzhomePlace:addShape()
RyzhomeBar:spawnItems()
end
function RyzhomePlace:apply()
getUI("ui:interface:web_transactions:content:html"):browse(RyzhomePlace.saveuri.."&pos_x="..pos_x.."&pos_y="..pos_y.."&pos_z="..pos_z.."&pos_a="..pos_a)
end
function RyzhomePlace:close()
--runAH(nil, "remove_shapes", "")
getUI("ui:interface:webig_ryzhome_place_item").active=false
end
function debug(text)
local uc = ucstring()
uc:fromUtf8(tostring(text))
displaySystemInfo(ucstring(uc), "sys")
end

@ -0,0 +1,445 @@
<interface_config>
<root id="interface" x="0" y="0" w="800" h="600" active="true" />
<lua file="ryzhome_toolbar.lua" />
<style style="button_over"
type="button"
id="button_over"
button_type="push_button"
posref="TR TR"
x="0"
y="0"
h="39"
w="44"
scale="true"
tx_over="W_button_32_over.tga"
global_color_normal="false"
global_color_pushed="false" />
<group type="container"
id="webig_ryzhome_toolbar"
x="0" y="0" w="200" h="56" posref="MM MM"
max_w="1600" pop_max_w="1600"
max_h="1600" pop_max_h="1600"
min_w="26" pop_min_w="26"
min_h="26" pop_min_h="26"
title=""
global_color="true"
global_color_over="true"
header_active="false"
right_button="false"
options="layer0_pad"
movable="true"
active="true"
opened="true"
openable="false"
resizer="false">
<group id="header_closed" x="0" y="0" w="0" h="0" posref="TL TL"></group>
<group id="header_opened" x="0" y="0" w="0" h="0" wmin="5" sizeref="w" posref="TL TL"></group>
<group id="content" x="0#" y="0#" w="200" h="56" posref="TL TL">
<view id="action_title"
type="text"
posref="TL TL"
x="2"
y="-2"
color="255 255 255 255"
fontsize="12"
shadow="true"
global_color="false"
hardtext="Ryzhome" />
<ctrl id="close"
type="button"
style="button_close"
button_type="push_button"
posref="TR TR"
x="1"
y="1"
tx_normal="w_win_close.tga"
tx_pushed="w_win_close.tga"
tooltip="uiNoteClose"
onclick_l="lua"
params_l="RyzhomeBar:close()"/>
<ctrl id="config"
type="button"
style="button_close"
button_type="push_button"
posref="TL TR"
posparent="close"
x="-2"
y="-1"
tx_normal="r2ed_permanent_pins.tga"
tx_pushed="r2ed_permanent_pins.tga"
tooltip="uiCreateUserLM"
onclick_l="lua"
params_l="RyzhomeBar:saveConfig()"/>
<ctrl id="add"
type="button"
style="button_over"
button_type="toggle_button"
posref="BL BL"
x="3"
y="0"
tx_normal="ryzhome_add_item.png"
tx_pushed="ryzhome_add_item.png"
tx_over="W_button_32_over.tga"
tooltip="uiPeopleAdd"
onclick_l="lua"
params_l="RyzhomeBar:addItems()"/>
<view id="new_items_quantity"
type="text"
posref="BL BL"
posparent="add"
x="-1"
y="-1"
color="255 200 0 255"
global_color="false"
fontsize="16"
shadow="true"
hardtext="" />
<ctrl id="move"
type="button"
style="button_over"
button_type="toggle_button"
posref="BR BL"
posparent="add"
x="3"
y="0"
tx_normal="ryzhome_move_item.png"
tx_pushed="ryzhome_move_item.png"
tx_over="W_button_32_over.tga"
tooltip="uimMoveTo"
onclick_l="lua"
params_l="RyzhomeBar:moveItems()"/>
<ctrl id="remove"
type="button"
style="button_over"
posref="BR BL"
posparent="move"
x="3"
tx_normal="ryzhome_remove_item.png"
tx_pushed="ryzhome_remove_item.png"
tx_over="W_button_32_over.tga"
tooltip="uimRemove"
onclick_l="lua"
params_l="RyzhomeBar:removeItems()"/>
<ctrl id="invite"
type="button"
style="button_over"
posref="BR BL"
posparent="remove"
x="3"
tx_normal="ryzhome_invite.png"
tx_pushed="ryzhome_invite.png"
tx_over="W_button_32_over.tga"
tooltip="uiRAP_Invite"
onclick_l="lua"
params_l="RyzhomeBar:inviteFriend()"/>
</group>
</group>
<tree node="webig_ryzhome_toolbar"></tree>
<style style="button_over"
id="over"
posref="TL TL"
render_layer="-1"
y="1" w="600" h="44" scale="true"
button_type="push_button"
tx_normal="blank.tga"
tx_pushed="blank.tga"
tx_over="blank.tga"
color="255 255 255 0"
col_over="255 255 255 64"
col_pushed="255 255 255 128"
global_color_over="false" />
<group id="webig_ryzhome_list_item"
style="bot_chat_window"
posref="MM MM"
min_w="316"
max_w="316"
max_h="420"
min_h="420"
w="316"
h="420"
x="0"
y="0"
pop_max_h="700"
active="false"
title=""
modal_parent="gestionsets">
<group id="header_opened"
child_resize_hmargin="24"
w="600"
h="420"
x="0"
y="0"
posref="TL TL">
<view id="action_title"
type="text"
posref="TL TL"
x="2"
y="-25"
color="255 255 255 255"
fontsize="12"
shadow="true"
hardtext="uiSelectMission" />
<ctrl id="page_next"
type="button"
posref="TR TR"
x="-2"
y="-20"
tx_normal="W_arrow_right_0.tga"
tx_pushed="W_arrow_right_0.tga"
tooltip="uiKeyNEXT"
onclick_l="lua"
params_l="RyzhomeBar:movePage(1)" />
<view id="page"
type="text"
posref="TL TR"
posparent="page_next"
x="-2"
y="0"
color="255 255 255 255"
fontsize="12"
shadow="true"
hardtext="1/1" />
<ctrl id="page_previous"
type="button"
posref="TL TR"
posparent="page"
x="-2"
y="0"
tx_normal="w_arrow_left_0.tga"
tx_pushed="w_arrow_left_0.tga"
tooltip="uiKeyPRIOR"
onclick_l="lua"
params_l="RyzhomeBar:movePage(-1)" />
<group id="scroll_text"
sizeref="w"
posref="TL TL"
w="0"
y="-40"
child_resize_h="false"
child_resize_hmargin="8">
<instance template="inner_thin_border_group" />
<group id="text_list"
posref="TL TL"
x="12"
y="-4"
sizeref="w"
max_h="380"
child_resize_h="true" >
<view type="bitmap" id="icon1" posref="TL TL" texture="r2ed_toolbar_freeze.tga" global_color="false" />
<view type="text" id="text1" posref="TR TL" posparent="icon1" fontsize="10" x="5" y="-5" hardtext="" />
<view type="text" id="info1" posref="BL TL" color="55 205 55 205" posparent="text1" fontsize="10" x="10" y="-5" hardtext="" />
<ctrl type="button" id="but1" posparent="icon1" style="button_over" onover="lua" params_over="RyzhomeBar:highlightItem(1)" onclick_l="lua" params_l="RyzhomeBar:useItem(1)" />
<view type="bitmap" id="icon2" posparent="but1" posref="BL TL" y="-4" texture="r2ed_toolbar_freeze.tga" global_color="false" />
<view type="text" id="text2" posref="TR TL" posparent="icon2" fontsize="10" x="5" y="-5" hardtext="" />
<view type="text" id="info2" posref="BL TL" color="55 205 55 205" posparent="text2" fontsize="10" x="10" y="-5" hardtext="" />
<ctrl type="button" id="but2" posparent="icon2" style="button_over" onover="lua" params_over="RyzhomeBar:highlightItem(2)" onclick_l="lua" params_l="RyzhomeBar:useItem(2)" />
<view type="bitmap" id="icon3" posparent="but2" posref="BL TL" y="-4" texture="r2ed_toolbar_freeze.tga" global_color="false" />
<view type="text" id="text3" posref="TR TL" posparent="icon3" fontsize="10" x="5" y="-5" hardtext="" />
<view type="text" id="info3" posref="BL TL" color="55 205 55 205" posparent="text3" fontsize="10" x="10" y="-5" hardtext="" />
<ctrl type="button" id="but3" posparent="icon3" style="button_over" onover="lua" params_over="RyzhomeBar:highlightItem(3)" onclick_l="lua" params_l="RyzhomeBar:useItem(3)" />
<view type="bitmap" id="icon4" posparent="but3" posref="BL TL" y="-4" texture="r2ed_toolbar_freeze.tga" global_color="false" />
<view type="text" id="text4" posref="TR TL" posparent="icon4" fontsize="10" x="5" y="-5" hardtext="" />
<view type="text" id="info4" posref="BL TL" color="55 205 55 205" posparent="text4" fontsize="10" x="10" y="-5" hardtext="" />
<ctrl type="button" id="but4" posparent="icon4" style="button_over" onover="lua" params_over="RyzhomeBar:highlightItem(4)" onclick_l="lua" params_l="RyzhomeBar:useItem(4)" />
<view type="bitmap" id="icon5" posparent="but4" posref="BL TL" y="-4" texture="r2ed_toolbar_freeze.tga" global_color="false" />
<view type="text" id="text5" posref="TR TL" posparent="icon5" fontsize="10" x="5" y="-5" hardtext="" />
<view type="text" id="info5" posref="BL TL" color="55 205 55 205" posparent="text5" fontsize="10" x="10" y="-5" hardtext="" />
<ctrl type="button" id="but5" posparent="icon5" style="button_over" onover="lua" params_over="RyzhomeBar:highlightItem(5)" onclick_l="lua" params_l="RyzhomeBar:useItem(5)" />
<view type="bitmap" id="icon6" posparent="but5" posref="BL TL" y="-4" texture="r2ed_toolbar_freeze.tga" global_color="false" />
<view type="text" id="text6" posref="TR TL" posparent="icon6" fontsize="10" x="5" y="-5" hardtext="" />
<view type="text" id="info6" posref="BL TL" color="55 205 55 205" posparent="text6" fontsize="10" x="10" y="-5" hardtext="" />
<ctrl type="button" id="but6" posparent="icon6" style="button_over" onover="lua" params_over="RyzhomeBar:highlightItem(6)" onclick_l="lua" params_l="RyzhomeBar:useItem(6)" />
<view type="bitmap" id="icon7" posparent="but6" posref="BL TL" y="-4" texture="r2ed_toolbar_freeze.tga" global_color="false" />
<view type="text" id="text7" posref="TR TL" posparent="icon7" fontsize="10" x="5" y="-5" hardtext="" />
<view type="text" id="info7" posref="BL TL" color="55 205 55 205" posparent="text7" fontsize="10" x="10" y="-5" hardtext="" />
<ctrl type="button" id="but7" posparent="icon7" style="button_over" onover="lua" params_over="RyzhomeBar:highlightItem(7)" onclick_l="lua" params_l="RyzhomeBar:useItem(7)" />
<view type="bitmap" id="icon8" posparent="but7" posref="BL TL" y="-4" texture="r2ed_toolbar_freeze.tga" global_color="false" />
<view type="text" id="text8" posref="TR TL" posparent="icon8" fontsize="10" x="5" y="-5" hardtext="" />
<view type="text" id="info8" posref="BL TL" color="55 205 55 205" posparent="text8" fontsize="10" x="10" y="-5" hardtext="" />
<ctrl type="button" id="but8" posparent="icon8" style="button_over" onover="lua" params_over="RyzhomeBar:highlightItem(8)" onclick_l="lua" params_l="RyzhomeBar:useItem(8)" />
</group>
<ctrl style="skin_scroll"
id="scroll_row"
posref="TL TL"
target_stepy="44"
target="text_list" />
<group id="list"
max_sizeref="h"
max_sizeparent="parent"
max_h="0"
sizeref="w"
posref="TL TL"
x="8"
y="0"
w="-16" />
</group>
</group>
</group>
<tree node="webig_ryzhome_list_item"></tree>
<template name="t_webig_ryzhome_button">
<ctrl type="button"
button_type="push_button"
id="#id"
posref="TL TL"
x="#x"
y="#y"
tx_normal="#tx_normal"
global_color="false"
tooltip="#tooltip"
onclick_l="lua"
params_l="#params_l"/>
<view type="bitmap"
id="i_#id"
posref="TL TL"
x="#x"
y="#y"
rot="#rot"
texture="#texture"
global_color="false"/>
</template>
<group type="container"
id="webig_ryzhome_place_item"
x="0" y="0" w="200" h="140" posref="TL TL"
title=""
global_color="true"
global_color_over="true"
header_active="false"
right_button="false"
options="layer0_pad"
movable="true"
active="true"
opened="true"
openable="false"
resizer="false">
<group id="header_closed" x="0" y="0" w="0" h="0" posref="TL TL"></group>
<group id="header_opened" x="0" y="0" w="0" h="0" wmin="5" sizeref="w" posref="TL TL"></group>
<group id="content" x="0" y="0" w="400" h="140" posref="TL TL">
<view type="text"
id="item"
posref="TL TL"
x="2"
y="-4"
color="255 255 255 255"
shadow="true"
global_color="false"
fontsize="10"
hardtext="" />
<ctrl style="text_button_16"
id="quit"
posref="TR TR"
x="-2"
y="-2"
hardtext="uiClose"
onclick_l="lua"
params_l="RyzhomePlace:close()" />
<!--
<view type="bitmap" id="black" x="2" y="0" w="200" h="150" posref="ML ML" inherit_gc_alpha="true" scale="true" texture="blank.tga" color="0 0 0 240"/>
<scene3d id="scene3d" x="2" y="0" w="200" h="150" posref="ML ML" curcam="cam" curcs="env" render_layer="-2" active="false"
user_interaction="true" rotz_factor="0.017"
roty_factor="0.005" roty_limit_min="-80" roty_limit_max="90"
dist_factor="0.05" dist_limit_min="1" dist_limit_max="20.0"
ambient="128 96 64" sun_ambient="0 0 0" sun_diffuse="255 255 196" sun_specular="0 0 0" sun_direction="-1.0 1.0 -1.0" >
<camera id="cam" fov="80" pos="0.0 20.0 0" target="0.0 26.5 2" roll="0" />
<light id="back" pos="0.0 28.2 1.6" color="255 255 255" near="2.5" far="4.0" />
<light id="lgt" pos="0.0 25.3 2.48" color="255 255 255" near="3.0" far="4.0" />
<shape id="shape" name="" pos="0.0 26.5 0.0" rot="0.0 0.0 0.0" />
</scene3d>
-->
<group id="movers" x="0" y="-4" w="182" h="140" posref="MM MM">
<instance template="t_webig_ryzhome_button" id="previous_x2" rot="2" x="2" y="-16" tooltip="ll" texture="mp3_button_next.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(-0.1, 0, 0)" />
<instance template="t_webig_ryzhome_button" id="previous_x" rot="2" x="32" y="-16" tooltip="ll" texture="mp3_button_play.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(-0.01, 0, 0)" />
<view type="text" id="x" posref="TL TL" x="76" y="-20" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="Axe X" />
<instance template="t_webig_ryzhome_button" id="next_x" rot="0" x="130" y="-16" tooltip="ll" texture="mp3_button_play.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(0.01, 0, 0)" />
<instance template="t_webig_ryzhome_button" id="next_x2" rot="0" x="160" y="-16" tooltip="ll" texture="mp3_button_next.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(0.1, 0, 0)" />
<instance template="t_webig_ryzhome_button" id="previous_y2" rot="2" x="2" y="-34" tooltip="ll" texture="mp3_button_next.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(0, -0.1, 0)" />
<instance template="t_webig_ryzhome_button" id="previous_y" rot="2" x="32" y="-34" tooltip="ll" texture="mp3_button_play.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(0, -0.01, 0)" />
<view type="text" id="y" posref="TL TL" x="76" y="-38" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="Axe Y" />
<instance template="t_webig_ryzhome_button" id="next_y" rot="0" x="130" y="-34" tooltip="ll" texture="mp3_button_play.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(0, 0.01, 0)" />
<instance template="t_webig_ryzhome_button" id="next_y2" rot="0" x="160" y="-34" tooltip="ll" texture="mp3_button_next.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(0, 0.1, 0)" />
<instance template="t_webig_ryzhome_button" id="previous_z2" rot="2" x="2" y="-52" tooltip="ll" texture="mp3_button_next.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(0, 0, -0.1, 0)" />
<instance template="t_webig_ryzhome_button" id="previous_z" rot="2" x="32" y="-52" tooltip="ll" texture="mp3_button_play.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(0, 0, -0.01, 0)" />
<view type="text" id="z" posref="TL TL" x="76" y="-58" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="Axe Z" />
<instance template="t_webig_ryzhome_button" id="next_z" rot="0" x="130" y="-52" tooltip="ll" texture="mp3_button_play.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(0, 0, 0.01, 0)" />
<instance template="t_webig_ryzhome_button" id="next_z2" rot="0" x="160" y="-52" tooltip="ll" texture="mp3_button_next.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:move(0, 0, 0.1, 0)" />
<instance template="t_webig_ryzhome_button" id="previous_a2" rot="2" x="2" y="-70" tooltip="ll" texture="mp3_button_next.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:rot(-0.1)" />
<instance template="t_webig_ryzhome_button" id="previous_a" rot="2" x="32" y="-70" tooltip="ll" texture="mp3_button_play.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:rot(-0.01)" />
<view type="text" id="a" posref="TL TL" x="76" y="-76" color="255 255 255 255" shadow="true" global_color="false" fontsize="10" hardtext="Angle" />
<instance template="t_webig_ryzhome_button" id="next_a" rot="0" x="130" y="-70" tooltip="ll" texture="mp3_button_play.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:rot(0.01)" />
<instance template="t_webig_ryzhome_button" id="next_a2" rot="0" x="160" y="-70" tooltip="ll" texture="mp3_button_next.tga" tx_normal="mp3_button_play.tga" params_l="RyzhomePlace:rot(0.1)" />
</group>
<ctrl style="text_button_16"
id="validate"
posref="BR BR"
x="-2"
y="2"
hardtext="reset"
onclick_l="lua"
params_l="RyzhomePlace:apply()" />
<ctrl style="text_button_16"
id="reset"
posref="ML MR"
posparent="validate"
x="-2"
y="0"
hardtext="reset"
onclick_l="lua"
params_l="RyzhomePlace:reset()" />
</group>
</group>
<tree node="webig_ryzhome_place_item"></tree>
</interface_config>

@ -0,0 +1,624 @@
--- Parse interface of ark_scene_editor_edit_menu ---
local script = [[<interface_config>
<root id="interface" x="0" y="0" w="800" h="600" active="true"/>
<group type="menu" id="ark_scene_editor_edit_menu" extends="base_menu" mouse_pos="true">
</group>
</interface_config>]]
parseInterfaceFromString(script)
if SceneEditor == nil then
SceneEditor = {
Shapes = {},
Groups = {},
LastEditedGroup = nil,
HaveUpdate = nil
};
end
function debug(text)
local message = ucstring()
message:fromUtf8(tostring(text))
displaySystemInfo(message, "SYS")
end
function SceneEditor:init(scene_id, form_url, translations, icons_url)
self.sceneId = scene_id
self.baseUrl = form_url
self.iconsUrl = icons_url
self.T = translations
end
function SceneEditor:reset(no_get_html)
self.Shapes = {}
self.Groups = {}
self.LastEditedGroup = nil
self.HaveUpdate = nil
runAH(nil, "remove_shapes", "")
if no_get_html == true then
self:get_html("Reseted")
end
end
function SceneEditor:show_menu()
if (rightClick) then
SceneEditor:launch_menu()
end
end
function SceneEditor:launch_menu(id)
-- SelectedInstanceId can be set by client application
if id ~= nil then
SelectedInstanceId = id
end
local menu = getUI("ui:interface:ark_scene_editor_edit_menu")
menu:setMinW(185)
menu:updateCoords()
menu = menu:getRootMenu()
menu:reset()
menu:addLine(ucstring("-- SHAPE EDITION --"), "", "", "shape_header")
menu:addLine(ucstring("Move"), "", "", "shape_move")
menu:addSubMenu(1)
local subMenu = menu:getSubMenu(1)
subMenu:addIconLine(ucstring("Axe X"), "lua", "setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:move_x()')", "shape_move_x", "ark_move_x.tga")
subMenu:addIconLine(ucstring("Axe Y"), "lua", "setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:move_y()')", "shape_move_y", "ark_move_y.tga")
subMenu:addIconLine(ucstring("Axe Z"), "lua", "x, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:move_z()')", "shape_move_z", "ark_move_z.tga")
subMenu:addIconLine(ucstring("Axes X & Y"), "lua", "setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:move_xy()')", "shape_move_xy", "ark_move_xy.tga")
subMenu:addIconLine(ucstring("Axes X & Y Snap to ground"), "lua", "setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:move_xysnap()')", "shape_move_xy_snap", "ark_move_xysnap.tga")
subMenu:addSeparator()
subMenu:addIconLine(ucstring("Move to player"), "lua", "SceneEditor:move_player()", "shape_move_player", "ark_move_player.tga")
menu:addLine(ucstring("Rotate"), "", "", "shape_rotate")
menu:addSubMenu(2)
subMenu = menu:getSubMenu(2)
subMenu:addIconLine(ucstring("Axe X"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:rotate(SelectedInstanceId, \"x\")')", "shape_rotate_x", "ark_rotate_x.tga")
subMenu:addIconLine(ucstring("Axe Y"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:rotate(SelectedInstanceId, \"y\")')", "shape_rotate_y", "ark_rotate_y.tga")
subMenu:addIconLine(ucstring("Axe Z"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:rotate(SelectedInstanceId, \"z\")')", "shape_rotate_z", "ark_rotate_z.tga")
menu:addLine(ucstring("Scale"), "", "", "shape_scale")
menu:addSubMenu(3)
subMenu = menu:getSubMenu(3)
subMenu:addIconLine(ucstring("Axe X"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:scale(SelectedInstanceId, \"x\")')", "shape_scale_x", "ark_scale_x.tga")
subMenu:addIconLine(ucstring("Axe Y"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:scale(SelectedInstanceId, \"y\")')", "shape_scale_y", "ark_scale_y.tga")
subMenu:addIconLine(ucstring("Axe Z"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:scale(SelectedInstanceId, \"z\")')", "shape_scale_z", "ark_scale_z.tga")
subMenu:addIconLine(ucstring("Axes X & Y & Z"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:scale(SelectedInstanceId, \"xyz\")')", "shape_scale_xyz", "ark_scale_xyz.tga")
menu:addLine(ucstring("-- COLLISION EDITION --"), "", "", "col_header")
menu:addLine(ucstring("Move"), "", "", "col_move")
menu:addSubMenu(5)
subMenu = menu:getSubMenu(5)
subMenu:addIconLine(ucstring("Axe X"), "lua", "setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:col_move_x()')", "col_move_x", "ark_move_x.tga")
subMenu:addIconLine(ucstring("Axe Y"), "lua", "setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:col_move_y()')", "col_move_y", "ark_move_y.tga")
subMenu:addIconLine(ucstring("Axe Z"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:col_move_z()')", "col_move_z", "ark_move_xy.tga")
subMenu:addIconLine(ucstring("Axe X & Y"), "lua", "setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:col_move_xy()')", "col_move_xy", "ark_move_xy.tga")
subMenu:addSeparator()
subMenu:addIconLine(ucstring("Move to Shape"), "lua", "SceneEditor:col_move_to_shape()", "col_move_to_shape", "ark_move_player.tga")
menu:addIconLine(ucstring("Rotate"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:col_rotate(SelectedInstanceId, \"x\")')", "col_rotate_x", "ark_rotate_x.tga")
menu:addLine(ucstring("Scale"), "", "", "col_scale")
menu:addSubMenu(7)
subMenu = menu:getSubMenu(7)
subMenu:addIconLine(ucstring("Axe X"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:col_scale(SelectedInstanceId, \"x\")')", "col_scale_x", "ark_scale_x.tga")
subMenu:addIconLine(ucstring("Axe Y"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:col_scale(SelectedInstanceId, \"y\")')", "col_scale_y", "ark_scale_y.tga")
subMenu:addIconLine(ucstring("Axe Z"), "lua", "ARK_SHAPE_LATEST_X, ARK_SHAPE_LATEST_Y = getMousePos(); setOnDraw(getUI('ui:interface:ark_scene_editor'), 'SceneEditor:col_scale(SelectedInstanceId, \"z\")')", "col_scale_z", "ark_scale_z.tga")
launchContextMenuInGame("ui:interface:ark_scene_editor_edit_menu")
end
function arcc_tools_check_rclick()
root = getUI("ui:interface")
local rx, ry = getMousePos()
i_id = getShapeIdAt(rx, ry)
if i_id >= 0 then
setOnDraw(getUI("ui:interface:ark_scene_editor"), "")
end
end
function SceneEditor:move(id, axe)
local d, mx, my = getMouseDown()
if d then
setOnDraw(getUI("ui:interface:ark_scene_editor"), "")
SceneEditor:set_modified(id)
self:get_html("Moved")
else
local x,y,z = getGroundAtMouse()
if axe == "x" then moveShape(id, tostring(x), "+0", "+0") end
if axe == "y" then moveShape(id, "+0", tostring(y), "+0") end
if axe == "z" then
mx, my = getMousePos()
moveShape(id, "+0", "+0", "+"..tostring((my-ARK_SHAPE_LATEST_Y)/100))
ARK_SHAPE_LATEST_Y = my
end
if axe == "xysnap" then moveShape(id, tostring(x), tostring(y), tostring(z)) end
if axe == "xy" then moveShape(id, tostring(x), tostring(y), "+0") end
if axe == "player" then
x, y, z = getPlayerPos()
moveShape(id, tostring(x), tostring(y), tostring(z))
SceneEditor:set_modified(id)
self:get_html("Moved to player")
end
end
end
function SceneEditor:rotate(id, axe)
local d, mx, my = getMouseDown()
if d then
setOnDraw(getUI("ui:interface:ark_scene_editor"), "")
SceneEditor:set_modified(id)
self:get_html("Rotate")
else
mx, my = getMousePos()
if axe == "x" then rotateShape(id, "+"..tostring((my-ARK_SHAPE_LATEST_Y)/100), "+0", "+0") end
if axe == "y" then rotateShape(id, "+0", "+"..tostring((my-ARK_SHAPE_LATEST_Y)/100), "+0") end
if axe == "z" then rotateShape(id, "+0", "+0", "+"..tostring((mx-ARK_SHAPE_LATEST_X)/100)) end
ARK_SHAPE_LATEST_X = mx
ARK_SHAPE_LATEST_Y = my
end
end
function SceneEditor:scale(id, axe)
local d, mx, my = getMouseDown()
if d then
setOnDraw(getUI("ui:interface:ark_scene_editor"), "")
SceneEditor:set_modified(id)
self:get_html("Rotate")
else
mx, my = getMousePos()
local setup = {}
if axe == "xyz" then
setup["scale x"]="+"..tostring((mx-ARK_SHAPE_LATEST_X)/100)
setup["scale y"]="+"..tostring((mx-ARK_SHAPE_LATEST_X)/100)
setup["scale z"]="+"..tostring((mx-ARK_SHAPE_LATEST_X)/100)
end
if axe == "x" then setup["scale x"]="+"..tostring((mx-ARK_SHAPE_LATEST_X)/100) end
if axe == "y" then setup["scale y"]="+"..tostring((mx-ARK_SHAPE_LATEST_X)/100) end
if axe == "z" then setup["scale z"]="+"..tostring((my-ARK_SHAPE_LATEST_Y)/100) end
setupShape(id, setup)
ARK_SHAPE_LATEST_X = mx
ARK_SHAPE_LATEST_Y = my
end
end
function SceneEditor:move_x()
self:move(SelectedInstanceId, "x")
end
function SceneEditor:move_y()
self:move(SelectedInstanceId, "y")
end
function SceneEditor:move_xy()
self:move(SelectedInstanceId, "xy")
end
function SceneEditor:move_xysnap()
self:move(SelectedInstanceId, "xysnap")
end
function SceneEditor:move_z()
self:move(SelectedInstanceId, "z")
end
function SceneEditor:move_player()
self:move(SelectedInstanceId, "player")
end
function SceneEditor:col_move(id, axe)
local d, mx, my = getMouseDown()
if d then
setOnDraw(getUI("ui:interface:ark_scene_editor"), "")
self:set_modified(id)
self:get_html("Updated")
else
local x,y,z = getGroundAtMouse()
local setup = {}
if axe == "x" then setup["col pos x"]=tostring(x) end
if axe == "y" then setup["col pos y"]=tostring(y) end
if axe == "z" then
mx, my = getMousePos()
setup["col pos z"]="+"..tostring((my-ARK_SHAPE_LATEST_Y)/100)
ARK_SHAPE_LATEST_X = mx
ARK_SHAPE_LATEST_Y = my
end
if axe == "xy" then setup["col pos x"]=tostring(x); setup["col pos y"]=tostring(y) end
if axe == "shape" then
x, y, z = getShapePos(id)
setup["col pos x"]=tostring(x)
setup["col pos y"]=tostring(y)
self:set_modified(id)
setupShape(id, setup)
self:get_html("Updated")
else
setupShape(id, setup)
end
end
end
function SceneEditor:col_rotate(id, axe)
local d, mx, my = getMouseDown()
if d then
setOnDraw(getUI("ui:interface:ark_scene_editor"), "")
SceneEditor:set_modified(id)
self:get_html("Rotate")
else
mx, my = getMousePos()
local setup = {}
setup["col orientation"]="+"..tostring((mx-ARK_SHAPE_LATEST_X)/100)
setupShape(id, setup)
ARK_SHAPE_LATEST_X = mx
ARK_SHAPE_LATEST_Y = my
end
end
function SceneEditor:col_scale(id, axe)
local d, mx, my = getMouseDown()
if d then
setOnDraw(getUI("ui:interface:ark_scene_editor"), "")
SceneEditor:set_modified(id)
self:get_html("Rotate")
else
mx, my = getMousePos()
local setup = {}
if axe == "x" then setup["col size x"]="+"..tostring((mx-ARK_SHAPE_LATEST_X)/100) end
if axe == "y" then setup["col size y"]="+"..tostring((mx-ARK_SHAPE_LATEST_X)/100) end
if axe == "z" then setup["col size z"]="+"..tostring((my-ARK_SHAPE_LATEST_Y)/100) end
setupShape(id, setup)
ARK_SHAPE_LATEST_X = mx
ARK_SHAPE_LATEST_Y = my
end
end
function SceneEditor:set_modified(id)
self.Groups[self.Shapes[id].group].props.modified=true
self.Shapes[id].modified = "modified"
self.HaveUpdate = true
end
function SceneEditor:col_move_x()
self:col_move(SelectedInstanceId, "x")
end
function SceneEditor:col_move_y()
self:col_move(SelectedInstanceId, "y")
end
function SceneEditor:col_move_z()
self:col_move(SelectedInstanceId, "z")
end
function SceneEditor:col_move_xy()
self:col_move(SelectedInstanceId, "xy")
end
function SceneEditor:col_move_to_shape()
self:col_move(SelectedInstanceId, "shape")
end
function SceneEditor:setup_shape(shape_id, setup)
final_setup = self.Shapes[new_shape.id].setup
if final_setup == nil then
final_setup = {}
end
for k,v in pairs(setup) do
final_setup[k] = v
end
self.Shapes[new_shape.id].setup = final_setup
setupShape(shape_id, setup)
end
function SceneEditor:add(shape)
if self.LastEditedGroup == nil then
self:get_html('<font color="#aa00000">'..self.T["no_selected_group"]..'</font>', '000000')
end
local new_shape = {}
new_shape.file = shape
new_shape.group = self.LastEditedGroup
self.Groups[new_shape.group].props.modified=true
new_shape.db_id = self.Groups[new_shape.group].props.count + 1
new_shape.modified = "added"
new_shape_id = addShape(shape, 0, 0, 0, "user", 1, true, "", "SceneEditor:show_menu()")
table.insert(self.Groups[new_shape.group], new_shape_id)
self.Groups[new_shape.group].props.count = self.Groups[new_shape.group].props.count + 1
self.Shapes[new_shape_id] = new_shape
self:get_html("Added")
end
function SceneEditor:removeShape(shape_id)
deleteShape(shape_id)
local group = self.Shapes[shape_id].group
for k,g_shape_id in pairs(self.Groups[group]) do
if shape_id == g_shape_id then
self.Groups[group][k] = nil
end
end
self:set_modified(shape_id)
self.Shapes[shape_id] = nil
self:get_html("Removed")
end
function SceneEditor:addGroup(name, count, show, edit)
if name == nil then
return
end
if self.Groups[name] == nil then
self.Groups[name] = {}
self.Groups[name].props = {}
self.Groups[name].props.count = count
self.Groups[name].props.show = show
self.Groups[name].props.edit = edit
self.Groups[name].props.modified = false
else
self.Groups[name].props.show = show
self.Groups[name].props.edit = edit
end
end
function SceneEditor:editGroup(group)
if self.LastEditedGroup then
self:removeGroup(self.LastEditedGroup, true)
self:addGroup(self.LastEditedGroup, 0, true, false)
end
self:removeGroup(group, true);
self:addGroup(group, 0, true, true)
self.LastEditedGroup = group
end
function SceneEditor:addFromDb(group, db_id, json_shape, edit)
shape = Json.decode(json_shape)
shape.db_id = db_id
shape.group = group
shape.modified = ""
if edit then
shape_id = addShape(shape.file, shape.pos[1], shape.pos[2], shape.pos[3], "user", 1, true, "", "SceneEditor:show_menu()")
else
shape_id = addShape(shape.file, shape.pos[1], shape.pos[2], shape.pos[3], "user", 1, true, "", "")
end
rotateShape(shape_id, tostring(shape.rot[1]), tostring(shape.rot[2]), tostring(shape.rot[3]))
setupShape(shape_id, shape.setup)
self.Shapes[shape_id] = shape
table.insert(self.Groups[group], shape_id)
if db_id > self.Groups[group].props.count then
self.Groups[group].props.count = db_id
end
end
function SceneEditor:spawnShape(shape, x, y, z, rotx, roty, rotz, setup)
local id = addShape(shape, x, y, z, "user", 1, true, "", "", false, false, "", "", true)
rotateShape(id, tostring(rotx), tostring(roty), tostring(rotz))
setupShape(id, Json.decode(setup))
end
function SceneEditor:removeGroup(group, no_get_html)
if self.Groups[group] == nil then
return
end
for k,shape_id in pairs(self.Groups[group]) do
if k ~= "props" then
self.Shapes[shape_id] = nil
deleteShape(shape_id)
end
end
self.Groups[group] = nil
if self.LastEditedGroup == group then
self.LastEditedGroup = nil
local ui = getUI("ui:interface:ark_list_of_shapes")
if ui then
ui.active=false
end
end
if no_get_html == nil then
self:get_html("Group Removed")
end
end
function SceneEditor:enc64(data)
local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
return ((data:gsub('.', function(x)
local r,b='',x:byte()
for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
return r;
end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
if (#x < 6) then return '' end
local c=0
for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
return b:sub(c+1,c+1)
end)..({ '', '==', '=' })[#data%3+1])
end
function SceneEditor:get_vector(x, y, z)
local vector = {}
table.insert(vector, x)
table.insert(vector, y)
table.insert(vector, z)
return vector
end
function SceneEditor:get_random_color()
local r = math.random(44, 66);
local g = math.random(44, 66);
local b = math.random(44, 66);
return '#'..tostring(r)..tostring(g)..tostring(b)
end
function pairsByKeys(t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then
return nil
else
return a[i], t[a[i]]
end
end
return iter
end
function SceneEditor:show_shape_list()
local ui = getUI("ui:interface:ark_list_of_shapes")
local need_setup = ui == nil
if need_setup then
WebBrowser:openWindow("ark_list_of_shapes", self.baseUrl..'_ListShapes')
ui = getUI("ui:interface:ark_list_of_shapes")
ui.pop_min_w = 400
ui.w = 400
getUI("ui:interface:ark_list_of_shapes:browser:header_opened:browse_redo").active=false
getUI("ui:interface:ark_list_of_shapes:browser:header_opened:browse_undo").active=false
getUI("ui:interface:ark_list_of_shapes:browser:header_opened:browse_refresh").active=false
getUI("ui:interface:ark_list_of_shapes:browser:header_opened:browse_home").active=false
else
ui.active = true
end
end
function SceneEditor:getShapesByGroups()
local groups = {}
for shape_id, shape in pairs(self.Shapes) do
if shape.group == nil then
shape.group = ""
end
if groups[shape.group] == nil then
groups[shape.group] = {}
end
table.insert(groups[shape.group], shape_id)
end
return groups
end
function SceneEditor:get_html_section(message, color)
return '<table width="100%" cellspacing="0" cellpadding="0"><tr bgcolor="'..color..'"><td align="center" valign="middle"><font color="#FFFFFF" size="12">'..message..'</font></td></tr></table>'
end
function SceneEditor:get_html(message, message_bg)
debug("get_html :"..message)
local new_group = '&nbsp;&nbsp;<a class="ryzom-ui-button" href="'..self.baseUrl..'_AddGroup&amp;add_new_group=1&amp;scene_id='..self.sceneId..'"><img src="'..self.iconsUrl..'/32/chart_organisation_add.png" alt="'..self.T["add_new_group"]..'" /></a>'
local show_hide_cols = '&nbsp;&nbsp;<a class="ryzom-ui-button" href="ah:ark_pacs_borders"><img src="'..self.iconsUrl..'/32/show_hide_cols.png" alt="'..self.T["show_hide_cols"]..'" /></a>'
local reset_scene = '</td><td align="center" bgcolor="#502020" width="40px"><a class="ryzom-ui-button" href="'..self.baseUrl..'_SaveShapes&amp;reset_scene=1&amp;scene_id='..self.sceneId..'"><img src="'..self.iconsUrl..'/32/bin.png" alt="'..self.T["reset_scene"]..'" /></a>'
local html = '<header><title>'..self.T["sceno_editor"]..'</title></header>'..self:get_html_section(message..'</td><td bgcolor="#202020" align="center" height="40px" width="140px" valign="middle">'..new_group..show_hide_cols..reset_scene, (message_bg or SceneEditor:get_random_color()))
html = html .. '<form action="'..self.baseUrl..'_SaveShapes" method="POST"><input type="hidden" name="group" value="'..(self.LastEditedGroup or "")..'" /><input type="hidden" name="scene_id" value="'..self.sceneId..'" />\
<table width="100%" cellspacing="0" cellpadding="0">'
local groups = self:getShapesByGroups()
for group, shapes in pairsByKeys(self.Groups) do
debug("Group : "..group)
local groupname = group
html = html .. '<tr bgcolor="#444444"><td height="20px"><table width="100%"><tr><td>&nbsp;'..groupname..' ('..(self.Groups[group].props.count or '0')..') </td><td align="right"><input type="hidden" name="shape[]", value="#"/>'
if self.Groups[group].props.show then
debug("Group : show")
if self.Groups[group].props.edit then
html = html .. '<a href="ah:lua:SceneEditor:show_shape_list()"><img src="'..self.iconsUrl..'/16/box_add.png" alt="'..self.T["add_shape"]..'"/></a></td><td align="right">'
if self.HaveUpdate then
html = html .. '<a class="ryzom-ui-button" href="'..self.baseUrl..'_SaveShapes&amp;hide_group='..group..'&amp;edit_group='..group..'">'..self.T["cancel"]..'</a>'
else
html = html .. '<a class="ryzom-ui-button" href="'..self.baseUrl..'_SaveShapes&amp;hide_group='..group..'">'..self.T["hide"]..'</a>'
end
else
html = html .. '<a class="ryzom-ui-button" href="'..self.baseUrl..'_SaveShapes&amp;hide_group='..group..'">'..self.T["hide"]..'</a>'
end
else
html = html .. '<a class="ryzom-ui-button" href="'..self.baseUrl..'_SaveShapes&amp;show_group='..group..'">'..self.T["show"]..'</a>'
end
local shapes_html = ""
local shapes_html_dict = {}
local show = self.Groups[group].props.show
if self.Groups[group].props.edit then
shapes_id = groups[group]
if shapes_id then
for k,shape_id in pairs(shapes_id) do
shape = {}
if self.Shapes[shape_id] then
shape["db_id"] = self.Shapes[shape_id].db_id
shape["file"] = self.Shapes[shape_id].file
shape["pos"] = self:get_vector(getShapePos(shape_id))
scale_x, scale_y, scale_z = getShapeScale(shape_id)
shape["rot"] = self:get_vector(getShapeRot(shape_id))
colpos_x, colpos_y, colpos_z = getShapeColPos(shape_id)
colscale_x, colscale_y, colscale_z = getShapeColScale(shape_id)
colorient = getShapeColOrient(shape_id)
shape["setup"] = {}
shape["setup"]["scale x"] = scale_x
shape["setup"]["scale y"] = scale_y
shape["setup"]["scale z"] = scale_z
shape["setup"]["col pos x"] = shape["pos"][1]+colpos_x
shape["setup"]["col pos y"] = shape["pos"][2]+colpos_y
shape["setup"]["col size x"] = colscale_x
shape["setup"]["col size y"] = colscale_y
shape["setup"]["col size z"] = colscale_z
shape["setup"]["col orientation"] = colorient
local color = "202020"
if k % 2 == 0 then
color = "101010"
end
local text_color = "ef9b64"
if self.Shapes[shape_id].modified == "modified" then
text_color = "aa5555"
else
if self.Shapes[shape_id].modified == "added" then
text_color = "55aa55"
end
end
table.insert(shapes_html_dict, {id=shape.db_id, html="<tr bgcolor='#"..color.."'><td height='20px'>&nbsp;<input type='hidden' name='shape[]', value='"..SceneEditor:enc64((shape.db_id or '')..":"..Json.encode(shape)).."' />"..'#'..(shape.db_id or '0').." <a href='ah:lua:SceneEditor:launch_menu("..tostring(shape_id)..")'><font color='#"..text_color.."'>"..shape.file.."</font></a></td>\
<td width='30px'><a href='ah:lua:SceneEditor:editShapeProperties("..tostring(shape_id)..")'><img src='"..self.iconsUrl.."/16/layout_edit.png' /></a></td>\
<td width='3px'><a href='ah:lua:SceneEditor:removeShape("..tostring(shape_id)..")'><img src='"..self.iconsUrl.."/16/cross.png' /></a></td>\
</tr>"})
end
end
table.sort(shapes_html_dict, function (a, b) return a.id < b.id end)
for k,shape in ipairs(shapes_html_dict) do
shapes_html = shape.html .. shapes_html
end
end
else
if self.HaveUpdate == nil then
html = html .. '&nbsp;&nbsp;<a class="ryzom-ui-button" href="'..self.baseUrl..'_SaveShapes&amp;edit_group='..group..'">'..self.T["edit"]..'</a>'
html = html .. '</td><td align="right"><a class="ryzom-ui-button" href="'..self.baseUrl..'_SaveShapes&amp;reset_scene=1&amp;del_group='..group..'">'..self.T["remove"]..'</a>'
end
end
if self.Groups[group].props.modified then
html = html .. '&nbsp;&nbsp;<input type="submit" value="'..self.T["save"]..'" />'
end
html = html .. '</td></tr></table></td><td></td></tr>'..shapes_html
end
html = html .. '</table></form>'
ui = getUI("ui:interface:ark_scene_editor:browser:content:html", false)
if ui then
ui:renderHtml(html)
end
end

@ -112,10 +112,7 @@
color="180 250 180 255" col_over="180 250 180 255" col_pushed="180 250 180 255" text_color_normal="180 250 180 160" /> color="180 250 180 255" col_over="180 250 180 255" col_pushed="180 250 180 255" text_color_normal="180 250 180 160" />
<ctrl style="quit_button" id="return_mainland" posparent="cancel" posref="BL TL" y="%quit_button_delta_y" hardtext="uittReturnToMainland" onclick_l="proc" params_l="quit_dialog_mainland" <ctrl style="quit_button" id="return_mainland" posparent="cancel" posref="BL TL" y="%quit_button_delta_y" hardtext="uittReturnToMainland" onclick_l="proc" params_l="quit_dialog_mainland"
color="180 250 180 255" col_over="110 250 125 255" col_pushed="110 250 125 255" text_color_normal="110 250 125 160" /> color="180 250 180 255" col_over="110 250 125 255" col_pushed="110 250 125 255" text_color_normal="110 250 125 160" />
<ctrl style="quit_button" id="launch_editor" posparent="return_mainland" posref="BL TL" y="%quit_button_delta_y" hardtext="uittLaunchEditor" onclick_l="proc" params_l="quit_dialog_launch_editor" <ctrl style="quit_button" id="reselect_char" posparent="return_mainland" posref="BL TL" y="%quit_button_delta_y" hardtext="uittQuitGame" onclick_l="proc" params_l="quit_dialog_reselect_char"
color="180 250 180 255" col_over="110 250 125 255" col_pushed="110 250 125 255" text_color_normal="110 250 125 160" />
<ctrl style="quit_button" id="reselect_char" posparent="launch_editor" posref="BL TL" y="%quit_button_delta_y" hardtext="uittQuitGame" onclick_l="proc" params_l="quit_dialog_reselect_char"
color="240 212 110 255" col_over="240 212 110 255" col_pushed="240 212 110 255" text_color_normal="240 212 110 160" /> color="240 212 110 255" col_over="240 212 110 255" col_pushed="240 212 110 255" text_color_normal="240 212 110 160" />
<!--<ctrl style="quit_button" id="game" posparent="reselect_char" posref="BL TL" y="%quit_button_delta_y" hardtext="uittQuitGame" onclick_l="proc" params_l="quit_dialog_game" <!--<ctrl style="quit_button" id="game" posparent="reselect_char" posref="BL TL" y="%quit_button_delta_y" hardtext="uittQuitGame" onclick_l="proc" params_l="quit_dialog_game"
color="240 212 110 255" col_over="240 212 110 255" col_pushed="240 212 110 255" text_color_normal="240 212 110 160" />--> color="240 212 110 255" col_over="240 212 110 255" col_pushed="240 212 110 255" text_color_normal="240 212 110 160" />-->
@ -344,11 +341,11 @@
</proc> </proc>
<group type="menu" id="milko_menu" extends="base_menu_with_color"> <group type="menu" id="milko_menu" extends="base_menu_with_color">
<action id="quick_help" name="uiQuickhelpTitle" handler="proc" params="quick_help_taskbar"/> <action id="quick_help" name="uiQuickhelpTitle" handler="proc" params="quick_help_taskbar" icon="brick_default.tga" />
<!-- <!--
<action id="reset_ui" name="uiTaskbarResetUI" handler="proc" params="proc_reset_interface"/> <action id="reset_ui" name="uiTaskbarResetUI" handler="proc" params="proc_reset_interface"/>
--> -->
<action id="reset_ui" name="uiTaskbarResetUI" handler="milko_menu_reset_interface" params=""/> <action id="reset_ui" name="uiTaskbarResetUI" handler="milko_menu_reset_interface" params="" icon="r2ed_edit_events_over_small.tga" />
</group> </group>
<template name="t_mode_button" id="" x="0" y="0" > <template name="t_mode_button" id="" x="0" y="0" >
@ -755,8 +752,13 @@
onclick_l="show_hide" params_l="mailbox" tooltip="uiMk_interaction5" onclick_l="show_hide" params_l="mailbox" tooltip="uiMk_interaction5"
tx_normal="tb_mail.tga" tx_pushed="tb_mail.tga" c="%color_yellow" /> tx_normal="tb_mail.tga" tx_pushed="tb_mail.tga" c="%color_yellow" />
<!-- WebIG -->
<instance template="mk_icon_text" id="sys5b" hardtext="uiMk_interaction5b" posparent="sys5" posref="BL TL"
onclick_l="show_hide" params_l="webig" tooltip="uiMk_interaction5b"
tx_normal="tb_mail.tga" tx_pushed="tb_mail.tga" c="%color_yellow" />
<!-- Team --> <!-- Team -->
<instance template="mk_icon_text" id="sys6" hardtext="uiMk_interaction6" posparent="sys5" posref="BL TL" <instance template="mk_icon_text" id="sys6" hardtext="uiMk_interaction6" posparent="sys5b" posref="BL TL"
onclick_l="show_hide" params_l="team_list" tooltip="uiMk_interaction6" onclick_l="show_hide" params_l="team_list" tooltip="uiMk_interaction6"
tx_normal="tb_team.tga" tx_pushed="tb_team.tga" c="%color_yellow" /> tx_normal="tb_team.tga" tx_pushed="tb_team.tga" c="%color_yellow" />
<link expr="not(%is_team_present)" target="sys6:button:frozen" /> <link expr="not(%is_team_present)" target="sys6:button:frozen" />
@ -1073,6 +1075,12 @@
<instance template="win_button" id="fame" color="UI:SAVE:WIN:COLORS:COM" text="uimwFame" posparent="mailbox" posref="BL TL" x="0" y="-4" <instance template="win_button" id="fame" color="UI:SAVE:WIN:COLORS:COM" text="uimwFame" posparent="mailbox" posref="BL TL" x="0" y="-4"
pushflag="UI:VARIABLES:ISACTIVE:FAME" win_name="fame" /> pushflag="UI:VARIABLES:ISACTIVE:FAME" win_name="fame" />
<instance template="win_button" id="webig" color="UI:SAVE:WIN:COLORS:COM" text="uimwWebIG" posparent="fame" posref="BL TL" x="0" y="-4"
pushflag="UI:VARIABLES:ISACTIVE:WEBIG" win_name="webig" />
<instance template="win_button" id="appzone" color="UI:SAVE:WIN:COLORS:COM" text="uimwAppZone" posparent="webig" posref="BL TL" x="0" y="-4"
pushflag="UI:VARIABLES:ISACTIVE:APPZONE" win_name="appzone" />
</group> </group>
<view type="bitmap" id="com_ico_back" posparent="communication" posref="TL TL" x="-22" y="22" texture="W_slot_categorie.tga" global_color="false" /> <view type="bitmap" id="com_ico_back" posparent="communication" posref="TL TL" x="-22" y="22" texture="W_slot_categorie.tga" global_color="false" />
<view type="bitmap" id="com_ico" posparent="com_ico_back" posref="MM MM" x="2" y="-2" texture="spe_com.tga" global_color="false" /> <view type="bitmap" id="com_ico" posparent="com_ico_back" posref="MM MM" x="2" y="-2" texture="spe_com.tga" global_color="false" />
@ -1205,6 +1213,8 @@
<param value="communication:contact_list|contact_list" /> <param value="communication:contact_list|contact_list" />
<param value="communication:mailbox|mailbox" /> <param value="communication:mailbox|mailbox" />
<param value="communication:fame|fame" /> <param value="communication:fame|fame" />
<param value="communication:webig|webig" />
<param value="communication:appzone|appzone" />
<param value="options:game_config|game_config" /> <param value="options:game_config|game_config" />
<param value="options:keys|keys" /> <param value="options:keys|keys" />

@ -0,0 +1,838 @@
--
-- teleport interface
--
local html = [[
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body style="background-image:url(skin_blank.tga);">
<table cellspacing="3" cellpadding="3" width="100%">
<div name="info_banner">
<tr><img src="#faction.tga"></tr>
</div>
<table cellspacing="#csp" cellpadding="2" width="100%">
<tr>
<td>
#fyros
</td>
</tr>
</table>
<table cellspacing="#csp" cellpadding="2" width="100%">
<tr>
<td>
#tryker
</td>
</tr>
</table>
<table cellspacing="#csp" cellpadding="2" width="100%">
<tr>
<td>
#matis
</td>
</tr>
</table>
<table cellspacing="#csp" cellpadding="2" width="100%">
<tr>
<td>
#zorai
</td>
</tr>
</table>
<table cellspacing="#csp" cellpadding="2" width="100%">
<tr>
<td>
#primes
</td>
</tr>
</table>
<div name="info_footer">
<table width="100%">
<tr>
<div name="info_money">
<td><img align="left" src="money_seve.tga"></td>
<td width="100%"><font color="white" size="12">#money</font></td>
</div>
<td><font color="white" size="10">#dopact</font></td>
<td><form><input name="auto" alt="#help" type="checkbox" #check></form></td>
</tr>
</table>
</div>
</table>
</body>
</html>]]
if artefact == nil then
artefact = {
h = 479,
w = 526,
max_h = 479,
max_w = 603,
min_h = 200,
min_w = 234,
cellspace = 5,
isCompact = false,
isAttached = false,
isFiltered = false,
isMinimized = true,
isLogoMinimized = false,
web_item = "params_l:#L;template:webig_inv_item_artefact;\
display:inline-block;id:pact#P;tooltip:u:#T;\
quantity:q0;#Q;#O;img1:tp_#I.tga;\
bg:bk_#E.tga;col_over:255 255 255 45", -- slotbg:blank2.tga;
uiWindow = nil,
uiWindowBag = nil,
idWindow = "ui:interface:artefact",
idWindowBag = "ui:interface:inventory:content:bag",
webcode = html,
zone = "",
items_labels = Json.decode([[{"kami_almati":"almati","kami_avalae":"avalae","kami_avendale":"avendale","kami_bountybeaches":"bounty","kami_citiesofintuition":"","kami_corrupted_moor":"","kami_corrupted_moor_fairhaven":"","kami_corrupted_moor_pyr":"","kami_corrupted_moor_yrkanis":"","kami_corrupted_moor_zora":"","kami_crystabell":"crystabell","kami_davae":"davae","kami_dewdrops":"dewdrops","kami_dunesofexil":"dunes","kami_dyron":"dyron","kami_enchantedisle":"enchanted","kami_fairhaven":"fairhaven","kami_fleetinggarden":"fleeting","kami_forbidden_depths":"forbidden","kami_frahartowers":"frahar","kami_gate_of_obscurity":"gate","kami_groveofconfusion":"grove","kami_groveofumbra":"grove","kami_havenofpurity":"haven","kami_hereticshovel":"heretic","kami_hiddensource":"hidden","kami_hoi_cho":"hoicho","kami_jen_lai":"jenlai","kami_knollofdissent":"knoll","kami_knotofdementia":"knot","kami_lagoonsofloria":"lagoon","kami_maidengrove":"maiden","kami_min_cho":"mincho","kami_natae":"natae","kami_nexus_bagne":"","kami_nexus_route_gouffre":"","kami_nexus_terre":"nexus","kami_oflovaksoasis":"oflovak","kami_outlawcanyon":"outlaw","kami_pyr":"pyr","kami_ranger_camp":"ranger","kami_restingwater":"resting","kami_sawdustmines":"sawdust","kami_shining_lake":"shining","kami_the_abyss_of_ichor_matis":"abyss","kami_the_abyss_of_ichor_nexus":"","kami_the_elusive_forest":"elusive","kami_the_land_of_continuity":"land","kami_the_sunken_city":"sunken","kami_the_trench_of_trials_tryker":"","kami_the_trench_of_trials_zorai":"trench","kami_the_under_spring_fyros":"under","kami_the_under_spring_zorai":"","kami_the_windy_gate":"windy","kami_thefount":"fount","kami_thesavagedunes":"savage","kami_thescorchedcorridor":"scorched","kami_thesos":"thesos","kami_thevoid":"void","kami_upperbog":"upper","kami_windermeer":"windermeer","kami_windsofmuse":"winds","kami_yrkanis":"yrkanis","kami_zora":"zora","kami_zorai_nland":"","karavan_almati":"almati","karavan_avalae":"avalae","karavan_avendale":"avendale","karavan_bountybeaches":"bounty","karavan_corrupted_moor":"","karavan_corrupted_moor_fairhaven":"","karavan_corrupted_moor_pyr":"","karavan_corrupted_moor_yrkanis":"","karavan_corrupted_moor_zora":"","karavan_crystabell":"crystabell","karavan_davae":"davae","karavan_dewdrops":"dewdrops","karavan_dunesofexil":"dunes","karavan_dyron":"dyron","karavan_enchantedisle":"enchanted","karavan_fairhaven":"fairhaven","karavan_fleetinggarden":"fleeting","karavan_forbidden_depths":"forbidden","karavan_frahartowers":"frahar","karavan_gate_of_obscurity":"gate","karavan_groveofconfusion":"grove","karavan_groveofumbra":"grove","karavan_havenofpurity":"haven","karavan_hereticshovel":"heretic","karavan_hiddensource":"hidden","karavan_hoi_cho":"hoicho","karavan_jen_lai":"jenlai","karavan_knollofdissent":"knoll","karavan_knotofdementia":"knot","karavan_lagoonsofloria":"lagoon","karavan_maidengrove":"maiden","karavan_majesticgarden":"","karavan_matis_nland":"","karavan_min_cho":"mincho","karavan_natae":"natae","karavan_nexus_bagne":"","karavan_nexus_route_gouffre":"","karavan_nexus_terre":"nexus","karavan_oflovaksoasis":"oflovak","karavan_outlawcanyon":"outlaw","karavan_pyr":"pyr","karavan_ranger_camp":"ranger","karavan_restingwater":"resting","karavan_sawdustmines":"sawdust","karavan_shattered_ruins":"shattered","karavan_the_abyss_of_ichor_matis":"abyss","karavan_the_abyss_of_ichor_nexus":"","karavan_the_elusive_forest":"elusive","karavan_the_land_of_continuity":"land","karavan_the_sunken_city":"sunken","karavan_the_trench_of_trials_tryker":"","karavan_the_trench_of_trials_zorai":"trench","karavan_the_under_spring_fyros":"under","karavan_the_under_spring_zorai":"","karavan_the_windy_gate":"windy","karavan_thefount":"fount","karavan_thesavagedunes":"savage","karavan_thescorchedcorridor":"scorched","karavan_thesos":"thesos","karavan_thevoid":"void","karavan_upperbog":"upper","karavan_windermeer":"windermeer","karavan_windsofmuse":"winds","karavan_yrkanis":"yrkanis","karavan_zora":"zora"}]])
}
-- on_event window
function artefact:onActive()
if self.uiWindow then
self:restoreWindow()
self:bagObserver(true)
end
end
function artefact:onDeactive()
if self.uiWindow then
self.uiWindow.active = false
self.uiWindow.opened = false
if self.observer then
self:bagObserver(false)
end
end
end
function artefact:onClose()
if self.uiWindow then
runAH(getUICaller(), "proc", "artefact_proc_deactive")
self:restorePact()
end
end
function artefact:onClickHeader(opened)
if self.uiWindow then
if opened > 0 then
self:restoreWindow()
self.uiWindow:find("header_minimize").params_l = "artefact:onClickHeader(0)"
return
end
-- on_close
self:saveWindow()
self.uiWindow:find("header_minimize").params_l = "artefact:onClickHeader(1)"
end
end
function artefact:onResize()
-- on resize max width
if self.uiWindow.w == self.max_w then
local size = 42
-- adjust height size
if getDbProp(self.banner) == 0 then
size = 112
end
self.uiWindow.pop_max_h = self.max_h - size
-- vertical down only
if self.uiWindow.h >= self.uiWindow.pop_max_h then
-- now resize window height
self.uiWindow.h = self.uiWindow.pop_max_h
end
else
if not self.isCompact then
if getDbProp(self.banner) == 0 then
self.uiWindow.pop_max_h = self.max_h - 69
-- on resize height if width not maxed
if self.uiWindow.h >= self.uiWindow.pop_max_h then
self.uiWindow.h = self.uiWindow.pop_max_h
end
else
-- logo pop up
self.uiWindow.pop_max_h = self.max_h
end
end
end
-- force dimension
if self.isMinimized then
self.uiWindow.h = self.uiWindow.pop_min_h
self.uiWindow.w = self.uiWindow.pop_min_w
end
-- special case
if self.isCompact then
if not self.isMinimized then
self.uiWindow.pop_max_w = self.min_h/2 + 1
self.uiWindow.pop_max_h = getUI("ui:interface").h
end
end
end
-- toggle on checkbox event
function artefact:onChecked()
if getDbProp(self.dopact) == 1 then
setDbProp(self.dopact, 0)
sendMsgToServerAutoPact(false)
return
end
setDbProp(self.dopact, 1)
sendMsgToServerAutoPact(true)
end
function artefact:onMenu(menu)
local node = ":toggle_banner_"
-- can not switch logo in compact mode
if self.isCompact then
getUI(menu..node.."hide").active = false
getUI(menu..node.."show").active = false
else
if getDbProp(self.banner) == 1 then
getUI(menu..node.."hide").active = true
getUI(menu..node.."show").active = false
else
getUI(menu..node.."hide").active = false
getUI(menu..node.."show").active = true
end
end
node = ":window_on_tp_"
-- toggle on teleport close menu
if getDbProp(self.closeTp) == 1 then
getUI(menu..node.."close").active = false
getUI(menu..node.."open").active = true
else
getUI(menu..node.."close").active = true
getUI(menu..node.."open").active = false
end
node = ":window_compact"
-- disable compact mode if minimized
if self.isMinimized then
getUI(menu..node).active = false
else
getUI(menu..node).active = true
end
runAH(getUICaller(), "active_menu", "menu="..menu)
end
-- event onclick menu
function artefact:onSelect(event)
-- toggle on teleport close
if event == 2 then
if getDbProp(self.closeTp) == 1 then
setDbProp(self.closeTp, 0)
return
end
setDbProp(self.closeTp, 1)
return
end
-- do not switch mode while minimized
if self.isMinimized and event == 4 then
return
end
-- do not allow logo in compact mode
if event == 1 then
if self.isCompact then
return
end
-- toggle logo
if getDbProp(self.banner) == 1 then
setDbProp(self.banner, 0)
self.uiWindow.h = self.max_h - 69
else
setDbProp(self.banner, 1)
self.uiWindow.pop_max_h = self.max_h
self.uiWindow.h = self.max_h
-- draw in minimized
if self.isMinimized then
self.isLogoMinimized = true
end
end
end
-- toggle mode
if event == 4 then
if not self.isCompact then
-- store original window
self.pop_compact_h = self.uiWindow.h
self.pop_compact_w = self.uiWindow.w
self.pop_compact_l = getDbProp(self.banner)
-- switch to compact
setDbProp(self.banner, 0)
self.isCompact = true
else
self.isCompact = false
-- restore default mode
self.uiWindow.h = self.pop_compact_h
self.uiWindow.w = self.pop_compact_w
self.uiWindow.pop_max_w = self.max_w
if self.pop_compact_l == 1 then
setDbProp(self.banner, 1)
end
end
end
-- attach it to inventory bag
if event == 5 then
runAH(getUICaller(), "proc", "artefact_win_attach")
return
end
self:doRefresh() -- event 3
if event == 1 then
self:onResize()
end
end
function artefact:saveWindow()
-- save current window dimension
self.isMinimized = true
self.h = self.uiWindow.h
self.w = self.uiWindow.w
-- minimize
self.uiWindow.pop_min_h = 32
self.uiWindow.pop_min_w = self.min_h / 2
self.uiWindow.w = self.min_h / 2
self.uiWindow.h = 0
end
function artefact:restoreWindow()
if self.isMinimized then
self.isMinimized = false
-- restore dimension
self.uiWindow.pop_min_h = self.min_h
self.uiWindow.pop_min_w = self.min_w
self.uiWindow.h = self.h
self.uiWindow.w = self.w
-- logo is activated when minimized
if self.isLogoMinimized then
self.uiWindow.h = self.uiWindow.pop_max_h
-- reset
self.isLogoMinimized = false
end
self:onResize()
end
end
function artefact:attachWindow()
if self.uiWindow.opened then
self.uiWindow.opened = false
end
if self.uiWindow.active then
self.uiWindow.active = false
end
self.isAttached = true
-- render content in bag
self.uiWindowBag = getUI(self.idWindowBag..":artefact_content")
if self.uiWindowBag then
self:doRefresh()
end
if not self.observer then
self:bagObserver(true)
end
end
function artefact:detachWindow()
if self.observer then
self:bagObserver(false)
end
self.isAttached = false
self.uiWindow.opened = true
self.uiWindow.active = true
self.uiWindowBag = nil
self:doRefresh()
end
-- hide inventory bag pacts
function artefact:hidePact()
if getDbProp(self.filter) == 1 then
self.isFiltered = true
setDbProp(self.filter, 0)
end
end
-- restore inventory bag pacts
function artefact:restorePact()
if self.isFiltered then
if getDbProp(self.active) == 0 then
self.isFiltered = false
setDbProp(self.filter, 1)
end
end
end
function artefact:doRefresh()
-- faction change
if not artefact:checkfame() then
if artefact.observer then
artefact:bagObserver(false)
end
if self.isAttached then
runAH(getUICaller(), "proc", "artefact_win_detach")
else
artefact:startInterface()
end
return
end
local html = artefact.uiWindow:find("html")
if artefact.uiWindowBag and artefact.isAttached then
html = artefact.uiWindowBag:find("html")
end
if html then
artefact:dynRender(html)
end
end
function artefact:usePact(id)
if not artefact:checkfame() then
if self.isAttached then
runAH(getUICaller(), "proc", "artefact_win_detach")
else
self:doRefresh()
end
return
end
sendMsgToServerUseItem(id)
-- on teleport event
if getDbProp(self.closeTp) == 1 then
if self.isAttached then
runAH(getUICaller(), "proc", "select_bag_items")
end
self:onClose()
end
end
-- update interface
function artefact:bagObserver(listen)
if not self.observer then
self.observer = misc:initInvObserver(
self.bag,
self.doRefresh, -- on_add
self.doRefresh, -- on_del
self.doRefresh, -- on_change
"tp_"..self.faction
)
end
-- attach observer
local window = self.uiWindow
if self.isAttached then
if self.uiWindowBag then
window = self.uiWindowBag
end
end
if listen then
self.observer:add(window, 1)
else
if self.observer then
self.observer:remove(window, 1)
self.observer = nil
end
end
end
function artefact:dynRender(html)
local content = self.webcode
-- list teleportation pacts
for eco, tp in pairs(self.currentPacts) do
for _, item in pairs(tp) do
-- list items in bag
for i = 0, self.max_slots-1 do
local sheet = self:getitem(i, "sheet")
-- sheet do exist
if sheet > 0 then
local name = getSheetName(sheet)
local quantity = self:getitem(i, "quantity")
-- matches with owned pacts
if self:strcmp(name, "tp_"..self.faction) then
if self:strcmp(name, ".sitem", false) then
if name:find(item.name) then
self.zone = self:webInv(item, eco, quantity, i)
end
end
end
end
end
end
content = string.gsub(content, "#"..eco, self.zone)
self.zone = ""
end
local banner = "ban_artefact_"
local dappers = getDbProp(self.dapper)
local checkbox = getDbProp(self.dopact)
local autopact = "Auto&nbsp;Pacts"
-- reset table cellspace
if self.cellspace > 5 then
self.cellspace = 5
end
-- reset cellspace
local space = self.cellspace
-- mode
if self.isCompact then
autopact = "Pacts&nbsp;"
-- center pacts
space = space + 7
end
content = string.gsub(content, "#csp", space)
-- toggle auto pact checkbox
if checkbox > 0 then
checkbox = "checked" else checkbox = ""
end
if dappers < 0 then dappers = 0 end
-- construct page
for k, v in pairs({
faction = banner..self.faction,
dopact = autopact,
check = checkbox,
money = self:formatint(dappers),
help = i18n.get("uiArtefactHelp"):toUtf8()
}) do
content = string.gsub(content, "#"..k, v)
end
if content then
-- now render
html:renderHtml(content)
-- set mode
if self.isCompact then
html:showDiv("info_money", false)
end
-- attach to bag
if self.isAttached then
local uiWindowBag = getUI(self.idWindowBag)
if uiWindowBag then
uiWindowBag:find("autopact_vt").hardtext = "Auto Pact"
end
html:showDiv("info_banner", false)
html:showDiv("info_footer", false)
return
end
-- hide logo
if getDbProp(self.banner) == 0 then
html:showDiv("info_banner", false)
self:onResize()
end
-- trigger checkbox event
self.uiWindow:find("auto").onclick_l = "lua:artefact:onChecked()"
end
end
-- use template
function artefact:webInv(item, ecosystem, quantity, id)
-- limit max quantity
if quantity > 999 then
quantity = 999
end
local n = 1
local s = "q0:x;"
-- format quantity as q1:;q2:;q3:;..
for q in string.gmatch(tostring(quantity), "%d") do
s = s.."q"..n..":"..q..";"
n = n + 1
end
-- format overlay label as o1:;o2:;o3:;..
for i = 1, math.min(8, #item.label) do
s = s.."o"..tostring(i-1)..":"..item.label:sub(i, i)..";"
n = n + 1
end
local wi = string.gsub(self.web_item, "#Q", s)
local desc = item.desc:toUtf8()
-- keep only the name of the zone
for i = 1, #self.blacklist do
desc = string.gsub(desc, self.blacklist[i], "")
end
desc = desc:gsub("^%l", string.upper)
-- construct item
for k, v in pairs({
T = desc.." - "..self:formatint(item.cost),
L = "artefact:usePact("..id..")",
I = self.faction,
E = ecosystem,
P = id
}) do
wi = string.gsub(wi, "#"..k, v)
end
-- because ryzom
if self.faction:find("kar") then
wi = string.gsub(wi, "karavan", "caravane")
end
return self.zone..string.gsub(
'<div class="ryzom-ui-grouptemplate" id="icon" style="#webitem"></div>',
"#webitem", wi
)
end
function artefact:strcmp(str, offset, s)
if s ~= nil then
return offset == '' or str:sub(-#offset) == offset
end
return str:sub(1, #offset) == offset
end
function artefact:formatint(n)
local left, num, right = string.match(n, "^([^%d]*%d)(%d*)(.-)$")
return left..(num:reverse():gsub("(%d%d%d)", "%1,"):reverse())..right
end
function artefact:getitem(id, s)
if id ~= nil then
return getDbProp(self.bag..':'..id..':'..s:upper())
end
end
function artefact:getfaction(id)
if not id then id = getDbProp(self.fame) end
if id == 3 then return "karavan" end
if id == 2 then return "kami" end
end
function artefact:checkRestriction(cult)
local fame = getDbProp(self.fame)
if fame > 1 and fame < 4 then
if cult then
if cult ~= self:getfaction() then
return false
end
end
return true
end
return false
end
function artefact:checkfame()
if self:checkRestriction() then
local fame = getDbProp(self.fame)
if self.faction == self:getfaction(fame) then
return true
end
end
return false
end
artefact.__index = artefact
end
function artefact:__init__()
local vars = {
bag = "SERVER:INVENTORY:BAG",
kami = "SERVER:FAME:PLAYER4:VALUE",
kara = "SERVER:FAME:PLAYER5:VALUE",
fame = "SERVER:FAME:CULT_ALLEGIANCE",
dapper = "SERVER:INVENTORY:MONEY",
filter = "UI:SAVE:INV_BAG:FILTER_TP",
dopact = "UI:SAVE:TELEPORT:DO_PACT",
banner = "UI:SAVE:TELEPORT:BANNER",
active = "UI:SAVE:ISACTIVE:ARTEFACT",
detach = "UI:SAVE:TELEPORT:ISDETACHED",
closeTp = "UI:SAVE:TELEPORT:CLOSE_AFTER_TP",
-- minimum fame required
threshold = 33,
max_slots = 500,
loadTpTime = 16,
pacts = {
-- ecosystem
fyros = {
-- sheetName = price
tp_f_pyr = 1000,
tp_f_dyron = 1000,
tp_f_thesos = 1000,
tp_f_oflovaksoasis = 1500,
tp_f_frahartowers = 2500,
tp_f_sawdustmines = 2500,
tp_f_outlawcanyon = 4000,
tp_f_thescorchedcorridor = 6000
},
tryker = {
tp_f_fairhaven = 1000,
tp_karavan_crystabell = 1000,
tp_karavan_windermeer = 1000,
tp_karavan_avendale = 1000,
tp_f_dewdrops = 1500,
tp_f_windsofmuse = 1500,
tp_f_thefount = 2500,
tp_f_restingwater = 2500,
tp_f_bountybeaches = 4000,
tp_f_enchantedisle = 4000,
tp_f_lagoonsofloria = 6000
},
matis = {
tp_f_yrkanis = 1000,
tp_karavan_davae = 1000,
tp_karavan_avalae = 1000,
tp_karavan_natae = 1000,
tp_f_fleetinggarden = 1500,
tp_f_knollofdissent = 2500,
tp_f_hiddensource = 4000,
tp_f_hereticshovel = 4000,
tp_f_upperbog = 4000,
tp_f_groveofconfusion = 6000
},
zorai = {
tp_f_zora = 1000,
tp_kami_hoi_cho = 1000,
tp_kami_jen_lai = 1000,
tp_kami_min_cho = 1000,
tp_f_maidengrove = 1500,
tp_f_havenofpurity = 2500,
tp_f_groveofumbra = 4000,
tp_f_knotofdementia = 4000,
tp_f_thevoid = 6000
},
primes = {
tp_f_ranger_camp = 1000,
tp_kami_shining_lake = 1000,
tp_karavan_shattered_ruins = 1000,
tp_f_almati = 10000,
tp_f_nexus_terre = 10000,
tp_f_the_windy_gate = 10000,
tp_f_the_sunken_city = 10000,
tp_f_forbidden_depths = 10000,
tp_f_gate_of_obscurity = 10000,
tp_f_the_elusive_forest = 10000,
tp_f_the_land_of_continuity = 10000,
tp_f_the_under_spring_fyros = 10000,
tp_f_the_abyss_of_ichor_matis = 10000,
tp_f_the_trench_of_trials_zorai = 10000
}
},
-- item description to remove
-- TODO: translation fixes we need unique format
blacklist = {
-- kami
"Pacte kami %/ Téléporteur vers ", -- FR
"Pacte Kami %/ Téléporteur vers ",
"Соглашение с Ками о перемещении в ", -- RU
"Kami Teleportationspakt für Den ", -- DE
"Kami Teleportationspakt für Die ",
"Kami Teleportationspakt für Das ",
"Kami Teleportationspakt für das ",
"Kami Teleportationspakt für den ",
"Kami Teleportationspakt für ",
"Kami%-Teleportationspakt für den ",
"Kami%-Teleportationspakt für das ",
"Kami%-Teleportationspakt für die ",
"Kami%-Teleportationspakt für ",
"Kami Teleporter Pact for the ", -- EN
"Kami Teleporter Pact for ",
"Pacto Teletransportador Kami para ", -- ES
"Pacto Teletransportador para ",
"Pacto Teletransportador Kamik ",
"Pacto Kami %/ Teleportador hacia ",
"Pacto Teletransportador ",
"Pacto de Teletransportacoin Kama para madera ",
-- kara
"Pacte karavan %/ Téléporteur vers ", -- FR
"Pacte Karavan %/ Téléporteur vers ",
"Соглашение с Караваном о перемещении в", -- RU
"Karavan Teleportationspakt für Den ", -- DE
"Karavan Teleportationspakt für Die ",
"Karavan Teleportationspakt für Das ",
"Karavan Teleportationspakt für das ",
"Karavan Teleportationspakt für ",
"Karavan%-Teleportationspakt für den ",
"Karavan%-Teleportationspakt für das ",
"Karavan%-Teleportationspakt für die ",
"Karavan%-Teleportationspakt für ",
"Karavan Teleporter Pact for the ", -- EN
"Karavan Teleporter Pact for ",
"Pacto Teletransportador Karavan para ", -- ES
"Pacto Teletransportdor Karavan para ",
"Pacto Teletransportador Karavn para ",
"Pacto Teletransportador para ",
"Pacto Karavan %/ Teleportador hacia ",
"Pacto de Teletransportacion Karavan para madera ",
"Pacto Teletransportador "
},
psort = function(p0, p1) return p0.label < p1.label end
}
vars.__index = vars
setmetatable(artefact, vars)
end
function artefact:startInterface(cult)
if not self.active then
self:__init__()
end
-- kami kara
if not self:checkRestriction(cult) or not cult then
displaySystemInfo(i18n.get("uiArtefactRestrict"), "BC")
self:onClose()
return
end
if not self:checkfame() then
self.uiWindow = nil
end
self.faction = self:getfaction()
if getDbProp(self.kara) >= self.threshold or
getDbProp(self.kami) >= self.threshold then
local tmp = {}
-- load the bunch of pacts at first run
if not self.uiWindow then
for eco, tp in pairs(self.pacts) do
tmp[eco] = {}
for sheet, price in pairs(tp) do
sheet = string.gsub(sheet, "_f_", "_"..self.faction.."_")
-- faction only
if self:strcmp(sheet, "tp_"..self.faction) then
local sheet_name = string.gsub(sheet, "tp_", "")
sheet_name = string.gsub(sheet_name, ".sitem", "")
label = self.items_labels[sheet_name]
tmp[eco][#tmp[eco]+1] = {
name = sheet,
desc = getSheetLocalizedName(sheet..".sitem"),
label = label,
cost = tostring(price)
}
end
end
-- alphabetic order
table.sort(tmp[eco], self.psort)
end
-- update
self.currentPacts = tmp
end
-- window is loaded from xml
if not self.uiWindow then
-- reuse the previous frame if exist
self.uiWindow = getUI(self.idWindow, false)
if not self.uiWindow then
return
end
-- dimension
self.uiWindow.w = self.w
self.uiWindow.h = self.h
self.uiWindow.pop_max_w = self.max_w
self.uiWindow.pop_max_h = self.max_h
self.uiWindow.pop_min_w = self.min_w
self.uiWindow.pop_min_h = self.min_h
end
self:hidePact()
-- is window attached?
if getDbProp(self.detach) == 0 then
if self.observer then
self:bagObserver(false)
end
runAH(getUICaller(), "proc", "artefact_win_attach")
else
-- trigger on_open event
if not self.uiWindow.opened then
self.uiWindow.opened = true
end
-- trigger on_active event
if not self.uiWindow.active then
self.uiWindow.active = true
end
local html = self.uiWindow:find("html")
-- render content
if html then
self:dynRender(html)
end
setTopWindow(self.uiWindow)
-- auto update
if not self.observer then
runAH(getUICaller(), "proc", "artefact_proc_active")
end
end
end
end
--
--

@ -0,0 +1,170 @@
<interface_config>
<root id="interface" x="0" y="0" w="800" h="600" active="true" />
<variable entry="UI:SAVE:TELEPORT:DO_PACT" type="sint32" value="0" />
<variable entry="UI:SAVE:TELEPORT:BANNER" type="sint32" value="1" />
<variable entry="UI:SAVE:TELEPORT:CLOSE_AFTER_TP" type="sint32" value="1" />
<variable entry="UI:SAVE:TELEPORT:ISDETACHED" type="sint32" value="1" />
<variable entry="UI:SAVE:ISACTIVE:ARTEFACT" type="sint32" value="0" />
<!-- artefact v1 -->
<lua file="tp_interface.lua" />
<lua file="misc.lua" />
<proc id="artefact_proc_active">
<action handler="set" params="dblink=UI:SAVE:ISACTIVE:ARTEFACT|value=1" />
<action handler="lua" params="artefact:onActive()" />
</proc>
<proc id="artefact_proc_deactive">
<action handler="set" params="dblink=UI:SAVE:ISACTIVE:ARTEFACT|value=0" />
<action handler="lua" params="artefact:onDeactive()" />
</proc>
<proc id="artefact_win_attach">
<action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:ryzhome:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_content:active|value=1" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_bottom:active|value=1" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_tab:active|value=1" />
<action handler="set" params="dblink=UI:SAVE:TELEPORT:ISDETACHED|value=0" />
<action handler="lua" params="artefact:attachWindow()" />
</proc>
<proc id="artefact_win_detach">
<action handler="set" params="target_property=ui:interface:inventory:content:bag:iil:active|value=1" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:ryzhome:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:webitems:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_content:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_bottom:active|value=0" />
<action handler="set" params="target_property=ui:interface:inventory:content:bag:artefact_tab:active|value=0" />
<action handler="set" params="dblink=UI:SAVE:TELEPORT:ISDETACHED|value=1" />
<action handler="lua" params="artefact:detachWindow()" />
</proc>
<group type="menu" id="base_menu_artefact" extends="base_menu_with_color">
<action id="toggle_banner_hide" name="uimIhideBanner" handler="lua" params="artefact:onSelect(1)" icon="r2_icon_stop_possess.tga"/>
<action id="toggle_banner_show" name="uimIshowBanner" handler="lua" params="artefact:onSelect(1)" icon="r2_icon_possess.tga"/>
<action id="window_on_tp_close" name="uimIcloseOnTp" handler="lua" params="artefact:onSelect(2)" icon="r2_icon_acts_pushed.tga"/>
<action id="window_on_tp_open" name="uimIopenOnTp" handler="lua" params="artefact:onSelect(2)" icon="r2_icon_acts.tga"/>
<action id="window_refresh" name="uimIrefresh" handler="lua" params="artefact:onSelect(3)" icon="r2ed_tool_rotate.tga"/>
<action id="window_compact" name="uimIcompact" handler="lua" params="artefact:onSelect(4)" icon="r2_icon_light_off_small.tga"/>
<separator />
</group>
<group id="artefact" type="container"
w="526" h="479"
x="0" y="0"
pop_max_w="603"
pop_max_h="479"
pop_min_w="200"
pop_min_h="234"
header_color="UI:SAVE:WIN:COLORS:COM"
posref="TL TL"
global_color="true"
global_color_over="true"
right_button="true"
savable="true"
movable="true"
lockable="true"
active="false"
openable="false"
opened="false"
resizer="true"
header_active="false"
on_active="proc"
on_active_params="artefact_proc_active"
on_deactive="proc"
on_deactive_params="artefact_proc_deactive"
on_close_button="lua"
on_close_button_params="artefact:onClose()"
on_resize="lua"
on_resize_params="artefact:onResize()">
<group id="header_opened"
h="16"
w="480"
posref="TL TL"
on_active="lua"
on_active_params="artefact:onClickHeader(1)"
group_onclick_r="lua"
group_params_r="artefact:onMenu('ui:interface:base_menu_artefact')">
<ctrl id="header_attach"
type="button"
button_type="push_button"
posref="MR MR"
y="0"
x="-16"
tx_normal="w_win_popin.tga"
tx_pushed="w_win_popin.tga"
tx_over="W_button_16_over.tga"
onclick_l="lua"
params_l="artefact:onSelect(5)" />
<ctrl id="header_minimize"
type="button"
button_type="push_button"
posref="ML ML"
y="5"
x="0"
tx_normal="ark_move_z.tga"
tx_pushed="ark_move_z.tga"
tx_over="ark_move_z.tga"
onclick_l="lua"
params_l="artefact:onClickHeader(0)" />
<group id="faketab"
type="tab"
child_resize_w="true"
h="0"
posref="TL TL"
x="0"
y="0">
<ctrl style="tab_button_new"
id="tab0"
x="0"
posref="TL TL"
group="content:html"
hardtext=""
tooltip=""
onclick_r=""
params_r=""
onclick_l=""
params_l="" />
</group>
</group>
<group id="content" x="0" y="0" w="0" h="0" posref="TL TL">
<instance template="webig_html" />
</group>
</group>
<tree node="artefact" />
<template name="webig_inv_item_artefact" ql0="" ql1="" ql2="" q0="" q1="" q2="" q3="" q4="" q5="" q6="" q7="" o0="" o1="" o2="" o3="" o4="" o5="" o6="" o7="" render_layer1="1" render_layer2="2" render_layer3="3" render_layer4="4" w="43" keep="true" img1="token_basic.tga" img2="" img3="" tooltip="" quality="" quantity="" overlay="" text="" text2="" color="255 255 255 255" gc1="true" gc2="true" color2="255 255 255 255" slotbg="w_slot_item.tga" slotbg_gc="true" bg="blank2.tga" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" ctrl_color="0 0 0 0" col_over="255 255 255 50" col_pushed="255 255 255 0" params_over="" params_l="" params_r="" x="0" y="0">
<group id="#id" posref="MM MM" w="#w" h="43" x="#x" y="#y" sizeref="" render_layer="#render_layer1">
<view type="bitmap" id="back" posref="ML ML" x="0" y="0" h="42" w="42" scale="true" render_layer="#render_layer1" texture="#slotbg" color="255 255 255 255" global_color="#slotbg_gc" />
<view type="bitmap" id="bg" posparent="back" posref="MM MM" x="0" y="0" w="40" h="40" render_layer="#render_layer2" scale="false" texture="#bg" global_color="false" />
<view type="bitmap" id="img1" posparent="back" posref="MM MM" x="0" y="0" w="40" h="40" scale="false" render_layer="#render_layer3" texture="#img1" global_color="false" />
<view type="bitmap" id="img2" posparent="back" posref="MM MM" render_layer="#render_layer3" x="0" y="0" texture="#img2" global_color="false" />
<view type="bitmap" id="img3" posparent="back" posref="MM MM" render_layer="#render_layer4" x="0" y="0" texture="#img3" global_color="false" />
<instance id="over" template="typo_ryzom_artefact" posref="TL TL" render_layer="6" x="1" y="-2" t0="#o0" t1="#o1" t2="#o2" t3="#o3" t4="#o4" t5="#o5" t6="#o6" t7="#o7" />
<instance id="quantity" template="typo_ryzom_artefact" posref="BL BL" typo="numbers" render_layer="4" posparent="" x="2" y="2" t0="#q0" t1="#q1" t2="#q2" t3="#q3" t4="#q4" t5="#q5" t6="#q6" t7="#q7" />
<instance id="quality" template="typo_ryzom_artefact" posref="BL BL" typo="numbers" render_layer="4" posparent="back" x="24" y="1" t0="#ql0" t1="#ql1" t2="#ql2" gc="true"/>
<view type="text" id="text1" multi_line="true" posref="TR TL" posparent="back" x="3" y="1" fontsize="8" hardtext_format="#text" color="#color1" shadow="true" global_color="#gc1" />
<view type="text" id="text2" multi_line="true" posref="BL TL" posparent="text1" x="0" y="-2" fontsize="8" hardtext_format="#text2" color="#color2" shadow="true" global_color="#gc2" />
<ctrl type="button" id="tooltip" posparent="back" scale="true" posref="MM MM" x="0" y="0" h="40" w="40" tooltip="#tooltip" instant_help="false" tooltip_posref="TR BL" />
<ctrl type="button" id="ctrl" button_type="push_button" global_color_normal="false" posref="MM MM" posparent="back" x="0" y="0" tx_normal="#tx_normal" tx_pushed="#tx_pushed" tx_over="#tx_over" scale="true" w="0" sizeref="w" h="42" color="#ctrl_color" col_over="#col_over" col_pushed="#col_pushed" render_layer="#render_layer2" onover="lua" params_over="#params_over" onclick_l="lua" params_l="#params_l" onclick_r="lua" params_r="#params_r" />
</group>
</template>
<template name="typo_ryzom_artefact" keep="true" typo="typo" posref="TL TL" posparent="" x="0" y="0" render_layer="3" t0="" t1="" t2="" t3="" t4="" t5="" t6="" t7="" gc="false" >
<group id="#id" posref="#posref" posparent="#posparent" x="#x" y="#y" render_layer="#render_layer">
<view type="bitmap" id="t0" posref="#posref" render_layer="#render_layer" texture="#typo_#t0.tga" global_color="#gc"/>
<view type="bitmap" id="t1" posref="BR BL" posparent="t0" x="0" render_layer="#render_layer" texture="#typo_#t1.tga" global_color="#gc"/>
<view type="bitmap" id="t2" posref="MR ML" posparent="t1" x="0" render_layer="#render_layer" texture="#typo_#t2.tga" global_color="#gc"/>
<view type="bitmap" id="t3" posref="MR ML" posparent="t2" x="0" render_layer="#render_layer" texture="#typo_#t3.tga" global_color="#gc"/>
<view type="bitmap" id="t4" posref="MR ML" posparent="t3" x="0" render_layer="#render_layer" texture="#typo_#t4.tga" global_color="#gc"/>
<view type="bitmap" id="t5" posref="MR ML" posparent="t4" x="0" render_layer="#render_layer" texture="#typo_#t5.tga" global_color="#gc"/>
<view type="bitmap" id="t6" posref="MR ML" posparent="t5" x="0" render_layer="#render_layer" texture="#typo_#t6.tga" global_color="#gc"/>
<view type="bitmap" id="t7" posref="MR ML" posparent="t6" x="0" render_layer="#render_layer" texture="#typo_#t7.tga" global_color="#gc"/>
</group>
</template>
</interface_config>

@ -0,0 +1,226 @@
-- create the webig namespace without reseting if already created in an other file.
if (webig==nil) then
webig= {}
end
if (webig.sheetLists==nil) then
webig.sheetLists = {}
end
function getUCtf8(text)
local uctext = ucstring()
if type(text) == "string" then
uctext:fromUtf8(text)
return uctext
end
return text
end
function game:openUrlOnWebig(url, noblink, close_if_open)
local winframe = getUI("ui:interface:open_url_window")
if close_if_open and winframe ~= nil and winframe.active == true then
winframe.active = false
else
WebBrowser:openWindow("open_url_window", url)
winframe = getUI("ui:interface:open_url_window")
winframe.opened=true
winframe.active=true
winframe.w = 830
winframe.h = 600
setTopWindow(winframe)
if noblink == nil then
winframe:blink(2)
end
end
end
function webig:addSheet(dst, sheet, quality, quantity, worned, user_color, rm_class_type, rm_faber_stat_type)
if quality == nil then quality=0 end
if quantity == nil then quantity=0 end
if worned == nil then worned=0 end
if user_color == nil then user_color=0 end
if rm_class_type == nil then rm_class_type=0 end
if rm_faber_stat_type == nil then rm_faber_stat_type=0 end
addDbProp(dst..":SHEET", sheet)
addDbProp(dst..":WORNED", worned)
addDbProp(dst..":QUALITY", quality)
addDbProp(dst..":QUANTITY", quantity)
addDbProp(dst..":USER_COLOR", user_color)
addDbProp(dst..":RM_CLASS_TYPE", rm_class_type)
addDbProp(dst..":RM_FABER_STAT_TYPE", rm_faber_stat_type)
end
function webig:cleanSheets(db)
delDbProp(db)
end
function webig:addSheetList(name, ctrl, db, size)
webig.sheetLists[name] = {}
webig.sheetLists[name].ctrl = ctrl
webig.sheetLists[name].db = db
webig.sheetLists[name].selection = ""
webig.sheetLists[name].size = size
end
function webig:copyItems(src, dst)
addDbProp(dst..":SHEET", getDbProp(src..":SHEET"))
addDbProp(dst..":WORNED", getDbProp(src..":WORNED"))
addDbProp(dst..":QUALITY", getDbProp(src..":QUALITY"))
addDbProp(dst..":QUANTITY", getDbProp(src..":QUANTITY"))
addDbProp(dst..":USER_COLOR", getDbProp(src..":USER_COLOR"))
addDbProp(dst..":RM_CLASS_TYPE", getDbProp(src..":RM_CLASS_TYPE"))
addDbProp(dst..":RM_FABER_STAT_TYPE", getDbProp(src..":RM_FABER_STAT_TYPE"))
end
function webig:swapItems(src, dst)
local sheet = getDbProp(dst..":SHEET")
local worned = getDbProp(dst..":WORNED")
local quality = getDbProp(dst..":QUALITY")
local quantity = getDbProp(dst..":QUANTITY")
local user_color = getDbProp(dst..":USER_COLOR")
local rm_class_type = getDbProp(dst..":RM_CLASS_TYPE")
local rm_faber_stat_type = getDbProp(dst..":RM_FABER_STAT_TYPE")
addDbProp(dst..":SHEET", getDbProp(src..":SHEET"))
addDbProp(dst..":WORNED", getDbProp(src..":WORNED"))
addDbProp(dst..":QUALITY", getDbProp(src..":QUALITY"))
addDbProp(dst..":QUANTITY", getDbProp(src..":QUANTITY"))
addDbProp(dst..":USER_COLOR", getDbProp(src..":USER_COLOR"))
addDbProp(dst..":RM_CLASS_TYPE", getDbProp(src..":RM_CLASS_TYPE"))
addDbProp(dst..":RM_FABER_STAT_TYPE", getDbProp(src..":RM_FABER_STAT_TYPE"))
addDbProp(src..":SHEET", sheet)
addDbProp(src..":WORNED", worned)
addDbProp(src..":QUALITY", quality)
addDbProp(src..":QUANTITY", quantity)
addDbProp(src..":USER_COLOR", user_color)
addDbProp(src..":RM_CLASS_TYPE", rm_class_type)
addDbProp(src..":RM_FABER_STAT_TYPE", rm_faber_stat_type)
end
function webig:deleteItem(src)
addDbProp(src..":SHEET", 0)
addDbProp(src..":WORNED", 0)
addDbProp(src..":QUALITY", 0)
addDbProp(src..":QUANTITY", 0)
addDbProp(src..":USER_COLOR", 0)
addDbProp(src..":RM_CLASS_TYPE", 0)
addDbProp(src..":RM_FABER_STAT_TYPE", 0)
end
function webig:paramDbSheetSlot(sheet_list, ctrl)
local ctrlSheet = webig.sheetLists[sheet_list].ctrl:find("list:"..ctrl)
if ctrlSheet ~= nil then
ctrlSheet.left_click="lua"
ctrlSheet.left_click_params="webig:addOrRemoveDbSheet(\'"..sheet_list.."\', \'"..ctrl.."\')"
ctrlSheet.dragable=true
ctrlSheet.can_drop=true
ctrlSheet.on_drop="lua"
ctrlSheet.on_drop_params="webig:dropDbSheet(\'"..sheet_list.."\', \'"..ctrl.."\', \'%src\')"
ctrlSheet.on_can_drop="lua"
ctrlSheet.on_can_drop_params="webig:canDropDbSheet(\'"..sheet_list.."\', \'"..ctrl.."\', \'%src\')"
end
end
function webig:paramDbSheetSelect(sheet_list, ctrl, lua_function)
local ctrlSheet = webig.sheetLists[sheet_list].ctrl:find("list:"..ctrl)
if ctrlSheet ~= nil then
ctrlSheet.left_click="lua"
ctrlSheet.left_click_params=lua_function.."(\'"..sheet_list.."\', \'"..ctrl.."\')"
ctrlSheet.dragable=false
ctrlSheet.can_drop=false
end
end
function webig:canDropDbSheet(sheet_list, ctrl, src)
webig.sheetLists[sheet_list].ctrl:find("list:"..ctrl).can_drop=true
end
function webig:dropDbSheet(sheet_list, ctrl, src)
local db = webig.sheetLists[sheet_list].db
local sl_id = webig.sheetLists[sheet_list].ctrl.id
if (string.sub(src, 1, string.len(sl_id)) == sl_id) then -- copy from same list sheet
local pos=nil
for i=1, string.len(src) do
if string.sub(src, i, i) == ":" then
pos = i+1
end
end
id = string.sub(src, pos, string.len(src))
webig:swapItems(db..":"..id, db..":"..ctrl)
else
slot = getUI(src)
if slot ~= nil then
id = findReplaceAll(src, slot.parent.id..":", "")
webig:copyItems("LOCAL:INVENTORY:BAG:"..id, db..":"..ctrl)
end
end
end
function webig:addOrRemoveDbSheet(sheet_list, ctrl)
local db = webig.sheetLists[sheet_list].db
if getDbProp(db..":"..ctrl..":SHEET") == 0 then -- Add item
webig:AddDbSheet(sheet_list, ctrl)
else
webig:removeDbSheetQuantity(sheet_list, ctrl)
end
end
function webig:AddDbSheet(sheet_list, ctrl)
runAH(nil, "enter_modal", "group=ui:interface:webig_html_modal")
local whm = getUI("ui:interface:webig_html_modal")
whm.child_resize_h=false
whm.h = 44*webig.sheetLists[sheet_list].size
whm.w = 224
whm = getUI("ui:interface:webig_html_modal:html")
if whm ~= nil then
whm:refresh() -- url need be setted before
end
webig.sheetLists[sheet_list].selection = ctrl
end
function webig:removeDbSheetQuantity(sheet_list, ctrl)
local db = webig.sheetLists[sheet_list].db
webig:copyItems(db..":"..ctrl, "UI:DROP_DESTROY_ITEM:ITEM")
runAH(nil, "set_keyboard_focus", "select_all=true|target=ui:interface:webig_drop_destroy_item_quantity_modal:edit:eb")
getUI("ui:interface:webig_drop_destroy_item_quantity_modal:ok_cancel:ok").onclick_l="lua"
getUI("ui:interface:webig_drop_destroy_item_quantity_modal:ok_cancel:ok").params_l="webig:doRemoveDbSheetQuantity(\'"..sheet_list.."\', \'"..ctrl.."\')"
getUI("ui:interface:webig_drop_destroy_item_quantity_modal:edit:eb").on_enter="lua"
getUI("ui:interface:webig_drop_destroy_item_quantity_modal:edit:eb").on_enter_params="webig:doRemoveDbSheetQuantity(\'"..sheet_list.."\', \'"..ctrl.."\')"
runAH(nil, "enter_modal", "group=ui:interface:webig_drop_destroy_item_quantity_modal")
setDbProp("UI:DROP_DESTROY_ITEM:ITEM:QUANTITY", getDbProp(db..":"..ctrl..":QUANTITY"))
getUI("ui:interface:webig_drop_destroy_item_quantity_modal:edit:eb").input_string=tostring(getDbProp(db..":"..ctrl..":QUANTITY"))
end
function webig:doRemoveDbSheetQuantity(sheet_list, ctrl)
local db = webig.sheetLists[sheet_list].db
runAH(nil, "leave_modal", "group=ui:interface:webig_drop_destroy_item_quantity_modal")
local new_quantity = tonumber(getUI("ui:interface:webig_drop_destroy_item_quantity_modal:edit:eb").input_string)
local current_quantity = getDbProp(db..":"..ctrl..":QUANTITY")
if new_quantity >= current_quantity then
webig:deleteItem(db..":"..ctrl)
else
addDbProp(db..":"..ctrl..":QUANTITY", new_quantity)
end
end
function getUICallerRoot()
return getUI(getUICaller().id:match("(ui:interface:[^:]*):?"))
end
function webig:openUrl(url)
getUI("ui:interface:web_transactions"):find("html"):browse(url)
end
--assert(nil, "RELOADABLE SCRIPT")

@ -0,0 +1,249 @@
<!-- ****************************************** -->
<!-- * WEBIG WIDGETS * -->
<!-- ****************************************** -->
<interface_config>
<root id="interface" x="0" y="0" w="800" h="600" active="true" />
<lua file="webig.lua" />
<lua file="json.lua" />
<lua file="base64.lua" />
<lua file="sceneedit.lua" />
<lua file="ark.lua" />
<!-- //////////// STYLE : webigchat_desc /////////// -->
<style style="webigchat_desc" type="text" fontsize="12" justification="dont_clip_word" color="0 0 0 255" global_color="false" multi_line="true" multi_line_space="0" line_maxw="320" multi_line_maxw_only="true" />
<!-- //////////// STYLE : webigchat_option /////////// -->
<style style="webigchat_option" type="text" format_taged="true" fontsize="10" justification="dont_clip_word" color="0 0 64 255" underlined="true" global_color="false" multi_line="true" multi_line_space="0" line_maxw="320" multi_line_maxw_only="true" />
<!-- //////////// STYLE : webigchat_option_but /////////// -->
<style style="webigchat_option_but" type="button_link" posref="TL TL" x="0" y="0" sizeref="wh" w="0" h="0" onclick_l="proc" params_l="proc_browse_faq" />
<!-- //////////// TEMPLATE : webig_3dbulle_L /////////// -->
<template name="webig_3dbulle_L" id="" keep="true">
<group id="#id" type="in_scene_bubble" 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="512" min_w="48" child_resize_h="true" in_scene_offset_x="-95" win_priority="%win_priority_world_space" posref="BL BR" use_cursor="true">
<group id="header_opened" x="0" y="0" child_resize_w="true" w="0" child_resize_h="true" h="0" max_w="512" min_w="48" max_h="256" min_h="48" posref="TL TL">
<group id="window" x="0" y="0" child_resize_w="true" child_resize_wmargin="10" child_resize_h="true" child_resize_hmargin="10" posref="TL TL">
<group id="back" x="0" y="0" w="0" h="0" sizeref="wh" 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" />
<view type="bitmap" id="win_T" posparent="win_M" posref="TL BL" scale="true" sizeref="w" w="0" h="5" texture="Bulle_T.tga" global_color="false" />
<view type="bitmap" id="win_B" posparent="win_M" posref="BL TL" scale="true" sizeref="w" w="0" h="5" texture="Bulle_B.tga" global_color="false" />
<view type="bitmap" id="win_L" posparent="win_M" posref="TL TR" scale="true" sizeref="h" w="5" h="0" texture="Bulle_L.tga" global_color="false" />
<view type="bitmap" id="win_R" posparent="win_M" posref="TR TL" scale="true" sizeref="h" w="5" h="0" texture="Bulle_R.tga" global_color="false" />
<view type="bitmap" id="win_TL" posref="TL TL" texture="Bulle_TL.tga" global_color="false" />
<view type="bitmap" id="win_TR" posref="TR TR" texture="Bulle_TR.tga" global_color="false" />
<view type="bitmap" id="win_BL" posref="BL BL" texture="Bulle_BL.tga" global_color="false" />
<view type="bitmap" id="win_BR" posref="BR BR" texture="Bulle_BR.tga" global_color="false" />
</group>
<view style="webigchat_desc" id="text" posref="TL TL" x="5" y="-24" />
<ctrl type="button" button_type="push_button" tx_normal="Bulle_next.tga" tx_pushed="Bulle_next.tga" tx_over="Bulle_next.tga" color="255 255 255 255" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_normal="false" global_color_over="false" global_color_pushed="false" tooltip="uiNext" id="but_next" posref="TR TR" x="-5" y="-5" onclick_l="bubble_next" active="false" />
<ctrl type="button" button_type="push_button" tx_normal="Bulle_quit.tga" tx_pushed="Bulle_quit.tga" tx_over="Bulle_quit.tga" color="255 255 255 255" col_over="255 255 255 0" col_pushed="255 255 255 255" global_color_normal="false" global_color_over="false" global_color_pushed="false" tooltip="uiSkip" id="but_skip" posref="TL TR" posparent="but_next" x="-4" y="0" onclick_l="bubble_skip" active="false" />
<!-- Yoyo: Fake to have minimum bubble size -->
<group id="min_w" posparent="text" posref="TL TL" x="0" y="0" w="48" h="14" />
<view style="webigchat_option" id="opt0" posparent="text" posref="BL TL" x="16" y="-4" />
<view style="webigchat_option" id="opt1" posparent="opt0" posref="BL TL" x="0" y="-4" />
<view style="webigchat_option" id="opt2" posparent="opt1" posref="BL TL" x="0" y="-5" />
<view style="webigchat_option" id="opt3" posparent="opt2" posref="BL TL" x="0" y="-5" />
<view style="webigchat_option" id="opt4" posparent="opt3" posref="BL TL" x="0" y="-5" />
<view style="webigchat_option" id="opt5" posparent="opt4" posref="BL TL" x="0" y="-5" />
<view style="webigchat_option" id="opt6" posparent="opt5" posref="BL TL" x="0" y="-5" />
<view style="webigchat_option" id="opt7" posparent="opt6" posref="BL TL" x="0" y="-5" />
<ctrl style="webigchat_option_but" id="optb0" posparent="opt0" params_l="0" />
<ctrl style="webigchat_option_but" id="optb1" posparent="opt1" params_l="1" />
<ctrl style="webigchat_option_but" id="optb2" posparent="opt2" params_l="2" />
<ctrl style="webigchat_option_but" id="optb3" posparent="opt3" params_l="3" />
<ctrl style="webigchat_option_but" id="optb4" posparent="opt4" params_l="4" />
<ctrl style="webigchat_option_but" id="optb5" posparent="opt5" params_l="5" />
<ctrl style="webigchat_option_but" id="optb6" posparent="opt6" params_l="6" />
<ctrl style="webigchat_option_but" id="optb7" posparent="opt7" params_l="7" />
</group>
<view type="bitmap" id="win_talk" posref="BR TR" x="-24" y="2" posparent="window" texture="Bulle_Say_L.tga" global_color="false" />
</group>
</group>
</template>
<!-- //////////// TEMPLATE : webig_modal /////////// -->
<group type="modal" id="webig_html_modal" w="360" posref="TL TL" child_resize_hmargin="8" child_resize_h="true" x="0" y="0" active="false" options="skin_modal" escapable="true" global_color="true">
<group id="html" type="html" posref="MM MM" url="" title_prefix="uiQuickhelpTitle" sizeref="wh" x="0" y="0" w="0" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="patch_off.tga" checkbox_bitmap_pushed="patch_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline" >
<group id="black" posref="BR BR" sizeref="hw" w="-16" h="-12" inherit_gc_alpha="true"/>
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false"/>
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000"/>
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
</group>
<!-- //////////// MODAL : webig_exchange_choose_in_bag /////////// -->
<group type="modal" id="webig_exchange_choose_in_bag" w="360" child_resize_hmargin="8" child_resize_h="true" x="0" y="0" active="false" options="skin_modal" escapable="true" global_color="true">
<view type="text" id="title" posref="TL TL" x="6" y="-8" color="255 255 255 255" global_color="false" fontsize="10" shadow="true" hardtext="uiBCTitleMPItemType"/>
<group type="list_sheet" id="list" nature="item" posref="TL TL" x="4" y="-20" value="UI:VARIABLES:BOTCHAT:FILTER_ITEM_TYPE_SELECTED" force_item_background_generic="true" wspace="2" hspace="2" array="false" w="350" lmargin="0" rmargin="0" tmargin="2" bmargin="2" child_resize_h="true" onclick_l="confirm_change_botchat_buy_filter_item_type" on_tooltip="botchat_tt_item_type" use_quantity="false" use_quality="false" display_empty_slot="true"/>
<view type="text" id="no_filter" posparent="ctrl" posref="TL MM" x="24" y="-46" fontsize="12" shadow="true" case_mode="%case_upper" global_color="false" hardtext="uiBCNoItemTypeFilter"/>
</group>
<!-- //////////// MODAL : webig_drop_destroy_item_quantity_modal /////////// -->
<group type="modal" id="webig_drop_destroy_item_quantity_modal" exit_click_out="true" posref="TL TL" w="180" h="80" x="-8" y="8" options="skin_modal">
<ctrl type="sheet" id="sheet" value="UI:DROP_DESTROY_ITEM:ITEM" posparent="parent" posref="MM MM" x="-26" y="0"/>
<view type="text" id="x" posparent="sheet" posref="MR MM" x="8" y="0" color="255 255 255 255" fontsize="12" shadow="true" hardtext="X"/>
<instance template="edit_box_widget" entry_type="positive_integer" id="edit" text_ref="TR TR" text_y="-1" fontsize="12" posparent="sheet" posref="MR ML" x="16" text_x="-2" w="32" prompt="" enter_loose_focus="false" multi_line="false" max_num_chars="3" onchange="editbox_number" onchange_params="value=UI:DROP_DESTROY_ITEM:ITEM:QUANTITY|update_text=false" onenter="proc" params="webig_drop_destroy_item_quantity_modal_ok" max_historic="0"/>
<instance template="button_ok_cancel" posref="BR BR" x="-4" y="4" onclick_ok="" onclick_ok_param="" onclick_cancel="leave_modal" onclick_cancel_param=""/>
<link expr="eq(@UI:DROP_DESTROY_ITEM:DROP_MODE,1)" target="drop_text:active"/>
<link expr="ne(@UI:DROP_DESTROY_ITEM:DROP_MODE,1)" target="destroy_text:active"/>
</group>
<!-- //////////// TEMPLATE : webig_list_sheet /////////// -->
<template name="webig_list_sheet" keep="true" db="" w="200" y="-10" x="10">
<group id="list_group" w="#w" y="#y" x="#x" posref="TL TL" child_resize_h="true" >
<group type="list_sheet" nature="item" id="list" posref="TL TL" x="0" y="0" child_resize_h="true" wspace="8" hspace="8" value="#db" array="true" auto_grayed="true" onclick_r="open_item_help" tooltip="uittSelectMp" />
</group>
</template>
<!-- //////////// TEMPLATE : webig_frame_borderless /////////// -->
<template name="webig_frame_borderless" keep="true" w="200" h="200" x="0" y="0" movable="true">
<group title="" id="content" type="container" posref="MM MM" movable="#movable" pop_max_h="#h" pop_min_h="#h" pop_min_w="#w" pop_max_w="#w" opened="false" openable="false" options="compass" header_active="true" right_button="false">
<group id="html" type="html" posref="TL TL" url="" title_prefix="uiQuickhelpTitle" sizeref="wh" x="0" y="0" w="0" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="patch_off.tga" checkbox_bitmap_pushed="patch_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline" >
<group id="black" posref="BR BR" sizeref="hw" inherit_gc_alpha="true"/>
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false"/>
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000"/>
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
</group>
</template>
<!-- //////////// TEMPLATE : webig_frame_skin_modal /////////// -->
<template name="webig_frame_skin_modal" keep="true" w="200" h="200" x="0" y="0">
<group id="group" type="container" active="true" w="#w" h="#h" x="#x" y="#y" posref="MM MM" options="skin_modal" opened="true" openable="true" movable="true" header_color="UI:SAVE:WIN:COLORS:COM">
<group id="header_closed" x="0" y="0" w="#w" h="16" posref="TL TL"></group>
<group id="header_opened" x="0" y="0" w="#w" h="16" posref="TL TL"></group>
<group id="content" x="0" y="0" w="0" h="0" posref="TL TL ">
<group id="html" type="html" posref="MM MM" url="" title_prefix="uiQuickhelpTitle" sizeref="wh" x="0" y="0" w="0" h="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="patch_off.tga" checkbox_bitmap_pushed="patch_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline" >
<group id="black" posref="BR BR" sizeref="hw" w="-16" h="-12" inherit_gc_alpha="true"/>
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false"/>
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000"/>
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
</group>
</group>
</template>
<template name="money_tmpl" keep="true" posparent="parent" x="0" y="0" w="110" h="32" posref="TL TL" id="" value="?" icon="money_32.tga" tooltip="uittPlayerMoney">
<group id="#id" posparent="#posparent" posref="#posref" w="#w" h="#h" x="#x" y="#y">
<view type="bitmap" id="icone" posref="ML ML" texture="#icon" scale="true" w="32" global_color="false" />
<instance template="box_widget" id="box1" posref="ML ML" sizeref="w" w="-18" h="16" x="18" />
<view type="text_number" id="val1" posparent="box1" posref="MR MR" x="-3" y="0" color="135 243 28 255" shadow="true" fontsize="10" value="#value" global_color="false" positive="true" format="true" />
<ctrl type="tooltip" id="tt" posparent="box1" posref="TL TL" sizeref="wh" w="0" h="0" tooltip="#tooltip" />
</group>
</template>
<!-- //////////// TEMPLATE : webig_bot_chat_buy /////////// -->
<template name="webig_bot_chat_buy" keep="true" title="uiBuy" tooltip="Dappers" icon_points="money_seve.tga" buyto_text="uiBuyFrom" buyto_name="?">
<group id="#id" type="container" openable="false" opened="true" movable="true" resizer="false" savable="false" header_color="UI:SAVE:WIN:COLORS:BOT" global_color="false" escapable="true" posref="BL TL" min_w="450" max_w="450" w="450" x="352" y="200" pop_max_h="700" max_h="2000" active="true" title="#title">
<group id="header_opened" child_resize_h="true" w="600" x="0" y="0" posref="TL TL">
<instance template="bc_border_text" id="intro" />
<group id="trade_content" sizeref="w" w="0" child_resize_h="true" child_resize_hmargin="30" posref="BL TL" posparent="intro" y="0">
<view type="text" id="buy_title" multi_line="1" posparent="buy_back" posref="TL BL" x="0" y="35" color="255 255 255 255" fontsize="12" shadow="true" hardtext="#buyto_text" />
<view type="text" id="vendor_name" multi_line="1" posparent="buy_back" posref="TL BL" x="10" y="18" color="255 255 255 255" global_color="false" fontsize="12" shadow="true" hardtext="#buyto_name" />
<view type="text" id="buy_info" multi_line="1" posparent="buy_back" posref="TL BL" x="10" y="2" color="255 255 255 255" global_color="false" fontsize="12" shadow="true" hardtext="" />
<instance template="box_widget" id="buy_back" posref="TR TR" w="430" h="420" x="0" y="-48" />
<!-- BUY -->
<group id="buy" type="html" posparent="buy_back" posref="MM MM" sizeref="wh" w="0" h="0" url="" title_prefix="uiQuickhelpTitle" x="5" y="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="patch_off.tga" checkbox_bitmap_pushed="patch_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline">
<group id="black" posref="TL TL" sizeref="hw" inherit_gc_alpha="true" />
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="10" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
<instance template="money_tmpl" id="points" posref="BR TR" x="0" y="-8" w="150" icon="#icon_points" posparent="buy_back" tooltip="#tooltip" value="UI:TEMP:ARK_SHOP_MONEY" />
</group>
</group>
</group>
</template>
<!-- //////////// TEMPLATE : webig_bot_chat_buy_item /////////// -->
<template name="webig_bot_chat_buy_item" id="" money_tooltip="uiDappers" money_icon="money_seve.tga" onclick="" infosclick="" infos_text="uiTS_Items" ok_text="uiBuy" tooltip_ok="" keep="true" x="0" y="0">
<group id="#id" type="container" posref="TL TL" min_w="240" w="408" x="#x" y="#y" pop_min_h="320" pop_max_h="420" min_h="320" max_h="420" active="true" openable="false" opened="true" movable="true" resizer="false" savable="false" title="uiBotChatMissions" escapable="true" header_color="UI:SAVE:WIN:COLORS:BOT" global_color="false">
<group id="header_opened" h="400" w="600" x="0" y="0" posref="TL TL">
<group id="top" posref="TL TL" sizeref="wh" x="2" y="-2">
<group id="buy_sell_slot" type="html" posref="TL TL" w="48" h="48" url="" x="2" y="-20" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="patch_off.tga" checkbox_bitmap_pushed="patch_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline">
<group id="black" posref="TL TL" sizeref="hw" inherit_gc_alpha="true" />
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" global_color="false" />
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
<group id="standard_price" posparent="buy_sell_slot" posref="TR TL" x="0" y="-2" w="335" h="50">
<instance template="money_tmpl" id="item_price" tooltip="#money_tooltip" icon="#money_icon" posref="ML ML" x="0" w="130" h="32" value="UI:TEMP:ARK_MONEY_PRICE" />
<instance template="edit_box_widget" id="edit" posref="MM MM" x="0" text_x="0" text_ref="BR BR" w="36" backup_father_container_pos="true" prompt="" value="1" enter_loose_focus="true" multi_line="false" max_num_chars="4" onenter="lua" params="arkNpcShop:CheckMoney()" onchange="lua" onchange_params="arkNpcShop:CheckMoney()" enter_recover_focus="true" reset_focus_on_hide="true" max_historic="0" entry_type="positive_integer" />
<instance template="money_tmpl" id="item_total_price" tooltip="#money_tooltip" icon="#money_icon" posref="MR MR" x="0" w="130" h="32" value="UI:TEMP:ARK_MONEY_TOTAL" />
<view type="text" id="cross" posref="ML MR" posparent="edit" color="255 255 255 255" fontsize="10" x="-4" y="0" shadow="true" hardtext="X" />
<view type="text" id="equal" posref="MR ML" posparent="edit" color="255 255 255 255" x="2" y="0" fontsize="16" shadow="true" hardtext="=" />
<view type="text" id="unit_price_header" posparent="item_price" posref="TR BR" color="255 255 255 255" fontsize="10" x="0" y="-5" shadow="true" hardtext="uiUnitValue" />
<view type="text" id="quantity_header" posref="TM TM" color="255 255 255 255" fontsize="10" x="0" y="0" shadow="true" hardtext="uiQtty" />
<view type="text" id="total_price_header" posparent="item_total_price" posref="TR BR" color="255 255 255 255" fontsize="10" x="0" y="-5" shadow="true" hardtext="uiImmediatePrice" />
</group>
</group>
<group id="scroll_text" posref="TL TL" h="200" y="-20" sizeref="w" w="0">
<instance template="inner_thin_border_group" />
<group id="infos" type="html" posref="MM MM" sizeref="hw" w="0" h="0" url="" title_prefix="uiQuickhelpTitle" x="0" y="0" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color_global_color="true" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="12" h1_font_size="16" h2_font_size="14" h3_font_size="13" h4_font_size="12" h5_font_size="11" h6_font_size="11" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="patch_off.tga" checkbox_bitmap_pushed="patch_on.tga" checkbox_bitmap_over="" background_bitmap_view="" home="" browse_next_time="false" timeout="0" form_text_area_group="edit_box_widget_multiline">
<group id="black" posref="TL TL" sizeref="hw" inherit_gc_alpha="true" />
<view type="bitmap" id="black2" posparent="black" posref="MM MM" sizeref="wh" w="-2" h="-2" inherit_gc_alpha="true" scale="true" texture="blank.tga" />
<group type="list" id="text_list" fontsize="9" posref="TL TL" posparent="black" x="2" y="-2" space="0" sizeref="hw" w="-4" h="-4" maxelements="2000" />
<ctrl style="skin_scroll" id="scroll_bar" />
</group>
</group>
<group id="item_preview" active="false" posref="TL TL" sizeref="w" w="200" h="320" x="0" y="-70">
<scene3d id="scene_item_preview" sizeref="wh" w="-2" h="-2" posref="TL TL" x="1" curcam="cam_item_preview" user_interaction="true" ambient="128 96 64" sun_ambient="70 70 70" sun_diffuse="255 255 196" sun_specular="0 0 0" sun_direction="-1.0 1.0 -1.0" rotz_factor="0.017" roty_factor="0.005" dist_factor="0.2" camz="10" dist_limit_min="20.0" dist_limit_max="80.0">
<character3d id="char" dblink="UI:TEMP:CHAR3D" pos="0.0 0.0 -1.7" rot="0.0 0.0 -60.0" />
<camera id="cam_item_preview" fov="5" pos="0.0 -50.0 0.0" target="0.0 0.0 -0.85" roll="0" />
<light id="back" pos="0.0 28.2 1.6" color="96 64 32" near="1.0" far="4.0" />
<light id="lgt" pos="0.0 25.3 2.48" color="255 255 255" near="1.0" far="4.0" />
</scene3d>
</group>
<ctrl style="button_ok" id="ok" x="-7" y="-7" posparent="scroll_text" posref="BR TR" text_y="0" onclick_l="lua" params_l="#onclick" hardtext="#ok_text" tooltip="#tooltip_ok" />
<ctrl style="button_ok" id="desc" x="-5" y="0" posparent="ok" posref="BL BR" text_y="0" onclick_l="lua" params_l="#infosclick" hardtext="#infos_text" tooltip="#infos_text" />
</group>
</group>
</template>
<!-- //////////// TEMPLATE : webig_inv_item /////////// -->
<template name="webig_inv_item" render_layer1="1" render_layer2="2" render_layer3="3" w="45" keep="true" img1="token_basic.tga" img2="" img3="" tooltip="" quality="" quantity="" overlay="" text="" text2="" color="255 255 255 255" gc1="true" gc2="true" color2="255 255 255 255" bg="w_slot_item.tga" params_l="" params_r="" x="0" y="0">
<group id="#id" posref="MM MM" w="#w" h="45" x="#x" y="#y" sizeref="" render_layer="#render_layer1">
<view type="bitmap" id="back" posref="ML ML" x="0" y="0" render_layer="#render_layer1" texture="#bg" global_color="false" />
<view type="bitmap" id="img1" posref="ML ML" x="0" y="0" render_layer="#render_layer2" texture="#img1" global_color="false" />
<view type="bitmap" id="img2" posref="ML ML" render_layer="#render_layer2" x="0" y="0" texture="#img2" global_color="false" />
<view type="bitmap" id="img3" posref="ML ML" render_layer="#render_layer2" x="0" y="0" texture="#img3" global_color="false" />
<view type="text" id="overlay" posref="TL TL" posparent="img1" render_layer="#render_layer2" x="0" y="0" hardtext="#overlay" fontsize="8" color="255 255 255 255" shadow="true" global_color="false" />
<view type="text" id="quantity" posref="BL BL" posparent="img1" render_layer="#render_layer3" x="0" y="0" hardtext="#quantity" fontsize="8" color="255 255 255 255" shadow="true" global_color="false" />
<view type="text" id="quality" posref="BR BR" posparent="img1" render_layer="#render_layer3" x="-1" y="0" hardtext="#quality" fontsize="8" color="255 255 255 255" shadow="true" global_color="true" />
<view type="text" id="text1" posref="TR TL" posparent="img1" x="3" y="1" fontsize="8" hardtext="#text" color="#color1" shadow="true" global_color="#gc1" />
<view type="text" id="text2" posref="BL TL" posparent="text1" x="0" y="2" fontsize="8" hardtext="#text2" color="#color2" shadow="true" global_color="#gc2" />
<ctrl type="button" id="ctrl" button_type="push_button" global_color_normal="false" posref="ML ML" x="1" y="0" tx_normal="blank.tga" tx_pushed="blank.tga" tx_over="blank.tga" scale="true" w="40" h="40" tooltip="#tooltip" color="0 0 0 0" col_over="255 255 255 0" col_pushed="255 255 255 0" render_layer="#render_layer1" onclick_l="lua" params_l="#params_l" onclick_r="lua" params_r="#params_r" />
</group>
</template>
<template name="html_push_button" id="" texture="" posparent="parent" posref="TL TL" onclick="" onclick_param="" x="0" y="0" keep="true">
<group id="#id" posparent="#posparent" posref="#posref" child_resize_w="true" child_resize_h="true" x="#x" y="#y">
<ctrl type="button" id="b" button_type="push_button" pushed="false" tx_normal="#texture" tx_pushed="#texture" tx_over="#texture" color="255 255 255 255" col_pushed="255 255 255 255" col_over="255 255 255 0" onclick_l="#onclick" params_l="#onclick_param" />
</group>
</template>
<template name="lesson_template" bg="storyline_lesson_bg" script="0" parent="0" open_script="false" check_color="255 255 255 200" over="80" pushed="90" waiting="true" started="false" finished="false" event="" lesson="">
<group id="#id" posref="MM MM" w="510" h="70">
<view type="bitmap" id="back" posref="ML ML" texture="#bg.tga" global_color="false" />
<group id="html" type="webig_html" posref="TL TL" global_color="false" title_prefix="" sizeref="wh" x="30" y="0" w="510" h="70" background_color="0 0 0 0" error_color="255 240 48 255" link_color="240 155 100 255" text_color="210 210 210 255" h1_color="255 255 255 255" h2_color="255 255 255 255" h3_color="255 255 255 255" h4_color="255 255 255 255" h5_color="255 255 255 255" h6_color="255 255 255 255" text_font_size="10" h1_font_size="20" h2_font_size="18" h3_font_size="16" h4_font_size="14" h5_font_size="12" h6_font_size="12" paragraph_begin_space="12" multi_line_space_factor="0.25" td_begin_space="0" li_begin_space="4" ul_begin_space="12" li_indent="-10" ul_indent="30" checkbox_bitmap_normal="w_slot_on.tga" checkbox_bitmap_pushed="w_opacity_on.tga" checkbox_bitmap_over="" background_bitmap_view="background_bitmap" browse_next_time="false" form_text_area_group="edit_box_widget_multiline">
<group id="text_list" type="list" fontsize="9" posref="TL TL" x="0" y="-10" space="0" w="510" h="70" maxelements="2000" />
<ctrl id="scroll_bar" style="skin_scroll" />
</group>
<view type="bitmap" id="check" active="#waiting" x="6" posref="ML ML" texture="w_slot_brick.tga" color="255 255 255 255" global_color="false" />
<view type="bitmap" id="started" active="#started" x="6" posref="ML ML" texture="w_slot_on.tga" color="#check_color" global_color="false" h="26" w="26" scale="true"/>
<view type="bitmap" id="finished" active="#finished" x="0" posref="ML ML" texture="ico_task_done.tga" color="255 255 255 255" global_color="false" />
<ctrl type="button" id="lesson" button_type="push_button" global_color_normal="false" global_color_over="false" global_color_pushed="false" posref="MM MM" x="0" y="0" w="510" h="60" tx_normal="blank.tga" tx_pushed="storyline_lesson_bg_white.tga" tx_over="storyline_lesson_bg_white.tga" scale="true" color="255 255 255 0" col_over="255 255 255 #over" col_pushed="255 255 255 #pushed" onclick_l="lua" params_l="openLesson(#event, #lesson)" />
<ctrl type="button" id="open_script" active="#open_script" button_type="push_button" posref="BL BL" x="78" y="9" tx_normal="mp3_button_list.tga" tx_pushed="mp3_button_list.tga" tx_over="mp3_button_over.tga" onclick_l="lua" params_l="openStorylineStepDetails(#script, #parent)" tooltip="" />
</group>
</template>
<template name="webig_button" w="100" h="20" x="0" y="0" text="OK" fontsize="12" shadow="true" color_text="255 255 255 255" normal="blank.tga" pushed="blank.tga" over="blank.tga" color="255 255 255 0" color_over="255 255 255 55" color_pushed="255 255 255 100" params_l="">
<group id="#id" posref="MM MM" w="#w" h="#h" x="#x" y="#y">
<ctrl type="button" id="but" button_type="push_button" global_color_normal="false" global_color_over="false" global_color_pushed="false" posref="MM MM" x="0" y="0" w="#w" h="#h" tx_normal="#normal" tx_pushed="#pushed" tx_over="#over" scale="true" color="#color" col_over="#color_over" col_pushed="#color_pushed" onclick_l="lua" params_l="#params_l" />
<view type="text" id="text" color="#color_text" global_color="false" fontsize="#fontsize" shadow="#shadow" posref="MM MM" hardtext="#text" />
</group>
</template>
</interface_config>

@ -52,7 +52,7 @@
<template name="in_scene_user_info" id="" keep="true"> <template name="in_scene_user_info" id="" keep="true">
<group id="#id" type="in_scene_user_info" header_active="false" options="no_bordure" openable="false" savable="false" resizer="true" movable="false" right_button="false" opened="true" child_resize_w="true" child_resize_h="true" w="0" h="0" win_priority="%win_priority_world_space" posref="BL BM" use_cursor="false"> <group id="#id" type="in_scene_user_info" header_active="false" options="no_bordure" openable="false" savable="false" resizer="true" movable="false" right_button="false" opened="true" child_resize_w="true" child_resize_h="true" w="0" h="0" win_priority="%win_priority_world_space" posref="BL BM" use_cursor="false">
<group id="right" child_resize_w="true" child_resize_h="true" w="0" x="38" h="158" posref="TL TL"> <group id="right" child_resize_w="true" child_resize_h="true" w="0" x="38" h="158" posref="TL TL" child_resize_hmargin="7">
<view type="text" id="info0" posref="TL TL" x="0" y="-7" fontsize="14" shadow="true" hardtext="" color="255 255 255 255" global_color="true" /> <view type="text" id="info0" posref="TL TL" x="0" y="-7" fontsize="14" shadow="true" hardtext="" color="255 255 255 255" global_color="true" />
<view type="text" id="info1" posref="BL TL" posparent="info0" x="0" fontsize="12" shadow="true" hardtext="" color="255 255 255 255" global_color="true" /> <view type="text" id="info1" posref="BL TL" posparent="info0" x="0" fontsize="12" shadow="true" hardtext="" color="255 255 255 255" global_color="true" />
<view type="text" id="info2" posref="BL TL" posparent="info1" x="0" fontsize="10" shadow="true" hardtext="" color="255 255 255 255" global_color="true" /> <view type="text" id="info2" posref="BL TL" posparent="info1" x="0" fontsize="10" shadow="true" hardtext="" color="255 255 255 255" global_color="true" />
@ -60,10 +60,6 @@
<view type="bitmap" id="target" posref="TR TL" posparent="info0" x="4" texture="target.tga" global_color="false" /> <view type="bitmap" id="target" posref="TR TL" posparent="info0" x="4" texture="target.tga" global_color="false" />
<view type="bitmap" id="invisible_logo" posref="TR TL" posparent="target" x="2" y="3" scale="true" w="20" h="20" texture="ico_fear.tga" active="false" global_color="false" /> <view type="bitmap" id="invisible_logo" posref="TR TL" posparent="target" x="2" y="3" scale="true" w="20" h="20" texture="ico_fear.tga" active="false" global_color="false" />
<view type="bitmap" id="mission_target" posref="TR TL" posparent="invisible_logo" x="2" y="4" texture="target_mission.tga" global_color="false" /> <view type="bitmap" id="mission_target" posref="TR TL" posparent="invisible_logo" x="2" y="4" texture="target_mission.tga" global_color="false" />
<view type="bitmap" id="rp_logo_1" posref="TR TL" x="2" y="0" slot="false" posparent="mission_target" color="255 255 255 255" render_layer="1" texture="" global_color="false" />
<view type="bitmap" id="rp_logo_2" posref="TR TL" x="2" y="0" slot="false" posparent="rp_logo_1" color="255 255 255 255" render_layer="1" texture="" global_color="false" />
<view type="bitmap" id="rp_logo_3" posref="TR TL" x="2" y="0" slot="false" posparent="rp_logo_2" color="255 255 255 255" render_layer="1" texture="" global_color="false" />
<view type="bitmap" id="rp_logo_4" posref="TR TL" x="2" y="0" slot="false" posparent="rp_logo_3" color="255 255 255 255" render_layer="1" texture="" global_color="false" />
<view type="bitmap" id="win_top" posparent="info2" posref="BL TL" y="-8" texture="Infos_top.tga" global_color="true" /> <view type="bitmap" id="win_top" posparent="info2" posref="BL TL" y="-8" texture="Infos_top.tga" global_color="true" />
<view type="bitmap" id="win_mid" posparent="win_top" posref="BL TL" scale="true" w="70" h="1" texture="Infos_mid.tga" global_color="true" /> <view type="bitmap" id="win_mid" posparent="win_top" posref="BL TL" scale="true" w="70" h="1" texture="Infos_mid.tga" global_color="true" />
@ -79,18 +75,25 @@
<view type="bitmap" id="bar4" posparent="bar3" posref="BL TL" x="0" y="-2" scale="true" w="0" h="4" texture="Jauge_fill.tga" color="128 128 128 255" global_color="false" /> <view type="bitmap" id="bar4" posparent="bar3" posref="BL TL" x="0" y="-2" scale="true" w="0" h="4" texture="Jauge_fill.tga" color="128 128 128 255" global_color="false" />
</group> </group>
<ctrl type="sheet" id="guild_logo" posref="TL TR" posparent="right" x="-4" slot="false" nature="guild_flag" value="UI:TEMP:GUILD_SHEET" dragable="false" color="255 255 255 255" /> <ctrl type="sheet" id="guild_logo" posref="TL TR" posparent="right" x="-4" y="-7" slot="false" nature="guild_flag" value="UI:TEMP:GUILD_SHEET" dragable="false" color="255 255 255 255" />
<view type="bitmap" id="npc_mission_logo" posref="TL TL" slot="false" x="0" color="255 255 255 255" render_layer="1" texture="" global_color="false" /> <view type="bitmap" id="npc_mission_logo" posref="TL TL" slot="false" x="0" color="255 255 255 255" render_layer="1" texture="" global_color="false" />
<view type="bitmap" id="npc_mission_logo_over" posref="TL TL" slot="false" x="0" color="255 255 255 255" render_layer="2" texture="" global_color="false" /> <view type="bitmap" id="npc_mission_logo_over" posref="TL TL" slot="false" x="0" color="255 255 255 255" render_layer="2" texture="" global_color="false" />
<group id="right_pvp" posref="TR TL" posparent="right" child_resize_w="true" child_resize_h="true"> <group id="right_rp" posref="TR TL" posparent="right" x="4" child_resize_w="true" child_resize_h="true" child_resize_wmargin="4">
<group id="top_pvp" posref="TL TL" w="0" h="0" child_resize_w="true" child_resize_h="true"> <view type="bitmap" id="rp_logo_3" posref="TL TL" x="0" w="24" h="24" scale="true" slot="false" color="255 255 255 255" render_layer="1" texture="" active="false" global_color="false" />
<view type="bitmap" id="pvp_faction_logo" posref="TL TL" active="false" texture="mp_pearl.tga" global_color="false" /> <view type="bitmap" id="rp_logo_4" posref="TR TL" x="0" w="24" h="24" scale="true" slot="false" posparent="rp_logo_3" color="255 255 255 255" render_layer="1" texture="" active="false" global_color="false" />
<view type="bitmap" id="pvp_safe_logo" posref="TR TL" active="false" posparent="pvp_faction_logo" texture="mp_pearl.tga" x="2" global_color="false" />
</group> </group>
<group id="bottom_pvp" posref="BL TL" posparent="top_pvp" child_resize_w="true" child_resize_h="true">
<view type="bitmap" id="pvp_outpost_logo" posref="TL TL" active="false" texture="building_state_24x24.tga" global_color="false" /> <group id="right_pvp" posref="BL TL" posparent="right_rp" x="-2" child_resize_w="true" child_resize_h="true" child_resize_wmargin="4" child_resize_hmargin="4">
<view type="bitmap" id="pvp_duel_logo" posref="TR TL" posparent="pvp_outpost_logo" active="false" x="2" texture="pvp_duel.tga" global_color="false" /> <group id="top_pvp" posref="TL TL" w="0" h="0" child_resize_w="true" child_resize_h="true" child_resize_wmargin="4" child_resize_hmargin="4">
<view type="bitmap" id="pvp_faction_logo" posref="TL TL" active="false" texture="blank.tga" global_color="false" />
<view type="bitmap" id="pvp_faction_logo2" posref="TR TL" x="-4" posparent="pvp_faction_logo" active="false" texture="blank.tga" global_color="false" />
<view type="bitmap" id="rp_logo_1" posref="TL TL" x="2" y="-2" w="24" h="24" scale="true" slot="false" color="255 255 255 255" render_layer="1" texture="" active="false" global_color="false" />
<view type="bitmap" id="rp_logo_2" posref="TR TL" w="24" h="24" scale="true" slot="false" posparent="rp_logo_1" color="255 255 255 255" render_layer="1" texture="" active="false" global_color="false" />
</group>
<group id="bottom_pvp" posref="BL TL" posparent="top_pvp" child_resize_w="true" child_resize_h="true" child_resize_wmargin="4" child_resize_hmargin="4">
<view type="bitmap" id="pvp_outpost_logo" posref="TL TL" x="2" y="-2" active="false" texture="building_state_24x24.tga" global_color="false" />
<view type="bitmap" id="pvp_duel_logo" posref="TR TL" posparent="pvp_outpost_logo" active="false" texture="pvp_duel.tga" global_color="false" />
</group> </group>
</group> </group>
@ -316,9 +319,9 @@
<!-- **************************************** --> <!-- **************************************** -->
<group type="menu" id="base_menu" mouse_pos="true" exit_click_b="true" win_priority="%win_priority_highest" space="1" fontsize="12" shadow="true" color="255 255 255 200" shadow_color="0 0 0 255" color_over="0 0 0 255" shadow_color_over="0 0 0 0" color_grayed="255 255 255 64" shadow_color_grayed="0 0 0 255" highlight_over="255 255 255 150" case_mode="%case_normal"></group> <group type="menu" id="base_menu" mouse_pos="true" exit_click_b="true" win_priority="%win_priority_highest" space="1" fontsize="12" shadow="true" color="255 255 255 200" shadow_color="0 0 0 255" color_over="0 0 0 255" shadow_color_over="0 0 0 0" color_grayed="255 255 255 64" shadow_color_grayed="0 0 0 255" highlight_over="255 255 255 150" case_mode="%case_normal"></group>
<group type="menu" id="base_menu_with_color" extends="base_menu"> <group type="menu" id="base_menu_with_color" extends="base_menu">
<action id="choose_ui_alpha" name="uimChooseUIAlpha" handler="choose_ui_alpha" cond="eq(@UI:VARIABLES:GC_POPUP, 1)" /> <action id="choose_ui_alpha" name="uimChooseUIAlpha" handler="choose_ui_alpha" cond="eq(@UI:VARIABLES:GC_POPUP, 1)" icon="r2_toolbar_properties_pushed.tga" />
<action id="lock_unlock" name="uimLockUnlock" handler="lock_unlock" cond="eq(@UI:VARIABLES:GC_POPUP, 1)" /> <action id="lock_unlock" name="uimLockUnlock" handler="lock_unlock" cond="eq(@UI:VARIABLES:GC_POPUP, 1)" icon="r2ed_toolbar_lock_small.tga" />
<action id="help" name="uimHelp" handler="ic_help" cond="eq(@UI:VARIABLES:GC_HAS_HELP, 1)" /> <action id="help" name="uimHelp" handler="ic_help" cond="eq(@UI:VARIABLES:GC_HAS_HELP, 1)" icon="tb_help.tga" />
</group> </group>
<!-- ************** --> <!-- ************** -->
<!-- * ITEM MENU * --> <!-- * ITEM MENU * -->
@ -337,30 +340,36 @@
</proc> </proc>
<!-- item menu when we are in bags (do not modify hierarchy or ids if you do not modify the code) --> <!-- item menu when we are in bags (do not modify hierarchy or ids if you do not modify the code) -->
<group type="menu" id="item_menu_in_bag" extends="base_menu" on_deactive="item_menu_deactivate" on_active="item_menu_check"> <group type="menu" id="item_menu_in_bag" extends="base_menu" on_deactive="item_menu_deactivate" on_active="item_menu_check">
<action id="cris_enchant" name="uimCristalEnchant" handler="item_cristal_enchant" /> <action id="cris_enchant" name="uimCristalEnchant" handler="item_cristal_enchant" icon="cristal_spell.tga"/>
<action id="cris_reload" name="uimCristalReload" handler="item_cristal_reload" /> <action id="cris_reload" name="uimCristalReload" handler="item_cristal_reload" icon="cristal_ammo.tga"/>
<action id="teleport_use" name="uimTeleportUse" handler="teleport_use" /> <action id="teleport_use" name="uimTeleportUse" handler="teleport_use" icon="mp_batiment_noyau_maduk.tga"/>
<action id="item_consume" name="uimItemConsume" handler="item_consume" /> <action id="item_consume" name="uimItemConsume" handler="item_consume" icon="conso_nectar.tga"/>
<action id="xp_catalyser_use" name="uimXpCatalyserUse" handler="xp_catalyser_use" /> <action id="item_execute" name="uimItemTextDisplay" handler="item_execute" icon="r2_hand_can_pan.tga"/>
<action id="item_text_display" name="uiOpen" handler="item_text_display" params="ui:interface:edit_custom" /> <action id="xp_catalyser_use" name="uimXpCatalyserUse" handler="xp_catalyser_use" icon="ico_cataliseur_xp.tga"/>
<action id="item_text_display" name="uiOpen" handler="item_text_display" params="ui:interface:edit_custom" icon="r2ed_tool_scenario_window.tga"/>
<separator /> <separator />
<!-- Move to an Animal --> <!-- Move to an Animal -->
<action id="move" name="uimMoveTo"> <action id="move" name="uimMoveTo" icon="curs_can_pan.tga">
<action id="bag" name="uimMtBag" handler="proc" params="move_to_bag" /> <action id="bag" name="uimMtBag" handler="proc" params="move_to_bag" icon="ico_mission_purse.tga"/>
<!-- MAX_INVENTORY_ANIMAL --> <!-- MAX_INVENTORY_ANIMAL -->
<action id="pa0" name="uimMtPaMount0" handler="proc" params="move_to_pa|0" /> <action id="pa0" name="uimMtPaMount0" handler="proc" params="move_to_pa|0" icon="mektoub_map.tga"/>
<action id="pa1" name="uimMtPaMount1" handler="proc" params="move_to_pa|1" /> <action id="pa1" name="uimMtPaMount1" handler="proc" params="move_to_pa|1" icon="mektoub_map.tga"/>
<action id="pa2" name="uimMtPaMount2" handler="proc" params="move_to_pa|2" /> <action id="pa2" name="uimMtPaMount2" handler="proc" params="move_to_pa|2" icon="mektoub_map.tga"/>
<action id="pa3" name="uimMtPaMount3" handler="proc" params="move_to_pa|3" /> <action id="pa3" name="uimMtPaMount3" handler="proc" params="move_to_pa|3" icon="mektoub_map.tga"/>
<action id="guild" name="uimMtGuild" handler="proc" params="move_to_guild" /> <action id="pa4" name="uiPABagTitleMount4" handler="proc" params="move_to_pa|4" icon="spe_beast.tga"/>
<action id="room" name="uimMtRoom" handler="proc" params="move_to_room" /> <action id="pa5" name="uiPABagTitleMount5" handler="proc" params="move_to_pa|5" icon="spe_beast.tga"/>
<action id="pa6" name="uiPABagTitleMount6" handler="proc" params="move_to_pa|6" icon="spe_beast.tga"/>
<action id="guild" name="uimMtGuild" handler="proc" params="move_to_guild" icon="spe_memory.tga"/>
<action id="room" name="uimMtRoom" handler="proc" params="move_to_room" icon="building_state2.tga"/>
</action> </action>
<!--<action id="drop" name="uimDrop" handler="proc" params="drop_item_proc" />--> <!--<action id="drop" name="uimDrop" handler="proc" params="drop_item_proc" />-->
<action id="destroy" name="uimDestroy" handler="proc" params="destroy_item_proc" /> <action id="equip" name="uimEquip" handler="inv_auto_equip" icon="filter_armor.tga"/>
<action id="equip" name="uimEquip" handler="inv_auto_equip" /> <action id="infos" name="uimBoldInfo" handler="open_item_help" icon="brick_default.tga"/>
<action id="infos" name="uimBoldInfo" handler="open_item_help" /> <action id="lockunlock" name="uimLockItem" handler="lock_inv_item" icon="r2ed_toolbar_lock_small.tga"/>
<action id="lockunlock" name="uimLockItem" handler="lock_inv_item" /> <action id="item_text_edition" name="uimItemTextEdit" handler="item_text_edition" params="ui:interface:edit_custom" icon="r2ed_tool_scenario_window.tga" />
<action id="item_text_edition" name="uimItemTextEdit" handler="item_text_edition" params="ui:interface:edit_custom" /> <separator />
<action id="destroy" name="uimDestroy" handler="proc" params="destroy_item_proc" icon="r2_toolbar_kill_small.tga" />
<separator />
<action id="item_group" name="uimGroup" /> <action id="item_group" name="uimGroup" />
<!-- Will be activated and populated in code --> <!-- Will be activated and populated in code -->
<group type="menu" id="item_group_menu" extends="base_menu"></group> <group type="menu" id="item_group_menu" extends="base_menu"></group>
@ -374,19 +383,21 @@
<!-- item menu when we are in self --> <!-- item menu when we are in self -->
<group type="menu" id="item_menu_in_self" extends="base_menu" on_active="item_menu_base_check"> <group type="menu" id="item_menu_in_self" extends="base_menu" on_active="item_menu_base_check">
<!--<action id="drop" name="uimDrop" handler="proc" params="drop_item_proc"/>--> <!--<action id="drop" name="uimDrop" handler="proc" params="drop_item_proc"/>-->
<action id="destroy" name="uimDestroy" handler="proc" params="destroy_item_proc" /> <action id="infos" name="uimBoldInfo" handler="open_item_help" params="" icon="brick_default.tga"/>
<action id="infos" name="uimBoldInfo" handler="open_item_help" params="" /> <action id="lockunlock" name="uimLockItem" handler="lock_inv_item" icon="r2ed_toolbar_lock_small.tga"/>
<action id="lockunlock" name="uimLockItem" handler="lock_inv_item" /> <separator />
<action id="destroy" name="uimDestroy" handler="proc" params="destroy_item_proc" icon="r2_toolbar_kill_small.tga" />
</group> </group>
<!-- item menu default --> <!-- item menu default -->
<group type="menu" id="item_menu" extends="base_menu" on_active="item_menu_base_check"> <group type="menu" id="item_menu" extends="base_menu" on_active="item_menu_base_check">
<!--<action id="drop" name="uimDrop" handler="proc" params="drop_item_proc"/>--> <!--<action id="drop" name="uimDrop" handler="proc" params="drop_item_proc"/>-->
<action id="destroy" name="uimDestroy" handler="proc" params="destroy_item_proc" /> <action id="move" name="uimMoveTo" icon="curs_can_pan.tga">
<action id="move" name="uimMoveTo">
<!--<action id="bag" name="uimMtBag" handler="proc" params="move_to_bag" /> --> <!--<action id="bag" name="uimMtBag" handler="proc" params="move_to_bag" /> -->
</action> </action>
<action id="infos" name="uimBoldInfo" handler="open_item_help" params="" /> <action id="infos" name="uimBoldInfo" handler="open_item_help" params="" icon="brick_default.tga"/>
<action id="lockunlock" name="uimLockItem" handler="lock_inv_item" /> <action id="lockunlock" name="uimLockItem" handler="lock_inv_item" icon="r2ed_toolbar_lock_small.tga"/>
<separator />
<action id="destroy" name="uimDestroy" handler="proc" params="destroy_item_proc" icon="r2_toolbar_kill_small.tga"/>
</group> </group>
<define id="item_modal_menu" value="ui:interface:item_menu" /> <define id="item_modal_menu" value="ui:interface:item_menu" />
<define id="self_item_modal_menu" value="ui:interface:item_menu_in_self" /> <define id="self_item_modal_menu" value="ui:interface:item_menu_in_self" />
@ -475,32 +486,91 @@
<!-- * FACTION POINTS * --> <!-- * FACTION POINTS * -->
<!-- ********************* --> <!-- ********************* -->
<template name="faction_points_widget" id="" posref="TL TL" posparent="parent" x="0" y="0" sizeref="w" sizeparent="parent" w="0"> <template name="faction_points_widget" id="" posref="TL TL" posparent="parent" x="0" y="0" sizeref="w" sizeparent="parent" w="0">
<group id="#id" posref="#posref" posparent="#posparent" x="#x" y="#y" sizeref="#sizeref" sizeparent="#sizeparent" w="#w" h="74"> <group id="#id" posref="#posref" posparent="#posparent" x="#x" y="#y" sizeref="#sizeref" sizeparent="#sizeparent" w="#w" h="98">
<!-- the title --> <!-- the title -->
<view type="text" id="factionpt_t" posref="TL TL" x="0" y="0" hardtext="uiFactionPointTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" /> <view type="text" id="factionpt_t" posref="TL TL" x="0" y="0" hardtext="uiFactionPointTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
<instance template="text_tt" tooltip="uittIdentityFaction" posparent="factionpt_t" /> <instance template="text_tt" tooltip="uittIdentityFaction" posparent="factionpt_t" />
<!-- left part : kami fyros zorai --> <!-- left part : kami fyros zorai -->
<group id="left" posref="TL TL" x="0" y="-14" sizeref="w5" w="0" h="60" inherit_gc_alpha="true"> <group id="left" posref="TL TL" x="0" y="-14" sizeref="w5" w="0" h="84" inherit_gc_alpha="true">
<!-- icons -->
<view type="bitmap" id="ikami" posref="TL TL" x="8" y="-8" inherit_gc_alpha="false" texture="points_kami_24.tga" global_color="false" />
<view type="bitmap" id="ifyro" posref="TL TL" x="8" y="-32" inherit_gc_alpha="false" texture="points_fyros_24.tga" global_color="false" />
<view type="bitmap" id="izora" posref="TL TL" x="8" y="-56" inherit_gc_alpha="false" texture="points_zorai_24.tga" global_color="false" />
<!-- texts --> <!-- texts -->
<view type="text" id="tkami" posref="TL TL" x="8" y="-8" w="-16" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Kami" /> <view type="text" id="tkami" posref="TL TL" x="34" y="-12" w="-16" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Kami" />
<view type="text" id="tfyro" posref="TL TL" x="8" y="-24" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Fyros" /> <view type="text" id="tfyro" posref="TL TL" x="34" y="-36" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Fyros" />
<view type="text" id="tzora" posref="TL TL" x="8" y="-40" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Zorai" /> <view type="text" id="tzora" posref="TL TL" x="34" y="-60" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Zorai" />
<!-- numbers --> <!-- numbers -->
<view type="text_number" id="vkami" posref="TR TR" x="-8" y="-8" w="-16" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_kami" positive="true" /> <view type="text_number" id="vkami" posref="TR TR" x="-8" y="-12" w="-16" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_kami" positive="true" />
<view type="text_number" id="vfyro" posref="TR TR" x="-8" y="-24" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_fyros" positive="true" /> <view type="text_number" id="vfyro" posref="TR TR" x="-8" y="-36" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_fyros" positive="true" />
<view type="text_number" id="vzora" posref="TR TR" x="-8" y="-40" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_zorai" positive="true" /> <view type="text_number" id="vzora" posref="TR TR" x="-8" y="-60" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_zorai" positive="true" />
<instance template="inner_thin_border" posparent="parent" inherit_gc_alpha="true" /> <instance template="inner_thin_border" posparent="parent" inherit_gc_alpha="true" />
</group> </group>
<!-- right part : karavan matis tryker --> <!-- right part : karavan matis tryker -->
<group id="right" posref="TR TR" x="0" y="-14" sizeref="w5" w="0" h="60" inherit_gc_alpha="true"> <group id="right" posref="TR TR" x="0" y="-14" w="-1" sizeref="w5" h="84" inherit_gc_alpha="true">
<!-- icons -->
<view type="bitmap" id="ikara" posref="TL TL" x="8" y="-8" inherit_gc_alpha="false" texture="points_karavan_24.tga" global_color="false" />
<view type="bitmap" id="imati" posref="TL TL" x="8" y="-32" inherit_gc_alpha="false" texture="points_matis_24.tga" global_color="false" />
<view type="bitmap" id="itryk" posref="TL TL" x="8" y="-56" inherit_gc_alpha="false" texture="points_tryker_24.tga" global_color="false" />
<!-- texts -->
<view type="text" id="tkara" posref="TL TL" x="34" y="-12" w="-16" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Karavan" />
<view type="text" id="tmati" posref="TL TL" x="34" y="-36" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Matis" />
<view type="text" id="ttryk" posref="TL TL" x="34" y="-60" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Tryker" />
<!-- numbers -->
<view type="text_number" id="vkara" posref="TR TR" x="-8" y="-12" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_karavan" positive="true" />
<view type="text_number" id="vmati" posref="TR TR" x="-8" y="-36" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_matis" positive="true" />
<view type="text_number" id="vtryk" posref="TR TR" x="-8" y="-60" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_tryker" positive="true" />
<instance template="inner_thin_border" posparent="parent" inherit_gc_alpha="true" />
</group>
</group>
</template>
<!-- *********************** -->
<!-- * ORGANIZATION POINTS * -->
<!-- *********************** -->
<template name="org_points_widget" id="" posref="TL TL" posparent="parent" x="0" y="0" sizeref="w" sizeparent="parent" w="0">
<group id="#id" posref="#posref" posparent="#posparent" x="#x" y="#y" sizeref="#sizeref" sizeparent="#sizeparent" w="#w" h="50">
<view type="text" id="orgpt_t" posref="TL TL" x="0" y="0" hardtext="uiOrgPointTable" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
<instance template="text_tt" tooltip="uittIdentityOrganization" posparent="orgpt_t" />
<!-- left part -->
<group id="left" posref="TL TL" x="0" y="-14" sizeref="w5" w="0" h="36" inherit_gc_alpha="true">
<!-- icons -->
<view type="bitmap" id="imara" posref="TL TL" x="8" y="-8" inherit_gc_alpha="false" texture="points_marauder_24.tga" global_color="false" />
<!-- texts -->
<view type="text" id="tmara" posref="TL TL" x="34" y="-12" w="-16" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFameMarauders" />
<!-- numbers -->
<view type="text_number" id="vmara" posref="TR TR" x="-8" y="-12" w="-16" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_marauder" positive="true" />
<instance template="inner_thin_border" posparent="parent" inherit_gc_alpha="true" />
</group>
<!-- right part -->
<group id="right" posref="TR TR" x="0" y="-14" sizeref="w5" w="-1" h="36" inherit_gc_alpha="true">
<!-- icons -->
<view type="bitmap" id="iranger" posref="TL TL" x="8" y="-8" inherit_gc_alpha="false" texture="points_ranger_24.tga" global_color="false" />
<!-- texts --> <!-- texts -->
<view type="text" id="tkara" posref="TL TL" x="8" y="-8" w="-16" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Karavan" /> <view type="text" id="tranger" posref="TL TL" x="34" y="-12" w="-16" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiOrganization_7" />
<view type="text" id="tmati" posref="TL TL" x="8" y="-24" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Matis" />
<view type="text" id="ttryk" posref="TL TL" x="8" y="-40" color="255 255 255 255" fontsize="12" shadow="true" hardtext="uiFactionPoint_Tryker" />
<!-- numbers --> <!-- numbers -->
<view type="text_number" id="vkara" posref="TR TR" x="-8" y="-8" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_karavan" positive="true" /> <view type="text_number" id="vranger" posref="TR TR" x="-8" y="-12" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_ranger" positive="true" />
<view type="text_number" id="vmati" posref="TR TR" x="-8" y="-24" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_matis" positive="true" /> <instance template="inner_thin_border" posparent="parent" inherit_gc_alpha="true" />
<view type="text_number" id="vtryk" posref="TR TR" x="-8" y="-40" color="255 255 255 255" shadow="true" fontsize="12" value="%faction_points_tryker" positive="true" /> </group>
</group>
</template>
<!-- ********************* -->
<!-- * KNOWLEDGE OF ATYS * -->
<!-- ********************* -->
<template name="ecosystem_points_widget" id="" posref="TL TL" posparent="parent" x="0" y="0" sizeref="w" sizeparent="parent" w="0">
<group id="#id" posref="#posref" posparent="#posparent" x="#x" y="#y" sizeref="#sizeref" sizeparent="#sizeparent" w="#w" h="78">
<view type="text" id="ecosystem_points_title" posref="TL TL" x="0" y="0" hardtext="uiR2EDEcosystemPointsTitle" shadow="true" color="255 255 255 255" global_color="false" fontsize="12" />
<!-- left part -->
<group id="left" posref="TL TL" x="0" y="-14" sizeref="w5" w="0" h="64" inherit_gc_alpha="true">
<instance template="ecosystem_points" id="basic" posref="TL TL" x="8" y="-8" w="-16" tooltip="uiR2EDBasicsPointsTooltip" text="uiR2EDBasicsPoints" />
<instance template="ecosystem_points" id="desert" posparent="basic" posref="BL TL" tooltip="uiR2EDDesertPointsTooltip" text="uiR2EDDesertPoints" />
<instance template="ecosystem_points" id="subtropic" posparent="desert" posref="BL TL" tooltip="uiR2EDSubtropicPointsTooltip" text="uiR2EDSubtropicPoints" />
<instance template="inner_thin_border" posparent="parent" inherit_gc_alpha="true" />
</group>
<!-- right part -->
<group id="right" posref="TR TR" x="0" y="-14" sizeref="w5" w="-1" h="64" inherit_gc_alpha="true">
<instance template="ecosystem_points" id="forest" posref="TL TL" x="8" y="-8" w="-16" tooltip="uiR2EDForestPointsTooltip" text="uiR2EDForestPoints" />
<instance template="ecosystem_points" id="jungle" posparent="forest" posref="BL TL" tooltip="uiR2EDJunglePointsTooltip" text="uiR2EDJunglePoints" />
<instance template="ecosystem_points" id="primeroot" posparent="jungle" posref="BL TL" tooltip="uiR2EDPrimeRootPointsTooltip" text="uiR2EDPrimeRootPoints" />
<instance template="inner_thin_border" posparent="parent" inherit_gc_alpha="true" /> <instance template="inner_thin_border" posparent="parent" inherit_gc_alpha="true" />
</group> </group>
</group> </group>
@ -629,7 +699,6 @@
<variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:QUANTITY" type="sint32" value="0" /> <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:QUANTITY" type="sint32" value="0" />
<variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:QUALITY" type="sint32" value="0" /> <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:QUALITY" type="sint32" value="0" />
<variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:USER_COLOR" type="sint32" value="1" /> <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:USER_COLOR" type="sint32" value="1" />
<variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:CHARAC_BUFFS" type="sint8" value="0" />
<variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:WEIGHT" type="sint32" value="0" /> <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:WEIGHT" type="sint32" value="0" />
<variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:NAMEID" type="sint32" value="0" /> <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:NAMEID" type="sint32" value="0" />
<variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:INFOVERSION" type="sint32" value="0" /> <variable entry="UI:VARIABLES:STACK_SELECTED:DSPSLOT:INFOVERSION" type="sint32" value="0" />
@ -659,7 +728,7 @@
<action handler="cancel_choose_ui_alpha" params="" /> <action handler="cancel_choose_ui_alpha" params="" />
<action handler="leave_modal" params="" /> <action handler="leave_modal" params="" />
</proc> </proc>
<group type="modal" id="define_ui_transparency" posref="TM BM" y="-8" h="180" child_resize_w="true" child_resize_wmargin="16" exit_click_out="true" onclick_out="proc" onclick_out_params="cancel_choose_ui_alpha" options="skin_modal" win_priority="%win_priority_highest"> <group type="modal" id="define_ui_transparency" posref="TM BM" y="-8" h="190" child_resize_w="true" child_resize_wmargin="16" exit_click_out="true" onclick_out="proc" onclick_out_params="cancel_choose_ui_alpha" options="skin_modal" win_priority="%win_priority_highest">
<view type="text" id="text_opacity" posref="TM TM" x="0" y="-4" color="255 255 255 255" fontsize="12" shadow="true" global_color="false" hardtext="uimChooseUIAlpha" /> <view type="text" id="text_opacity" posref="TM TM" x="0" y="-4" color="255 255 255 255" fontsize="12" shadow="true" global_color="false" hardtext="uimChooseUIAlpha" />
<!-- button to use global settings --> <!-- button to use global settings -->
<group id="globals_settings" posparent="text_opacity" posref="BM TM" y="-8" child_resize_h="true" child_resize_w="true"> <group id="globals_settings" posparent="text_opacity" posref="BM TM" y="-8" child_resize_h="true" child_resize_w="true">
@ -815,10 +884,14 @@
<view type="bitmap" id="sta_buff" y="0" texture="ico_stamina.tga" global_color="false" posref="BL TL" posparent="hp_buff" /> <view type="bitmap" id="sta_buff" y="0" texture="ico_stamina.tga" global_color="false" posref="BL TL" posparent="hp_buff" />
<view type="bitmap" id="sap_buff" y="0" texture="ico_sap.tga" global_color="false" posref="BL TL" posparent="sta_buff" /> <view type="bitmap" id="sap_buff" y="0" texture="ico_sap.tga" global_color="false" posref="BL TL" posparent="sta_buff" />
<view type="bitmap" id="focus_buff" y="0" texture="ico_focus.tga" global_color="false" posref="BL TL" posparent="sap_buff" /> <view type="bitmap" id="focus_buff" y="0" texture="ico_focus.tga" global_color="false" posref="BL TL" posparent="sap_buff" />
<view type="bitmap" id="durability" y="0" texture="ico_absorb_damage.tga" global_color="false" posref="BL TL" posparent="focus_buff" />
<view type="text" id="hp_buff_text" posparent="hp_buff" posref="MR ML" hardtext="0" global_color="false" /> <view type="text" id="hp_buff_text" posparent="hp_buff" posref="MR ML" hardtext="0" global_color="false" />
<view type="text" id="sta_buff_text" posparent="sta_buff" posref="MR ML" hardtext="0" global_color="false" /> <view type="text" id="sta_buff_text" posparent="sta_buff" posref="MR ML" hardtext="0" global_color="false" />
<view type="text" id="sap_buff_text" posparent="sap_buff" posref="MR ML" hardtext="0" global_color="false" /> <view type="text" id="sap_buff_text" posparent="sap_buff" posref="MR ML" hardtext="0" global_color="false" />
<view type="text" id="focus_buff_text" posparent="focus_buff" posref="MR ML" hardtext="0" global_color="false" /> <view type="text" id="focus_buff_text" posparent="focus_buff" posref="MR ML" hardtext="0" global_color="false" />
<view type="text" id="durability_text" posparent="durability" posref="MR ML" hardtext="0" global_color="false" />
<view type="text" id="durability_sep" posparent="durability_text" posref="MR ML" hardtext="/" global_color="false" />
<view type="text" id="durability_max" posparent="durability_sep" posref="MR ML" hardtext="0" global_color="false" />
</group> </group>
<!-- Over Text used for Crystallized Spells: this include additionnal icons --> <!-- Over Text used for Crystallized Spells: this include additionnal icons -->
<define id="crystallized_spell_list_brick" value="ui:interface:crystallized_spell_context_help:list_brick" /> <define id="crystallized_spell_list_brick" value="ui:interface:crystallized_spell_context_help:list_brick" />
@ -900,7 +973,6 @@
<variable entry="UI:DROP_DESTROY_ITEM:ITEM:QUANTITY" type="sint64" value="0" /> <variable entry="UI:DROP_DESTROY_ITEM:ITEM:QUANTITY" type="sint64" value="0" />
<variable entry="UI:DROP_DESTROY_ITEM:ITEM:QUALITY" type="sint64" value="0" /> <variable entry="UI:DROP_DESTROY_ITEM:ITEM:QUALITY" type="sint64" value="0" />
<variable entry="UI:DROP_DESTROY_ITEM:ITEM:USER_COLOR" type="sint64" value="1" /> <variable entry="UI:DROP_DESTROY_ITEM:ITEM:USER_COLOR" type="sint64" value="1" />
<variable entry="UI:DROP_DESTROY_ITEM:ITEM:CHARAC_BUFFS" type="sint8" value="0" />
<variable entry="UI:DROP_DESTROY_ITEM:ITEM:LOCKED" type="sint64" value="0" /> <variable entry="UI:DROP_DESTROY_ITEM:ITEM:LOCKED" type="sint64" value="0" />
<variable entry="UI:DROP_DESTROY_ITEM:ITEM:WEIGHT" type="sint64" value="0" /> <variable entry="UI:DROP_DESTROY_ITEM:ITEM:WEIGHT" type="sint64" value="0" />
<variable entry="UI:DROP_DESTROY_ITEM:ITEM:NAMEID" type="sint64" value="0" /> <variable entry="UI:DROP_DESTROY_ITEM:ITEM:NAMEID" type="sint64" value="0" />
@ -1145,7 +1217,6 @@
<variable entry="UI:glob_var:help:$i:QUANTITY" type="sint32" value="0" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:QUANTITY" type="sint32" value="0" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:SLOT_TYPE" type="sint32" value="0" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:SLOT_TYPE" type="sint32" value="0" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:USER_COLOR" type="sint32" value="1" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:USER_COLOR" type="sint32" value="1" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:CHARAC_BUFFS" type="sint8" value="0" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:NAMEID" type="sint32" value="0" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:NAMEID" type="sint32" value="0" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:INFO_VERSION" type="sint32" value="0" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:INFO_VERSION" type="sint32" value="0" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:ENCHANT" type="sint32" value="0" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:ENCHANT" type="sint32" value="0" size="%MAX_HELP_WINDOW" />
@ -1170,7 +1241,6 @@
<variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:QUANTITY" type="sint32" value="0" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:QUANTITY" type="sint32" value="0" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:SLOT_TYPE" type="sint32" value="0" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:SLOT_TYPE" type="sint32" value="0" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:USER_COLOR" type="sint32" value="1" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:USER_COLOR" type="sint32" value="1" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:CHARAC_BUFFS" type="sint8" value="0" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:NAMEID" type="sint32" value="0" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:NAMEID" type="sint32" value="0" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:INFO_VERSION" type="sint32" value="0" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:INFO_VERSION" type="sint32" value="0" size="%MAX_HELP_WINDOW" />
<variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:ENCHANT" type="sint32" value="0" size="%MAX_HELP_WINDOW" /> <variable entry="UI:glob_var:help:$i:BUILD_ITEMS:#index:ENCHANT" type="sint32" value="0" size="%MAX_HELP_WINDOW" />
@ -1337,14 +1407,14 @@
<style style="inv_container" type="container" w="350" h="310" resizer="true" pop_min_w="350" pop_min_h="110" pop_max_w="920" pop_max_h="1600" movable="true" active="false" opened="true" openable="false" global_color="false" global_color_over="true" /> <style style="inv_container" type="container" w="350" h="310" resizer="true" pop_min_w="350" pop_min_h="110" pop_max_w="920" pop_max_h="1600" movable="true" active="false" opened="true" openable="false" global_color="false" global_color_over="true" />
<style style="inv_container_guild" type="container" w="336" h="310" resizer="true" pop_min_w="336" pop_min_h="110" pop_max_w="920" pop_max_h="1600" movable="true" active="false" opened="true" openable="false" global_color="false" global_color_over="true" /> <style style="inv_container_guild" type="container" w="336" h="310" resizer="true" pop_min_w="336" pop_min_h="110" pop_max_w="920" pop_max_h="1600" movable="true" active="false" opened="true" openable="false" global_color="false" global_color_over="true" />
<!-- template for the bulk and the weight --> <!-- template for the bulk and the weight -->
<template name="tinv_nbslots_bulk_weight" id="" inv_branch_nb="256" inv_branch="" inv_bulk_max="" posparent="parent" posref="TL TL" x="0" y="0"> <template name="tinv_nbslots_bulk_weight" id="" inv_branch_nb="10000" inv_branch="" inv_bulk_max="" posparent="parent" posref="TL TL" x="0" y="0">
<group id="#id" sizeref="w" h="16" posref="#posref"> <group id="#id" sizeref="w" h="16" posref="#posref">
<group id="bulk_weight" w="128" h="16" posref="BR BR" posparent="#posparent"> <group id="bulk_weight" child_resize_w="true" child_resize_wmargin="4" h="16" posref="BR BR" posparent="#posparent">
<view type="bitmap" id="weight" posref="MR MR" x="0" texture="W_weight.tga" global_color="false" /> <view type="bitmap" id="weight" posref="MR MR" x="0" texture="W_weight.tga" global_color="false" />
<view type="text" id="weight_txt" posparent="weight" posref="ML MR" y="-2" x="-2" color="255 255 255 255" global_color="false" shadow="true" fontsize="10" /> <view type="text" id="weight_txt" posparent="weight" posref="ML MR" y="-2" x="-2" color="255 255 255 255" global_color="false" shadow="true" fontsize="10" />
<instance template="text_tt" tooltip="uittInventoryWeight" posparent="weight_txt" /> <instance template="text_tt" tooltip="uittInventoryWeight" posparent="weight_txt" />
<link expr="identity(getItemsWeight('#inv_branch',0,#inv_branch_nb),@#inv_branch)" target="weight_txt:hardtext" /> <link expr="identity(getItemsWeight('#inv_branch',0,#inv_branch_nb),@#inv_branch)" target="weight_txt:hardtext" />
<view type="bar" id="encombrement" mini="true" posref="MR MR" x="-48" range="#inv_bulk_max" color="%bulk_color" /> <view type="bar" id="encombrement" mini="true" posparent="weight_txt" posref="ML MR" x="-4" range="#inv_bulk_max" color="%bulk_color" />
<ctrl type="tooltip" id="encombrement_tt" posparent="encombrement" sizeref="wh" w="0" h="0" on_tooltip="get_tt_bulk" on_tooltip_params="dbbranch=#inv_branch|dbmax=#inv_bulk_max" /> <ctrl type="tooltip" id="encombrement_tt" posparent="encombrement" sizeref="wh" w="0" h="0" on_tooltip="get_tt_bulk" on_tooltip_params="dbbranch=#inv_branch|dbmax=#inv_bulk_max" />
<link expr="identity(getItemsBulk('#inv_branch',0,#inv_branch_nb),@#inv_branch)" target="encombrement:value" /> <link expr="identity(getItemsBulk('#inv_branch',0,#inv_branch_nb),@#inv_branch)" target="encombrement:value" />
</group> </group>
@ -1360,6 +1430,7 @@
<action handler="set" params="dblink=UI:SAVE:@0:FILTER_TP|value=0" /> <action handler="set" params="dblink=UI:SAVE:@0:FILTER_TP|value=0" />
<action handler="set" params="dblink=UI:SAVE:@0:FILTER_MISSMP|value=0" /> <action handler="set" params="dblink=UI:SAVE:@0:FILTER_MISSMP|value=0" />
<action handler="set" params="dblink=UI:SAVE:@0:FILTER_MP|value=0" /> <action handler="set" params="dblink=UI:SAVE:@0:FILTER_MP|value=0" />
<action handler="set" params="dblink=UI:SAVE:@0:FILTER_PET|value=0" />
<action handler="set" params="dblink=UI:SAVE:@0:FILTER_TOOL|value=0" /> <action handler="set" params="dblink=UI:SAVE:@0:FILTER_TOOL|value=0" />
<action handler="set" params="dblink=UI:SAVE:@0:FILTER_WEAPON|value=0" /> <action handler="set" params="dblink=UI:SAVE:@0:FILTER_WEAPON|value=0" />
<action handler="set" params="dblink=UI:SAVE:@0:FILTER_ARMOR|value=0" /> <action handler="set" params="dblink=UI:SAVE:@0:FILTER_ARMOR|value=0" />
@ -1369,7 +1440,7 @@
<!-- template for the list of items FILTERS --> <!-- template for the list of items FILTERS -->
<template name="tinv_item_list_filter" id="" x="0" y="0" posref="BL BL" posparent="" dblink="" texture="" tooltip="" inv_type=""> <template name="tinv_item_list_filter" id="" x="0" y="0" posref="BL BL" posparent="" dblink="" texture="" tooltip="" inv_type="">
<ctrl type="button" id="but_#id" button_type="toggle_button" posref="#posref" posparent="but_#posparent" x="#x" y="#y" tx_normal="w_button_filter_off.tga" tx_pushed="w_button_filter_on.tga" tx_over="" onclick_l="set" params_l="dblink=#dblink|value=not(@#dblink)" onclick_r="proc" params_r="pinv_item_filter|#inv_type|#dblink" global_color_pushed="true" tooltip="#tooltip" /> <ctrl type="button" id="but_#id" button_type="toggle_button" posref="#posref" posparent="but_#posparent" x="#x" y="#y" tx_normal="w_button_filter_off.tga" tx_pushed="w_button_filter_on.tga" tx_over="" onclick_l="set" params_l="dblink=#dblink|value=not(@#dblink)" onclick_r="proc" params_r="pinv_item_filter|#inv_type|#dblink" global_color_pushed="true" tooltip="#tooltip" />
<view type="bitmap" id="bit_#id" posref="TL TL" posparent="but_#id" texture="#texture" global_color="false" /> <view type="bitmap" id="bit_#id" posref="TL TL" posparent="but_#id" texture="#texture" scale="true" w="24" h="16" global_color="false" />
<link expr="@#dblink" target="but_#id:pushed" /> <link expr="@#dblink" target="but_#id:pushed" />
</template> </template>
<!-- template for the mode 'icon' or 'text' (no right click) --> <!-- template for the mode 'icon' or 'text' (no right click) -->
@ -1383,13 +1454,13 @@
<group id="#id" posparent="#posparent" posref="#posref" x="#x" y="#y" sizeparent="#sizeparent" sizeref="#sizeref" w="#w" h="#h"> <group id="#id" posparent="#posparent" posref="#posref" x="#x" y="#y" sizeparent="#sizeparent" sizeref="#sizeref" w="#w" h="#h">
<!-- Bag Type --> <!-- Bag Type -->
<!-- Bags : icon list --> <!-- Bags : icon list -->
<group type="list_icon_bag" id="bag_icons" array="false" sizeref="wh" w="0" h="-23" posref="TL TL" x="0" y="0" child_resize_h="false" value="#inv_branch" maxitem="#inv_branch_nb" inv_type="#inv_type" sort_type="UI:SAVE:#inv_type:SORT_TYPE" filter_armor="UI:SAVE:#inv_type:FILTER_ARMOR" filter_weapon="UI:SAVE:#inv_type:FILTER_WEAPON" filter_tool="UI:SAVE:#inv_type:FILTER_TOOL" filter_mp="UI:SAVE:#inv_type:FILTER_MP" filter_missmp="UI:SAVE:#inv_type:FILTER_MISSMP" filter_tp="UI:SAVE:#inv_type:FILTER_TP" wspace="2" hspace="2" startitem="0" selection_group="inventory_selection" auto_grayed="true" dragable="true" oncandrag="inv_can_drag" ondrag="inv_drag" params_drag="from_icon_list" oncandrop="inv_can_drop" ondrop="inv_drop" menu_r="ui:interface:item_menu_in_bag" instant_help="false" lmargin="10" rmargin="0" tmargin="1" bmargin="0" column_center="false" db_animal_status="#animal_status"> <group type="list_icon_bag" id="bag_icons" array="false" sizeref="wh" w="0" h="-24" posref="TL TL" x="0" y="0" child_resize_h="false" value="#inv_branch" maxitem="#inv_branch_nb" inv_type="#inv_type" sort_type="UI:SAVE:#inv_type:SORT_TYPE" filter_armor="UI:SAVE:#inv_type:FILTER_ARMOR" filter_weapon="UI:SAVE:#inv_type:FILTER_WEAPON" filter_tool="UI:SAVE:#inv_type:FILTER_TOOL" filter_pet="UI:SAVE:#inv_type:FILTER_PET" filter_mp="UI:SAVE:#inv_type:FILTER_MP" filter_missmp="UI:SAVE:#inv_type:FILTER_MISSMP" filter_tp="UI:SAVE:#inv_type:FILTER_TP" wspace="2" hspace="2" startitem="0" selection_group="inventory_selection" auto_grayed="true" dragable="true" oncandrag="inv_can_drag" ondrag="inv_drag" params_drag="from_icon_list" oncandrop="inv_can_drop" ondrop="inv_drop" menu_r="ui:interface:item_menu_in_bag" instant_help="false" lmargin="10" rmargin="0" tmargin="1" bmargin="0" column_center="false" db_animal_status="#animal_status">
<ctrl style="skin_scroll" id="scroll_row" posref="TL TL" target_stepy="44" /> <ctrl style="skin_scroll" id="scroll_row" posref="TL TL" target_stepy="44" />
</group> </group>
<view type="bitmap" id="sep1" x="0" y="0" posparent="bag_icons" posref="BL TL" scale="true" h="2" sizeref="w" texture="W_line_hor.tga" /> <view type="bitmap" id="sep1" x="0" y="0" posparent="bag_icons" posref="BL TL" scale="true" h="2" sizeref="w" texture="W_line_hor.tga" />
<link expr="eq(@UI:SAVE:#inv_type:ICON_LIST, 1)" target="bag_icons:active,sep1:active" /> <link expr="eq(@UI:SAVE:#inv_type:ICON_LIST, 1)" target="bag_icons:active,sep1:active" />
<!-- Bags : detailed list --> <!-- Bags : detailed list -->
<group type="list_sheet_bag" id="bag_list" array="false" sizeref="wh" w="0" h="-22" posref="TL TL" x="0" y="1" child_resize_h="false" value="#inv_branch" maxitem="#inv_branch_nb" inv_type="#inv_type" sort_type="UI:SAVE:#inv_type:SORT_TYPE" filter_armor="UI:SAVE:#inv_type:FILTER_ARMOR" filter_weapon="UI:SAVE:#inv_type:FILTER_WEAPON" filter_tool="UI:SAVE:#inv_type:FILTER_TOOL" filter_mp="UI:SAVE:#inv_type:FILTER_MP" filter_missmp="UI:SAVE:#inv_type:FILTER_MISSMP" filter_tp="UI:SAVE:#inv_type:FILTER_TP" hspace="2" xitem="2" yitem="-2" xtext="46" ytext="-2" selection_group="inventory_selection" selection="false" auto_grayed="true" dragable="true" oncandrag="inv_can_drag" ondrag="inv_drag" params_drag="from_text_list" oncandrop="inv_can_drop" ondrop="inv_drop" menu_r="ui:interface:item_menu_in_bag" instant_help="false" over_color="%bot_chat_sheet_selection_normal" over_col_pushed="%bot_chat_sheet_selection_pushed" over_col_over="%bot_chat_sheet_selection_over" color="255 255 255 255" fontsize="8" shadow="true" multi_line="true" multi_line_space="0" db_animal_status="#animal_status"> <group type="list_sheet_bag" id="bag_list" array="false" sizeref="wh" w="0" h="-34" posref="TL TL" x="0" y="-10" child_resize_h="false" value="#inv_branch" maxitem="#inv_branch_nb" inv_type="#inv_type" sort_type="UI:SAVE:#inv_type:SORT_TYPE" filter_armor="UI:SAVE:#inv_type:FILTER_ARMOR" filter_weapon="UI:SAVE:#inv_type:FILTER_WEAPON" filter_tool="UI:SAVE:#inv_type:FILTER_TOOL" filter_pet="UI:SAVE:#inv_type:FILTER_PET" filter_mp="UI:SAVE:#inv_type:FILTER_MP" filter_missmp="UI:SAVE:#inv_type:FILTER_MISSMP" filter_tp="UI:SAVE:#inv_type:FILTER_TP" hspace="2" xitem="2" yitem="-2" xtext="46" ytext="-2" selection_group="inventory_selection" selection="false" auto_grayed="true" dragable="true" oncandrag="inv_can_drag" ondrag="inv_drag" params_drag="from_text_list" oncandrop="inv_can_drop" ondrop="inv_drop" menu_r="ui:interface:item_menu_in_bag" instant_help="false" over_color="%bot_chat_sheet_selection_normal" over_col_pushed="%bot_chat_sheet_selection_pushed" over_col_over="%bot_chat_sheet_selection_over" color="255 255 255 255" fontsize="8" shadow="true" multi_line="true" multi_line_space="0" db_animal_status="#animal_status">
<!-- the scroll --> <!-- the scroll -->
<ctrl style="skin_scroll" id="scroll_row" posref="TL TL" target_stepy="44" /> <ctrl style="skin_scroll" id="scroll_row" posref="TL TL" target_stepy="44" />
<!-- the group to scroll --> <!-- the group to scroll -->
@ -1401,16 +1472,22 @@
<instance template="tinv_item_list_icon_swap" id="detail" x="-2" y="10" posref="BR MR" dblink="UI:SAVE:#inv_type:ICON_LIST" texture="details_on.tga" tooltip="uittDetail" /> <instance template="tinv_item_list_icon_swap" id="detail" x="-2" y="10" posref="BR MR" dblink="UI:SAVE:#inv_type:ICON_LIST" texture="details_on.tga" tooltip="uittDetail" />
<link expr="ifthenelse(@UI:SAVE:#inv_type:ICON_LIST, 'details_off.tga', 'details_on.tga')" target="bit_detail:texture" /> <link expr="ifthenelse(@UI:SAVE:#inv_type:ICON_LIST, 'details_off.tga', 'details_on.tga')" target="bit_detail:texture" />
<!-- filter --> <!-- filter -->
<instance template="tinv_item_list_filter" id="filter_tp" x="-7" posref="ML MR" posparent="detail" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_TP" texture="filter_tp.tga" tooltip="uittFilterTP" /> <instance template="tinv_item_list_filter" id="filter_tp" x="-8" posref="ML MR" posparent="detail" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_TP" texture="filter_tp.tga" tooltip="uittFilterTP" />
<instance template="tinv_item_list_filter" id="filter_missmp" x="-2" posref="ML MR" posparent="filter_tp" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_MISSMP" texture="filter_mission.tga" tooltip="uittFilterMissMP" /> <instance template="tinv_item_list_filter" id="filter_missmp" x="-2" posref="ML MR" posparent="filter_tp" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_MISSMP" texture="filter_mission.tga" tooltip="uittFilterMissMP" />
<instance template="tinv_item_list_filter" id="filter_mp" x="-2" posref="ML MR" posparent="filter_missmp" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_MP" texture="filter_mps.tga" tooltip="uittFilterMP" /> <instance template="tinv_item_list_filter" id="filter_mp" x="-2" posref="ML MR" posparent="filter_missmp" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_MP" texture="filter_mps.tga" tooltip="uittFilterMP" />
<instance template="tinv_item_list_filter" id="filter_tool" x="-2" posref="ML MR" posparent="filter_mp" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_TOOL" texture="filter_tools.tga" tooltip="uittFilterTool" /> <instance template="tinv_item_list_filter" id="filter_pet" x="-2" posref="ML MR" posparent="filter_mp" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_PET" texture="mektoub_map.tga" tooltip="uittFilterPet" />
<instance template="tinv_item_list_filter" id="filter_tool" x="-2" posref="ML MR" posparent="filter_pet" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_TOOL" texture="filter_tools.tga" tooltip="uittFilterTool" />
<instance template="tinv_item_list_filter" id="filter_weapon" x="-2" posref="ML MR" posparent="filter_tool" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_WEAPON" texture="filter_weapon.tga" tooltip="uittFilterWeapon" /> <instance template="tinv_item_list_filter" id="filter_weapon" x="-2" posref="ML MR" posparent="filter_tool" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_WEAPON" texture="filter_weapon.tga" tooltip="uittFilterWeapon" />
<instance template="tinv_item_list_filter" id="filter_armor" x="-2" posref="ML MR" posparent="filter_weapon" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_ARMOR" texture="filter_armor.tga" tooltip="uittFilterArmor" /> <instance template="tinv_item_list_filter" id="filter_armor" x="-2" posref="ML MR" posparent="filter_weapon" inv_type="#inv_type" dblink="UI:SAVE:#inv_type:FILTER_ARMOR" texture="filter_armor.tga" tooltip="uittFilterArmor" />
<!-- search --> <!-- search -->
<ctrl type="button" id="but_inv_search" button_type="toggle_button" x="-7" posref="ML MR" posparent="but_filter_armor" tx_normal="w_button_filter_off.tga" tx_pushed="w_button_filter_on.tga" tx_over="" tooltip="uittInventorySearch" onclick_l="inv_search_button" params_l="inv_query_eb" /> <ctrl type="button" id="but_inv_search" button_type="toggle_button" x="-2" posref="ML MR" posparent="but_filter_armor"
<view type="bitmap" id="bit_inv_search" posref="MM MM" posparent="but_inv_search" texture="filter_search.png" global_color="false" color="255 255 255 150" /> tx_normal="w_button_filter_off.tga" tx_pushed="w_button_filter_on.tga" tx_over="" tooltip="uittInventorySearch"
<instance template="edit_box_widget" id="inv_query_eb" active="false" posref="TR BR" posparent="but_detail" x="0" y="8" w="100" render_layer="9" clear_on_escape="true" enter_recover_focus="false" max_num_chars="20" max_historic="0" onenter="inv_set_search" onchange="inv_set_search" on_focus_lost="inv_search_unfocus" on_focus_lost_params="but_inv_search" /> onclick_l="inv_search_button" params_l="inv_query_eb" />
<view type="bitmap" id="bit_inv_search" posref="MM MM" posparent="but_inv_search" texture="w_help_1.tga" global_color="false" color="255 255 255 150" />
<instance template="edit_box_widget" id="inv_query_eb" active="false" posref="TR BR" posparent="but_detail" x="0" y="8" w="100" render_layer="9"
clear_on_escape="true" enter_recover_focus="false" max_num_chars="20" max_historic="0"
onenter="inv_set_search" onchange="inv_set_search"
on_focus_lost="inv_search_unfocus" on_focus_lost_params="but_inv_search"/>
</group> </group>
</template> </template>
<!-- Link to trig brick action message. don't play when 0 (avoid flying text at startup) --> <!-- Link to trig brick action message. don't play when 0 (avoid flying text at startup) -->
@ -1555,4 +1632,14 @@
</group> </group>
</template> </template>
<!-- icon for menu user group -->
<template name="menu_row_icon" keep="true"
id="" posref="TL TL" sizeref="w" posparent="parent" x="0" y="0" w="24" h="18"
icon_id="icon" icon_x="0" icon_y="-1" icon_color="255 255 255 255" icon_texture="blank.tga">
<group id="#id" posref="#posref" posparent="#posparent" sizeref="#sizeref" x="#x" y="#y" w="#w" h="#h">
<view type="bitmap" id="#icon_id" posref="MM MM" x="#icon_x" y="#icon_y" color="#icon_color" w="16" h="16" scale="true"
global_color="false" texture="#icon_texture" />
</group>
</template>
</interface_config> </interface_config>

Loading…
Cancel
Save