summaryrefslogtreecommitdiffhomepage
path: root/button.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-23 18:15:29 +0200
committerAki <nthirtyone@gmail.com>2016-08-23 18:15:29 +0200
commit63d90193f50f5fec561f725d8bda1fcb7ad6c3b8 (patch)
tree43b39e1838db510e0c47a888ab6ec9ef540fbd08 /button.lua
parent3279bd5a968111260eb3f488976a1024958dc283 (diff)
downloadroflnauts-63d90193f50f5fec561f725d8bda1fcb7ad6c3b8.zip
roflnauts-63d90193f50f5fec561f725d8bda1fcb7ad6c3b8.tar.gz
roflnauts-63d90193f50f5fec561f725d8bda1fcb7ad6c3b8.tar.bz2
just in case
Diffstat (limited to 'button.lua')
-rw-r--r--button.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/button.lua b/button.lua
index 9c33885..d7caf74 100644
--- a/button.lua
+++ b/button.lua
@@ -53,6 +53,7 @@ function Button:draw(scale)
love.graphics.draw(self.sprite, self.arrow_l, (x+54+math.floor(self.delay))*scale, (y+5)*scale, 0, scale, scale)
love.graphics.draw(self.sprite, self.arrow_r, (x-1-math.floor(self.delay))*scale, (y+5)*scale, 0, scale, scale)
end
+ love.graphics.setFont(Font)
love.graphics.printf(self.text, (x+2)*scale, (y+4)*scale, 54, "center", 0, scale, scale)
end
function Button:update(dt)