[DiscordArchive] i did it like this
[DiscordArchive] i did it like this
Archived author: Rymercyble • Posted: 2023-10-14T05:08:35.075000+00:00
Original source
i did it like this
```lua
function talentNodeCulling()
local treeFrameX, treeFrameY = treeFrame:GetLeft(), treeFrame:GetBottom()
local nodeWindowX, nodeWindowY = nodeWindow:GetLeft(), nodeWindow:GetBottom()
local startX = nodeWindowX + math.abs(treeFrameX) - 100
local startY = nodeWindowY + math.abs(treeFrameY) - 100
local endX = startX + MellianTalentSettings.size.window.height + 100
local endY = startY + MellianTalentSettings.size.window.height + 100
for id, data in ipairs(nodes) do
if startX < data.x and data.x < endX and startY < data.y and data.y < endY then
data.frame:Show()
else
data.frame:Hide()
end
end
end
```
its slightly different but it pretty much works issue is when i start zooming in and out it just completely breaks....in ur video u didnt show zooming so i assume u dont even have it ?