Quantcast WoWInterface - View Single Post - How to get hidden frames?
View Single Post
06-23-19, 09:33 AM   #1
Lybrial
A Cliff Giant
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 77
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