cutFadeOut: Difference between revisions
Jump to navigation
Jump to search
(fixed categories) |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^>]*↵[^>]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(24 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|game1= arma1 | |game1= arma1 | ||
|version1= 1.05 | |version1= 1.05 | ||
|game2= arma2 | |game2= arma2 | ||
|version2= 1.00 | |version2= 1.00 | ||
|game3= arma2oa | |game3= arma2oa | ||
|version3= 1.55 | |version3= 1.55 | ||
|game4= tkoh | |game4= tkoh | ||
|version4= 1.00 | |version4= 1.00 | ||
|game5= arma3 | |game5= arma3 | ||
|version5= 0.50 | |||
|version5= | |||
|gr1= GUI Control | |gr1= GUI Control | ||
Line 26: | Line 21: | ||
{{Feature|arma3|For greater efficiency and ease of moddability, it is recommended to use named layers.}} | {{Feature|arma3|For greater efficiency and ease of moddability, it is recommended to use named layers.}} | ||
|s1= layer | |s1= layer [[cutFadeOut]] duration | ||
|p1= layer: [[Number]] | |p1= layer: [[Number]] | ||
Line 34: | Line 29: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|s2= layerName | |s2= layerName [[cutFadeOut]] duration | ||
|s2since= arma3 1.58 | |||
|p21= layerName: [[String]] - effect layer name. Layer names are CaSe SeNsItIvE | |p21= layerName: [[String]] - effect layer name. Layer names are CaSe SeNsItIvE | ||
Line 42: | Line 39: | ||
|r2= [[Number]] - number of the corresponding layer | |r2= [[Number]] - number of the corresponding layer | ||
|x1= < | |x1= <sqf>0 cutFadeOut 2;</sqf> | ||
|x2= < | |x2= <sqf>private _layer = "layer1" cutFadeOut 2;</sqf> | ||
|seealso= [[allCutLayers]] | |seealso= [[allCutLayers]] [[cutText]] [[cutRsc]] [[cutObj]] [[allActiveTitleEffects]] [[activeTitleEffectParams]] | ||
}} | }} | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dd class="notedate">Posted on | |||
<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"> | ||
{{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. | {{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. | ||
< | <sqf> | ||
"test" | "test" cutText ["", "BLACK", 0.5, true]; // fadein is < 0 | ||
"test" cutFadeOut 2; // The actual fadeout-time is 2 * 0.5 = 1 | |||
</sqf> | |||
</dd> | </dd> | ||
</dl> | </dl> | ||
Latest revision as of 19:46, 3 September 2024
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.
- 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:
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 2016-07-09 - 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.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.05
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: GUI Control