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