diff options
| -rw-r--r-- | assets.lua | 3 | ||||
| -rw-r--r-- | assets/icon_16_document.png | bin | 0 -> 244 bytes | |||
| -rw-r--r-- | var.lua | 4 | ||||
| -rw-r--r-- | viewer.lua | 9 | ||||
| -rw-r--r-- | window.lua | 2 |
5 files changed, 17 insertions, 1 deletions
@@ -21,7 +21,8 @@ function loadAssets(id) antivirus = love.graphics.newImage("assets/icon_16_antivirus.png"), image = love.graphics.newImage("assets/icon_16_image.png"), video = love.graphics.newImage("assets/icon_16_video.png"), - music = love.graphics.newImage("assets/icon_16_music.png") + music = love.graphics.newImage("assets/icon_16_music.png"), + document = love.graphics.newImage("assets/icon_16_document.png") } end if id == 3 then diff --git a/assets/icon_16_document.png b/assets/icon_16_document.png Binary files differnew file mode 100644 index 0000000..2d0c6bb --- /dev/null +++ b/assets/icon_16_document.png @@ -61,6 +61,7 @@ function loadVar() loadWin(7, 400, 400, "Image Viewer", nil, icons[16].image) loadWin(8, 400, 300, "Video Player", nil, icons[16].video) loadWin(9, 250, 150, "Music Player", nil, icons[16].music) + loadWin(10, 350, 500, "Document Viewer", nil, icons[16].document) win[4].crazy = false win[4].crazyLeft = false win[4].crazyUp = false @@ -265,6 +266,9 @@ function loadVar() file.p = false file.back = false picture.img = 0 + doc = {} + doc.doc = "" + loadDocuments() mplay = {} mplay.volx = 232 mplay.volpx = mplay.volx @@ -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 @@ -32,6 +32,8 @@ function drawWindow(id) drawMusic() elseif id == 8 then drawVideo() + elseif id == 10 then + drawDocuments() end love.graphics.setCanvas() win[id].update = false |
