View Single Post
06-02-17, 01:18 AM   #4
Eommus
An Aku'mai Servant
Join Date: Apr 2017
Posts: 34
Originally Posted by p3lim View Post
Try this:

Lua Code:
  1. local Parent = CreateFrame('Frame', nil, UIParent, 'SecureHandlerStateTemplate')
  2. RegisterStateDriver(Parent, 'visibility', 'hide')
  3.  
  4. MainActionBar:SetParent(Parent)
  5. MultiBarBottomLeft:SetParent(Parent)
Thanks, I tried your code (with all other addons disabled) but it did nothing.

Originally Posted by Game92 View Post
Here's a code of mine!

Lua Code:
  1. local ActionBars = CreateFrame("Frame")
  2.  
  3. local HiderPanel = CreateFrame("Frame", "AHiderPanel", UIParent)
  4. HiderPanel:Hide()
  5.  
  6. local _G = _G
  7. local MainMenuBar, MainMenuBarArtFrame = _G["MainMenuBar"], _G["MainMenuBarArtFrame"]
  8. local OverrideActionBar = _G["OverrideActionBar"]
  9. local PossessBarFrame = _G["PossessBarFrame"]
  10. local PetActionBarFrame = _G["PetActionBarFrame"]
  11. local ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight = _G["ShapeshiftBarLeft"], _G["ShapeshiftBarMiddle"], _G["ShapeshiftBarRight"]
  12.  
  13. local Frames = {
  14.     MainMenuBar, MainMenuBarArtFrame, OverrideActionBar,
  15.     PossessBarFrame, PetActionBarFrame, IconIntroTracker,
  16.     ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight,
  17.     TalentMicroButtonAlert, CollectionsMicroButtonAlert, EJMicroButtonAlert
  18. }
  19.  
  20. function ActionBars:DisableBlizzard()
  21.     for _, BlizzActionBarsArt in pairs(Frames) do
  22.         BlizzActionBarsArt:UnregisterAllEvents()
  23.         BlizzActionBarsArt.ignoreFramePositionManager = true
  24.         BlizzActionBarsArt:SetParent(AHiderPanel)
  25.     end
  26. end
  27.  
  28. ActionBars:RegisterEvent("PLAYER_LOGIN")
  29. ActionBars:RegisterEvent("PLAYER_ENTERING_WORLD")
  30. ActionBars:RegisterEvent("ADDON_LOADED")
  31.  
  32. ActionBars:SetScript("OnEvent", function(self, event, AddOn)
  33.     ActionBars:DisableBlizzard()
  34. end)
Thanks, your code hides also other actionbars such as Bottom Right Bar, Right Bar, Right Bar 2, as well as micro menu and some other parts of the action bar which I don't want to hide.

I only want to hide the 12-spells section of the main action bar, and the Bottom Left Bar, no other bars or interface elements.
  Reply With Quote