I just updated to the latest oUF 1.4.3 from the github, and now all my frames are really screwed.
Before updating oUF:
After:
Here is the player's frame code:
Code:
if cfg.showplayer then
oUF:RegisterStyle("oUF_DrkPlayer", CreatePlayerStyle)
oUF:SetActiveStyle("oUF_DrkPlayer")
oUF:Spawn("player", "oUF_Drk_PlayerFrame"):SetPoint("TOPRIGHT",UIParent,"BOTTOM", -210, 292)
end
local function CreatePlayerStyle(self)
self.width = 250
self.height = 60
self.mystyle = "player"
lib.init(self)
end
lib.init = function(f)
f:SetAttribute("initial-height", f.height)
f:SetAttribute("initial-width", f.width)
f:SetAttribute("initial-scale", f.scale)
f:SetPoint("CENTER",UIParent,"CENTER",0,0)
f.menu = lib.menu
f:RegisterForClicks("AnyUp")
f:SetAttribute("*type2", "menu")
f:SetScript("OnEnter", UnitFrame_OnEnter)
f:SetScript("OnLeave", UnitFrame_OnLeave)
end
I just noted that i use SetPoint twice for each frame (in oUF:Spawn and inside the init func), but it aways worked fine with previous versions of oUF.
I tried commenting the generic SetPoint inside the init function but it just got worse, now i have no visible frames at all.
Any insight would be very helpful, I'm kind of lost right now.