oUF

97.2k Downloads

weird issue about unitframe's name

fafaraway opened this issue ยท 2 comments

commented

this is my spawn code, it works well before 8.2

function module:OnLogin()
	oUF:RegisterStyle('Player', CreatePlayerStyle)
	oUF:RegisterStyle('Pet', CreatePetStyle)
	oUF:RegisterStyle('Target', CreateTargetStyle)
	oUF:RegisterStyle('TargetTarget', CreateTargetTargetStyle)
	oUF:RegisterStyle('Focus', CreateFocusStyle)
	oUF:RegisterStyle('FocusTarget', CreateFocusTargetStyle)

	oUF:SetActiveStyle('Player')
	local player = oUF:Spawn('player', 'oUF_Player')
	if cfg.frameVisibility then
		player:Disable()
		player.frameVisibility = cfg.frameVisibility
		RegisterStateDriver(player, "visibility", cfg.player_frameVisibility)
	end
	Mover_Width, Mover_Height = player:GetWidth(), player:GetHeight()
	F.Mover(player, L['MOVER_UNITFRAME_PLAYER'], 'PlayerFrame', Player_Pos, Mover_Width*C.Mult, Mover_Height*C.Mult)
	.......
end

weird thing is, since 8.2, unit frame nolong has its frame name, it should be oUF_Player, any idea?

WoWScrnShot_062719_072959

commented

@Wutname1 thanks ๐Ÿ‘

commented

fstack is broken you can try this addon: https://github.com/Gethe/FrameStackGlobalizer to restore some of fstack back to how it should be