fixed 2nd symbol

This commit is contained in:
Chr1Z93 2024-06-02 19:26:23 +02:00
parent a92c65ff61
commit 49dcb9625f

View File

@ -56,8 +56,6 @@ function onLoad(savedData)
end
function updateDisplay()
log("Class: " .. class)
log("Symbol: " .. symbol)
local xml = {
-- background on the front
{
@ -137,26 +135,26 @@ function updateDisplay()
end
-- update front image
xml[3].attributes.image = symbols[1]
xml[3].attributes.image = "Bundle/" .. symbols[1]
xml[3].attributes.height = xml[3].attributes.height * 0.6
xml[3].attributes.width = xml[3].attributes.width * 0.6
xml[3].attributes.position = "35 0 -10.3"
-- add 2nd image element to front
local frontSymbolXml = deepcopy(xml[3])
frontSymbolXml.attributes.image = symbols[2]
frontSymbolXml.attributes.image = "Bundle/" .. symbols[2]
frontSymbolXml.attributes.position = "-35 0 -10.3"
table.insert(xml, frontSymbolXml)
-- update back image
xml[6].attributes.image = symbols[1]
xml[6].attributes.image = "Bundle/" .. symbols[1]
xml[6].attributes.height = xml[6].attributes.height * 0.6
xml[6].attributes.width = xml[6].attributes.width * 0.6
xml[6].attributes.position = "35 0 0.3"
-- add 2nd image element to back
local backSymbolXml = deepcopy(xml[6])
backSymbolXml.attributes.image = symbols[2]
backSymbolXml.attributes.image = "Bundle/" .. symbols[2]
backSymbolXml.attributes.position = "-35 0 0.3"
table.insert(xml, backSymbolXml)
end