BIS fnc scaleAndTranslate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.78|Game version=
|1.78


|gr1 = Systems |GROUP1=
|gr1 = Systems


<!---|arg= local |Multiplayer Arguments=--->
<!---|arg= local |Multiplayer Arguments=--->
Line 34: Line 34:
sleep (_t * 2);
sleep (_t * 2);
[_controlFront, 0.8, "topRight", [0.5, 0.3]] call BIS_fnc_scaleAndTranslate;
[_controlFront, 0.8, "topRight", [0.5, 0.3]] call BIS_fnc_scaleAndTranslate;
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=
*/</pre>{{placeholder}}<!-- Remove this after fill-in -->


|[] call [[BIS_fnc_scaleAndTranslate]]|Syntax=
|[] call [[BIS_fnc_scaleAndTranslate]]


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|p1= parameter: Datatype - (Optional, default defValue) description


|Datatype - description|Return value=
|Datatype - description


|x1= <code></code>|Example 1=
|x1= <code></code>


|exec= call |Execution=
|exec= call |Execution=


| |See also=
|
}}
}}



Revision as of 00:47, 18 January 2021

Hover & click on the images for description

Description

Description:
/*
	Author: Riccardo Argiolas

	Description:
    	Translates and scales (with pivot) and fades a picture over time.

	Parameters:
	Select 0 - CONTROL: picture that has to be modified
	Select 1 - NUMBER: how much the picture has to be scaled (>1 makes it bigger, 1 keeps it the same, <1 makes it smaller)
	Select 2 - STRING: select the pivot's position (i.e. center of the scaling process)
	Select 3 - ARRAY: how much the picture has to be translated/moved in [X,Y] format
	Select 4 - NUMBER: either the duration of the animation(default) or the speed of the translation, depending on what the next parameter is set to.
	Select 5 - BOOL: true = duration will be used, false = speed will be used.
	Select 6 - NUMBER: transparency of the image at the end of the animation (1 = invisible)

	Returns: 
	NUMBER: Duration of the animation. (Useful for determining how much sleep time is needed between animations)

	Examples:
	[_controlFront, 0.8, "topLeft"] call BIS_fnc_scaleAndTranslate;
	_t = [_controlFront, 1, "bottomRight", [0.1, 0.1], 0.5, false] call BIS_fnc_scaleAndTranslate;
	sleep (_t * 2);
	[_controlFront, 0.8, "topRight", [0.5, 0.3]] call BIS_fnc_scaleAndTranslate;
*/
Template:placeholder
Execution:
call
Groups:
Systems

Syntax

Syntax:
[] call BIS_fnc_scaleAndTranslate
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:

Additional Information

See also:
See also needed

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