Difference between revisions of "LavishGUI:map (Element Type)"

From Lavish Software Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
 
=== What is a Map? ===
 
=== What is a Map? ===
A map element is an area for [[LavishGUI:mapblip_%28Element_Type%29|blip]] management, such as radar.  This may be later extended to include drawing of lines and other geometric shapes as well.  Map and their [[LavishGUI:mapblip_%28Element_Type%29|blips]] are designed to be dynamically adjusted through script or extension.
+
A map element is an area for [[LavishGUI:mapblip_%28Element_Type%29|blip]] management, such as radar.  This may be later extended to include drawing of lines and other geometric shapes as well.  Map and their [[LavishGUI:mapblip_%28Element_Type%29|blips]] are designed to be dynamically adjusted through script or extension. [[LavishGUI:lguimap_%28Data_Type%29|lguimap (Data Type)]] is used to provide access via LavishScript.
  
 
== Using Maps ==
 
== Using Maps ==
Line 33: Line 33:
 
== See Also ==
 
== See Also ==
 
* [[LavishGUI:mapblip_%28Element_Type%29|mapblip element]]
 
* [[LavishGUI:mapblip_%28Element_Type%29|mapblip element]]
 +
* [[LavishGUI:lguimap_%28Data_Type%29|lguimap (Data Type)]]
 
* [[LavishGUI]]
 
* [[LavishGUI]]
 
* [[LavishGUI:Elements|Elements]]
 
* [[LavishGUI:Elements|Elements]]
 
[[Category:LavishGUI]]
 
[[Category:LavishGUI]]

Latest revision as of 23:14, 15 December 2005

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)

Examples

Example code

See Also