aboutsummaryrefslogtreecommitdiff
path: root/window.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-04-06 13:23:43 -0700
committer1029chris <1029chris@gmail.com>2016-04-06 13:23:43 -0700
commitbd692e7749f8158319a7c3ed76d82a2abeee2710 (patch)
tree22bab072a86692f7d2aacee0138995666d10973b /window.lua
parent57cdeef25a4173db10385d0947d3d23ac248ba25 (diff)
Polished intro animation (more needs to be done)
Other windows close when virus starts. Changed shine look
Diffstat (limited to 'window.lua')
-rw-r--r--window.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/window.lua b/window.lua
index fff8d8f..4350b76 100644
--- a/window.lua
+++ b/window.lua
@@ -84,7 +84,7 @@ function drawWindow(id)
win[id].y = win[id].py + (sys.mouse.y - sys.mouse.p.y)
end
if (sys.mouse.p.p == true and sys.mouse.p.x >= win[id].x+win[id].w-22 and sys.mouse.p.x <= (win[id].x+win[id].w-22)+16 and win[id].ex == false
- and sys.mouse.drag == false and sys.mouse.p.y >= win[id].y+5 and sys.mouse.p.y <= (win[id].y+5)+16 and win[id].hover == true) then
+ and sys.mouse.drag == false and sys.mouse.p.y >= win[id].y+5 and sys.mouse.p.y <= (win[id].y+5)+16 and win[id].hover == true) and v1.yes == false then
win[id].ex = true
end
if win[id].ex == true and win[id].s ~= 0 then
@@ -99,9 +99,12 @@ function drawWindow(id)
end
if (win[id].min == false and sys.mouse.p.p == true and sys.mouse.p.x >= win[id].x+win[id].w-40
and sys.mouse.p.x <= (win[id].x+win[id].w-40)+16 and sys.mouse.drag == false and sys.mouse.p.y >= win[id].y+5
- and sys.mouse.p.y <= (win[id].y+5)+16 and win[id].hover == true) then
+ and sys.mouse.p.y <= (win[id].y+5)+16 and win[id].hover == true) and v1.yes == false then
win[id].min = true
end
+ if v1.yes == true and id ~= 2 and win[id].ex == false then
+ win[id].ex = true
+ end
if win[id].min == true and win[id].miny < minim then
win[id].y = win[id].y + 150
win[id].miny = win[id].miny + 150