[DiscordArchive] so i create lets say 1000x1000 window and 5000x5000 scroll frame place all nodes into scroll frame t
[DiscordArchive] so i create lets say 1000x1000 window and 5000x5000 scroll frame place all nodes into scroll frame t
Archived author: Rymercyble • Posted: 2023-10-13T09:37:41.011000+00:00
Original source
so i create lets say 1000x1000 window and 5000x5000 scroll frame place all nodes into scroll frame they are at their actual positions scroll frame magically just works when dragging and only thing i need is to check which are supposed to be visible ?
Archived author: Foe • Posted: 2023-10-13T09:37:51.055000+00:00
Original source
Yes
Archived author: Foe • Posted: 2023-10-13T09:38:17.362000+00:00
Original source
You anchor the nodes relative to the scroll frame
Archived author: Foe • Posted: 2023-10-13T09:38:26.469000+00:00
Original source
And when you drag the scroll frame it updates the nodes
Archived author: Rymercyble • Posted: 2023-10-13T09:38:58.209000+00:00
Original source
does it matter where i place scroll frame ? like 0,0 bottom left of window ?
Archived author: Foe • Posted: 2023-10-13T09:39:24.987000+00:00
Original source
Not really, what matters is where you position the nodes
Archived author: Foe • Posted: 2023-10-13T09:39:36.907000+00:00
Original source
You want to position them relative to center of the scroll frame
Archived author: Rymercyble • Posted: 2023-10-13T09:40:06.852000+00:00
Original source
i think that is where im getting lost
Archived author: Foe • Posted: 2023-10-13T09:40:40.253000+00:00
Original source
So "CENTER", scrollFrame, "CENTER", x, y in setpoint
Archived author: Foe • Posted: 2023-10-13T09:41:16.501000+00:00
Original source
That sets the center of the node relative to the center of the scrollframe with x and y offsets, where center of the scrollframe is 0,0