Git Product home page Git Product logo

hover-tips's People

Contributors

fizzwidget avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hover-tips's Issues

error on hover for BNet friend

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.

Add new keystone hover linktype

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 }

Adding battlenet pet tooltips

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.