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

36 lines
1.0 KiB
Plaintext
Raw Normal View History

2015-09-14 20:55:36 +00:00
private ["_bar","_uniformArmor","_totalArmor","_finalArmor","_vestArmor","_headgearArmor","_bar_pos","_bar_compare","_color","_colorCompare","_display","_totalArmorMax"];
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;