Access to "corrected" player chat color.
Posted: Thu Oct 04, 2018 9:52 am
Since chat color is now edited for better contrast it's no longer possible to print chat messages in the player color via lua. I tried default/red/green and they all produce different color output.
Here's an example picture chat vs command:
As i'd also like to show the player name in custom GUIs it would be nice to have access to the "corrected" color, either via player.high_contrast_color or via exposing the correction in e.g. util.fix_chat_color.
Code: Select all
hi!
/c game.print('eradicator: hi!', game.player.color)