diff options
author | Aki <nthirtyone@gmail.com> | 2018-04-07 18:53:31 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2018-04-07 18:53:31 +0200 |
commit | 6cef97b6e9ba6878607b1fff08e42ca19b79914f (patch) | |
tree | 4c74874da741a3a68ca707f0654e2559dca179b4 /not/Selector.lua | |
parent | 517625861535f76f1dcb992fff76d23fe4239f7c (diff) | |
download | roflnauts-6cef97b6e9ba6878607b1fff08e42ca19b79914f.zip roflnauts-6cef97b6e9ba6878607b1fff08e42ca19b79914f.tar.gz roflnauts-6cef97b6e9ba6878607b1fff08e42ca19b79914f.tar.bz2 |
Hopefully all uses of setColor now use values in <0,1> range
Diffstat (limited to 'not/Selector.lua')
-rw-r--r-- | not/Selector.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/not/Selector.lua b/not/Selector.lua index 5536b44..3a30834 100644 --- a/not/Selector.lua +++ b/not/Selector.lua @@ -134,9 +134,9 @@ function Selector:draw (scale) boxType = "active" end - love.graphics.setColor(255, 255, 255, 255) + love.graphics.setColor(1, 1, 1, 1) if not self:isUnique() then - love.graphics.setColor(120, 120, 120, 255) + love.graphics.setColor(.5, .5, .5, 1) end love.graphics.draw(self.atlas, self.quads[self:getShapeString()][boxType], x*scale, y*scale, 0, scale, scale) -- TODO: That is one way to draw icon for selected value. Find better one. See: `config/menus/host`. @@ -145,7 +145,7 @@ function Selector:draw (scale) love.graphics.draw(icon, (x+2)*scale, (y+3)*scale, 0, scale, scale) end - love.graphics.setColor(255, 255, 255, 255) + love.graphics.setColor(1, 1, 1, 1) if self.focused then local dy = (h-6)/2 |