feat: update billboard monitor text scale configuration to use BILLBOARD_TEXT_SCALE

This commit is contained in:
MayaTheShy
2026-03-26 14:27:31 -04:00
parent c830642dc8
commit 664741504f

View File

@@ -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