[DiscordArchive] > i would change local tooltipFrame = CreateFrame("Frame", nil, treeFrame) to local tooltipFrame = C
[DiscordArchive] > i would change local tooltipFrame = CreateFrame("Frame", nil, treeFrame) to local tooltipFrame = C
Archived author: tester • Posted: 2023-11-10T14:56:57.285000+00:00
Original source
then id start breaking down how you generally wrote it. i know what i gave you is valid code
Archived author: Rymercyble • Posted: 2023-11-10T14:58:02.390000+00:00
Original source
```lua
local tooltipFrame = CreateFrame("GameTooltip", "MellianTalentNodeTooltip", UIParent, "GameTooltipTemplate")
tooltipFrame:SetSize(300, 100)
tooltipFrame:Hide()
if data.spellId ~= 0 then
tooltipFrame:AddLine(MellianTalentSpellData[data.spellId][1].name);
tooltipFrame:AddLine(MellianTalentSpellData[data.spellId][1].description);
else
tooltipFrame:AddLine("Talent Name");
tooltipFrame:AddLine("Lemon drops macaroon dessert gummies cheesecake cake. Ice cream sweet lollipop oat cake jujubes fruitcake chupa chups halvah.");
end
tooltipFrame:SetOwner(data.frame, data.frame, data.x, data.y);
tooltipFrame:SetHeight(tooltipFrame:GetHeight() + 10);
tooltipFrame:Show()
```
Archived author: Rymercyble • Posted: 2023-11-10T14:58:24.010000+00:00
Original source
i commented out all my code and leave only this
Archived author: tester • Posted: 2023-11-10T14:58:54.258000+00:00
Original source
`data.x, data.y` this is an offset value. you're most likely pushing it off screen.
Archived author: tester • Posted: 2023-11-10T14:59:02.908000+00:00
Original source
start with 0,0
Archived author: Rymercyble • Posted: 2023-11-10T14:59:11.286000+00:00
Original source
oh wait its absolute to screen ?
Archived author: tester • Posted: 2023-11-10T14:59:17.936000+00:00
Original source
and you put data.frame for the ANCHOR point
Archived author: tester • Posted: 2023-11-10T14:59:53.288000+00:00
Original source
so instead use `tooltipFrame:SetOwner(data.frame, "ANCHOR_TOPRIGHT");`
Archived author: Rymercyble • Posted: 2023-11-10T15:14:35.540000+00:00
Original source
ye i have no idea even if i set it to be always visible it isnt anywhere.
Archived author: Rymercyble • Posted: 2023-11-10T15:28:56.745000+00:00
Original source
i will just pay some1 later to fix it i dont have time for this but ty for assistance