Page 1 of 1

How is uncraftable recipe_slot_button defined?

Posted: Sat Mar 28, 2020 7:08 am
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 637 times

Re: How is uncraftable recipe_slot_button defined?

Posted: Sat Mar 28, 2020 7:28 am
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 },

Re: How is uncraftable recipe_slot_button defined?

Posted: Sat Mar 28, 2020 8:21 am
by Optera
Thank you.