| Programmer |
08-12-2008 03:55 PM |
GuiDrawingPanel Dynamic Name Problem
GuiDrawingPanel seems to have a problem when trying to create a variable using this method:
PHP Code:
new GuiDrawingPanel("Foo_" @ temp.var)
{
// foo, bar and ... you guessed it ... baz.
}
When trying to access functions such as drawimage(), it fails. It works fine with a static name.
Reproduction Code:
PHP Code:
new GuiDrawingPanel("EDITOR_" @ temp.num)
{
x = y = 0;
clearall();
drawimage(0, 0, gettileset());
}
Anyone else able to reproduce this?
|