Page 1 of 1

ItemPrototype::spoil_bar_visible

Posted: Fri Mar 13, 2026 7:05 am
by thesixthroc
For items that spoil in a loop into each other, especially with short timers, when sitting on belts it can sometimes be visually noisy to have the spoil bar visible (when in alt mode). An API like this defaulting to true would allow modders to disable this behavior.

For this proposal I believe the behavior in inventory views should be unchanged.

Re: ItemPrototype::spoil_bar_visible

Posted: Fri Mar 13, 2026 1:10 pm
by Amarula
thesixthroc wrote: Fri Mar 13, 2026 7:05 am For items that spoil in a loop into each other, especially with short timers, when sitting on belts it can sometimes be visually noisy to have the spoil bar visible (when in alt mode). An API like this defaulting to true would allow modders to disable this behavior.
Or an option for players to disable the same way we can turn off inserter arrows in ALT mode :)

Re: ItemPrototype::spoil_bar_visible

Posted: Fri Mar 13, 2026 5:13 pm
by protocol_1903
+1

Re: ItemPrototype::spoil_bar_visible

Posted: Sat Mar 14, 2026 2:01 pm
by Rseding91
For 2.1 I've added ItemPrototypeFlags hide-health-bar-in-world, and hide-spoilage-bar-in-world.

Re: ItemPrototype::spoil_bar_visible

Posted: Sat May 09, 2026 10:21 pm
by Osmo
Rseding91 wrote: Sat Mar 14, 2026 2:01 pm For 2.1 I've added ItemPrototypeFlags hide-health-bar-in-world, and hide-spoilage-bar-in-world.
Can there also be one for ammo bar? For items whose main purpose isn't being ammo.
Or would that not be a thing similar to science packs? :)

Re: ItemPrototype::spoil_bar_visible

Posted: Sat May 09, 2026 10:45 pm
by Rseding91
Ammo already doesn’t draw in world.

Re: ItemPrototype::spoil_bar_visible

Posted: Sat May 09, 2026 11:54 pm
by Osmo
Oh right, it doesn't control drawing it in inventories. Sorry for the confusion