Forums WoW Modding Support Archives WoWModding Support Archives [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?

[DiscordArchive] Is there any reason you dont want to use GameTooltip and have it display the spell data by ID?

rektbyfaith
Administrator
0
11-10-2023, 02:26 PM
#1
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?
rektbyfaith
11-10-2023, 02:26 PM #1

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?

rektbyfaith
Administrator
0
11-10-2023, 02:27 PM
#2
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
rektbyfaith
11-10-2023, 02:27 PM #2

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

rektbyfaith
Administrator
0
11-10-2023, 02:28 PM
#3
Archived author: Rymercyble • Posted: 2023-11-10T14:28:09.199000+00:00
Original source

it wont be necessarily just 1 spell per node
rektbyfaith
11-10-2023, 02:28 PM #3

Archived author: Rymercyble • Posted: 2023-11-10T14:28:09.199000+00:00
Original source

it wont be necessarily just 1 spell per node

rektbyfaith
Administrator
0
11-10-2023, 02:34 PM
#4
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();
```
rektbyfaith
11-10-2023, 02:34 PM #4

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();
```

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)