WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   oUF:Factory SpawnHeader (https://www.wowinterface.com/forums/showthread.php?t=57643)

Terenna 10-29-19 11:36 PM

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)


All times are GMT -6. The time now is 06:57 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI