BIS fnc displayColorSet: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: GUI(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| TKOH |Game name=
| TKOH |Game name=
Line 7: Line 6:


|gr1= GUI |GROUP1=
|gr1= GUI |GROUP1=
____________________________________________________________________________________________


| 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=
Line 24: Line 21:


| [[Boolean]] |RETURNVALUE=
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code><nowiki>[</nowiki>[[configFile]] >> (GUI_classes [[select]] _foreachindex),_x] call bis_fnc_displayColorSet;</code> |EXAMPLE1=
|x1= <code><nowiki>[</nowiki>[[configFile]] >> (GUI_classes [[select]] _foreachindex),_x] call bis_fnc_displayColorSet;</code> |EXAMPLE1=
Line 36: Line 32:
}
}
] call bis_fnc_displayColorSet;</code> |EXAMPLE2=
] call bis_fnc_displayColorSet;</code> |EXAMPLE2=
____________________________________________________________________________________________


| |SEEALSO=
| |SEEALSO=

Revision as of 00:07, 17 January 2021

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:
GUI

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