View Single Post
02-12-16, 05:38 PM   #21
tyroneexe
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Feb 2016
Posts: 13
The quest to make the addon/frame hidden when not in ashran continues.

Tried
Lua Code:
  1. if pvpMapID = 3 then
  2.     frame:Show()
  3. else
  4.     frame:Hide()
  5. end

also
Lua Code:
  1. frame:SetShown(pvpMapID(3))
and
Lua Code:
  1. if (not Api:IsInAshran()) then
  2.         self.Component:Hide()
  3.     end

and while some parts might be part of the solution, I'm also sure I'm missing some parts.
maybe
Lua Code:
  1. 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.
  Reply With Quote