Small XML Fix

Forgot to change the table index to object ids
Forgot getXMLElements for Frames
This commit is contained in:
Robert Jelic
2023-05-07 00:07:35 +02:00
parent 2b2de1cddf
commit 60615f103a

View File

@@ -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 = {}