Files
PyTaikoGreen/Scripts/global/allnet_indicator.lua
T
2026-07-16 17:54:11 -04:00

19 lines
472 B
Lua

AllNetIcon = {}
AllNetIcon.__index = AllNetIcon
function AllNetIcon.new(online)
local self = setmetatable({}, AllNetIcon)
self.online = online
self.indicator = tex.load_texture("global/overlay/allnet_indicator")
return self
end
function AllNetIcon:update(current_ms, online)
self.online = online
end
function AllNetIcon:draw(x, y)
local frame = self.online and 2 or 0
tex.draw_texture(self.indicator, { frame = frame, x = x, y = y })
end