ctrlFade: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>_([a-zA-Z0-9_]+) = \[\[([a-zA-Z0-9]+)\]\] _([a-zA-Z0-9_]+);?<\/code>" to "<sqf>_$1 = $2 _$3;</sqf>")
No edit summary
Line 29: Line 29:


|seealso= [[ctrlSetFade]]
|seealso= [[ctrlSetFade]]
}}
{{Note
|user= Nelis.75733126
|timestamp= 20240416192556
|text= If you use <syntaxhighlight lang="cpp" inline>fade = 1;</syntaxhighlight> on a control in your dialog definitions, is has zero effect on what <sqf inline>ctrlFade</sqf> returns.<br>
Meaning: <sqf inline>ctrlFade</sqf> will only return a value that has been set by [[ctrlSetFade]]
}}
}}

Revision as of 21:25, 16 April 2024

Hover & click on the images for description

Description

Description:
Returns the current fade factor of control.
Groups:
GUI Control

Syntax

Syntax:
ctrlFade controlName
Parameters:
controlName: Control
Return Value:
Number

Examples

Example 1:
_scale = ctrlFade _control;

Additional Information

See also:
ctrlSetFade

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
Nelis.75733126 - c
Posted on Apr 16, 2024 - 19:25 (UTC)
If you use fade = 1; on a control in your dialog definitions, is has zero effect on what ctrlFade returns.
Meaning: ctrlFade will only return a value that has been set by ctrlSetFade