summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-24 06:51:22 +0200
committerAki <nthirtyone@gmail.com>2016-08-24 06:51:22 +0200
commit53d8dde1eb82bfdf0e3513d288bdb295cd84873f (patch)
tree42a94c7586ee23f330ef1274f9250240943f2a64
parentb739e555026471db11e24cb4a92f55509e717761 (diff)
downloadroflnauts-53d8dde1eb82bfdf0e3513d288bdb295cd84873f.zip
roflnauts-53d8dde1eb82bfdf0e3513d288bdb295cd84873f.tar.gz
roflnauts-53d8dde1eb82bfdf0e3513d288bdb295cd84873f.tar.bz2
centered draw
-rw-r--r--selector.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/selector.lua b/selector.lua
index f07b9e7..f7f3474 100644
--- a/selector.lua
+++ b/selector.lua
@@ -170,6 +170,7 @@ end
function Selector:draw(scale)
local x,y = self:getPosition()
local h,v = self:getSpacing()
+ x = #self.sets*h*0.5
for n=1,#self.selections do
self:drawBlock(n, x+h*n, y+v*n, scale)
end