How to set "red-ed out" inventory slots

Place to get help with not working mods / modding interface.
Post Reply
mami
Burner Inserter
Burner Inserter
Posts: 18
Joined: Fri Oct 21, 2022 12:27 am
Contact:

How to set "red-ed out" inventory slots

Post 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?

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5152
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

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

Post by Klonan »

Its part of LuaInventory:
https://lua-api.factorio.com/latest/Lua ... ry.set_bar

Internally it is called 'bar'

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2687
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

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

Post 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?
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics

mami
Burner Inserter
Burner Inserter
Posts: 18
Joined: Fri Oct 21, 2022 12:27 am
Contact:

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

Post by mami »

thanks, haha I missed it because I assumed "bar" had something to do with the quickbar without actually reading

Post Reply

Return to “Modding help”