So here's the entirety of my bossframe code
Lua Code:
--[Bossframe scale]
for i = 1, MAX_BOSS_FRAMES do
local f = _G["Boss"..i.."TargetFrame"]
f:SetParent(UIParent)
f:SetScale(1.2)
end
--[Lower the gaps]
for i = 2, MAX_BOSS_FRAMES do
_G["Boss"..i.."TargetFrame"]:SetPoint("TOPLEFT", _G["Boss"..(i-1).."TargetFrame"], "BOTTOMLEFT", 0, 20)
end
--[Bossframe castbars]
hooksecurefunc("Target_Spellbar_AdjustPosition", function()
for i = 1, MAX_BOSS_FRAMES do
local b = _G["Boss"..i.."TargetFrameSpellBar"]
b:SetPoint("TOPLEFT", "Boss"..i.."TargetFrame", "BOTTOMLEFT", -10, 29)
end
end)
--[Set Points]
Boss1TargetFrame:ClearAllPoints()
Boss1TargetFrame:SetPoint("TOPRIGHT",UIParent,"TOPRIGHT",-350,-470)
Boss1TargetFrame.SetPoint = function() end
Obviously what matters is the
Lua Code:
Boss1TargetFrame.SetPoint = function() end
I have tried
Lua Code:
hooksecurefunc("UIParent_ManageFramePositions",function()
with no success.
Lua Code:
-- Boss frames - need to move below buffs/debuffs if both right action bars are showing
local numBossFrames = 0;
for i = 1, MAX_BOSS_FRAMES do
if ( _G["Boss"..i.."TargetFrame"]:IsShown() ) then
numBossFrames = i;
end
end
if ( numBossFrames > 0 ) then
if ( rightActionBars > 1 ) then
anchorY = min(anchorY, buffsAnchorY);
end
Boss1TargetFrame:SetPoint("TOPRIGHT", "MinimapCluster", "BOTTOMRIGHT", -(CONTAINER_OFFSET_X * 1.3) + 60, anchorY * 1.333); -- by 1.333 because it's 0.75 scale
anchorY = anchorY - (numBossFrames * (68 + BOSS_FRAME_CASTBAR_HEIGHT) + BOSS_FRAME_CASTBAR_HEIGHT);
end
This is what I could find in UIParent.lua regarding SetPoint for boss1.
Anyway, my question is: does anyone have a way to move Boss1TargetFrame and keep it moved without massively tainting everything?