BIS fnc displayColorSet: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | TKOH |= Game name |1.00|= Game version ____________________...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| tkoh |= Game name
| TKOH |= Game name


|1.00|= Game version
|1.00|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Applies custom [[Interface_Colors|color settings]] to given display. |= Description
 
Description:
Set display's color
 
Parameter(s):
_this select 0: STRING - display class
_this select 1: DISPLAY
_this select 2 (Optional): NUMBER - commit time
_this select 3 (Optional): CODE - code executed for every control element (which is passed as _this)
 
Returns:
BOOL
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_displayColorSet]]; --> |= Syntax
| [displayClass,display,commitTime,code] call BIS_fnc_displayColorSet; |= Syntax


|p1= |= Parameter 1
|p1= displayClass: [[Config]] - Display classname |=
|p2= display: [[Display]]|=
|p3= commitTime (Optional): [[Number]] - Commit time |=
|p4= code (Optional): [[Code]] - Code executed for every control element (which is passed as _this) |=


| |= Return value
| [[Boolean]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
 
 
|x1= <code></code> |=  
|x1= <code><nowiki>[</nowiki>[[configFile]] >> (GUI_classes [[select]] _foreachindex),_x] call bis_fnc_displayColorSet;</code> |= Example 1
|x2= <code>[
configfile >> _class,
_display,
0,
{
_this [[ctrlSetFade]] 0;
_this [[ctrlCommit]] 0.5;
}
] call bis_fnc_displayColorSet;</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 48: Line 44:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: GUI|{{uc:displayColorSet}}]]
 
[[Category:Functions|{{uc:displayColorSet}}]]
[[Category:Take_On_Helicopters:_Functions|displayColorSet]]
[[Category:{{Name|tkoh}}: Functions|{{uc:displayColorSet}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:displayColorSet}}]]

Revision as of 17:39, 22 October 2011

Hover & click on the images for description

Description

Description:
Applies custom color settings to given display.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[displayClass,display,commitTime,code] call BIS_fnc_displayColorSet;
Parameters:
displayClass: Config - Display classname
display: Display
commitTime (Optional): Number - Commit time
code (Optional): Code - Code executed for every control element (which is passed as _this)
Return Value:
Boolean

Examples

Example 1:
[configFile >> (GUI_classes select _foreachindex),_x] call bis_fnc_displayColorSet;
Example 2:
[ configfile >> _class, _display, 0, { _this ctrlSetFade 0; _this ctrlCommit 0.5; } ] call bis_fnc_displayColorSet;

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

Notes

Bottom Section