summaryrefslogtreecommitdiffhomepage
path: root/button.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-24 00:10:33 +0200
committerAki <nthirtyone@gmail.com>2016-08-24 00:10:33 +0200
commitcd72b080bd949d9ec0b42c29e0ea31e300464dad (patch)
tree3e1e7a0314ad43dfa96868c04060df82997bed74 /button.lua
parent9b8f5e3d356be281d8ef25227b087bb99b07b58d (diff)
downloadroflnauts-cd72b080bd949d9ec0b42c29e0ea31e300464dad.zip
roflnauts-cd72b080bd949d9ec0b42c29e0ea31e300464dad.tar.gz
roflnauts-cd72b080bd949d9ec0b42c29e0ea31e300464dad.tar.bz2
Focus() return bool
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 d7caf74..fd12e0b 100644
--- a/button.lua
+++ b/button.lua
@@ -34,6 +34,7 @@ end
function Button:getPosition() return self.x,self.y end
function Button:focus(next)
self.focused = true
+ return true
end
function Button:blur()
self.focused = false