cutFadeOut: Difference between revisions
Jump to navigation
Jump to search
(fixed the note) |
(overhauled examples, updated see also) |
||
Line 26: | Line 26: | ||
|r2= [[Number]] - number of the corresponding layer | |r2= [[Number]] - number of the corresponding layer | ||
|x1= <code>0 [[cutFadeOut]] 2;</code> | |x1= <code>0 [[cutFadeOut]] 2; {{cc|Be careful when using plain numbers as layer as they could be overwritten}}</code> | ||
|x2= <code> | |x2= <code>("TAG_LayerName" call [[BIS_fnc_rscLayer]]) [[cutFadeOut]] 2; {{cc|Using [[BIS_fnc_rscLayer]] to generate a layer ID will make sure it is unique}}</code> | ||
|seealso= [[allCutLayers]], [[cutText]], [[cutRsc]], [[cutObj]], [[allActiveTitleEffects]] | |x3= <code>_layer = "TAG_layer1" [[cutFadeOut]] 2;{{cc|Layers should be tagged to ensure they are unique}}</code> | ||
|seealso= [[allCutLayers]], [[cutText]], [[cutRsc]], [[cutObj]], [[allActiveTitleEffects]] [[BIS_fnc_rscLayer]] | |||
}} | }} | ||
Revision as of 10:17, 1 March 2021
Description
- Description:
- Description needed
- Groups:
- GUI Control
Syntax
- Syntax:
- Syntax needed
- Parameters:
- layer: Number
- duration: Number
- Return Value:
- Return value needed
Alternative Syntax
- Syntax:
- layerName cutFadeOut duration Template:Since
- Parameters:
- layerName: String - effect layer name. Layer names are CaSe SeNsItIvE
- duration: Number - fade out time
- Return Value:
- Number - number of the corresponding layer
Examples
- Example 1:
0 cutFadeOut 2; // Be careful when using plain numbers as layer as they could be overwritten
- Example 2:
("TAG_LayerName" call BIS_fnc_rscLayer) cutFadeOut 2; // Using BIS_fnc_rscLayer to generate a layer ID will make sure it is unique
- Example 3:
_layer = "TAG_layer1" cutFadeOut 2;// Layers should be tagged to ensure they are unique
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
- Posted on July 9, 2016 - 11:30 (UTC)
- Krzmbrzl00
-
1.60 The actual fadeOut-duration can be dependent on the duration for the fadeIn (e.g. specified by cutText). If the fadeIn-duration is set to a value less than 1 the fadeOut-duration will be the given number multiplied by the fadeIn-duration.
"test" cutText ["", "BLACK", 0.5, true]; // fadein is < 0 "test" cutFadeOut 2; // The actual fadeout-time is 2 * 0.5 = 1