Leatrix Maps (The War Within)

Leatrix Maps (The War Within)

9M Downloads

addons that attach to the top map frame

Daeveren opened this issue ยท 3 comments

commented

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).

"remove map border" enabled:
kpRby20WVz

"remove map border" disabled:
4jtYLXF2LY

commented

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!

commented

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.

commented

It does actually say -35 in the code so must have been a copy and paste error or something. You might want to link this issue to the author of WQL so that maybe it can be included in a future WQL update.