Move QuestFrame and GossipFrame

Hello

I tried to move theses 2 frames : QuestFrame and GossipFrame
With a macro i use :
/run QuestFrame:SetPoint(“TOPLEFT”,“MinimapCluster”,“BOTTOMLEFT”,-1300,0)
/run GossipFrame:SetPoint(“TOPLEFT”,“MinimapCluster”,“BOTTOMLEFT”,-1300,0)

It is working great but i need to run the macro each time i want to take a quest (simply it reset position)

I would like to keep ALWAYS these 2 frames in position and do not move anymore.
So i try in a LUA file :
QuestFrame:SetPoint(“TOPLEFT”,“MinimapCluster”,“BOTTOMLEFT”,-1300,0)
GossipFrame:SetPoint(“TOPLEFT”,“MinimapCluster”,“BOTTOMLEFT”,-1300,0)

It does not work.

Have you any advice in order to keep position of theses 2 frames as defined?

Thanks in advance

Are you getting any error messages (given you activated them with /console scriptErrors 1)?

If not, your code is probably executed at log in before the Blizzard UI even initialized these frames. If so, you have to trigger your code with an appropriate event.

GossipFrame:SetScript('OnShow',function()
GossipFrame:ClearAllPoints()
GossipFrame:SetPoint("TOPLEFT",MinimapCluster,"BOTTOMLEFT",-1300,0)
end)

QuestFrame:SetScript('OnShow',function()
QuestFrame:ClearAllPoints()
QuestFrame:SetPoint("TOPLEFT",MinimapCluster,"BOTTOMLEFT",-1300,0)
end)
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.