Page 1 of 1

How to set "red-ed out" inventory slots

Posted: Thu Jan 05, 2023 6:33 pm
by mami
So in most inventories in Factorio you can click the big X and red out several inventory slots to shrink the inventory size. How do I do this from a mod?
Also is there a more official name for "red-ing out" inventory slots?

Re: How to set "red-ed out" inventory slots

Posted: Thu Jan 05, 2023 6:43 pm
by Klonan
Its part of LuaInventory:
https://lua-api.factorio.com/latest/Lua ... ry.set_bar

Internally it is called 'bar'

Re: How to set "red-ed out" inventory slots

Posted: Thu Jan 05, 2023 7:37 pm
by FuryoftheStars
mami wrote: Thu Jan 05, 2023 6:33 pm Also is there a more official name for "red-ing out" inventory slots?
Blocking or disabling inventory slots?

Re: How to set "red-ed out" inventory slots

Posted: Thu Jan 05, 2023 9:06 pm
by mami
thanks, haha I missed it because I assumed "bar" had something to do with the quickbar without actually reading