Page 1 of 1

How to overlay player color tocharacter icon

Posted: Sun Jun 21, 2020 8:01 pm
by Mifczu
Hi
I display character icon like this:

Code: Select all

function Events.on_player_created(event)
    game.get_player(event.player_index).gui.left.add{ type = "label", caption='[entity=character]' }
end
How to apply player color to this icon? For text it is easy.

Is there an expanded description on how to create the interface? Maybe some libraries to facilitate this?