Quantcast How to get hidden frames? - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-23-19, 09:33 AM   #1
Lybrial
A Wyrmkin Dreamwalker
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 56
How to get hidden frames?

I want to manipulate a hidden frame from BigWigs - the BigWigsAnchor.
Here is the code on their github:

BigWigs/Bars.lua

As you can see there at the end they do display:Hide(). I guess this is the
reason why I cannot get the frame:

Code:
local count = GetNumAddOns();
	
for i = 1, count do
	local name = GetAddOnInfo(i);
	
	if (IsAddOnLoaded(i) and (name == "BigWigs")) then
		-- BigWigs is loaded
                local frame = _G["BigWigsAnchor"];

                if (frame) then
                    -- do stuff
                else
                    print("BigWigsAnchor does not exist");
                end
	end
end

Is there a way to also get and manipulate hidden frames? Or could there be another reason why BigWigsAnchor is always nil?

Last edited by Lybrial : 06-23-19 at 09:35 AM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » How to get hidden frames?

Thread Tools
Display Modes

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