17 lines
439 B
Lua
17 lines
439 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) 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
|