Remove wired device overlay markers

This commit is contained in:
Your Name 2026-08-12 14:52:06 -04:00
parent 176216df8e
commit 9b5b9ce182
2 changed files with 0 additions and 21 deletions

View file

@ -1,7 +1,5 @@
require "door" require "door"
local Wire = require "wire"
WiredDoor = class("WiredDoor", Door) WiredDoor = class("WiredDoor", Door)
function WiredDoor:initialize(x, y, color, circuitId) function WiredDoor:initialize(x, y, color, circuitId)
@ -18,13 +16,3 @@ function WiredDoor:setPowered(powered, canClose)
end end
self:refreshSprites() self:refreshSprites()
end end
function WiredDoor:draw(channel)
Entity.draw(self, channel)
if not self.sprites[channel] then return end
local p = self:getDrawPos()
local color = Wire.color(self.circuitId)
love.graphics.setColor(color[1], color[2], color[3], 1)
love.graphics.setLineWidth(math.max(1, drawScale))
love.graphics.circle("line", p.x + 8 * drawScale, p.y + 8 * drawScale, 3 * drawScale)
end

View file

@ -6,12 +6,3 @@ function WiredSwitch:initialize(x, y, color)
Switch.initialize(self, x, y, color) Switch.initialize(self, x, y, color)
self.wired = true self.wired = true
end end
function WiredSwitch:draw(channel)
Entity.draw(self, channel)
if not self.sprites[channel] then return end
local p = self:getDrawPos()
love.graphics.setColor(1, 1, 1, 0.9)
love.graphics.setLineWidth(math.max(1, drawScale))
love.graphics.rectangle("line", p.x + 5 * drawScale, p.y + 5 * drawScale, 6 * drawScale, 6 * drawScale)
end