View Single Post
01-12-24, 01:12 PM   #6
jlrm365
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 113
Originally Posted by Fizzlemizz View Post
Xrystal is indeed correct. Lua is case sensitive but my brain sometimes refuses to accept it. Apologies.

Fixed the code in my original post for future travelers.
Much appreciated.

Code:
There still appears to be something missing, however.

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")
That's what I have now. NB small "h".

Loading up all of my addons, I still saw the little numbered button I want to hide. Something wasn't working.

Steps taken:
  • All addons removed, except the addons in that list (indicated by the button), in case something else was conflicting.
  • Loading just those up, the button still showed.
  • Removed all but one of that smaller list of addons (so then just loading this addon (in this thread) and one other). The button still showed.
  • Tried again, with another random addon (just this one and the random addon), and the button still showed.

I can only assume something's missing, in the code above, but I am not yet educated enough to spot it.
  Reply With Quote