summaryrefslogtreecommitdiffhomepage
path: root/not/Selector.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2018-04-08 15:20:58 +0200
committerAki <nthirtyone@gmail.com>2018-04-08 15:20:58 +0200
commitea62ce8ec8ae07ff6d421b4146d2503ef0f67574 (patch)
treeb0adc2b1735d103e55aed7bdd0c462b2ea5e359f /not/Selector.lua
parent08271656cbe18fbc4432fc758ac42750e818da84 (diff)
parent290d75dceb905217cb67fcb32e95dbeb45e27e3c (diff)
downloadroflnauts-ea62ce8ec8ae07ff6d421b4146d2503ef0f67574.zip
roflnauts-ea62ce8ec8ae07ff6d421b4146d2503ef0f67574.tar.gz
roflnauts-ea62ce8ec8ae07ff6d421b4146d2503ef0f67574.tar.bz2
Merge branch 'love-11.0' into control
Diffstat (limited to 'not/Selector.lua')
-rw-r--r--not/Selector.lua6
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