Page 1 of 1

0.14.22 LUA/API: scroll-pane documentation?

Posted: Thu Apr 13, 2017 8:12 am
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?

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

Posted: Thu Apr 13, 2017 9:39 am
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.