Thread: Gui Scripting
View Single Post
  #5  
Old 08-18-2006, 04:31 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by killerogue
Ok. Now I've gotten very far with this GUI script with help from Warcaptain, Master Storm and Kaidenn. But everytime I set the GUIButtonProfile. My menu gets messed up.

PHP Code:
//#CLIENTSIDE
function onCreated(){
  
addGUIControls();
}

function 
addGUIControls(){
  new 
GuiWindowCtrl("SH_Information"){
    
profile "GuiWindowProfile";
    
extent "450 300";
    
position "100 100";
    
canmaximize 1;
    
canminizmize 0;
    
canclose 1;
  new 
GUIButtonCtrl("News"){
  
profile "GuiButtonProfile";
  
extent "400 300";
  
position "45 45";
   }
  }
  new 
GUITabCtrl(Hirings_Tab){
  }
  new 
GUIScrollCtrl(){
  
profile "GuiScrollProfile";
  }
  
GraalControl.addControl(Blah);

Not sure if it's case sensative or not, but it should be GuiButtonCtrl, GuiTabCtrl, etc.

Also, you are not setting any properties of your tab, and where is 'Blah' defined?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote