Thread: raid question
View Single Post
12-01-09, 02:28 PM   #12
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by spondodge View Post
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:
  1. local raid = {}
  2. for i = 1, 8 do
  3.     local raidgroup = oUF:Spawn("header", "oUF_Raid"..i)
  4.     raidgroup:SetManyAttributes("groupFilter", tostring(i), "showRaid", true,
  5.     "columnSpacing", 4,
  6.     "columnAnchorPoint", "TOP",
  7.     "yOffSet", -5,  
  8.     "xOffset", 5)
  9.     table.insert(raid, raidgroup)
  10.     if settings.RaidPet then
  11.         if i==1 then
  12.             raidgroup:SetPoint("LEFT", UIParent, "LEFT", 477, -285)
  13.         else
  14.             raidgroup:SetPoint("TOPLEFT", raid[i-1], "TOPRIGHT", 5, 0)
  15.         end
  16.         raidgroup:SetAttribute("template", "oUF_RaidPet")
  17.     else
  18.         if i==1 then
  19.             raidgroup:SetPoint("LEFT", UIParent, "LEFT", cfg.raidX, -285)
  20.         else
  21.             raidgroup:SetPoint("TOPLEFT", raid[i-1], "TOPRIGHT", 5, 0)
  22.         end
  23.     end
  24. end
You basicly tell the wowlua interpreter to anchor from the topleft to the topright
  Reply With Quote