Use more color masks like the locomotive
Posted: Mon Apr 08, 2019 3:54 pm
So I just checked the "gui-new.png" in the core/graphics folder to see how difficult it would be to change the colors to adjust for color-blindness.
Wouldn't it be better to use a color-mask and a separate shadow mask to create a button, kinda like you already do with the locomotive and the trees?
A color mask would actually give the opportunity of adding a color picker and make the game more accessible for colorblind players. Or at least set them in a config file.
And you'd only need one or two shade masks as you could just invert them for a button pressed compared to when not.
I know this would add some draw calls, but you could cache a button as long as a specific dialog is shown, and it would add a huge value of convenience to the game.
Wouldn't it be better to use a color-mask and a separate shadow mask to create a button, kinda like you already do with the locomotive and the trees?
A color mask would actually give the opportunity of adding a color picker and make the game more accessible for colorblind players. Or at least set them in a config file.
And you'd only need one or two shade masks as you could just invert them for a button pressed compared to when not.
I know this would add some draw calls, but you could cache a button as long as a specific dialog is shown, and it would add a huge value of convenience to the game.