Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   GuiDrawingPanel Dynamic Name Problem (https://forums.graalonline.com/forums/showthread.php?t=81185)

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)
{
  
0;
  
  
clearall();
  
drawimage(00gettileset());


Anyone else able to reproduce this?

zokemon 08-12-2008 05:34 PM

I've used dynamic naming for drawing panels many times. How are you calling drawimage()?

Programmer 08-12-2008 08:36 PM

Quote:

Originally Posted by zokemon (Post 1413653)
I've used dynamic naming for drawing panels many times. How are you calling drawimage()?

The reproduction code in that post is what I'm using. It does not work.


All times are GMT +2. The time now is 02:05 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.