diff options
| author | 1029chris <1029chris@gmail.com> | 2016-04-06 13:23:43 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-04-06 13:23:43 -0700 |
| commit | bd692e7749f8158319a7c3ed76d82a2abeee2710 (patch) | |
| tree | 22bab072a86692f7d2aacee0138995666d10973b /window.lua | |
| parent | 57cdeef25a4173db10385d0947d3d23ac248ba25 (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.lua | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |
