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