Page 1 of 1

Make window by the storage tank optional

Posted: Fri Jan 15, 2021 6:29 pm
by darkfrei
Hi devs!

Can you please make this parameters optional? I need the storage tank without any window.

Code: Select all

local entity= data.raw["storage-tank"]["storage-tank"]
entity.pictures.window_background
entity.pictures.fluid_background
entity.pictures.flow_sprite
entity.pictures.gas_flow
entity.window_bounding_box
entity.flow_length_in_ticks

Re: Make window by the storage tank optional

Posted: Fri Jan 15, 2021 10:28 pm
by PFQNiet
Can't you just set those graphics to the empty sprite?

Re: Make window by the storage tank optional

Posted: Fri Jan 15, 2021 10:32 pm
by kirazy
PFQNiet wrote: Fri Jan 15, 2021 10:28 pm Can't you just set those graphics to the empty sprite?
Yep.

Re: Make window by the storage tank optional

Posted: Fri Jan 15, 2021 11:41 pm
by darkfrei
PFQNiet wrote: Fri Jan 15, 2021 10:28 pm Can't you just set those graphics to the empty sprite?
I don't know why I need empty sprites for it.

Re: Make window by the storage tank optional

Posted: Sat Jan 16, 2021 12:04 am
by kirazy
darkfrei wrote: Fri Jan 15, 2021 11:41 pm
PFQNiet wrote: Fri Jan 15, 2021 10:28 pm Can't you just set those graphics to the empty sprite?
I don't know why I need empty sprites for it.
Mandatory properties but you don't want to use it.