LuaControl.map_position
Posted: Tue May 12, 2020 3:41 pm
FOR USE WITH [m] Map Overlay
LuaControl.map_position = position the player is at on the map screen (center point)
LuaControl.map_zoom = tells me how zoomed in the player is, specifically to determine of the surface is being drawn or if the map overlay is being drawn.
LuaControl.map_is_open = exactly what it says on the tin
defines.events.on_player_map_state_changed (or opened/closed)
.... Why?
Because factorio doesn't like it when i draw over 200,000 sprites at once.
So instead i need to only draw them when they should be visible to a player.
Can't detect that for map view.
LuaControl.map_position = position the player is at on the map screen (center point)
LuaControl.map_zoom = tells me how zoomed in the player is, specifically to determine of the surface is being drawn or if the map overlay is being drawn.
LuaControl.map_is_open = exactly what it says on the tin
defines.events.on_player_map_state_changed (or opened/closed)
.... Why?
Because factorio doesn't like it when i draw over 200,000 sprites at once.
So instead i need to only draw them when they should be visible to a player.
Can't detect that for map view.