View Single Post
04-19-21, 02:28 PM   #9
Taudier
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 53
with what you said here is a solution to always show the worldmap :
Code:
local handler = CreateFrame("Frame", nil, nil, "SecureHandlerBaseTemplate")
local B = CreateFrame("button", "MAP", nil, "SecureActionButtonTemplate")
B:SetAttribute("type", "click")
B:SetAttribute("clickbutton",  MiniMapWorldMapButton)
function handler:MAP()
	WorldMapFrame:Hide()
end
handler:WrapScript(B, "PreClick", [[owner:CallMethod("MAP")]])
and the command is "/click MAP"
you can do a macro if you want

If you get :
Originally Posted by samueldcorbin View Post
That actually doesn't seem to work in combat either - "Interaction failed because of an AddOn"
that means one of your addon has tainted something

Last edited by Taudier : 04-19-21 at 02:45 PM.
  Reply With Quote