mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 04:51:52 +00:00
Changed: Fix the way to load ryzhome lua/xml files
This commit is contained in:
parent
328da50ed2
commit
e157a7453e
3 changed files with 13 additions and 19 deletions
|
@ -472,7 +472,8 @@ XMLInterfaceFiles = {
|
||||||
"commands2.xml",
|
"commands2.xml",
|
||||||
"ring_access_point_filter.xml",
|
"ring_access_point_filter.xml",
|
||||||
"ring_window.xml",
|
"ring_window.xml",
|
||||||
"bg_downloader.xml"
|
"bg_downloader.xml",
|
||||||
|
"ryzhome_toolbar.xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
XMLR2EDInterfaceFiles =
|
XMLR2EDInterfaceFiles =
|
||||||
|
|
|
@ -1,17 +1,8 @@
|
||||||
|
RyzhomeBar = {
|
||||||
if getUI("ui:interface:webig_ryzhome_toolbar") == nil then
|
id = "ui:interface:webig_ryzhome_toolbar",
|
||||||
local f = io.open("user/ryzhome_toolbar.xml", "r")
|
saveuri = "http://app.ryzom.com/app_ryzhome/index.php?action=toolbar_save",
|
||||||
local xml = f:read("*a")
|
selectedPage = 1
|
||||||
parseInterfaceFromString(xml)
|
}
|
||||||
end
|
|
||||||
|
|
||||||
if RyzhomeBar == nil then
|
|
||||||
RyzhomeBar = {
|
|
||||||
id = "ui:interface:webig_ryzhome_toolbar",
|
|
||||||
saveuri = "http://app.ryzom.com/app_ryzhome/index.php?action=toolbar_save",
|
|
||||||
selectedPage = 1
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
function RyzhomeBar:close()
|
function RyzhomeBar:close()
|
||||||
getUI("ui:interface:webig_ryzhome_toolbar").active=false
|
getUI("ui:interface:webig_ryzhome_toolbar").active=false
|
||||||
|
@ -112,7 +103,7 @@ function RyzhomeBar:listItems()
|
||||||
RyzhomeBar.recently_removed_item = false
|
RyzhomeBar.recently_removed_item = false
|
||||||
|
|
||||||
local framewin = getUI("ui:interface:webig_ryzhome_list_item")
|
local framewin = getUI("ui:interface:webig_ryzhome_list_item")
|
||||||
framewin.opened=true
|
--framewin.opened=true
|
||||||
framewin.active=true
|
framewin.active=true
|
||||||
if framewin.x == 0 and framewin.y == 0 then
|
if framewin.x == 0 and framewin.y == 0 then
|
||||||
local ui = getUI("ui:interface")
|
local ui = getUI("ui:interface")
|
||||||
|
@ -248,4 +239,4 @@ function debug(text)
|
||||||
local uc = ucstring()
|
local uc = ucstring()
|
||||||
uc:fromUtf8(tostring(text))
|
uc:fromUtf8(tostring(text))
|
||||||
displaySystemInfo(ucstring(uc), "sys")
|
displaySystemInfo(ucstring(uc), "sys")
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
<interface_config>
|
<interface_config>
|
||||||
webig_ryzhome_list_item<root id="interface" x="0" y="0" w="800" h="600" active="true" />
|
<root id="interface" x="0" y="0" w="800" h="600" active="true" />
|
||||||
|
|
||||||
|
<lua file="ryzhome_toolbar.lua" />
|
||||||
|
|
||||||
<style style="button_over"
|
<style style="button_over"
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -440,4 +442,4 @@ webig_ryzhome_list_item<root id="interface" x="0" y="0" w="800" h="600" active="
|
||||||
|
|
||||||
<tree node="webig_ryzhome_place_item"></tree>
|
<tree node="webig_ryzhome_place_item"></tree>
|
||||||
|
|
||||||
</interface_config>
|
</interface_config>
|
||||||
|
|
Loading…
Reference in a new issue