fizzwidget / hover-tips Goto Github PK
View Code? Open in Web Editor NEWWoW addon adding mouseover tooltips to most chat-text hyperlinks
WoW addon adding mouseover tooltips to most chat-text hyperlinks
Message: Interface\AddOns\GFW_HoverTips\HoverTips.lua:138: attempt to call global 'BNGetToonInfo' (a nil value)
Looks like that func went away. Replacement for our purposes is probably BNGetGameAccountInfo
.
Line 6, simple add keystone = true to show keystones
local linkTypes = {item = true, enchant = true, spell = true, quest = true, unit = true, talent = true, achievement = true, glyph = true, instancelock = true, currency = true, BNplayer = true, keystone = true }
http://www.wowinterface.com/downloads/info6837-tekKompare.html
The hover lua file has a solution that works great
Essentially you would modify your code as such (adding in the two functions, the elseif section and BattlePetTooltip:Hide() onhpyerlinkleave
local function tonumber_all(v, ...)
if select('#', ...) == 0 then
return tonumber(v)
else
return tonumber(v), tonumber_all(...)
end
end
local function ShowBattlePetTooltip(frame, pre, ...)
GameTooltip:SetOwner(frame, "ANCHOR_TOPRIGHT")
BattlePetToolTip_Show(tonumber_all(...))
end
local function OnHyperlinkEnter(frame, link, ...)
local linkType, linkContent = link:match("^([^:]+):(.+)")
if (linkType) then
if (linkType == FDA_LINK_TYPE and FDA_ShowCurrentArtifactTooltipForRace) then
local raceIndex = tonumber(linkContent);
if (raceIndex) then
GameTooltip:SetOwner(frame, "ANCHOR_TOPRIGHT")
FDA_ShowCurrentArtifactTooltipForRace(GameTooltip, raceIndex);
end
elseif (linkType == FDA_SOLVE_LINK_TYPE and FDA_ShowSolveTooltipForRace) then
local raceIndex = tonumber(linkContent);
if (raceIndex) then
GameTooltip:SetOwner(frame, "ANCHOR_TOPRIGHT")
FDA_ShowSolveTooltipForRace(raceIndex);
end
elseif (linkType == "player") then
ShowPlayerTooltip(frame, linkContent);
elseif (linkType == "BNplayer") then
ShowBattleNetTooltip(frame, linkContent);
elseif (linkType == "journal") then
ShowJournalTooltip(frame, linkContent);
elseif linkTypes[linkType] then
GameTooltip:SetOwner(frame, "ANCHOR_TOPRIGHT")
GameTooltip:SetHyperlink(link)
GameTooltip:Show()
elseif (linkType == "battlepet") then
ShowBattlePetTooltip(frame, strsplit(":", link))
end
end
if orig1[frame] then return orig1[frame](frame, link, ...) end
end
local function OnHyperlinkLeave(frame, ...)
GameTooltip:Hide()
BattlePetTooltip:Hide()
if orig2[frame] then return orig2[frame](frame, ...) end
end
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.