drawLine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|gr1= GUI Control - Map |GROUP1=
|gr1= GUI Control - Map




| Draw a line on the map. Can decrease framerate!|DESCRIPTION=
| Draw a line on the map. Can decrease framerate!


| map '''drawLine''' [position1, position2, color] |SYNTAX=
| map '''drawLine''' [position1, position2, color]


|p1= map: [[Control]] |PARAMETER1=
|p1= map: [[Control]]


|p2= [position1, position2, color]: [[Array]] |PARAMETER2=
|p2= [position1, position2, color]: [[Array]]


|p3= position1: [[Position2D]], [[Position3D]], [[Object]] |PARAMETER3=
|p3= position1: [[Position2D]], [[Position3D]], [[Object]]


|p4= position2: [[Position2D]], [[Position3D]], [[Object]] |PARAMETER4=
|p4= position2: [[Position2D]], [[Position3D]], [[Object]]


|p5= color: [[Color|Color (RGBA)]] |PARAMETER5=
|p5= color: [[Color|Color (RGBA)]]


|x1= <code>([[findDisplay]] 12 [[displayCtrl]] 51) [[ctrlAddEventHandler]] ["Draw","
|x1= <code>([[findDisplay]] 12 [[displayCtrl]] 51) [[ctrlAddEventHandler]] ["Draw","
Line 28: Line 28:
[0,0,1,1]
[0,0,1,1]
];
];
"];</code> |Example 1=
"];</code>


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|  [[drawArrow]], [[drawEllipse]], [[drawIcon]], [[drawRectangle]], [[drawPolygon]], [[drawTriangle]] |SEEALSO=
|  [[drawArrow]], [[drawEllipse]], [[drawIcon]], [[drawRectangle]], [[drawPolygon]], [[drawTriangle]]


}}
}}

Revision as of 00:36, 18 January 2021

Hover & click on the images for description

Description

Description:
Draw a line on the map. Can decrease framerate!
Groups:
GUI Control - Map

Syntax

Syntax:
map drawLine [position1, position2, color]
Parameters:
map: Control
[position1, position2, color]: Array
position1: Position2D, Position3D, Object
position2: Position2D, Position3D, Object
color: Color (RGBA)
Return Value:
Nothing

Examples

Example 1:
(findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw"," (_this select 0) drawLine [ getPos player, [0,0,0], [0,0,1,1] ]; "];

Additional Information

See also:
drawArrowdrawEllipsedrawIcondrawRectangledrawPolygondrawTriangle

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

Bottom Section