Hey,
first of all the Script:
Code:
local Frame = CreateFrame('Frame', nil, UIParent)
local function test()
local HiddenFrame = CreateFrame('Frame', nil, UIParent)
HiddenFrame:Hide()
MainMenuBar:SetParent(HiddenFrame)
local ActionbarFrame = CreateFrame('Frame', nil, UIParent)
ActionbarFrame:SetPoint("BOTTOM", UIParent, "BOTTOM")
ActionbarFrame:SetSize(50,50)
ActionbarFrame:Show()
local function move(frame,anchorPoint,relativeTo,relativePoint,xoff,yoff)
frame:ClearAllPoints()
frame:SetParent(ActionbarFrame)
frame:SetPoint(anchorPoint,relativeTo,relativePoint,xoff,yoff)
end
move(ActionButton1,"BOTTOM",ActionbarFrame,"BOTTOM",-220,20)
move(MultiBarBottomLeftButton1,"BOTTOMLEFT",ActionButton1,"TOPLEFT",0,6)
move(MultiBarBottomRightButton1,"BOTTOMLEFT",MultiBarBottomLeftButton1,"TOPLEFT",0,6)
for _,bar in pairs({"ActionButton","MultiBarBottomLeftButton","MultiBarBottomRightButton"}) do
for i=2,12 do
move(_G[bar..i],"LEFT",_G[bar..(i-1)],"RIGHT",4,0)
end
end
end
local function HandleEvents (self, event, ...)
if (event == 'PLAYER_ENTERING_WORLD') then
test()
end
end
Frame:RegisterEvent('PLAYER_ENTERING_WORLD')
Frame:SetScript('OnEvent', HandleEvents)
Now is my problem that the spells repeat in each bar. A picture to make it easier:
https://i.imgur.com/nH1U0xz.png ...
i have tried this on other similar ways but it always looks the same...