View Single Post
01-12-24, 12:24 AM   #3
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
Originally Posted by Fizzlemizz View Post
The AddonCompartmentFrame's UpdateDisplay method has an explicit self:Show()

The initial UpdateDisplay happens in the PLAYER_ENTERING_WORLD event which runs after PLAYER_LOGIN.

It will do and additonal UpdateDisplay for each registerd addon including those that are Load-On-Demand (LOD) which can be loaded at any time during a session.

Try replacing AddonCompartmentFrame:Hide() with
Lua Code:
  1. AddonCompartmentFrame:HookScript("OnSHow", function(self)
  2.     self:Hide()
  3. end)

Unless I misunderstood, this is what I ended up with:

Code:
local f = CreateFrame("Frame")
f:SetScript("OnEvent",function(self,event,...)
  AddonCompartmentFrame:HookScript("OnSHow", function(self)
      self:Hide()
  end)
  ExpansionLandingPageMinimapButton:Hide()
end)
f:RegisterEvent("PLAYER_LOGIN")
I still see the Numbered button / "AddOns" menu button.
Thanks for checking in, though.
  Reply With Quote