I'm tyring to make a very simple WoW addon that hides the gryphons on either side of the main menu bar and hides the micro buttons in the lower right. The addon has one Lua script, main.lua:
-- main.lua
MainMenuBarArtFrame.LeftEndCap:Hide()
MainMenuBarArtFrame.RightEndCap:Hide()
MicroButtonAndBagsBar:Hide()
CharacterMicroButton:Hide()
SpellbookMicroButton:Hide()
TalentMicroButton:Hide()
AchievementMicroButton:Hide()
QuestLogMicroButton:Hide()
GuildMicroButton:Hide()
LFDMicroButton:Hide()
CollectionsMicroButton:Hide()
StoreMicroButton:Hide()
EJMicroButton:Hide()
MainMenuMicroButton:Hide()
This works perfectly, except the gryphons will not go away, and neither will the micro button for the shop will not go away. In game, if I enter /run MainMenuBarArtFrame.LeftEndCap:Hide(), /run MainMenuBarArtFrame.RightEndCap:Hide(), or /run StoreMicroButton:Hide() into the chat, the respective UI framebutton will be hidden. Why will the script not hide these elementsthis element? How can I fix it? Thanks!