Originally Posted by spondodge
Sorry to bother, one last question, when the frames change, e.g someone disconnects the remaining frames in that raid group all "Align" themselves to center, how to I "justify/align" them so they always shift to top.
Thats badly explained, ill take a screenshot..
|
lua Code:
local raid = {}
for i = 1, 8 do
local raidgroup = oUF:Spawn("header", "oUF_Raid"..i)
raidgroup:SetManyAttributes("groupFilter", tostring(i), "showRaid", true,
"columnSpacing", 4,
"columnAnchorPoint", "TOP",
"yOffSet", -5,
"xOffset", 5)
table.insert(raid, raidgroup)
if settings.RaidPet then
if i==1 then
raidgroup:SetPoint("LEFT", UIParent, "LEFT", 477, -285)
else
raidgroup:SetPoint("TOPLEFT", raid[i-1], "TOPRIGHT", 5, 0)
end
raidgroup:SetAttribute("template", "oUF_RaidPet")
else
if i==1 then
raidgroup:SetPoint("LEFT", UIParent, "LEFT", cfg.raidX, -285)
else
raidgroup:SetPoint("TOPLEFT", raid[i-1], "TOPRIGHT", 5, 0)
end
end
end
You basicly tell the wowlua interpreter to anchor from the topleft to the topright