How to overlay player color tocharacter icon

Looking for a mod? Have a review on a mod you'd like to share?
User avatar
Mifczu
Inserter
Inserter
Posts: 36
Joined: Wed Feb 01, 2017 7:01 pm
Contact:

How to overlay player color tocharacter icon

Post 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?
Post Reply

Return to “Questions, reviews and ratings”