mirror of
https://codeberg.org/Duvelcorp/MetaHunt.git
synced 2026-10-08 17:50:00 +00:00
zAmmo low-ammo flash + usage tracker; zPet unhappy flash; split parent/child tooltips
This commit is contained in:
@@ -797,7 +797,11 @@ function ZSpellButtonParent_OnEnter(frame)
|
||||
ZSpellButton_SetChildrenExpanded(frame, true)
|
||||
end
|
||||
ZSpellButton_ResetFadeTimer(frame)
|
||||
if frame.tooltip and frame.id then
|
||||
local showParentTooltip = frame.parentTooltip
|
||||
if showParentTooltip == nil then
|
||||
showParentTooltip = frame.tooltip
|
||||
end
|
||||
if showParentTooltip and frame.id then
|
||||
GameTooltip:SetOwner(frame, "ANCHOR_TOPLEFT")
|
||||
local msg, rank
|
||||
|
||||
@@ -807,6 +811,9 @@ function ZSpellButtonParent_OnEnter(frame)
|
||||
msg = msg.." ("..rank..")"
|
||||
end
|
||||
GameTooltip:SetText(msg, 1, 1, 1)
|
||||
elseif frame.suppressItemTooltip then
|
||||
GameTooltip:ClearLines()
|
||||
GameTooltip:SetText(frame.ammoname or frame.ammolink or "Ammo", 1, 1, 1)
|
||||
else
|
||||
local showedItemTooltip = nil
|
||||
if frame.ammobag and frame.ammoslot and type(GameTooltip.SetBagItem) == "function" then
|
||||
@@ -838,6 +845,10 @@ function ZSpellButtonParent_OnEnter(frame)
|
||||
end
|
||||
end
|
||||
|
||||
if type(frame.extraTooltip) == "function" then
|
||||
frame.extraTooltip(GameTooltip)
|
||||
end
|
||||
|
||||
GameTooltip:AddLine("Alt+Drag To Move This Button")
|
||||
GameTooltip:Show()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user