This commit is contained in:
2026-04-06 21:33:48 -07:00
commit e2ae50f79b
5 changed files with 344 additions and 0 deletions

25
startup.lua Normal file
View File

@@ -0,0 +1,25 @@
--os.pullEvent = os.pullEventRaw
local stratumDBlib = require("stratumDBlib")
local meshnetBackend = require("meshnetBackend")
meshnetBackend.setTarget(10)
stratumDBlib.setBackend(meshnetBackend)
print("connecting to database...")
local trans = stratumDBlib.loadTransforms("transforms","stratumDBlib")
local overlay = link.getUpgradeFunctions().overlay
if not overlay then error("failed to find overlay goggles do you have them installed?") end
local function receive()
while true do
local count = trans.getOrderCount()
if count > 0 then
overlay.addOrUpdateTextElement("orderCount","Current Orders: "..tostring(count),1,1,0xFFFFFF,2)
else
overlay.addOrUpdateTextElement("orderCount",""..tostring(count),1,1,0xFFFFFF,2)
end
overlay.send()
end
end
parallel.waitForAny(receive)