rework design to remove c3voc mention
This commit is contained in:
parent
ae6ea74cbb
commit
a3a3e64071
1 changed files with 6 additions and 10 deletions
16
node.lua
16
node.lua
|
@ -27,17 +27,13 @@ function node.render()
|
|||
-- upper: 623
|
||||
-- lower: 707
|
||||
|
||||
upper_text = "C3VOC: " .. description
|
||||
|
||||
if location == nil or location == '' then
|
||||
lower_text = "Serial " .. serial
|
||||
else
|
||||
lower_text = location .. " - Serial " .. serial
|
||||
end
|
||||
|
||||
upper_text = description .. " (" .. serial .. ")"
|
||||
upper_width = font:width(upper_text, 40)
|
||||
font:write(960-(upper_width/2), 631, upper_text, 40, 1,1,1,1)
|
||||
|
||||
lower_width = font:width(lower_text, 20)
|
||||
font:write(960-(lower_width/2), 679, lower_text, 20, 1,1,1,1)
|
||||
if location ~= nil and location ~= '' then
|
||||
lower_text = location .. " - Serial " .. serial
|
||||
lower_width = font:width(lower_text, 20)
|
||||
font:write(960-(lower_width/2), 679, lower_text, 20, 1,1,1,1)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue