diff options
author | Aki <nthirtyone@gmail.com> | 2018-04-09 21:30:11 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2018-04-09 21:30:11 +0200 |
commit | fa4409cedb322bbd41722f22308f399979fc6676 (patch) | |
tree | a7cc4725b003c1932ad88f4fce8548d43605bf9b /not/Selector.lua | |
parent | 96f6ebdaf06650a35dcdb6a1fc3f472b3aab6d8a (diff) | |
parent | 290d75dceb905217cb67fcb32e95dbeb45e27e3c (diff) | |
download | roflnauts-fa4409cedb322bbd41722f22308f399979fc6676.zip roflnauts-fa4409cedb322bbd41722f22308f399979fc6676.tar.gz roflnauts-fa4409cedb322bbd41722f22308f399979fc6676.tar.bz2 |
Love2D version 0.10.2 -> 11.0
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 |