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(); Is there a way to also get and manipulate hidden frames? Or could there be another reason why BigWigsAnchor is always nil? |
I don't know BigWigs but that code tells me it is marked as Load On Demand (LOD).
If you open it's .TOC file you should see and entry: Code:
## LoadOnDemand: 1 You have two choices, 1. Wait for an "ADDON_LOADED" event where the first payload parameter (the addons name for this event) is "BigWigs" and then do what you need to do, 2. Test if the addon is loaded and if not, load it yourself using Code:
if not IsAddOnLoaded("BigWigs") |
Thx, did not know about load on demand.
Have to think of something to work with that. Thanks. |
Lua Code:
|
Yeah. The Problem ist Not the Code. I Neef to think about If it makes sense to load the addons I need or if I can find a better solution.
Here a small Video of what im working on: https://m.youtube.com/watch?v=9N0dxKoV8Qg It will be possible to move all the anchors. Currently it is already working for Grid2, Hekili, Raven and my own unit frames. The LOD makes it Harder. |
The code was to show how your addon might not do anything about adding frames for BigWigs until BigWigs loads and then at that time add whatever you need.
You could also create a second addon (addon folder with it's own .TOC) and mark it to Load With BigWigs. |
Yes, but this would not work for my configuration mode. In my AddOn
you can press a button "Toggle Anchors" which will create and toggle frame overlays which show all the positions and names of all anchors, makes them moveable and resizable. You would not be able to configure BigWigs position and size outside of dungeons, where BigWigs is loaded. So for the configuration mode I would anyway need to load BigWigs if it is not yet loaded. |
Quote:
|
Doesn't BigWigs have a config mode?
|
All times are GMT -6. The time now is 05:41 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI