drakull |
10-10-10 08:48 AM |
Raid frames not showing on PTR.
Well, I'm working in the cataclysm version of my layout, using oUF 1.4.3 from the github and testing it on the PTR.
I noted that my party and raid frames are not working (I use the same code for both). I don't get any errors but they just don't show up. They do work fine in the live version.
Has something changed in the way we implement raid frames?
Here's my code:
Code:
local function CreateRaidStyle(self, unit)
self.width = 72
self.height = 28
self.scale = cfg.raidscale
self.mystyle = "raid"
self.Range = {
insideAlpha = 1,
outsideAlpha = .3,
}
genStyle(self)
self.Health.frequentUpdates = true
self.Health.colorSmooth = true
self.Health.bg.multiplier = 0.3
self.Power.colorClass = true
self.Power.bg.multiplier = 0.5
end
if cfg.ShowRaid or cfg.RaidShowSolo or cfg.ShowParty then
oUF:RegisterStyle("oUF_DrkRaid", CreateRaidStyle)
oUF:SetActiveStyle("oUF_DrkRaid")
local maxGroups = 5
if cfg.RaidShowAllGroups then maxGroups = 8 end
local visible = ''
if cfg.RaidShowSolo then
visible = 'solo'
end
if cfg.ShowParty then
if visible == '' then
visible = 'party'
else
visible = visible..',party'
end
end
if cfg.ShowRaid then
if visible == '' then
visible = 'raid'
else
visible = visible..',raid'
end
end
raid = {}
for i = 1, maxGroups do
local group = oUF:SpawnHeader('oUF_DrkRaid'..i, nil, visible,
'showPlayer', true,
'showSolo', cfg.RaidShowSolo,
'showParty', cfg.ShowParty,
'showRaid', cfg.ShowRaid,
'xoffset', 9,
'yOffset', 5,
'point', "LEFT",
'groupFilter', tostring(i),
'groupingOrder', '1,2,3,4,5,6,7,8',
'groupBy', 'GROUP',
'maxColumns', 8,
'unitsPerColumn', 5,
'columnSpacing', 7,
'columnAnchorPoint', "UP")
if i == 1 then
group:SetPoint(RaidPos[1], RaidPos[2], RaidPos[3], RaidPos[4], RaidPos[5])
else
group:SetPoint("TOPLEFT", raid[i-1], "TOPLEFT", 0, 35)
end
raid[i] = group
end
end
cfg.ShowRaid, cfg.RaidShowSolo and cfg.ShowParty values are set to true.
|