LavishGUI:map (Element Type)
Jump to navigation
Jump to search
Contents
Introduction
What is a Map?
A map element is an area for blip management, such as radar. This may be later extended to include drawing of lines and other geometric shapes as well. Map and their blips are designed to be dynamically adjusted through script or extension. lguimap (Data Type) is used to provide access via LavishScript.
Using Maps
Maps are descendants of the base element type. Any attributes of the base element type may be applied in addition to the map-specific properties described below.
Map-Specific Properties
- ClipZ
- Enable special Z-axis clipping? (e.g. objects too high or too far below the origin)
- ClipRadius
- Clip blips by radius instead of box? (note: if this is set, MapSizeY is ignored, and MapSizeX will be the radius)
- ShowLabels
- Show blip labels?
- Rotation
- Clockwise Rotation, in radians, from +y being directly upward and +x being directly to the right
- MapSizeX
- Units from the origin to one edge of the map horizontally
- MapSizeY
- Units from the origin to one edge of the map vertically
- BlipFactory
- Default blip element type, if one is not specified when creating a new blip. If no default is supplied, "mapblip" will be used
- BlipTemplate
- Default blip template, if one is not specified when creating a new blip
Special Children of Map
- Tooltip
- A tooltip named "Tooltip" may be provided in the map element. If given, this will allow blips to set the tooltip information when the mouse hovers over that particular blip (with the OnSetTooltip embedded script)