drawLine: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|gr1= GUI Control - Map | |gr1= GUI Control - Map | ||
| Draw a line on the map. Can decrease framerate! | | Draw a line on the map. Can decrease framerate! | ||
| map '''drawLine''' [position1, position2, color] | | map '''drawLine''' [position1, position2, color] | ||
|p1= map: [[Control]] | |p1= map: [[Control]] | ||
|p2= [position1, position2, color]: [[Array]] | |p2= [position1, position2, color]: [[Array]] | ||
|p3= position1: [[Position2D]], [[Position3D]], [[Object]] | |p3= position1: [[Position2D]], [[Position3D]], [[Object]] | ||
|p4= position2: [[Position2D]], [[Position3D]], [[Object]] | |p4= position2: [[Position2D]], [[Position3D]], [[Object]] | ||
|p5= color: [[Color|Color (RGBA)]] | |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> | "];</code> | ||
| [[Nothing]] | | [[Nothing]] | ||
| [[drawArrow]], [[drawEllipse]], [[drawIcon]], [[drawRectangle]], [[drawPolygon]], [[drawTriangle]] | | [[drawArrow]], [[drawEllipse]], [[drawIcon]], [[drawRectangle]], [[drawPolygon]], [[drawTriangle]] | ||
}} | }} |
Revision as of 00:36, 18 January 2021
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
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