View Single Post
09-20-17, 09:22 PM   #1
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
Is there a way to determine raid group number with macro conditional?

Hi all,

I am using an oUF to spawn my raid frames, but since this is more like generic WoW Lua related question, I've decided to post it here

So, oUF uses macro conditional to decide whether it should display raid frames or not and here's my current setting(?).

Code:
for i = 1, NUM_RAID_GROUPS do
	local group = self:SpawnHeader(
		overrideName,
		nil,
		"custom [group:raid] show; hide",
		-- attributes
		"oUF-initialConfigFunction", ("self:SetWidth(%d); self:SetHeight(%d);"):format(width, height),
		"showRaid", true,
		"showParty", false,
		"showPlayer", true,
		"showSolo", false,
		"groupFilter", tostring(i),
		"point", "LEFT",
		-- "xOffset", ,
		-- "yOffset", ,
		"maxColumns", 5,
		"unitsPerColumn", 1,
		"columnSpacing", 3,
		"columnAnchorPoint", "TOP"
	);
end
At the moment, this sets all 8 raid groups' visibility to true as long as I'm in a raid (even if there is no group member in a particular group).

My question is would it be possible to write a macro conditional to:

"Show this raid group if there is at least a single member in that specific group, otherwise hide"

Thanks in advance!!
  Reply With Quote