aboutsummaryrefslogtreecommitdiff
path: root/antivirus.lua
diff options
context:
space:
mode:
authorChris B <1029chris@gmail.com>2016-02-27 17:09:06 -0800
committerChris B <1029chris@gmail.com>2016-02-27 17:09:06 -0800
commita93e65a5b9fe4160c6180429f2e462b830a5dcf5 (patch)
treee716560b7e5478a01d222092ee9b4c8f7764a680 /antivirus.lua
parent5ad1db8d53e9240d007afa7aa70606f866b72378 (diff)
Redesigned many things, added color variables, added elements.lua
It looks closer to Windows 98 now.
Diffstat (limited to 'antivirus.lua')
-rw-r--r--antivirus.lua12
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