Epoch/Sources/epoch_code/compile/inventory/EPOCH_initUI.sqf

63 lines
1.5 KiB
Plaintext
Raw Normal View History

2015-12-15 22:43:26 +00:00
/*
Author: Aaron Clark - EpochMod.com
Contributors:
Description:
Init epoch gear armor stats.
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
2016-06-13 16:54:19 +00:00
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/inventory/EPOCH_initUI.sqf
2015-12-15 22:43:26 +00:00
Example:
player addEventHandler ["InventoryOpened", {
_this spawn EPOCH_initUI;
}];
Parameter(s):
None
Returns:
NOHTING
*/
2016-09-01 00:29:08 +00:00
//[[[cog import generate_private_arrays ]]]
private ["_bar","_bar_compare","_color","_colorCompare","_display"];
//[[[end]]]
2015-09-14 20:55:36 +00:00
disableSerialization;
EPOCH_InteractedItem = [];
EPOCH_lastContainer = _this select 1;
waitUntil {!isNull findDisplay 602};
_display = (findDisplay 602);
2015-09-28 22:04:43 +00:00
(_display displayCtrl -13) ctrlEnable false;
2015-09-14 20:55:36 +00:00
_color = [0.6,0.6,0.6,1];
_colorCompare = [0.4,0.6,1,0.4];
_bar = _display displayCtrl 7304;
uiNameSpace setVariable ["RscCustomProgressUniform", _bar];
_bar ctrlSetTextColor _color;
_bar = _display displayCtrl 7305;
uiNameSpace setVariable ["RscCustomProgressVest", _bar];
_bar ctrlSetTextColor _color;
_bar = _display displayCtrl 7240;
uiNameSpace setVariable ["RscCustomProgressHeadgear", _bar];
_bar ctrlSetTextColor _color;
_bar = _display displayCtrl 7308;
_bar ctrlSetTextColor _color;
_bar_compare = _display displayCtrl 7309;
_bar_compare ctrlSetTextColor _colorCompare;
uiNameSpace setVariable ["RscCustomProgressTotal", [_bar,_bar_compare]];
0 call EPOCH_refeshUI;