updated visuals
This commit is contained in:
parent
6ba4f47466
commit
1e877f2b39
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
1
main.lua
1
main.lua
|
@ -60,3 +60,4 @@ function love.draw()
|
|||
v:draw()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue