addons that attach to the top map frame
Daeveren opened this issue ยท 3 comments
When "remove map border" is enabled, addons that attach to the top of the map frame are now way above the actual map.
On one hand, yes, the respective addon authors should each of them adjust their addons for the users that happen to chose LTM and the remove map border option - note, I submitted a request to the World Quest List author too, but he doesn't seem to be quite active (last update 8 months ago). One another hand, well, it would be awesome if you could consider actually moving the top map elements so that they become top part of the actual 'new map' (without borders).
Thanks for taking your time and providing the code! I just changed that y value of "35" to "-35" and it worked, that's all I wanted. I consider this issue solved.
Thanks once more!
Since WQL hasn't been updated in months, it's best to modify that instead of LTM.
If all you want is to have WQL show on the top-right of the borderless map, open WorldQuestsList.lua with Notepad and add this code to the end of the file:
local abc = CreateFrame("FRAME")
abc:RegisterEvent("PLAYER_LOGIN")
abc:SetScript("OnEvent", function()
if LeaMapsDB and LeaMapsDB["NoMapBorder"] and LeaMapsDB["UseDefaultMap"] and LeaMapsDB["NoMapBorder"] == "On" and LeaMapsDB["UseDefaultMap"] == "Off" then
-- Move World Quests List checkbox
WorldMapHideWQLCheck:ClearAllPoints()
WorldMapHideWQLCheck:SetPoint("TOPLEFT", WorldMapFrame, "TOPRIGHT", -130, -35)
-- Move World Quests List
hooksecurefunc(WorldMapFrame, "SynchronizeDisplayState", function()
VWQL.Anchor = 0
UpdateAnchor()
UpdateScale()
WorldQuestList:ClearAllPoints()
WorldQuestList:SetPoint("TOPLEFT", WorldMapFrame, "TOPRIGHT", 10, -76)
end)
end
end)
Now save the file and reload your UI. World Quests List will now always be shown on the top-right of the borderless map as long as 'Remove map border' is enabled and 'Use default map' is disabled. If you go into the World Quests List options and change the anchor, close and open the map to refresh the layout.