BIS fnc displayColorSet: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]+)<\/code>" to "<sqf>$1</sqf>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 21: | Line 21: | ||
|p3= commitTime (Optional): [[Number]] - Commit time | |p3= commitTime (Optional): [[Number]] - Commit time | ||
|p4= code | |p4= code: [[Code]] - (Optional, default <sqf inline>{}</sqf>) code executed for every control element (which is passed as _this) | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
Line 27: | Line 27: | ||
|x1= <sqf>[configFile >> (GUI_classes select _forEachIndex), _x] call BIS_fnc_displayColorSet;</sqf> | |x1= <sqf>[configFile >> (GUI_classes select _forEachIndex), _x] call BIS_fnc_displayColorSet;</sqf> | ||
|x2= <sqf>[ | |x2= <sqf> | ||
[ | |||
configFile >> _class, | configFile >> _class, | ||
_display, | _display, | ||
Line 35: | Line 36: | ||
_this ctrlCommit 0.5; | _this ctrlCommit 0.5; | ||
} | } | ||
] call BIS_fnc_displayColorSet;</sqf> | ] call BIS_fnc_displayColorSet; | ||
</sqf> | |||
|seealso= [[BIS_fnc_displayColorGet]] | |seealso= [[BIS_fnc_displayColorGet]] | ||
}} | }} |
Revision as of 01:33, 1 August 2022
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: Code - (Optional, default {}) code executed for every control element (which is passed as _this)
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
- [ configFile >> _class, _display, 0, { _this ctrlSetFade 0; _this ctrlCommit 0.5; } ] call BIS_fnc_displayColorSet;
Additional Information
- See also:
- BIS_fnc_displayColorGet
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