View Single Post
11-20-13, 11:51 AM   #2
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
I believe you are supposed to spawn your frames from within oUF:Factory. Something like that:
lua Code:
  1. oUF:RegisterStyle("oUF_ClamsodaParty", PartyStyle)
  2.  
  3. oUF:Factory(function(self)
  4.         self:SetActiveStyle("oUF_ClamsodaParty")
  5.  
  6.         local party = oUF:SpawnHeader("oUF_ClamsodaParty", nil, customVisibility,
  7.                 "oUF-initialConfigFunction", initialConfigFunction,
  8.                 "template",             "oUF_ClamsodaPartyPets",
  9.                 "showParty",            true,
  10.                 "columnAnchorPoint",    "BOTTOM",
  11.                 "point",                "BOTTOM",
  12.                 "yOffset",              41
  13.         )
  14.  
  15.         -- Why doesn't this anchor perfectly?
  16.         party:SetPoint("BOTTOMRIGHT", oUF_ClamsodaPlayer, "BOTTOMLEFT", -16, 0)
  17. end)
  Reply With Quote