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()
|
function D.setupBillboardMonitor()
|
||||||
-- If explicitly configured, use that name
|
-- If explicitly configured, use that name
|
||||||
|
local scale = cfg.BILLBOARD_TEXT_SCALE or 1
|
||||||
if cfg.BILLBOARD_MONITOR and cfg.BILLBOARD_MONITOR ~= "" then
|
if cfg.BILLBOARD_MONITOR and cfg.BILLBOARD_MONITOR ~= "" then
|
||||||
local mon = peripheral.wrap(cfg.BILLBOARD_MONITOR)
|
local mon = peripheral.wrap(cfg.BILLBOARD_MONITOR)
|
||||||
if mon and mon.setTextScale then
|
if mon and mon.setTextScale then
|
||||||
D.billboardMon = mon
|
D.billboardMon = mon
|
||||||
D.billboardMonName = cfg.BILLBOARD_MONITOR
|
D.billboardMonName = cfg.BILLBOARD_MONITOR
|
||||||
D.billboardMon.setTextScale(0.5)
|
D.billboardMon.setTextScale(scale)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
@@ -183,7 +184,7 @@ function D.setupBillboardMonitor()
|
|||||||
if mon and mon.setTextScale then
|
if mon and mon.setTextScale then
|
||||||
D.billboardMon = mon
|
D.billboardMon = mon
|
||||||
D.billboardMonName = name
|
D.billboardMonName = name
|
||||||
D.billboardMon.setTextScale(0.5)
|
D.billboardMon.setTextScale(scale)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user