SetMarkerIcon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
==Description== | ==Description== | ||
This function sets | This function sets an ID number that corresponds to a particular visual style of marker. | ||
==Syntax== | ==Syntax== | ||
Line 8: | Line 8: | ||
===Required Arguments=== | ===Required Arguments=== | ||
* '''marker''': A [[marker]] class referencing the specified marker. | * '''marker''': A [[marker]] class referencing the specified marker. | ||
* '''icon''': An integer (whole number) referring to the icon | * '''icon''': An integer (whole number) referring to the type of icon (see below). | ||
==Acceptable icon values== | ==Acceptable icon values== | ||
* ''' | * '''"none"''': No icon | ||
* ''' | * '''"arrow"''': Arrow icon | ||
* ''' | * '''"finish"''': Finish (end-race) icon | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">marker = createMarker ( 1000, 1000, 1000, | <syntaxhighlight lang="lua">marker = createMarker ( 1000, 1000,1000, 0, 255, 0, 0 ) | ||
setMarkerIcon ( marker, | setMarkerIcon ( marker, "finish" )</syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Marker functions}} | {{Marker functions}} |
Revision as of 10:52, 24 September 2006
Description
This function sets an ID number that corresponds to a particular visual style of marker.
Syntax
bool setMarkerIcon ( marker marker, int icon )
Required Arguments
- marker: A marker class referencing the specified marker.
- icon: An integer (whole number) referring to the type of icon (see below).
Acceptable icon values
- "none": No icon
- "arrow": Arrow icon
- "finish": Finish (end-race) icon
Example
marker = createMarker ( 1000, 1000,1000, 0, 255, 0, 0 ) setMarkerIcon ( marker, "finish" )
See Also
- createMarker
- getMarkerColor
- getMarkerCount
- getMarkerIcon
- getMarkerSize
- getMarkerTarget
- getMarkerType
- setMarkerColor
- setMarkerIcon
- setMarkerSize
- setMarkerTarget
- setMarkerType
- isElementWithinMarker