Page 1 of 1

[Implemented] Separate disabled_recipe_slot_tint use for red crafting slots and ingredient-less ones

Posted: Tue Sep 17, 2019 9:06 pm
by Deadlock989
Oioi,

In utility constants, disabled_recipe_slot_tint controls the tint for both crafting grid slots with a light grey background that are disabled because you don't have the ingredients to craft it, and the red background slots that are never handcraftable because they're not in a player crafting category. The default value is mid-grey, mid-alpha.

My tired old eyes can't see the icons very well on the red background. I was super-hoping to be able to make those icons solid and readable again, but keep the "greyed out" fade effect for things you could craft if you had the ingredients. No dice, the constant applies to both ...

Would be super handy if they were two separate constants.

Another bonus would be that taking the alpha away on red slots stops any layered icons from looking weird - because each layer has the alpha applied, you can see through layers to the layer underneath.

Cheers big ears

Re: [Request] Separate disabled_recipe_slot_tint use for red crafting slots and ingredient-less ones

Posted: Fri Sep 20, 2019 6:51 pm
by Deadlock989
Just to add - there is actually some precedent for this in the base game - red slots on the crafting tab are both a red background and the faded icon, but red slots in the "total raw" calculations have the fully opaque icon:

Re: [Request] Separate disabled_recipe_slot_tint use for red crafting slots and ingredient-less ones

Posted: Tue Mar 17, 2020 7:19 pm
by Deadlock989
This is effectively implemented as of 0.18.13.

The "non-handcrafting" red crafting slots no longer use the disabled tint, which is a massive improvement.

Also, the disabled icon tint is now separate from the disabled background button tint in the utility constants, so modders can turn the translucent/darkened icons off for insufficiently-ingredient-y crafting tabs by setting disabled_recipe_slot_tint to solid white, while still having them visually distinct from things you can craft by having disabled_recipe_slot_background_tint as the default or some other darkened/tinted value.

Many thanks for this.