Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Open the proper frame

  • Loading branch information...
commit bf67b6eda0f3695e596d0e12e1cb863e71f9d0e8 1 parent 162ff2e
@tekkub tekkub authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 picoGuild.lua
View
10 picoGuild.lua
@@ -97,9 +97,11 @@ end
------------------------
local tip = LibStub("tektip-1.0").new(6, "LEFT", "LEFT", "CENTER", "RIGHT", "RIGHT", "RIGHT")
+local lastanchor
function dataobj.OnLeave() tip:Hide() end
function dataobj.OnEnter(self)
tip:AnchorTo(self)
+ lastanchor = self
tip:AddLine("picoGuild")
@@ -135,12 +137,8 @@ end
-----------------------------------------
function dataobj.OnClick()
- if FriendsFrame:IsVisible() then HideUIPanel(FriendsFrame)
- else
- ToggleFriendsFrame(3)
- FriendsFrame_Update()
- GameTooltip:Hide()
- end
+ ToggleGuildFrame()
+ if GuildFrame:IsShown() then tip:Hide() else dataobj.OnEnter(lastanchor) end
end
Please sign in to comment.
Something went wrong with that request. Please try again.