From 061b4cff46dbbd429765db7f6120bf15cf2d98be Mon Sep 17 00:00:00 2001 From: ollo Date: Wed, 1 Mar 2017 22:04:17 +0100 Subject: [PATCH] More color --- displayword.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/displayword.lua b/displayword.lua index 211048e..3d12716 100644 --- a/displayword.lua +++ b/displayword.lua @@ -2,19 +2,19 @@ function updateColor(data) if (data.usedCharacters <= data.charsPerMinute) then - if (data.words.min1 == 1) then + if (data.words.min1 == 1 or data.words.min2 == 1 or data.words.min3 == 1 or data.words.min4 == 1) then return data.colorMin1 else return data.colorFg end elseif (data.usedCharacters <= data.charsPerMinute*2) then - if (data.words.min2 == 1) then + if (data.words.min2 == 1 or data.words.min3 == 1 or data.words.min4 == 1) then return data.colorMin2 else return data.colorFg end elseif (data.usedCharacters <= data.charsPerMinute*3) then - if (data.words.min3 == 1) then + if (data.words.min3 == 1 or data.words.min4 == 1) then return data.colorMin3 else return data.colorFg