Ability to mark non-interactive areas/zones
Posted: Tue Jun 12, 2018 1:29 pm
I would like to mark one or multiple areas/zones defined by (for starters) a square, without needing to place down concrete or something similar via (soft-)mod.
Visually I would prefer a not too in your face border. Maybe a definable tint of the border tiles.
surface.addZone(x1,y1,x2,y2,tint={r,g,b,a}, fill=bool) : returns zoneId
surface.removeZone(zoneId)
or for polygonal markings:
surface.addZone(area=[{x,y},{x,y},{x,y},{x,y},..],tint={r,g,b,a}, fill=bool) : returns zoneId
instead of fill you could do flags={fill=true/false, flash=true/false, show_on_map=true/false etc.}
My use-case: Mark zones that allow building a specific building, or give buildings specific abilities if they are in a specific zone. In my case a train-stop gets the ability to teleport. I can implement the zones, but the player has to guess where the zones are, which is not very user friendly. But placing down concrete looks ugly, conflicts with stuff on the map and has complications when changing the zones dimensions later.
Possible use-case for you: Use it in tutorials to highlight stuff for the current tutorial step. "Go here and mine zone iron ore".
Visually I would prefer a not too in your face border. Maybe a definable tint of the border tiles.
surface.addZone(x1,y1,x2,y2,tint={r,g,b,a}, fill=bool) : returns zoneId
surface.removeZone(zoneId)
or for polygonal markings:
surface.addZone(area=[{x,y},{x,y},{x,y},{x,y},..],tint={r,g,b,a}, fill=bool) : returns zoneId
instead of fill you could do flags={fill=true/false, flash=true/false, show_on_map=true/false etc.}
My use-case: Mark zones that allow building a specific building, or give buildings specific abilities if they are in a specific zone. In my case a train-stop gets the ability to teleport. I can implement the zones, but the player has to guess where the zones are, which is not very user friendly. But placing down concrete looks ugly, conflicts with stuff on the map and has complications when changing the zones dimensions later.
Possible use-case for you: Use it in tutorials to highlight stuff for the current tutorial step. "Go here and mine zone iron ore".