View Single Post
03-24-14, 05:23 PM   #5
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
Originally Posted by Pyrates View Post
Hmmm, so what does one do then to change the size of header unit buttons after they're spawned? Or is the trick to make sure you're not in combat for the change?
You pass the size to the oUF-initialConfigFunction attribute when you define the header. Something like
Code:
local header = SpawnHeader("PartyHeader", nil, "party",
    "showParty", true,
    "oUF-initialConfigFunction", format("self:SetSize(%d, %d)", cfg.headerWidth, cfg.headerHeight)
)
@10leej
You could spawn a header for every raid group separately instead of one for the whole raid. unitsPerColumn would then be 1 instead of 5 and you'll have to use "groupFilter" to tell the header which raid group to display.
  Reply With Quote