ItemPrototypeFlags::always_show
Posted: Thu Jun 25, 2020 12:14 am
ItemPrototypeFlags::always_show seems to be missing documentation on https://wiki.factorio.com/Types/ItemPrototypeFlags
Also, I'm having difficult getting it working...
I'm able to add flags like ItemPrototypeFlags#hidden and they appear to be working. So I believe I'm adding the flag correctly.
bonus links:
Prototype/Item#flags
Concepts#ItemPrototypeFlags
Also, I'm having difficult getting it working...
I'm able to add flags like ItemPrototypeFlags#hidden and they appear to be working. So I believe I'm adding the flag correctly.
Code: Select all
local sb = serpent.block
local item = data.raw["item"]
local chest = item["logistic-chest-storage"]
chest.flags = chest.flags or {}
log(sb( chest ))
local flags = chest.flags
log(sb( flags ))
table.insert(flags,"hide-from-bonus-gui")
table.insert(flags,"always-show")
table.insert(flags,"hidden")
log(sb( chest ))
log(sb( flags ))
Prototype/Item#flags
Concepts#ItemPrototypeFlags