So I'm working on finalizing my actionbar addon "Bobbars" and for the most part it works. Unfortunately the MainMenuBar seems to extend farther off to the right than that I want even when I'm hiding it.
I'm guessing it's because I'm hiding "MainMenuBarTexture" because everytime I go to hide "MainMenuArtFrame" the entire bar seems to go hide when I do that.
Here's my code so far
Code:
--[[CONFIG]]--
--MainBar (Bar 1)
local Bar1Scale = 0.8
local Bar1Point = "BOTTOM"
local Bar1X = 256
local Bar1Y = 0
--Bar 2 (Position is relative to Bar 1)
local Bar2X = 0
local Bar2Y = 6
--Bar 3 (Position is relative to Bar 1)
local Bar3X = 0
local Bar3Y = 4
--Cause the MainMenuBar wants to be special
local a = CreateFrame("Frame")
a:SetScript("OnEvent",function(self,event)
if event == "PLAYER_LOGIN" then
MainMenuBarLeftEndCap:Hide()
MainMenuBarRightEndCap:Hide()
MainMenuBarTexture0:Hide()
MainMenuBarTexture1:Hide()
MainMenuBarTexture2:Hide()
MainMenuBarTexture3:Hide()
MainMenuBar:SetScale(Bar1Scale)
MainMenuBar:ClearAllPoints()
MainMenuBar:SetPoint(Bar1Point,Bar1X,Bar1Y)
MainMenuBar.SetPoint = function() end
MultiBarBottomLeft:ClearAllPoints()
MultiBarBottomLeft:SetPoint("BOTTOMLEFT",ActionButton1,"TOPLEFT",Bar2X,Bar2Y)
MultiBarBottomLeft.SetPoint = function() end
MultiBarBottomRight:ClearAllPoints()
MultiBarBottomRight:SetPoint("BOTTOMLEFT",MultiBarBottomLeft,"TOPLEFT",Bar3X,Bar3Y)
MultiBarBottomRight.SetPoint = function() end
PetActionBarFrame:ClearAllPoints()
PetActionBarFrame:SetPoint("BOTTOM",MultiBarBottomRight,"TOP",0,6)
PetActionBarFrame.SetPoint = function() end
MainMenuMaxLevelBar0:Hide()
MainMenuMaxLevelBar1:Hide()
MainMenuMaxLevelBar2:Hide()
MainMenuMaxLevelBar3:Hide()
MainMenuBarBackpackButton:Hide()
CharacterBag0Slot:Hide()
CharacterBag1Slot:Hide()
CharacterBag2Slot:Hide()
CharacterBag3Slot:Hide()
MainMenuExpBar:ClearAllPoints()
MainMenuExpBar:SetPoint("TOPLEFT",UIParent,0,0)
MainMenuExpBar:SetScale(.8)
MainMenuExpBar:Hide()
StanceButton1:ClearAllPoints()
StanceButton1:SetPoint("TOPLEFT",UIParent,0,0)
end
end)
a:RegisterEvent("PLAYER_LOGIN")
a:RegisterEvent("PLAYER_ENTERING_WORLD")
a:RegisterEvent("ADDON_LOADED")
I know there's a way we can work with using RegisterStateDriver or soemthing liek that but I can't remember for the life of me.