BIS fnc displayColorSet: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "bis_fnc_" to "BIS_fnc_")
m (Some wiki formatting)
Line 25: Line 25:
|r1=[[Boolean]]
|r1=[[Boolean]]


|x1= <code>[<nowiki/>[[configFile]] >> (GUI_classes [[select]] _forEachIndex),_x] [[call]] [[BIS_fnc_displayColorSet]];</code>
|x1= <code>[<nowiki/>[[configFile]] >> (GUI_classes [[select]] _forEachIndex), _x] [[call]] [[BIS_fnc_displayColorSet]];</code>
 
|x2= <code>[
|x2= <code>[
configfile >> _class,
[[configFile]] >> _class,
_display,
_display,
0,
0,
Line 34: Line 35:
_this [[ctrlCommit]] 0.5;
_this [[ctrlCommit]] 0.5;
}
}
] call BIS_fnc_displayColorSet;</code>
] [[call]] [[BIS_fnc_displayColorSet]];</code>


|seealso=
|seealso= [[BIS_fnc_displayColorGet]]
}}
}}

Revision as of 19:31, 20 June 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 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:
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