Skip to main content
Made question more accurate
Source Link
maknel
  • 101
  • 2

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!

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. In game, if I enter /run MainMenuBarArtFrame.LeftEndCap:Hide(), /run MainMenuBarArtFrame.RightEndCap:Hide(), or /run StoreMicroButton:Hide() into the chat, the respective UI frame will be hidden. Why will the script not hide these elements? How can I fix it? Thanks!

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 micro button for the shop will not go away. In game, if I enter /run StoreMicroButton:Hide() into the chat, the button will be hidden. Why will the script not hide this element? How can I fix it? Thanks!

Fixed typo in code
Source Link
maknel
  • 101
  • 2

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()A
chievementMicroButtonAchievementMicroButton: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. In game, if I enter /run MainMenuBarArtFrame.LeftEndCap:Hide(), /run MainMenuBarArtFrame.RightEndCap:Hide(), or /run StoreMicroButton:Hide() into the chat, the respective UI frame will be hidden. Why will the script not hide these elements? How can I fix it? Thanks!

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()A
chievementMicroButton: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. In game, if I enter /run MainMenuBarArtFrame.LeftEndCap:Hide(), /run MainMenuBarArtFrame.RightEndCap:Hide(), or /run StoreMicroButton:Hide() into the chat, the respective UI frame will be hidden. Why will the script not hide these elements? How can I fix it? Thanks!

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. In game, if I enter /run MainMenuBarArtFrame.LeftEndCap:Hide(), /run MainMenuBarArtFrame.RightEndCap:Hide(), or /run StoreMicroButton:Hide() into the chat, the respective UI frame will be hidden. Why will the script not hide these elements? How can I fix it? Thanks!

Source Link
maknel
  • 101
  • 2

Hiding World of Warcraft UI Elements with Lua

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()A
chievementMicroButton: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. In game, if I enter /run MainMenuBarArtFrame.LeftEndCap:Hide(), /run MainMenuBarArtFrame.RightEndCap:Hide(), or /run StoreMicroButton:Hide() into the chat, the respective UI frame will be hidden. Why will the script not hide these elements? How can I fix it? Thanks!