Quantcast
WoWInterface - View Single Post - Hide world map arrow and ping
View Single Post
11-24-17, 11:41 AM   #2
ovce
A Murloc Raider
Join Date: Nov 2017
Posts: 4
or any idea why this code (which worked on cata) is not working anymore?

function Hidearrow_Onload()

WorldMapPing:SetModelScale(0.0);
PlayerArrowFrame:SetModelScale(0.0)
PlayerArrowEffectFrame:SetModelScale(PlayerArrowFrame:GetModelScale())
DEFAULT_CHAT_FRAME:AddMessage("HideArrow Map Addon loaded!")
DEFAULT_CHAT_FRAME:AddMessage("/hidearrow or /ha for help")
SLASH_HIDEARROW1 = "/hidearrow";
SLASH_HIDEARROW2 = "/ha";
SlashCmdList["HIDEARROW"] = HIDEARROW_SlashHandler;
end


function HIDEARROW_SlashHandler(msg)
if (msg=="show") then
PlayerArrowFrame:SetModelScale(1.0)
PlayerArrowEffectFrame:SetModelScal(PlayerArrowFrame:GetModelScale())
end
if (msg=="hide") then
PlayerArrowFrame:SetModelScale(0.0)
PlayerArrowEffectFrame:SetModelScal(PlayerArrowFrame:GetModelScale())
end
if (msg=="") then
DEFAULT_CHAT_FRAME:AddMessage("To Hide/Show the Map arrow, type: /hidearrow hide/show")
end

end
  Reply With Quote