Hello, I have a problem with this bit
Lua Code:
local function GetMacroIDInfos(tt)
spellID = nil
displayedName = placeholderG[tt:GetName().."TextLeft"..1]:GetText()
placeholder,placeholder,placeholder,placeholder,placeholder,placeholder,spellID = GetSpellInfo(displayedName)
if spellID ~= nil then
SetNewLineWithID(tt,spellID)
end
end
TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Macro, GetMacroIDInfos)
Apparently the placeholderG object is not filled properly. For instance, I did that for spells
Lua Code:
local function GetSpellIDInfos(tt)
spellID = nil
placeholder, spellID = TooltipUtil.GetDisplayedSpell(tt)
if spellID ~= nil then
SetNewLineWithID(tt,spellID)
end
end
TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Spell, GetSpellIDInfos)
and it work like a charm.
Any idea what is happening here?