Quote:
Originally Posted by Pelikano
Controls are only added to GraalControl by default if you do:
PHP Code:
new GuiShowImgCtrl("SomeImg") {
x = 50;
y = 50;
width = 71;
height = 96;
image = "era_sam_hiddencard.png";
visible = true;
}
But, if you do it like the OP and create a GuiShowImgCtrl object first, then set it's attributes you have to add it to GraalControl manually:
PHP Code:
temp.guiImage = new GuiShowImgCtrl("SomeImg");
guiImage.x = 50;
guiImage.y = 50;
guiImage.width = 71;
guiImage.height = 96;
guiImage.image = "era_sam_hiddencard.png";
guiImage.visible = true;
// Will not show!
|
nothing at all, same thing