Fluid colors

sparr
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Fluid colors

Post by sparr »

I'd like to be able to access base_color and flow_color for a fluid prototype.

Setting lamp colors to match fluid colors is one potential use for this.
Last edited by sparr on Mon Jun 06, 2016 8:43 am, edited 1 time in total.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Fluid colors

Post by bobingabout »

in the data loading phase?

Wouldn't that be as simple as accessing data.raw.fluid["water"].base_color and data.raw.fluid["water"].flow_color?

they should return a table that contains r, g and b as a minimum.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
sparr
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: Fluid colors

Post by sparr »

I want to access them in control.lua, not during data loading. I'll amend my original description to better cover that.
sparr
Smart Inserter
Smart Inserter
Posts: 1463
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: Fluid colors

Post by sparr »

implemented (in 0.13?) per RSeding on IRC
Post Reply

Return to “Implemented mod requests”