View Single Post
07-01-10, 04:04 AM   #28
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Caellian is using the oUF:Factory func, the tutorial is not.

Code:
  --the raid style
  local function CreateRaidStyle(self)
    --style specific stuff
    self.width = 150
    self.height = 25
    self.scale = 0.8
    self.mystyle = "raid"
    genStyle(self)
    self.Health.frequentUpdates = true
    self.Health.colorDisconnected = true
    self.Health.colorHappiness = true
    self.Health.colorClass = true
    self.Health.colorReaction = true
    self.Health.colorHealth = true
    self.Health.bg.multiplier = 0.3
    self.Power.colorPower = true
    self.Power.bg.multiplier = 0.3
  end  
  
  
  if cfg.showraid then
    oUF:RegisterStyle("oUF_SimpleRaid", CreateRaidStyle)
    oUF:SetActiveStyle("oUF_SimpleRaid")
    local raid = {}
    for i = 1, NUM_RAID_GROUPS do
      raid[i] = oUF:SpawnHeader("oUF_Raid"..i, nil, "raid",  "groupFilter", i, "showRaid", true, "yOffSet", -50)
      if i == 1 then
        raid[i]:SetPoint("TOPLEFT", 70, -20)
      else
        raid[i]:SetPoint("TOPLEFT", raid[i-1], "TOPRIGHT", 100, 0)
      end
    end
  end
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 07-01-10 at 04:45 AM.
  Reply With Quote