Quantcast
WoWInterface - View Single Post - Hide frames in Raid
View Single Post
02-07-19, 12:29 PM   #3
GreyFox777
A Cliff Giant
Join Date: Jan 2017
Posts: 74
so i did it like so but it just doesen't spawn...

Lua Code:
  1. local create = function(self)
  2.     self.unitType = "party"
  3.     self:SetSize(300, 81)
  4.     self:SetPoint("RIGHT", 0, 0)
  5.     self.colors = ns.colors
  6.     self:RegisterForClicks('AnyUp')
  7.  
  8.  
  9.  
  10. -- -----------------------------------
  11. -- > SPAWN UNIT
  12. -- -----------------------------------
  13. oUF:RegisterStyle("Party Frame", create)
  14. oUF:SetActiveStyle("Party Frame")
  15. local party = self:SpawnHeader(
  16.     nil, nil, 'party,solo',
  17.     'showParty', true,
  18.     'showPlayer', true,
  19.     'showSolo', false,
  20.     'xOffset', 0,
  21.     'yoffset', 0,
  22.     'oUF-initialConfigFunction', [[
  23.         self:SetHeight(19)
  24.         self:SetWidth(70)
  25.     ]],
  26.     'maxColumns', 5,
  27.     'unitsperColumn', 1,
  28.     'columnSpacing', 5,
  29.     'columnAnchorPoint', "TOP"
  30. )
  31. party:SetPoint("BOTTOM", UIParent, 0, 140)
  32.  
  33. end

what im douing wrong?

And is there a way to make it just for party1, party2 etc?
  Reply With Quote