cutFadeOut: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - ">Posted on July ([0-9]{1})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-07-0$1")
 
(37 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma1 |Game name=
|game1= arma1
|version1= 1.05


|1.05|Game version=
|game2= arma2
|version2= 1.00


|gr1= GUI Control |GROUP1=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.55


| Terminates the effect in the given layer by fading it out according to the given duration. If named layer is used and it doesn't exist, it will be allocated. For title layer see [[titleFadeOut]].
|game4= tkoh
{{Feature|arma3|For greater efficiency and ease of moddability, it is recommended to use named layers.}} |DESCRIPTION=
|version4= 1.00
____________________________________________________________________________________________


| layer '''cutFadeOut''' duration |SYNTAX=
|game5= arma3
|version5= 0.50


|p1= layer: [[Number]]|PARAMETER1=
|gr1= GUI Control


|p2= duration: [[Number]]|PARAMETER2=
|descr= Terminates the effect in the given layer by fading it out according to the given duration. If named layer is used and it doesn't exist, it will be allocated. For title layer see [[titleFadeOut]].
{{Feature|arma3|For greater efficiency and ease of moddability, it is recommended to use named layers.}}


| [[Nothing]] |RETURNVALUE=
|s1= layer [[cutFadeOut]] duration
____________________________________________________________________________________________


|s2= layerName '''cutFadeOut''' duration {{since|arma3|1.57.134673|y}} |SYNTAX2=
|p1= layer: [[Number]]


|p21= layerName: [[String]] - effect layer name. Layer names are CaSe SeNsItIvE |PARAMETER21=
|p2= duration: [[Number]]


|p22= duration: [[Number]] - fade out time |PARAMETER22=
|r1= [[Nothing]]


|r2= [[Number]] - number of the corresponding layer |RETURNVALUE2=
|s2= layerName [[cutFadeOut]] duration
____________________________________________________________________________________________


|x1= <code>0 [[cutFadeOut]] 2;</code> |EXAMPLE1=
|s2since= arma3 1.58


|x2= <code>_layer = "layer1" [[cutFadeOut]] 2;</code> |EXAMPLE2=
|p21= layerName: [[String]] - effect layer name. Layer names are CaSe SeNsItIvE
____________________________________________________________________________________________


| [[allCutLayers]], [[cutText]], [[cutRsc]], [[cutObj]], [[allActiveTitleEffects]] |SEEALSO=
|p22= duration: [[Number]] - fade out time
}}
 
|r2= [[Number]] - number of the corresponding layer


<h3 style="display:none">Notes</h3>
|x1= <sqf>0 cutFadeOut 2;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x2= <sqf>private _layer = "layer1" cutFadeOut 2;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[allCutLayers]] [[cutText]] [[cutRsc]] [[cutObj]] [[allActiveTitleEffects]] [[activeTitleEffectParams]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
<dd class="notedate">Posted on July 9, 2016 - 11:30 (UTC)</dd>
 
<dt></dt>
<dd class="notedate">Posted on 2016-07-09 - 11:30 (UTC)</dd>
<dt class="note">[[User:Krzmbrzl00|Krzmbrzl00]]</dt>
<dt class="note">[[User:Krzmbrzl00|Krzmbrzl00]]</dt>
<dd class="note">
<dd class="note">
(ArmA v1.60)<br>
{{GVI|arma3|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.
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.
<sqf>"test" cutText ["", "BLACK", 0.5, true]; // fadein is < 0
<code>"test" cutText ["", "BLACK", 0.5, true]; {{cc|fadein is < 0}}
"test" cutFadeOut 2; // The actual fadeout-time is 2 * 0.5 = 1</sqf>
</dd>


"test" cutFadeout 2; {{cc|The actual fadeout-time is 2 * 0.5 = 1}}
</code>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 00:09, 14 May 2023

Hover & click on the images for description

Description

Description:
Terminates the effect in the given layer by fading it out according to the given duration. If named layer is used and it doesn't exist, it will be allocated. For title layer see titleFadeOut.
Arma 3
For greater efficiency and ease of moddability, it is recommended to use named layers.
Groups:
GUI Control

Syntax

Syntax:
layer cutFadeOut duration
Parameters:
layer: Number
duration: Number
Return Value:
Nothing

Alternative Syntax

Syntax:
layerName cutFadeOut duration
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;
Example 2:
private _layer = "layer1" cutFadeOut 2;

Additional Information

See also:
allCutLayers cutText cutRsc cutObj allActiveTitleEffects activeTitleEffectParams

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 2016-07-09 - 11:30 (UTC)
Krzmbrzl00
Arma 3 logo black.png1.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