Posted 27 November 2014 - 06:21 PM
Right now I'm working on an OS for cc, and I want to include a dock similar to what Pear OS offers. I've written the following code to draw the icons onto the dock and it keeps returning an error.
^ That's the Function I call to draw the icons, but after it is called it returns the following eror:
Also, line 38 is "paintutils.drawImage (ink, 10, 17)"
function loadDockIcons ()
local pnt = paintutils.loadImage ("/Falchion/Res/Prg/paint.nfp")
local qst = paintutils.loadImage ("/Falchion/Res/Prg/quest.nfp")
local ink = paintutils.loadImage ("/Falchion/Res/Prg/ink.nfp")
paintutils.drawImage (pnt, 5, 17)
paintutils.drawImage (ink, 10, 17)
paintutils.drawImage (qst, 15, 17)
^ That's the Function I call to draw the icons, but after it is called it returns the following eror:
gui.FSA:38: Expected image, x, y
Also, line 38 is "paintutils.drawImage (ink, 10, 17)"
Edited on 27 November 2014 - 06:34 PM