Quote:
Originally Posted by callimuc
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 ...
}
}