Status colours and the (solved) mystery of status_yellow

Place to get help with not working mods / modding interface.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Status colours and the (solved) mystery of status_yellow

Post by Deadlock989 »

I added some colour blindness support to my current mod project in the form of mod settings which set the hue of status lights on in-game entities. Drills and crafting machines have support for 8 different status tints if you include the completely transparent unpowered state; some of them only apply to specific entity types. For the "status lamp" on entity GUIs and tooltips, however, those are collapsed down to just 3 utility sprites: status_working, status_not_working and status_yellow. These colours are essentially baked into the sprite as green, red and amber/yellow; however because they are utility sprites you can override them with something else, e.g. something that uses layered tints and white highlights.

So what entity status corresponds to what GUI status?

- "status_working" (green lamp in vanilla) appears to correspond with "working"
- "status_not_working" (red lamp in vanilla) appears to be shown in every other case
- "status_yellow" doesn't seem to get shown, ever

That last one is bugging me because my brain is telling me I have seen a yellow lamp on a GUI and now I can't reproduce it so it's probably just me being senile.

Anyone know if status_yellow is actually used and if so, which entity status does it (roughly) correspond with?
Last edited by Deadlock989 on Fri Jan 08, 2021 5:25 pm, edited 1 time in total.
Bilka
Factorio Staff
Factorio Staff
Posts: 3431
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Status colours and the mystery of status_yellow

Post by Bilka »

status_yellow is used for the low power status.

status_working is used for
* Working
* Normal
* LaunchingRocket
* PreparingRocketForLaunch
* WaitingToLaunchRocket
* NetworksConnected
* Charging
* Discharging
* FullyCharged

status_not_working is used for the rest.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: Status colours and the mystery of status_yellow

Post by Deadlock989 »

Great, thanks.
Post Reply

Return to “Modding help”