Quantcast oUF:Factory SpawnHeader - WoWInterface
Thread Tools Display Modes
10-29-19, 11:36 PM   #1
Terenna
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 99
oUF:Factory SpawnHeader

I don't have any real code for this yet, as I'm trying to even determine if this is possible. If I want to have a "party" set of frames that shows up when I'm in a party or raid and there are 5 or less people be a certain size and location, and then have a different location and size when there is a raid with 6-25 people and then have yet another location and size when there is a raid with 25-40 people, could I have several self:SpawnHeaders one for each conditional?

Something like
Lua Code:
  1. oUF:Factory(function(self)
  2.    self:SetActiveStyle('Terenna')
  3.    self:SpawnHeader('Party', nil,
  4.       --header lay out type 1
  5.    )
  6.    self:SpawnHeader('SmallRaid', nil,
  7.       --header lay out type 2
  8.    )
  9.    self:SpawnHeader('LargeRaid', nil,
  10.       --header lay out type 3
  11.    )
  12. end)
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF:Factory SpawnHeader

Thread Tools
Display Modes

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