dcsext.ui.PolyLine
PolyLine - draw a poly line on the F10 map.
Contents
Description
The polyline is drawn as a sequence of Line segments connecting consecutive points.
See Also
Metamethods
polyline:__init(points, scope)
Constructor. Raises an error when fewer than two points are supplied.
Parameters
- points
- lua list of 2d points.
- scope
- dcsext.enum.coalition, which coalition can see the polyline
Methods
polyline:draw()
Override draw method to handle calling all line segments. Draws every segment and then marks the polyline as drawn.
polyline:remove()
Override remove method to handle calling all line segments. Removes every segment and then clears the drawn state.
polyline:update(key, new, old)
Override update method to handle setting the associated property of each line segment.
Parameters
- key
- name of the updated property.
- new
- the new property value.
- old
- the previous property value.