i tried to clean up the code, didn't manage with alot but it should clean atleast half the file.. as for slash commands, i'm to lazy to write those atm so i'll drop that to someone else..
code i fixed; (I left the minimap code as is)
Code:
--unitframes
PlayerFrame:ClearAllPoints()
PlayerFrame:SetPoint("CENTER", UIParent, "CENTER", -100, -200)
TargetFrame:ClearAllPoints()
TargetFrame:SetPoint("CENTER", UIParent, "CENTER", 100, -200)
-- Party
PartyMemberFrame1:ClearAllPoints()
PartyMemberFrame1:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 0, 15)
PartyMemberFrame2:ClearAllPoints()
PartyMemberFrame2:SetPoint("BOTTOMLEFT", PartyMemberFrame1, "BOTTOMLEFT", 0, 15)
PartyMemberFrame3:ClearAllPoints()
PartyMemberFrame3:SetPoint("BOTTOMLEFT", PartyMemberFrame2, "BOTTOMLEFT", 0, 15)
PartyMemberFrame4:ClearAllPoints()
PartyMemberFrame4:SetPoint("BOTTOMLEFT", PartyMemberFrame3, "BOTTOMLEFT", 0, 15)
-- Pet
PetActionButton1:ClearAllPoints()
PetActionButton1:SetPoint("CENTER", MultiBarLeftButton3, "CENTER", 0, 45)
PetActionBarFrame:SetScale(0.9)
-- Horisontal bars.
local button, button2;
for i = 1, 12, 1 do
button = _G["MultiBarRightButton"..i];
button:ClearAllPoints();
if ( i > 1 ) then
button:SetPoint("LEFT",_G["MultiBarRightButton"..(i-1)],"RIGHT",5,0); -- following buttons
else
button:SetPoint("CENTER", MultiBarBottomRightButton1, "CENTER", 0, 5); -- Initial button
end
end
for i = 1, 12, 1 do
button2 = _G["MultiBarLeftButton"..i];
button2:ClearAllPoints();
if ( i > 1 ) then
button2:SetPoint("LEFT",_G["MultiBarLeftButton"..(i-1)],"RIGHT",5,0); -- following buttons
else
button2:SetPoint("CENTER", MultiBarBottomLeftButton1, "CENTER", 0, 5); -- Initial button
end
end
Edit: Forgot to credit Lolzen for the horisontal code. Thanks for your lolbars! (yes, i know the name is a bit random :P)