diff options
| author | 1029chris <1029chris@gmail.com> | 2016-06-10 12:45:11 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-06-10 12:45:11 -0700 |
| commit | c770c88f981ec37a0db43ef8f6427d60c019b52f (patch) | |
| tree | 04fdf8e8209314e24ddcbe1299774e40811e7e5f /window.lua | |
| parent | eb4a05cdae76b1f7a01ea96821e8f13564f4d11c (diff) | |
Finished video player
Diffstat (limited to 'window.lua')
| -rw-r--r-- | window.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -121,14 +121,14 @@ function drawWindow(id) win[id].ex = true end if win[id].ex == true and win[id].s ~= 0 then - win[id].s = win[id].s - 0.2 + win[id].s = win[id].s - 0.2*sys.s elseif win[id].ex == false and win[id].s ~= 0 then - win[id].s = win[id].s + 0.2 + win[id].s = win[id].s + 0.2*sys.s end - if win[id].s <= 0 then - win[id].s = 0 - elseif win[id].s >= 1 then + if win[id].s > 1 then win[id].s = 1 + elseif win[id].s < 0 then + win[id].s = 0 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 |
