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()?
GarrisonLandingPageMinimapButton:SetAlpha(0);
This addition of SetAlpha(0) was done before trying your suggestion.
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
https://github.com/Gethe/wow-ui-source/blob/live/AddOns/Blizzard_GarrisonUI/Blizzard_GarrisonLandingPage.xml#L333
In your TOC you can make your addon loadondemand with, or dependent on the blizzard addon
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
In reply to Ketho17:
Thanks that worked. Also, the second line wasn't actually necessary. I appreciate the help.