View Single Post
02-11-12, 02:08 PM   #3
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by yj589794 View Post
I do this by spawning a separate header for each group:
https://github.com/Evilpaul/oUF_EP/b...PRaid.lua#L238
Doesn't work for me O.o Just getting 19 pages of errors.

LUA Code:
  1. oUF:RegisterStyle('Aftermathh_Raid', RaidFrames)
  2. oUF:Factory(function(self)
  3.     self:SetActiveStyle('Aftermathh_Raid')
  4.    
  5.     local toStr = tostring
  6.    
  7.     if AftermathhUI.ouf.showraid == true then
  8.         for group = 1, NUM_RAID_GROUPS do
  9.             local Raid = self:SpawnHeader("AftermathhRaidGrid", nil, 'solo,party,raid',
  10.                 'showPlayer', true,
  11.                 'showRaid', true,
  12.                 'showParty', true,
  13.                 'showSolo', true,
  14.                 'xoffset', 7,
  15.                 'yOffset', 0,
  16.                 'point', 'LEFT',
  17.                 'groupFilter', toStr(group),
  18.                 'groupingOrder', '1,2,3,4,5,6,7,8',
  19.                 'groupBy', 'GROUP',
  20.                 'sortMethod', 'GROUP',
  21.                 'maxColumns', 5,
  22.                 'unitsPerColumn', 5,
  23.                 'columnSpacing', 6,
  24.                 'columnAnchorPoint', 'TOP',
  25.                 'oUF-initialConfigFunction', [[
  26.                     self:SetWidth(59)
  27.                     self:SetHeight(38)
  28.                     self:SetScale(1)
  29.                 ]]
  30.             )  
  31.             Raid:SetPoint('LEFT', UIParent, 221, -54)
  32.         end    
  33.     end
  34. end)
  Reply With Quote