Thread Tools Display Modes
11-21-09, 06:35 PM   #1
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
raid question

Hey there. I am still learning Lua and oUF so bear with me I am trying to figure out how to have my raid show 40 man, when I join AV I only see 25 people and that is it, I have looked left, right, up and down in the config but i can't seem to get it... I'm baffled and searched, googled, all that stuff and can't seem to find out how and this is my last resort to ask you guys :P Any help is appreciated and thank you in advance for helping a noob here!

-Ferous
  Reply With Quote
11-21-09, 06:58 PM   #2
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
Somewhere in the code you'll see something that resembles this:

for i = 1, 5 do
oUF:Spawn(blah blah blah)
end

This sets up the group headers. If you change that 5 to an 8 you'll get what you want.
  Reply With Quote
11-21-09, 06:59 PM   #3
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
Originally Posted by wurmfood View Post
Somewhere in the code you'll see something that resembles this:

for i = 1, 5 do
oUF:Spawn(blah blah blah)
end

This sets up the group headers. If you change that 5 to an 8 you'll get what you want.
You're a genius! Thank you very much Drives me crazy when I can't heal everyone in AV so I'm forced to view friendly nameplates lol

Thanks again

-Ferous
  Reply With Quote
11-30-09, 08:09 PM   #4
spondodge
A Murloc Raider
Join Date: Sep 2007
Posts: 6
Hi, further to that, at the moment im using a layout where it shows 25 frames 5 frames high for the raid.

If i just change it to 8, then the extra frames appear in columns of 8

How do i keep it limited at 5 per column but show 8 rows instead?

Thats the code im using, i have tried changing max columns but its not working


Code:
local raid = {}
for i = 1, 8 do
	local raidgroup = oUF:Spawn("header", "oUF_Raid"..i)
	raidgroup:SetManyAttributes("groupFilter", tostring(i), "showRaid", true, 
	"columnSpacing", 4, "unitsPerColumn", 1,   
	"maxColumns", 8,   
	"columnAnchorPoint", "LEFT",
	"yOffSet", -10,   
	"xOffset", 10)
	table.insert(raid, raidgroup)
	if settings.RaidPet then
		if i==1 then
			raidgroup:SetPoint("LEFT", UIParent, "LEFT", 477, -185)
		else
			raidgroup:SetPoint("LEFT", raid[i-1], "LEFT", 0, -35)
		end
		raidgroup:SetAttribute("template", "oUF_RaidPet")
	else
		if i==1 then
			raidgroup:SetPoint("LEFT", UIParent, "LEFT", cfg.raidX, cfg.raidY)
		else
			raidgroup:SetPoint("LEFT", raid[i-1], "LEFT", 0, -30)
		end
	end
end

if not settings.HideRaid then
local tank = oUF:Spawn("header", "oUF_MainTank")
tank:SetManyAttributes("showRaid", true, "groupFilter", "MAINTANK", "yOffset", -5)
tank:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -396, 26)
tank:SetAttribute("template", "oUF_MainTank")
tank:Show()
end
  Reply With Quote
12-01-09, 01:29 AM   #5
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
Get rid of the "units per column", "1" bit. Also, you don't need to have the "max columns" part, as you're already taking care of that with the "for i = 1,8".
  Reply With Quote
12-01-09, 04:49 AM   #6
spondodge
A Murloc Raider
Join Date: Sep 2007
Posts: 6
Thank you kindly!
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » raid question


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off