View Single Post
  #18  
Old 01-25-2012, 11:11 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by Pelikano View Post
Controls are only added to GraalControl by default if you do:

PHP Code:
  new GuiShowImgCtrl("SomeImg") {
    
50;
    
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.50;
  
guiImage.50;
  
guiImage.width 71;
  
guiImage.height 96;
  
guiImage.image "era_sam_hiddencard.png";
  
guiImage.visible true;
  
// Will not show! 
Test it yourself. I'd be very grateful if you'd stop being totally arrogant and obviously you are the one who has no idea in this case.
The first case will create a new GuiControl and assign it to a global variable called SomeImg.
In the second case, you're creating a new GuiControl and just assigning it to a temporary variable.

I don't have RC anywhere and haven't tried anything (so I'm not saying you're wrong), but both cases are just creating a new object. It seems silly that the two cases would be treated differently...
__________________
Reply With Quote