Remove wired device overlay markers
This commit is contained in:
parent
176216df8e
commit
9b5b9ce182
2 changed files with 0 additions and 21 deletions
|
|
@ -1,7 +1,5 @@
|
|||
require "door"
|
||||
|
||||
local Wire = require "wire"
|
||||
|
||||
WiredDoor = class("WiredDoor", Door)
|
||||
|
||||
function WiredDoor:initialize(x, y, color, circuitId)
|
||||
|
|
@ -18,13 +16,3 @@ function WiredDoor:setPowered(powered, canClose)
|
|||
end
|
||||
self:refreshSprites()
|
||||
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
|
||||
|
|
|
|||
|
|
@ -6,12 +6,3 @@ function WiredSwitch:initialize(x, y, color)
|
|||
Switch.initialize(self, x, y, color)
|
||||
self.wired = true
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue