Update player color in panels
Posted: 01 March 2017, 16:38
In a game I'm working on, the players' colors are not decided until the end of the first turn. At the start of the game I'm setting player_color to a grey, and then writing distinct colors into database and gameinfos.players when they are decided.
This works for subsequent messages. But the player names stay grey on the player panels (unless the game interface is reloaded, in which case they show up correct).
How can I update the color in the player panels dynamically?
Thanks,
This works for subsequent messages. But the player names stay grey on the player panels (unless the game interface is reloaded, in which case they show up correct).
How can I update the color in the player panels dynamically?
Thanks,