I am going to build a GUIBuilder, I have some pretty awesome ideas for it. But I'm stuck and that has to due with Object Oriented Programming. Here is the code:
–[[ Link removed, I want to make the progress secret, now it has been fixed! :P/> ]]
I created this specific function:
function scrollBox:drawBox()
paintutils.drawLine( self.xMin, self.yMin, self.xMax, self.yMin, self.colour_out )
paintutils.drawLine( self.xMin, self.yMin, self.xMax, self.yMax, self.colour_out )
paintutils.drawLine( self.xMin, self.yMin, self.xMin, self.yMax, self.colour_out )
paintutils.drawLine( self.xMax, self.yMin, self.xMax, self.yMax, self.colour_out )
-- stub
end
But when I try to call that method on line 152, it attempts to call nil. But the thing is, it is almost the same as the frame function, but the difference is the table. It is a very odd error to happen there, maybe it is some sort of bug ( I suppose not, but it might be.. )
I have no idea what's causing it, and thats why I came here for help.
Thank you for reading, and/or helping me!