Adds colorblind labels to:
- Stir Fry, using the familiar B/C/Me labels. Sides of broccoli are displayed as "-b", to differentiate.
- Turkey + sides
- Burgers
- Pizza
- Salad
- Chopped onion, broccoli, carrots, mushroom, cheese, olive, lettuce (when standalone)
Additionally, reorders the ice cream bowl labels (CSV) to be consistent with the appliance (SCV).
Note: The title screen will not reflect the new labels.
A menu has been added to allow turning off meals that might be unnecessary for you. Accessible through the Mod Preferences menu. The default for all is currently "On".
Note: Since the labels are injected when the game loads, the game will need restarted before seeing these changes take place.
This is mostly in case I forget, but:
ItemGroupView
s have two relevant properties:List<ColourBlindLabel> ComponentLabels
- list that gets loaded mysteriously, withItem
s and their one or two letter abbreviations, storing the letter abbreviations for each component in the dishTextMeshPro ColourblindLabel
object, which is what displays the text. This seemingly only set when the dish has colorblind support built into the game, and is null for ItemGroupViews not supported in game.
- Additionally, the prefab of the
Item
that needs color blind support need aColour Blind
child containing a TextMeshPro. Not all Items have this.
This mod works by:
- Taking the existing
Colour Blind
child from Pie - Cloning that child and adding it to an
Item
- Grabbing the
TextMeshPro
out of the clonedColour Blind
and setting it on theItem
'sItemGroupView.ColourblindLabel
- Setting the
ItemGroupView.ComponentLabels
property with a custom list of Items/abbreviations
Additionally, some Item
s, like Onions, just exist as Item
s, and not in an item group. These do not seem to have Colour Blind
labels at all, but they are also a single Item, so the solution is simply:
- Clone a
Colour Blind
child from Pie into the Item's prefab, and set thetext
property to desired label
Thankfully, the game's on/off feature for colour blind labels seems to turn these on/off just the same.