Hey, thank you,
I should have known that I had to check patch changes >,< my bad..
Lua Code:
local function GetDisplayGCDInfos(tt)
gcdMS, cooldownMS, spellName, spellName, spellID, itemName, ItemLink = nil
spellName, spellID = tt:GetSpell()
itemName, ItemLink = tt:GetItem()
if spellID ~= nil then
cooldownMS, gcdMS = GetSpellBaseCooldown(spellID)
print("ID:"..gcdMS)
elseif itemName ~= nil then
spellName, spellID = GetItemSpell(ItemLink)
cooldownMS, gcdMS = GetSpellBaseCooldown(spellID)
print("spell from item link:"..gcdMS)
else
-- MACRO WAS HERE
spellName = _G[tt:GetName().."TextLeft"..1]:GetText()
_,_,_,_,_,_,spellID = GetSpellInfo(spellName)
cooldownMS, gcdMS = GetSpellBaseCooldown(spellID)
print("spell with no ID:"..gcdMS)
end
gcdMS = round(gcdMS / 1000,2)
gcdText = ""
gcdText = "GCD "..gcdMS.."sec"
tt:AddLine(gcdText,1,1,1)
end
TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Spell, GetDisplayGCDInfos)
TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Item, GetDisplayGCDInfos)
Only thing, how do I check "other" types? I mean, since onshow was global, it worked on macros with showtooltip in it (I marked the line in my code above). I can't find where there's a list of types in the patch changes?