Thread Tools Display Modes
09-18-11, 02:01 PM   #1
wellbeing
A Cliff Giant
Join Date: Oct 2009
Posts: 71
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
  Reply With Quote
09-18-11, 02:10 PM   #2
ALZA
A Deviate Faerie Dragon
 
ALZA's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 19
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.
  Reply With Quote
09-18-11, 02:16 PM   #3
wellbeing
A Cliff Giant
Join Date: Oct 2009
Posts: 71
Perfect. This actually explains A lot. TYVM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » region:show() on blizzard frame - problem

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