Code: Select all
rendering.draw_rectangle({
surface = game.surfaces["nauvis"],
left_top = game.players[1].position,
right_bottom = {
game.players[1].position.x + 10,
game.players[1].position.y + 10
},
filled = true,
color = { r = 1, g = 0, b = 0, a = 0.1 }
})
Is there any api in which i could access the window size. For mod specific reasons I cannot draw this as a part of the gui.