• Panel Paint Overwrite
    2 replies, posted
Okay so, I have a panel painted that has a dynamic overlay of colors if a certain event happens. However, I want multiple of these panels, so I'd have to do panel.paint = function on each to add unique text/boxes and such. Is it possible to keep drawing the default paint function, then draw on top of that?
Yes, certainly. [lua]panel.oldpaint = panel.paint panel.paint = function( ) panel.oldpaint( ) -- Draw your stuff end[/lua]
Sorry to say, but that doesn't work. Because I'm using self as a variable in the panel's coding =[ So it's getting an index error for self.
Sorry, you need to Log In to post a reply to this thread.