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
|
||||
for k,v in pairs(tab)do
|
||||
local obj = f(self, v["@id"] or uuid())
|
||||
table.insert(lastXMLReferences, obj)
|
||||
lastXMLReferences[obj:getName()] = obj
|
||||
xmlDefaultValues(v, obj, scripts)
|
||||
end
|
||||
end
|
||||
@@ -306,7 +306,7 @@ return {
|
||||
if(tab.properties~=nil)then tab = {tab} end
|
||||
for k,v in pairs(tab)do
|
||||
local obj = f(self, v["@id"] or uuid())
|
||||
table.insert(lastXMLReferences, obj)
|
||||
lastXMLReferences[obj:getName()] = obj
|
||||
xmlDefaultValues(v, obj, scripts)
|
||||
end
|
||||
end
|
||||
@@ -337,6 +337,10 @@ return {
|
||||
return self
|
||||
end,
|
||||
|
||||
getXMLElements = function(self)
|
||||
return lastXMLReferences
|
||||
end,
|
||||
|
||||
loadLayout = function(self, path)
|
||||
if(fs.exists(path))then
|
||||
local scripts = {}
|
||||
|
||||
Reference in New Issue
Block a user