Page 1 of 1

Transparency with tiles in map.

Posted: Wed Nov 06, 2019 12:28 am
by jamiechi1
I created a mod that adds tiles to the game.
I used map_color as shown to set the color in the map view for all my tiles.
code: map_color={r=0.1, g=0.1, b=0.1, a=0.05},
Is the alpha value supposed to work? (I don't think the alpha has any effect.)
I don't see any difference in the map view when changing the alpha value.

I also found that after changing the map_color values, and restarting the game, you have to remove and replace an item to get the map colors to change to the new settings. And that only changes the map colors in the current chunk that the player is in when the item(s) is(are) replaced.

Is there a way to force the map to update completely when the map_color is changed?

Re: Transparency with tiles in map.

Posted: Wed Nov 06, 2019 8:11 am
by Klonan
jamiechi1 wrote: Wed Nov 06, 2019 12:28 am Is there a way to force the map to update completely when the map_color is changed?
game.player.force.rechart()

Re: Transparency with tiles in map.

Posted: Wed Nov 06, 2019 10:26 pm
by jamiechi1
Thank you.