View Single Post
  #7  
Old 07-26-2012, 02:54 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
OP's problem with useOwnProfile taking over the defaults is indeed caused by the ordering of useOwnProfile.

Quote:
Originally Posted by Crow View Post
I don't think useOwnProfile applies to the textprofile at all. I guess you might be better off creating your own profile for this purpose, maybe inheriting the one you wanted to use originally. Profile inheritance should be possible somehow, I just can't remember how to do it, sorry.
You could probably do something like... (edit: tested, this does work)

PHP Code:
textprofile = new GuiBlueTextListProfile();
textprofile.fontColor = {25500}; 
or just make your own profile the normal way (you can do new GuiBlueTextListProfile("MyProfile") instead of new GuiControlProfile("MyProfile") for inheritence).

Quote:
Originally Posted by xXziroXx View Post
Pretty sure you can do...

textprofile.profile = "nameofprofile";
textprofile.useOwnProfile = true;
Please don't put profile names in quotes. They're objects, not strings. useOwnProfile is a property of a GUI control, not of a profile (that wouldn't make sense since profiles are shared, hence why unique ones are necessary to make changes for a certain object).

textprofile and scrollprofile are the profile objects the control is using.

PHP Code:
profile GuiBlueContextMenuProfile;
textprofile GuiBlueTextListProfile;
scrollprofile GuiBlueScrollProfile
Quote:
Originally Posted by Emera View Post
I never knew you could use useownprofile for specific profiles like that.
You can't.
__________________
Reply With Quote