Page 1 of 1

DIY Vertical Scrollbar

Posted: Sun Nov 30, 2025 4:33 am
by scruffyvoltherder
I'm looking for a way to build a scrollbar with the GUI or some type of vertical version of the slider. Normally i would just use a scroll-pane.

However, I'm working on a mod that displays a large amount of data, and I don't want to have to update elements that aren't visible. Since visibility information for elements and scroll-bar position for scroll panes are unavailable. Since I can't use that, I plan to create and destroy elements based on the position of a vertical slider.

any idea how implement that?

Re: DIY Vertical Scrollbar

Posted: Sun Nov 30, 2025 7:10 am
by Rseding91
Sounds like you want a page view with a number picker. Then show X results at a time and make the player switch pages to see more.

Re: DIY Vertical Scrollbar

Posted: Sun Nov 30, 2025 7:46 am
by scruffyvoltherder
Kind of. I need to be a bit more granular than that. More like row-by row. I tried having a horizontal flow with a whole bunch of buttons and no padding, but i wound up with a bunch of really small buttons that are hard to click on with spaces in between them.
Too bad that the slider control can't be made vertical, that would probably work the best.