View Single Post
11-27-08, 12:51 PM   #263
CyberOto
A Defias Bandit
AddOn Author - Click to view addons
Join Date: Jul 2005
Posts: 2
Hello there,

My first try to poke with oUF layouts is modification of oUF_Kosken. With some trials got it like I want.

I have some issue setting raid unit frames to show missing HP. This is working fine when I'm in party, but when I added some code to add raid support instead missing HP it is showing HP in %.

In general the biggest modification I have done is adding this piece of code as a test for raid frames:

Code:
local raid = {}
for i = 1, 8 do
	table.insert(raid, oUF:Spawn("header", "oUF_Raid"..i))
	if i == 1 then
		raid[i]:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 15, -25)
	elseif i == 6 then
		raid[i]:SetPoint("LEFT", raid[1], "BOTTOMLEFT", 0, -65)
	else
		raid[i]:SetPoint("TOPLEFT", raid[i-1], "TOPRIGHT", 10, 0)		
	end
	raid[i]:SetManyAttributes("showRaid", true, "yOffset", 0, "groupFilter", i)
	raid[i]:Show()
end
Borrowed the code directly form oUF_Caellian.

Any C&C ?