![]() |
useOwnProfile taking over default?
When changing a GuiContextMenuCtrl textprofile's font size, color, and style via useownprofile, when right clicking on the accounts in the in-game playerlist and viewing player profiles, those attributes carry over. How do I limit this to only the GuiContextMenuCtrl I've created? Here's a snippet of what I've done; maybe I'm just doing it incorrectly?
PHP Code:
|
I always put useownprofile = true; under the profile you're working with, and that always works for me.
PHP Code:
|
Emera, I was thinking that the order might have been a problem as well. I believe, however, that the problem lies within the fact that GuiContextMenuCtrl objects (can) use two different profiles. 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.
|
Quote:
textprofile.profile = "nameofprofile"; textprofile.useOwnProfile = true; |
Quote:
|
Quote:
|
OP's problem with useOwnProfile taking over the defaults is indeed caused by the ordering of useOwnProfile.
Quote:
PHP Code:
Quote:
textprofile and scrollprofile are the profile objects the control is using. PHP Code:
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 07:20 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.