View Single Post
  #6  
Old 06-27-2011, 09:09 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by callimuc View Post
Oh ok. I thought its useless since i made useOwnProfile = true;
Nope, it provides the base and makes it easier for you to extend profiles in the long run since you won't have to redefine variables that would already be set in an existing profile.

You can also make your own profiles so you don't have to use 'useownprofile' in every button you make. I.e:

Weapon: -Profiles

PHP Code:
//#CLIENTSIDE
function onCreated() {
  new 
GuiButtonProfile("MyServerButtonProfile") {
    
bitmap "someotherbitmap";
    
fontcolor "255 0 0"// Actual values may vary
  
}

Example Weapon:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  new 
GuiButtonCtrl("MyButton") {
    
profile MyServerButtonProfile;
    
// other variables ...
  
}

__________________
Quote:
Reply With Quote