SetMarkerIcon: Difference between revisions
Jump to navigation
Jump to search
m (→Example) |
No edit summary |
||
Line 1: | Line 1: | ||
{{Server client function}} | |||
{{Needs_Checking|Didn't work with:<pre> | {{Needs_Checking|Didn't work with:<pre> | ||
Line 15: | Line 16: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool setMarkerIcon ( marker theMarker, | <syntaxhighlight lang="lua">bool setMarkerIcon ( marker theMarker, string icon )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
* '''theMarker''' | * '''theMarker:''' The [[marker]] to change the visual style of | ||
* '''icon''' | * '''icon:''' A string referring to the type of icon (see below) | ||
==Acceptable icon values== | ==Acceptable icon values== | ||
* '''"none"''' | * '''"none":''' No icon | ||
* '''"arrow"''' | * '''"arrow":''' Arrow icon | ||
* '''"finish"''' | * '''"finish":''' Finish icon (at end of race) | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">theMarker = createMarker ( 1000, 1000,1000, 0, 255, 0, 0 ) | <syntaxhighlight lang="lua">theMarker = createMarker ( 1000, 1000, 1000, 0, 255, 0, 0 ) | ||
setMarkerIcon ( theMarker, "finish" )</syntaxhighlight> | setMarkerIcon ( theMarker, "finish" )</syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Marker functions}} | {{Marker functions}} |
Revision as of 11:53, 16 August 2007
This article needs checking. | |
Reason(s): Didn't work with: root = getRootElement () addEventHandler ( "onResourceStart", root, "ResourceStart" ) function ResourceStart ( name, root ) marker1 = createMarker ( 1935.0825, -1709.9506, 151.77 ) setMarkerIcon ( marker1, "arrow" ) end ??--Ransom 20:00, 10 April 2007 (CDT) |
Description
This function sets an ID number that corresponds to a particular visual style of marker.
Syntax
bool setMarkerIcon ( marker theMarker, string icon )
Required Arguments
- theMarker: The marker to change the visual style of
- icon: A string referring to the type of icon (see below)
Acceptable icon values
- "none": No icon
- "arrow": Arrow icon
- "finish": Finish icon (at end of race)
Example
theMarker = createMarker ( 1000, 1000, 1000, 0, 255, 0, 0 ) setMarkerIcon ( theMarker, "finish" )
See Also
- createMarker
- getMarkerColor
- getMarkerCount
- getMarkerIcon
- getMarkerSize
- getMarkerTarget
- getMarkerType
- setMarkerColor
- setMarkerIcon
- setMarkerSize
- setMarkerTarget
- setMarkerType
- isElementWithinMarker