drawIcon: Difference between revisions
Jump to navigation
Jump to search
HeliJunkie (talk | contribs) m (Added example) |
HeliJunkie (talk | contribs) m (Added parameter and descriptions) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Draw an Icon on the map. |= Description | | Draw an Icon on the map. | ||
Align can be at least "left","center","right". All not recognized keys will be result in a rigth alignment. | |||
|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 15: | Line 18: | ||
|p2= [texture, color, position, width, height, angle, text, shadow, textSize, font, align]: [[Array]] |= Parameter 2 | |p2= [texture, color, position, width, height, angle, text, shadow, textSize, font, align]: [[Array]] |= Parameter 2 | ||
|p3= texture: [[String]] |= | |||
|p4= color: [[Array]]|= | |||
|p5= position: [[Position2D]]|= | |||
|p6= width: [[Number]]|= | |||
|p7= height: [[Number]]|= | |||
|p8= angle: [[Number]]|= | |||
|p9= text: [[String]] |= | |||
|p10= shadow: [[Boolean]] |= | |||
|p11= textSize: [[Number]]|= | |||
|p12= font: [[String]] |= | |||
|p13= align: [[String]] |= | |||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value |
Revision as of 16:57, 19 October 2013
Description
- Description:
- Draw an Icon on the map. Align can be at least "left","center","right". All not recognized keys will be result in a rigth alignment.
- Groups:
- Uncategorised
Syntax
- Syntax:
- map drawIcon [texture, color, position, width, height, angle, text, shadow, textSize, font, align]
- Parameters:
- map: Control
- [texture, color, position, width, height, angle, text, shadow, textSize, font, align]: Array
- texture: String
- color: Array
- position: Position2D
- width: Number
- height: Number
- angle: Number
- text: String
- shadow: Boolean
- textSize: Number
- font: String
- align: String
- Return Value:
- Nothing
Examples
- Example 1:
_map drawIcon ["iconStaticMG",[1,0,0,1],getpos player, 24,24,getdir player,"Player Vehicle", false ,0.06, "TahomaB", "center"];
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- Posted on July 03, 2013 - 15:35
- Druid
- Support of paremeters textSize, font and align is in the game since Arma 3 version 0.72.