How is uncraftable recipe_slot_button defined?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2606
Joined: Sat Jun 11, 2016 6:41 am
Contact:

How is uncraftable recipe_slot_button defined?

Post by Optera »

In the crafting menu "uncraftable" (lack of ingredients) slots are tinted slightly darker.
I'd like to make these slots a bit darker, but can't find any reference to a different sprite or tint it in either recipe_slot_button, CGUI_filter_slot_button or button.
2020-03-28-07-44-27-6858667.png
2020-03-28-07-44-27-6858667.png (667.51 KiB) Viewed 80 times

posila
Factorio Staff
Factorio Staff
Posts: 4495
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: How is uncraftable recipe_slot_button defined?

Post by posila »

In this case, that's defined as tints in utility constants

Code: Select all

    enabled_recipe_slot_tint = {r = 1, g = 1, b = 1},
    disabled_recipe_slot_tint = { r = 0.7, g = 0.7, b = 0.7, a = 0.7 },
    disabled_recipe_slot_background_tint = { r = 0.7, g = 0.7, b = 0.7, a = 1 },
    forced_enabled_recipe_slot_background_tint = { r = 0.70, g = 0.7, b = 0.0, a = 0.8 },

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2606
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: How is uncraftable recipe_slot_button defined?

Post by Optera »

Thank you.

Post Reply

Return to “Modding help”

Who is online

Users browsing this forum: No registered users