Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.6

Description

Description:

Draws a 2D icon on a planView control.

Just like all the other "draw" commands, this one needs to be refreshed every frame, in order to be visible. See drawLine and drawIcon for details.

Syntax

Syntax:plan planDrawIcon [icon, color, position, width, height, angle]
Parameters:
  • plan: Control - PlanView control.
  • icon: String - Icon to display. Can either be a Procedural Textures or a path. If using a procedural color, then all channels should be set to 1 (...color(1,1,1,1)), so that the following 'color' argument will work correctly. If a path is specified, then it can either refer to an absolute path on a local drive (path must start with the drive letter), or to an addon path (no drive letter).
  • color: Color - Color applied to non-transparent parts of the icon.
  • position: Position-2 - Section-relative position where center of the icon will be placed.
  • width: Number - Horizontal "radius" of icon.
  • height: Number - Vertical "radius" of icon.
  • angle: Number - Rotation angle (in degrees).
Return Value:Nothing

Examples

Examples:
_ctrl planDrawIcon ["\vbs2\ui\data\cursor_basic_ca.paa", [1,0,0,1], [2,2], 20, 20, 0];

For more information, see the following demo mission: PlanViewDemo.zip

Additional Information

See also: drawLine
Multiplayer: 
Problems: 

Notes