Require reload-safe ClassicAPI tooltip events
This commit is contained in:
@@ -112,9 +112,10 @@ API.unitguid = type(_G.UnitGUID) == "function"
|
||||
API.unittoken = type(_G.UnitTokenFromGUID) == "function"
|
||||
API.tooltipunit = _G.GameTooltip
|
||||
and type(_G.GameTooltip.GetUnitGUID) == "function"
|
||||
-- OnTooltipSetUnit shipped in ClassicAPI v1.8.2. Tooltip Details uses this
|
||||
-- native builder event directly instead of Vanilla OnShow/mouseover polling.
|
||||
API.tooltipsetunit = API.classicapi_version >= 10802
|
||||
-- OnTooltipSetUnit shipped in ClassicAPI v1.8.2, but its per-tooltip
|
||||
-- handler cells became reload-safe in v1.12.2. Require the fixed generation
|
||||
-- instead of falling back to Vanilla OnShow/mouseover polling.
|
||||
API.tooltipsetunit = API.classicapi_version >= 11202
|
||||
and API.tooltipunit and API.unittoken
|
||||
API.unitrange = type(_G.UnitInRange) == "function"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user