-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c10567
commit 1c42f68
Showing
8 changed files
with
87 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
local createTooltip = function(frameName) | ||
-- https://wowwiki-archive.fandom.com/wiki/UIOBJECT_GameTooltip | ||
local tt = CreateFrame("GameTooltip", frameName, nil, "GameTooltipTemplate") | ||
tt:SetScript("OnHide", function() tt:SetOwner(WorldFrame, "ANCHOR_NONE") end) | ||
tt:Hide() | ||
tt:SetFrameStrata("Tooltip") | ||
return tt | ||
end | ||
|
||
--[[ [ Quiver_Lib_Tooltip_Factory ] | ||
@description Returns a function that clears the tooltip and gets a reference to it. | ||
@param frameName string name for tooltip element | ||
]] | ||
Quiver_Lib_Tooltip_Factory = function(frameName) | ||
local tooltip = nil | ||
return function() | ||
if not tooltip then tooltip = createTooltip(frameName) end | ||
tooltip:SetOwner(WorldFrame, "ANCHOR_NONE") | ||
return tooltip | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters