Page 1 of 1

Use more color masks like the locomotive

Posted: Mon Apr 08, 2019 3:54 pm
by havarc
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.

Re: Use more color masks like the locomotive

Posted: Mon Apr 08, 2019 11:35 pm
by Tekky
@mods: A link to this thread should maybe be added to

viewtopic.php?f=80&t=22760 Color Blinds / Better Visibility ...

Re: Use more color masks like the locomotive

Posted: Tue Apr 09, 2019 5:47 am
by Koub
Done :)

Re: Use more color masks like the locomotive

Posted: Tue Apr 09, 2019 10:29 am
by havarc
Koub wrote: Tue Apr 09, 2019 5:47 am Done :)
Thanks, I hope this actually gets considered!

Re: Use more color masks like the locomotive

Posted: Tue Apr 09, 2019 11:05 am
by Tekky
Koub wrote: Tue Apr 09, 2019 5:47 am Done :)
Thanks. :)
havarc wrote: Tue Apr 09, 2019 10:29 am Thanks, I hope this actually gets considered!
See this thread for some developer responses regarding support for color blindness.