AltGameTooltip

Patch 8.0 status: nameplates now use a separate GameTooltip instance (NamePlateTooltip), so unless another portion of FrameXML causes GameTooltip to become forbidden, AltGameTooltip is probably not necessary.

The library provides a GameTooltip object (AltGameTooltip) which maps method calls to act on FrameXML's GameTooltip when it is not forbidden, and on a library-created alternative otherwise. Using AltGameTooltip allows addons to avoid errors when FrameXML's GameTooltip object becomes forbidden without requiring significant modifications of addon code.

How to use AltGameTooltip in your addon

  1. Include the library XML file in your addon, loading it before your other code.
  2. Change any instances of GameTooltip to AltGameTooltip in your addon. You can do this by any one of the following:
    • Adding local GameTooltip = AltGameTooltip to the top of any addon file interacting with GameTooltip; watch out for any instances of _G.GameTooltip or equivalent expressions.
    • Alternatively, replacing any occurrence of GameTooltip with AltGameTooltip in your addon, but watch out for GameTooltip_SetDefaultAnchor and similarly-named functions.

The above procedure is sufficient as long as your addon does not need to modify the script handlers (i.e., call :SetScript or :HookScript) on GameTooltip. If you need to do so, perform the modifications on both the original GameTooltip and the library-created AltGameTooltipRaw object.

What's a forbidden GameTooltip?

Hovering over a debuff over a friendly nameplate while in an instance (or certain other instanced world zones) causes GameTooltip to become forbidden. While forbidden, calling any method on GameTooltip except :IsForbidden will cause an error, interfering with addon functionality.

Download

File Name Status Version Downloads Date
1.0 R 7.3.5 208 10/03/2018
AltGameTooltip 7.3.0 Updating 7.3.0 Updating Updating
AltGameTooltip 7.3.2 Updating 7.3.2 Updating Updating
AltGameTooltip 8.0.1 Updating 8.0.1 Updating Updating
AltGameTooltip 8.1.0 Updating 8.1.0 Updating Updating
AltGameTooltip 8.1.5 Updating 8.1.5 Updating Updating
AltGameTooltip 8.2.0 Updating 8.2.0 Updating Updating
AltGameTooltip 8.2.5 Updating 8.2.5 Updating Updating
AltGameTooltip
AltGameTooltip

Dear youtuber!
Have you a channel youtube and want to bring your Video to quality visitors?
Do you want your video to appear on our website?
Do you want to become partner with us?
Just 3 steps to become our partner:
Step 1: Make video review for mods, addons, plugins, ... which you like
Step 2: Upload this video to youtube and our link to your video description
Step 3: Send the youtube video link via message to http://fb.com/9lifehack or leave a comment in the post. We will add your video in the our post, it will help you have more view.
JOIN to get more youtube view with us!!!!

Related Posts

Smarty Productivity Happiness

9LifeHack.com - make things smart