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