From a93e65a5b9fe4160c6180429f2e462b830a5dcf5 Mon Sep 17 00:00:00 2001 From: Chris B <1029chris@gmail.com> Date: Sat, 27 Feb 2016 17:09:06 -0800 Subject: Redesigned many things, added color variables, added elements.lua It looks closer to Windows 98 now. --- antivirus.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'antivirus.lua') 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 -- cgit