Difference between revisions of "BIN fnc bezierEditor"

From Bohemia Interactive Community
Jump to navigation Jump to search
Contact>Unknown user
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "{{Feature arma3contact|This function is part of the Arma 3 Contact expansion only.}}" to "{{Feature arma3contact}}")
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
{{Function|Comments=
{{Function|= Comments
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| arma3 |= Game name
+
| arma3 |Game name=
  
|1.00|= Game version
+
|1.94|Game version=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
Line 36: Line 35:
 
]
 
]
  
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
+
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small>
 +
{{Feature arma3contact}} |Description=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| <!-- [] call [[BIN_fnc_bezierEditor]]; --> |= Syntax
+
| <!-- [] call [[BIN_fnc_bezierEditor]]; --> |Syntax=
  
|p1= |= Parameter 1
+
|p1= |Parameter 1=
  
| |= Return value
+
| |Return value=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
|x1= <code></code> |=  
+
|x1= <code></code> |Example 1=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| |= See also
+
| |See also=
 
 
 
}}
 
}}
  

Revision as of 14:04, 6 December 2019

Introduced with Arma 3 version 1.941.94
Hover & click on the images for descriptions

Description

Description:
#define POINT_W			(0.03)
#define POINT_H			(POINT_W / 0.75)
#define RESOLUTION		50
#define MAX_POINTS		16
#define GRIDS			10
#define REFRESH			([_ctrlParent] call (_ctrlArea getvariable "fnc_draw"))
#define POINTS			(_ctrlArea getvariable "points")
#define LINES			(_ctrlArea getvariable "lines")
#define CURVE			(_ctrlArea getvariable "curve")
#define BUTTONS			(_ctrlArea getvariable "buttons")
#define HOVER			(_ctrlArea getvariable "hover")
#define SELECTED		(_ctrlArea getvariable "selected")
#define SET_HOVER(CTRL)		_ctrlArea setvariable ["hover",CTRL]; CTRL ctrlsettextcolor COLOR_SELECTED
#define SET_SELECTED(CTRL)	_ctrlArea setvariable ["selected",CTRL]
#define COLOR_BACKGROUND	[0.4,0.4,0.4,1]
#define COLOR			[0,0,0,1]
#define COLOR_SELECTED		[1,1,1,1]
#define COLOR_CURVE		[1,0,0,1]
#define COLOR_LINE		[0,0,0,0.2]
#define COLOR_TIMELINE		[1,1,1,1]
#define COLOR_GRID		[1,1,1,0.3]
#define POINT_POS		[\
					(_posX - POINT_W / 2) max 0 min ((ctrlposition _ctrlArea select 2) - POINT_W),\
					(_posY - POINT_H / 2) max 0 min ((ctrlposition _ctrlArea select 3) - POINT_H),\
					POINT_W,\
					POINT_H\
				]

(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
arma3 Contact logo black.png
This content is exclusive to the Arma 3 Contact Expansion.

Syntax

Syntax:
Return Value:

Examples

Example:
Example needed

Additional Information

Execution:
call
See also:
See also needed
Groups:
Uncategorised

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

Bottom Section