[DiscordArchive] Is there any reason you dont want to use GameTooltip and have it display the spell data by ID?
[DiscordArchive] Is there any reason you dont want to use GameTooltip and have it display the spell data by ID?
Archived author: tester • Posted: 2023-11-10T14:26:48.787000+00:00
Original source
Is there any reason you dont want to use GameTooltip and have it display the spell data by ID?
Archived author: tester • Posted: 2023-11-10T14:27:01.850000+00:00
Original source
then just add a line to the tooltip at the bottom for the requires points thing
Archived author: Rymercyble • Posted: 2023-11-10T14:28:09.199000+00:00
Original source
it wont be necessarily just 1 spell per node
Archived author: tester • Posted: 2023-11-10T14:34:22.459000+00:00
Original source
ic. i would change `local tooltipFrame = CreateFrame("Frame", nil, treeFrame)` to `local tooltipFrame = CreateFrame("Frame", nil, treeFrame)`
Rather than setting point, instead SetOwner to whatever node
`tooltipFrame:SetOwner(parent, anchor, x,y);`
add lines like:
`tooltipFrame:AddLine("");`
and `tooltipFrame:SetHeight(tooltipFrame:GetHeight() + 10);`
then whenever you have to hide the tooltip
```
tooltipFrame:ClearLines(0)
tooltipFrame:SetSize(0, 0)
tooltipFrame:Hide();
```