DIY Vertical Scrollbar

Place to get help with not working mods / modding interface.
scruffyvoltherder
Inserter
Inserter
Posts: 33
Joined: Fri Jun 14, 2024 12:33 am
Contact:

DIY Vertical Scrollbar

Post 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?
Rseding91
Factorio Staff
Factorio Staff
Posts: 16341
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: DIY Vertical Scrollbar

Post 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.
If you want to get ahold of me I'm almost always on Discord.
scruffyvoltherder
Inserter
Inserter
Posts: 33
Joined: Fri Jun 14, 2024 12:33 am
Contact:

Re: DIY Vertical Scrollbar

Post 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.
Post Reply

Return to “Modding help”