BIS fnc displayColorSet: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| TKOH | | TKOH | ||
|1.00 | |1.00 | ||
|gr1= GUI | |gr1= GUI | ||
| 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. | Display must be already using color macros, function will just refresh the values according to current color settings. | ||
| [displayClass,display,commitTime,code] call BIS_fnc_displayColorSet; | | [displayClass,display,commitTime,code] call BIS_fnc_displayColorSet; | ||
|p1= displayClass: [[Config]] - Display classname | |p1= displayClass: [[Config]] - Display classname | ||
|p2= display: [[Display]] | |p2= display: [[Display]] | ||
|p3= commitTime (Optional): [[Number]] - Commit time | |p3= commitTime (Optional): [[Number]] - Commit time | ||
|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]] | | [[Boolean]] | ||
|x1= <code><nowiki>[</nowiki>[[configFile]] >> (GUI_classes [[select]] _foreachindex),_x] call bis_fnc_displayColorSet;</code> | |x1= <code><nowiki>[</nowiki>[[configFile]] >> (GUI_classes [[select]] _foreachindex),_x] call bis_fnc_displayColorSet;</code> | ||
|x2= <code>[ | |x2= <code>[ | ||
configfile >> _class, | configfile >> _class, | ||
Line 31: | Line 31: | ||
_this [[ctrlCommit]] 0.5; | _this [[ctrlCommit]] 0.5; | ||
} | } | ||
] call bis_fnc_displayColorSet;</code> | ] call bis_fnc_displayColorSet;</code> | ||
| | | | ||
}} | }} |
Revision as of 23:00, 17 January 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 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