summaryrefslogtreecommitdiffhomepage
path: root/not/Button.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-04 18:47:24 +0200
committerAki <nthirtyone@gmail.com>2017-09-04 18:47:24 +0200
commit2b15ac7c04211b319c247f7923fe4b5ebfed0516 (patch)
tree6a64eb93d7d9c2a5462f6bfe2fb9333965f66876 /not/Button.lua
parente287689c2a22d82522a5578205bf66f77c51a467 (diff)
downloadroflnauts-2b15ac7c04211b319c247f7923fe4b5ebfed0516.zip
roflnauts-2b15ac7c04211b319c247f7923fe4b5ebfed0516.tar.gz
roflnauts-2b15ac7c04211b319c247f7923fe4b5ebfed0516.tar.bz2
Buttons' size just for sake
Diffstat (limited to 'not/Button.lua')
-rw-r--r--not/Button.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/not/Button.lua b/not/Button.lua
index a2f7a19..3c6042d 100644
--- a/not/Button.lua
+++ b/not/Button.lua
@@ -15,6 +15,9 @@ function Button:new (parent)
self.sprite, self.quads = parent:getSheet()
end
+function Button:getSize ()
+ return 58, 15
+
function Button:setText (text)
self.text = text or ""
return self