updated visuals

This commit is contained in:
mango 2025-09-05 11:41:09 -07:00
commit 1e877f2b39
2 changed files with 7 additions and 5 deletions

View file

@ -27,14 +27,15 @@ function Button:update(dt)
end
function Button:draw()
local mode
if self.press then
mode = "fill"
self.c = {151/255, 109/255, 209/255}
else
mode = "line"
self.c = {100/255, 100/255, 100/255}
end
love.graphics.setColor(self.c)
love.graphics.circle(mode, self.x + self.r, self.y + self.r, self.r)
love.graphics.circle("fill", self.x + self.r, self.y + self.r, self.r+1)
love.graphics.setColor(1,1,1)
love.graphics.circle("line", self.x + self.r, self.y+self.r, self.r+1)
end
return Button

View file

@ -60,3 +60,4 @@ function love.draw()
v:draw()
end
end