BIS fnc displayColorSet: Difference between revisions
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 | ||
|1.00|= Game version | |1.00|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Applies custom [[Interface_Colors|color settings]] to given display. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [displayClass,display,commitTime,code] call BIS_fnc_displayColorSet; |= Syntax | ||
|p1= |= | |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:Take_On_Helicopters:_Functions|displayColorSet]] | |||
[[Category: |
Revision as of 17:39, 22 October 2011
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