WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   region:show() on blizzard frame - problem (https://www.wowinterface.com/forums/showthread.php?t=41454)

wellbeing 09-18-11 02:01 PM

region:show() on blizzard frame - problem
 
Consider:

Code:

MacroFrame:Show()
This script obviously works fine after you've opened the macro frame once before.

The problem is that initialization. On a fresh reload, the same code generates an error: MacroFrame is nil.

How can I open the macro frame once from my code so that show() and hide() will work on the frame?

I'm sure that this is a commonly known dynamic, and I truly did search the forum for a solution. A search for show() returned 16 pages. I went through them and found no help. I apologize if this is an abuse of forum participant's time, but any reply would be appreciated.

WB

ALZA 09-18-11 02:10 PM

Here is the list of default WoW addons: https://github.com/tekkub/wow-ui-sou...ee/live/AddOns. As you see in .toc file, Blizzard_MacroUI is LoadOnDemand addon. That means MacroFrame is created on demand. You can load it manually or use ShowMacroFrame() function.

wellbeing 09-18-11 02:16 PM

Perfect. This actually explains A lot. TYVM.


All times are GMT -6. The time now is 03:17 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI