There is a bug with the drawobject() function for drawing panels. If you define your own object it won't draw it outside of the top 64x64 pixels of the panel. The clearall() function also doesn't seem to be working either.
Using the following code:
NPC Code:
//#CLIENTSIDE
function onCreated(){
new GuiDrawingPanel("Test_DrawingPanel") {
x=0;
y=0;
width=screenwidth;
height=screenheight;
}
with(findimg(200)){
ani="idle";
}
setTimer(0.05);
}
function onTimeout(){
setTimer(0.05);
with("Test_DrawingPanel"){
clearall();
drawobject(mousescreenx,mousescreeny,findimg(200)) ;
}
}
leaves me with this mess:
It won't clear the panel, and the coordinates reset to 0 every time they pass 64 pixels.