I made a toc and lua file and tested the lua file with this code:
and it works. It is able to hide the Objective Frame. I thought I would just try a new addon for hiding the Covenant Minimap Button:
This does not work.
But it does work as a macro.
In short why can't I just have a plain .lua file with:
It works fine when I do that with the ObjectiveTrackerFrame. And also why does it work as a macro but not in the lua file? Thanks for any assistance.
GarrisonLandingPage is part of a loadondemand addon
In your TOC you can make your addon loadondemand with, or dependent on the blizzard addon
## LoadOnDemand: 1
## LoadWith: Blizzard_GarrisonUI
Or you can load the blizzard addon from lua
Thanks for the help. I'm still actually confused though. I was able to set the alpha to 0 and hide it that way. That is not ideal, but it did work. Why does this work and not Hide()?
This addition of SetAlpha(0) was done before trying your suggestion.
Try something like
GarrisonLandingPageMinimapButton.Show = function() end
In reply to Ketho17:
Thanks that worked. Also, the second line wasn't actually necessary. I appreciate the help.