feat: update billboard monitor text scale configuration to use BILLBOARD_TEXT_SCALE
This commit is contained in:
@@ -164,12 +164,13 @@ end
|
||||
|
||||
function D.setupBillboardMonitor()
|
||||
-- If explicitly configured, use that name
|
||||
local scale = cfg.BILLBOARD_TEXT_SCALE or 1
|
||||
if cfg.BILLBOARD_MONITOR and cfg.BILLBOARD_MONITOR ~= "" then
|
||||
local mon = peripheral.wrap(cfg.BILLBOARD_MONITOR)
|
||||
if mon and mon.setTextScale then
|
||||
D.billboardMon = mon
|
||||
D.billboardMonName = cfg.BILLBOARD_MONITOR
|
||||
D.billboardMon.setTextScale(0.5)
|
||||
D.billboardMon.setTextScale(scale)
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@@ -183,7 +184,7 @@ function D.setupBillboardMonitor()
|
||||
if mon and mon.setTextScale then
|
||||
D.billboardMon = mon
|
||||
D.billboardMonName = name
|
||||
D.billboardMon.setTextScale(0.5)
|
||||
D.billboardMon.setTextScale(scale)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user