View Single Post
  #5  
Old 08-08-2010, 01:42 AM
xMane xMane is offline
NPC-Server (Server)
xMane's Avatar
Join Date: May 2010
Posts: 59
xMane is on a distinguished road
Quote:
Originally Posted by fowlplay4 View Post
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
createProfiles();
}

function 
createProfiles() {
  new 
GuiButtonProfile("MyButtonProfile") {
    
fontsize 20;
  }
}

function 
createButton() {
  
// With Profile
  
new GuiButtonCtrl("RandomButton") {
    
100;
    
text "Hello";
    
profile "MyButtonProfile";
  }
  
// Without Profile
  
new GuiButtonCtrl("RandomButton2") {
    
200;
    
text "Hello";
  }

You simply just add the one profile line to the GUI object, and it creates it with the inherited profile values. In this example it inherits MyButtonProfile's values
OOHHH! oops x.x my bad guys. i thou when u do

new GuiButtonProfile("MyButtonProfile") {
fontsize = 20;
}
it would create a button x.x xD well im wrong w/e
alssoooo how do i change the chatbar image?
Reply With Quote