BIS fnc displayColorSet: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|1.00 | |version1= 1.00 | ||
|game2= arma3 | |game2= arma3 | ||
Line 13: | Line 13: | ||
Display must be already using color macros, function will just refresh the values according to current color settings. | Display must be already using color macros, function will just refresh the values according to current color settings. | ||
|s1= | |s1= [displayClass, display, commitTime, code] call BIS_fnc_displayColorSet | ||
|p1= displayClass: [[Config]] - display config class | |||
|p2= display: [[Display]] | |p2= display: [[Display]] | ||
Line 24: | Line 25: | ||
|r1=[[Boolean]] | |r1=[[Boolean]] | ||
|x1= <code><nowiki | |x1= <code>[<nowiki/>[[configFile]] >> (GUI_classes [[select]] _forEachIndex),_x] [[call]] [[BIS_fnc_displayColorSet]];</code> | ||
|x2= <code>[ | |x2= <code>[ | ||
configfile >> _class, | configfile >> _class, | ||
Line 34: | Line 35: | ||
} | } | ||
] call bis_fnc_displayColorSet;</code> | ] call bis_fnc_displayColorSet;</code> | ||
|seealso= | |||
}} | }} | ||
Revision as of 23:47, 13 June 2021
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 config class
- 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