Disable releaseUITextures cvar
This is kind of a follow-up to this thread: GetTexture() returns nil on unloaded textures
I've been trying to update LargerMacroIconSelection for the Equipment Manager icons too, but you have to show the parent frame(s) first in order to get the textures
* I haven't yet checked into setting it up once the GearManagerDialogPopup is actually being shown, instead of at player login. Maybe that will also work... |
Quote:
But I honestly wonder if it's considered acceptable to just disable releaseUITextures Completely useless snippet: Lua Code:
|
imho addons should not change any cvar unless the purpose of the addon is to change those settings (turning something on/off) or a feature absolutely requires it (such as scriptProfile).
When addons take it upon themselves to tweak underlying console settings, it can affect the behavior of the UI or other addons that aren't related. Maybe that's an intended effect and in that case it's okay. Otherwsie imho it's better to exhaust all possible alternatives first, even if it means a little extra code to avoid taking a shortcut through the user's system settings. Like in your situation as a last resort I would've just built a separate dialog to replace the default's; it would not be a great deal of code and it would be a lot kinder to the user than tinkering with their system settings. It's also neat and tidy when all traces of an addon are gone when an addon is disabled. It's messy when there's lingering stuff left over. And for this new cvar, which is not really related to the addon's purpose, the user would've likely forgetten all about that dialog asking about the cvar and it'd still be disabled for them for many years afterwards. Another workaround for not being able to rely on GetTexture is to hook the SetTexture method on the texture. |
Quote:
Okay, I understand it can be a pain to find out why suddenly a cvar had changed after using some addon. Will try to keep my hands off that cvar and work around it |
fixed my EMS for legion, and also came up with hooking:OnShow
|
Note that releaseUITextures was removed in a recent beta build and defaults to "on".
The bug that caused texture filenames to not be returned on hidden textures has however been fixed, and that informaiton is now always available. |
All times are GMT -6. The time now is 02:13 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI