diff options
| author | 1029chris <1029chris@gmail.com> | 2016-05-11 13:36:33 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-05-11 13:36:33 -0700 |
| commit | b12aafee92b40a16b61d30839beb8b68188659ea (patch) | |
| tree | 142d3595a23ec960b110f6820ec55dfbdafee514 /window.lua | |
| parent | 9d07c35aa001b3994591b33ab54de3271b5637b0 (diff) | |
Many different tweaks
Added files gui
Tweaked fight
Added code for window shadow (but it isnt enabled)
Diffstat (limited to 'window.lua')
| -rw-r--r-- | window.lua | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -22,6 +22,8 @@ function drawWindow(id) drawInternet() elseif id == 6 then drawSettings() + elseif id == 3 then + drawFiles() end love.graphics.setCanvas() win[id].update = false @@ -88,6 +90,16 @@ function drawWindow(id) windowMouseMove(id,0,sys.w-win[id].w,0,sys.h-win[id].h-panel.thick-1) end end + if win[id].x > sys.w-win[id].w then + win[id].x = sys.w-win[id].w + elseif win[id].x < 0 then + win[id].x = 0 + end + if win[id].y > sys.h-win[id].h then + win[id].y = sys.h-win[id].h + elseif win[id].y < 0 then + win[id].y = 0 + end if v1.yes == true and id ~= 2 and win[id].ex == false and v1.timer >= 4 and v1.c.chat.msgs < 7 then win[id].ex = true end |
