Originally Posted by p3lim
Try this:
Lua Code:
local Parent = CreateFrame('Frame', nil, UIParent, 'SecureHandlerStateTemplate') RegisterStateDriver(Parent, 'visibility', 'hide') MainActionBar:SetParent(Parent) MultiBarBottomLeft:SetParent(Parent)
|
Thanks, I tried your code (with all other addons disabled) but it did nothing.
Originally Posted by Game92
Here's a code of mine!
Lua Code:
local ActionBars = CreateFrame("Frame") local HiderPanel = CreateFrame("Frame", "AHiderPanel", UIParent) HiderPanel:Hide() local _G = _G local MainMenuBar, MainMenuBarArtFrame = _G["MainMenuBar"], _G["MainMenuBarArtFrame"] local OverrideActionBar = _G["OverrideActionBar"] local PossessBarFrame = _G["PossessBarFrame"] local PetActionBarFrame = _G["PetActionBarFrame"] local ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight = _G["ShapeshiftBarLeft"], _G["ShapeshiftBarMiddle"], _G["ShapeshiftBarRight"] local Frames = { MainMenuBar, MainMenuBarArtFrame, OverrideActionBar, PossessBarFrame, PetActionBarFrame, IconIntroTracker, ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight, TalentMicroButtonAlert, CollectionsMicroButtonAlert, EJMicroButtonAlert } function ActionBars:DisableBlizzard() for _, BlizzActionBarsArt in pairs(Frames) do BlizzActionBarsArt:UnregisterAllEvents() BlizzActionBarsArt.ignoreFramePositionManager = true BlizzActionBarsArt:SetParent(AHiderPanel) end end ActionBars:RegisterEvent("PLAYER_LOGIN") ActionBars:RegisterEvent("PLAYER_ENTERING_WORLD") ActionBars:RegisterEvent("ADDON_LOADED") ActionBars:SetScript("OnEvent", function(self, event, AddOn) ActionBars:DisableBlizzard() 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.