The quest to make the addon/frame hidden when not in ashran continues.
Tried
Lua Code:
if pvpMapID = 3 then
frame:Show()
else
frame:Hide()
end
also
Lua Code:
frame:SetShown(pvpMapID(3))
and
Lua Code:
if (not Api:IsInAshran()) then
self.Component:Hide()
end
and while some parts might be part of the solution, I'm also sure I'm missing some parts.
maybe
Lua Code:
local pvpID, localizedName = GetWorldPVPAreaInfo(3);
is part of the solution.
I think I'll leave it for today, spend enough time on that today. Thanks for the help thus far.