Skip to content

Commit

Permalink
Open the proper frame
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkub committed Oct 2, 2010
1 parent 162ff2e commit bf67b6e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions picoGuild.lua
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ end
------------------------ ------------------------


local tip = LibStub("tektip-1.0").new(6, "LEFT", "LEFT", "CENTER", "RIGHT", "RIGHT", "RIGHT") local tip = LibStub("tektip-1.0").new(6, "LEFT", "LEFT", "CENTER", "RIGHT", "RIGHT", "RIGHT")
local lastanchor
function dataobj.OnLeave() tip:Hide() end function dataobj.OnLeave() tip:Hide() end
function dataobj.OnEnter(self) function dataobj.OnEnter(self)
tip:AnchorTo(self) tip:AnchorTo(self)
lastanchor = self


tip:AddLine("picoGuild") tip:AddLine("picoGuild")


Expand Down Expand Up @@ -135,12 +137,8 @@ end
----------------------------------------- -----------------------------------------


function dataobj.OnClick() function dataobj.OnClick()
if FriendsFrame:IsVisible() then HideUIPanel(FriendsFrame) ToggleGuildFrame()
else if GuildFrame:IsShown() then tip:Hide() else dataobj.OnEnter(lastanchor) end
ToggleFriendsFrame(3)
FriendsFrame_Update()
GameTooltip:Hide()
end
end end




Expand Down

0 comments on commit bf67b6e

Please sign in to comment.