Code: Select all
/c rendering.draw_text( { text = game.player.selected.force.name, target = game.player.selected, target_offset = { 0, - 3.7 }, surface = game.player.surface, color = { r = 1, g = 1, b = 1 }, scale = 2, alignment = 'center' } )
Code: Select all
/c rendering.draw_text( { text = game.player.selected.force.name, target = game.player.selected, target_offset = { 0, - 3.7 }, surface = game.player.surface, color = { r = 1, g = 1, b = 1 }, scale = 2, alignment = 'center' } )
Your thoughts were correct, with the parameter draw_on_ground I was able to draw under the FoW. Although it solves my problem, it just looks ugly. I would like to draw above the player and below the FoW. I think a new API parameter "draw_on_fog" is needed.