Small XML Fix
Forgot to change the table index to object ids Forgot getXMLElements for Frames
This commit is contained in:
@@ -237,7 +237,7 @@ return {
|
|||||||
if(tab.properties~=nil)then tab = {tab} end
|
if(tab.properties~=nil)then tab = {tab} end
|
||||||
for k,v in pairs(tab)do
|
for k,v in pairs(tab)do
|
||||||
local obj = f(self, v["@id"] or uuid())
|
local obj = f(self, v["@id"] or uuid())
|
||||||
table.insert(lastXMLReferences, obj)
|
lastXMLReferences[obj:getName()] = obj
|
||||||
xmlDefaultValues(v, obj, scripts)
|
xmlDefaultValues(v, obj, scripts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -306,7 +306,7 @@ return {
|
|||||||
if(tab.properties~=nil)then tab = {tab} end
|
if(tab.properties~=nil)then tab = {tab} end
|
||||||
for k,v in pairs(tab)do
|
for k,v in pairs(tab)do
|
||||||
local obj = f(self, v["@id"] or uuid())
|
local obj = f(self, v["@id"] or uuid())
|
||||||
table.insert(lastXMLReferences, obj)
|
lastXMLReferences[obj:getName()] = obj
|
||||||
xmlDefaultValues(v, obj, scripts)
|
xmlDefaultValues(v, obj, scripts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -337,6 +337,10 @@ return {
|
|||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
getXMLElements = function(self)
|
||||||
|
return lastXMLReferences
|
||||||
|
end,
|
||||||
|
|
||||||
loadLayout = function(self, path)
|
loadLayout = function(self, path)
|
||||||
if(fs.exists(path))then
|
if(fs.exists(path))then
|
||||||
local scripts = {}
|
local scripts = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user