>OwO<
This commit is contained in:
25
startup.lua
Normal file
25
startup.lua
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user