View Single Post
07-01-10, 03:16 AM   #27
vlakarados
An Aku'mai Servant
 
vlakarados's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 36
thanks, errors have gone, but I don't see any frames, here's what I have added
Code:
local function CreateRaidStyle(self)
    --style specific stuff
    self.width = 180
    self.height = 25
    self.scale = 0.8
    self.mystyle = "raid"
    genStyle(self)
    self.Health.frequentUpdates = true
    self.Health.colorDisconnected = true
    self.Health.colorClass = true
    self.Health.colorHealth = true
    self.Health.bg.multiplier = 0.3
    self.Power.colorPower = true
    self.Power.bg.multiplier = 0.3
    lib.gen_castbar(self)
    lib.createDebuffs(self)
end
Code:
  if 1==1 then
		oUF:RegisterStyle("oUF_SimpleRaid", CreateRaidStyle)
		oUF:SetActiveStyle("oUF_SimpleRaid")
		local raid = {}
		for i = 1, NUM_RAID_GROUPS do
			local raidgroup = oUF:SpawnHeader("oUF_Raid"..i, nil, visible,
			"groupFilter", tostring(i), "showRaid", true, "yOffSet", -3
		)
			table.insert(raid, raidgroup)
			if i == 1 then
				raidgroup:SetPoint("TOPLEFT", UIParent, "CENTER", 20, -20)
				print("1 GROUP")
			else
				raidgroup:SetPoint("TOPLEFT", raid[i-1], "TOPRIGHT", 60, 0)
				print("NEXT GROUP")
			end
		end
	end
  Reply With Quote