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

[DiscordArchive] > i would change local tooltipFrame = CreateFrame("Frame", nil, treeFrame) to local tooltipFrame = C

Pages (5): Previous 1 2 3 4 5 Next
rektbyfaith
Administrator
0
11-10-2023, 02:56 PM
#11
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
rektbyfaith
11-10-2023, 02:56 PM #11

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

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

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

rektbyfaith
Administrator
0
11-10-2023, 02:58 PM
#13
Archived author: Rymercyble • Posted: 2023-11-10T14:58:24.010000+00:00
Original source

i commented out all my code and leave only this
rektbyfaith
11-10-2023, 02:58 PM #13

Archived author: Rymercyble • Posted: 2023-11-10T14:58:24.010000+00:00
Original source

i commented out all my code and leave only this

rektbyfaith
Administrator
0
11-10-2023, 02:58 PM
#14
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.
rektbyfaith
11-10-2023, 02:58 PM #14

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.

rektbyfaith
Administrator
0
11-10-2023, 02:59 PM
#15
Archived author: tester • Posted: 2023-11-10T14:59:02.908000+00:00
Original source

start with 0,0
rektbyfaith
11-10-2023, 02:59 PM #15

Archived author: tester • Posted: 2023-11-10T14:59:02.908000+00:00
Original source

start with 0,0

rektbyfaith
Administrator
0
11-10-2023, 02:59 PM
#16
Archived author: Rymercyble • Posted: 2023-11-10T14:59:11.286000+00:00
Original source

oh wait its absolute to screen ?
rektbyfaith
11-10-2023, 02:59 PM #16

Archived author: Rymercyble • Posted: 2023-11-10T14:59:11.286000+00:00
Original source

oh wait its absolute to screen ?

rektbyfaith
Administrator
0
11-10-2023, 02:59 PM
#17
Archived author: tester • Posted: 2023-11-10T14:59:17.936000+00:00
Original source

and you put data.frame for the ANCHOR point
rektbyfaith
11-10-2023, 02:59 PM #17

Archived author: tester • Posted: 2023-11-10T14:59:17.936000+00:00
Original source

and you put data.frame for the ANCHOR point

rektbyfaith
Administrator
0
11-10-2023, 02:59 PM
#18
Archived author: tester • Posted: 2023-11-10T14:59:53.288000+00:00
Original source

so instead use `tooltipFrame:SetOwner(data.frame, "ANCHOR_TOPRIGHT");`
rektbyfaith
11-10-2023, 02:59 PM #18

Archived author: tester • Posted: 2023-11-10T14:59:53.288000+00:00
Original source

so instead use `tooltipFrame:SetOwner(data.frame, "ANCHOR_TOPRIGHT");`

rektbyfaith
Administrator
0
11-10-2023, 03:14 PM
#19
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.
rektbyfaith
11-10-2023, 03:14 PM #19

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.

rektbyfaith
Administrator
0
11-10-2023, 03:28 PM
#20
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
rektbyfaith
11-10-2023, 03:28 PM #20

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

Pages (5): Previous 1 2 3 4 5 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)