0.14.22 LUA/API: scroll-pane documentation?

Place to post guides, observations, things related to modding that are not mods themselves.
Plawerth
Fast Inserter
Fast Inserter
Posts: 120
Joined: Thu Mar 02, 2017 12:57 am
Contact:

0.14.22 LUA/API: scroll-pane documentation?

Post by Plawerth »

I have decided to dip my toe into modding via control.lua, and want to try adding an event log window for game events, separate from the console.

Apparently I need a scroll-pane, with maybe 5000 to 10000 lines of scrollback.


But the API documentation is so vague... this is apparently the full and complete info for scroll-pane:

From: /Steam/steamapps/common/Factorio/doc-html/LuaGuiElement.html
"scroll-pane": Similar to a flow but includes the ability to show and use scroll bars.


The wiki apparently contains nothing except a changelog entry for it.
https://www.google.com/search?q=site%3A ... ll-pane%22


Is there something else I should be looking at which has more information?
Rseding91
Factorio Staff
Factorio Staff
Posts: 14911
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: 0.14.22 LUA/API: scroll-pane documentation?

Post by Rseding91 »

That's all there is to the widget type. It's literally just a flow that supports scrolling. It has no concept of "lines" - you create it, set a max height/width and it makes scroll bars if the contents exceed that max.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Modding discussion”