Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-29-16, 01:39 PM   #1
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
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
  • At first I tried showing and hiding it, but then it would give an error
    Lua Code:
    1. CharacterFrame:Show()
    2. GearManagerDialogPopup:Show()
    3.  
    4. for _, child in ipairs(regions) do
    5.     if child.GetTexture then
    6.         if child:GetTexture() == "Interface\\MacroFrame\\MacroPopup-TopLeft.blp" then
    7.             -- dostuff
    8.         end
    9.     end
    10. end
    11.  
    12. CharacterFrame:Hide()
    13. GearManagerDialogPopup:Hide()
    Code:
    Message: ..\FrameXML\CharacterFrame.lua line 191:
       attempt to perform arithmetic on a nil value
    _
  • Then I tried ToggleCharacter("PaperDollFrame"), but it would throw errors on login

    Lua Code:
    1. ToggleCharacter("PaperDollFrame")
    2. GearManagerDialogPopup:Show()
    3.  
    4. for _, child in ipairs(regions) do
    5.     if child.GetTexture then
    6.         if child:GetTexture() == "Interface\\MacroFrame\\MacroPopup-TopLeft.blp" then
    7.             -- dostuff
    8.         end
    9.     end
    10. end
    11.  
    12. ToggleCharacter("PaperDollFrame")
    13. GearManagerDialogPopup:Hide()
    Code:
    Message: ..\FrameXML\PaperDollFrame.lua line 1727:
       Usage: GetSpecializationRole(specIndex[, isInspect[, isPet]])
    _
  • Now that I fail to work around it, my last resort is to just disable the releaseUITextures CVar
    But since Blizzard wants UI textures to be freed up when not visible, can I get away with doing that?

    Would the increase in memory (or any performance hit) be significant?
    Lua Code:
    1. if GetCVar("releaseUITextures") == "1" then
    2.     SetCVar("releaseUITextures", 0)
    3.     -- ask the user if they want to do a /reload
    4.     -- for releaseUITextures to be properly disabled, so we can grab our textures
    5. end

* 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...
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » Disable releaseUITextures cvar


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off