BIS fnc displayColorSet: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
Line 9: Line 9:
| Applies custom [[User Interface Colors|color settings]] to given [[Display]].
| Applies custom [[User Interface Colors|color settings]] to given [[Display]].


Display must be already using color macros, function will just refresh the values according to current color settings. |= Description
Display must be already using color macros, function will just refresh the values according to current color settings. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [displayClass,display,commitTime,code] call BIS_fnc_displayColorSet; |= Syntax
| [displayClass,display,commitTime,code] call BIS_fnc_displayColorSet; |SYNTAX=


|p1= displayClass: [[Config]] - Display classname |=
|p1= displayClass: [[Config]] - Display classname |=
Line 19: Line 19:
|p4= code (Optional): [[Code]] - Code executed for every control element (which is passed as _this) |=
|p4= code (Optional): [[Code]] - Code executed for every control element (which is passed as _this) |=


| [[Boolean]] |= Return value
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
Line 34: Line 34:
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| |SEEALSO=


}}
}}

Revision as of 12:27, 7 April 2019

Hover & click on the images for description

Description

Description:
Applies custom color settings to given Display. Display must be already using color macros, function will just refresh the values according to current color settings.
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