Hi and sorry if recently I have posted a lot. This is the last issue I have till my UI should be finished.
I want to move the CompactRaidFrameManager window on the left as its in the way of my chat box as I have it at the top left corner instead. To move it I used the following code:
Lua Code:
function eventHandlers.PLAYER_ENTERING_WORLD()
if CompactRaidFrameManager:IsVisible() then
local point, relativeTo, relativePoint, xOfs, yOfs = CompactRaidFrameManager:GetPoint()
CompactRaidFrameManager:SetPoint(point, relativeTo, relativePoint, xOfs, -300)
end
end
CompactRaidFrameManagerToggleButton:HookScript("OnClick", function()
if CompactRaidFrameManager:IsVisible() then
local point, relativeTo, relativePoint, xOfs, yOfs = CompactRaidFrameManager:GetPoint()
CompactRaidFrameManager:SetPoint(point, relativeTo, relativePoint, xOfs, -300)
end
end)
This works however if you click the "CompactRaidFrameManagerToggleButton" Button while in combat it resets its position. I have been looking for a solution and found the code below but it doesn't do anything, most likely because I'm using it wrong and not sure what to do with it.
Lua Code:
if CompactRaidFrameManager.collapsed then
CompactRaidFrameManager:SetScript("OnUpdate", nil)
end
Thought I might as well ask for help in case someone has encountered this issue before and knows a fix. Greatly appreciated! Thank you for reading