diff options
Diffstat (limited to 'antivirus.lua')
| -rw-r--r-- | antivirus.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/antivirus.lua b/antivirus.lua index a518494..ebde1a2 100644 --- a/antivirus.lua +++ b/antivirus.lua @@ -1,13 +1,19 @@ function drawAntivirus() love.graphics.setColor(150,150,150) love.graphics.setLineWidth(2) - love.graphics.rectangle("line", 49, 110, 100, 19) - love.graphics.rectangle("line", 10, 40, 180, 30) + if antivirus.scanning == true then + drawDownBox(49, 110, 100, 19, 2) + else + drawUpBox(49, 110, 100, 19, 2) + end + drawDownBox(10, 40, 180, 30, 2) love.graphics.setColor(70,70,70) love.graphics.print("SCAN NOW", 51, 116) love.graphics.print(antivirus.status, 10, 77) love.graphics.setColor(0,0,120) - love.graphics.rectangle("fill", 13, 43, antivirus.prog, 24) + if antivirus.scanning == true then + drawBlueBox(13, 44, antivirus.prog, 22, 2) + end end function updateAntivirus() if (sys.mouse.p.p == true and win[4].hover == true and antivirus.scanning == false |
