I’ve been trying to figure out how to anchor my PlayerFrame and TargetFrame to CastingBarFrame when the “Cast Bar Underneath” option on PlayerFrame is not enabled. When the option is enabled, I’d like to anchor them to UIParent. I can successfully anchor them to CastingBarFrame in MoveAnything, but it breaks when I disable “Cast Bar Underneath”. If I try it with my own scripts, it breaks no matter what the setting is. I’m trying to get rid of MoveAnything, but I still need it to do this, even if it doesn’t work in all situations.
Here are my anchors on CastingBarFrame:
PlayerFrame:SetMovable(true)
PlayerFrame:ClearAllPoints()
PlayerFrame:SetPoint("BOTTOMRIGHT",CASTINGBARFRAME,"LEFT", -20, 0)
PlayerFrame:SetUserPlaced(true)
PlayerFrame:SetMovable(false)
TargetFrame:SetMovable(true)
TargetFrame:ClearAllPoints()
TargetFrame:SetPoint("BOTTOMLEFT",CASTINGBARFRAME,"RIGHT", 20, 0)
TargetFrame:SetUserPlaced(true)
TargetFrame:SetMovable(false)
FocusFrame:SetMovable(true)
FocusFrame:ClearAllPoints()
FocusFrame:SetPoint("BOTTOMLEFT",TARGETFRAME,"TOPRIGHT", 0, 100)
FocusFrame:SetUserPlaced(true)
FocusFrame:SetMovable(false)
Here are my anchors on UIParent:
PlayerFrame:SetMovable(true)
PlayerFrame:ClearAllPoints()
PlayerFrame:SetPoint("BOTTOMRIGHT",UIPARENT,"BOTTOM", -110, 200)
PlayerFrame:SetUserPlaced(true)
PlayerFrame:SetMovable(false)
TargetFrame:SetMovable(true)
TargetFrame:ClearAllPoints()
TargetFrame:SetPoint("BOTTOMLEFT",UIPARENT,"BOTTOM", 110, 200)
TargetFrame:SetUserPlaced(true)
TargetFrame:SetMovable(false)
FocusFrame:SetMovable(true)
FocusFrame:ClearAllPoints()
FocusFrame:SetPoint("BOTTOMLEFT",UIPARENT,"TOPRIGHT", 0, 100)
FocusFrame:SetUserPlaced(true)
FocusFrame:SetMovable(false)