aboutsummaryrefslogtreecommitdiff
path: root/viewer.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-07-21 22:52:23 -0700
committer1029chris <1029chris@gmail.com>2016-07-21 22:52:23 -0700
commit6201455b32dee57659bc8bb0f0fc4aff6f34c081 (patch)
tree544bcaf0fa1da6b51aab322f063daaf1c09c11fb /viewer.lua
parentf540792f1148dcd900d7f2afdcfcea2426bc3dee (diff)
Added Document viewer
Diffstat (limited to 'viewer.lua')
-rw-r--r--viewer.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/viewer.lua b/viewer.lua
index 26074ca..4e51729 100644
--- a/viewer.lua
+++ b/viewer.lua
@@ -1,3 +1,12 @@
+function drawDocuments()
+ drawDownBox(8, 31, win[10].w-17, win[10].h-40, 4)
+ love.graphics.setColor(256,256,256)
+ love.graphics.rectangle("fill", 8, 31, win[10].w-17, win[10].h-40)
+ love.graphics.setFont(pixeloperators)
+ love.graphics.setColor(colors.font.dark)
+ love.graphics.printf(doc.doc, 8+30, 31+30, win[10].w-17-60, "left")
+ love.graphics.setFont(pressstart)
+end
function drawPicture()
drawDownBox(8, 31, win[7].w-17, win[7].h-40, 4)
if picture.img ~= 0 then