View Single Post
01-12-24, 02:01 PM   #7
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,892
The Blizzard UI with the exception of LOD addons is loaded before 3rd party addons which means yoiu don't need to create a frame and wait for an event to do what you are wanting.

That asside, I was obviously having a bad day yesterday, OnShow won't fire until after a frame has been hidden in order to actually Show.

This would be your entire addon:
Lua Code:
  1. AddonCompartmentFrame:SetScript("OnShow", function(self)
  2.     self:Hide()
  3. end)
  4. AddonCompartmentFrame:Hide()
  5. ExpansionLandingPageMinimapButton:SetScript("OnShow", function(self)
  6.     self:Hide()
  7. end)
  8. ExpansionLandingPageMinimapButton:Hide()

Added the OnShow/Hide for ExpansionLandingPageMinimapButton (for characters leveling into an expansion where it becomes available)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote