mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Change how misc item mass is retrieved
This commit is contained in:
@ -50,7 +50,7 @@ private _fnc_fill_right_Container = {
|
||||
_ctrlPanel lnbSetData [[_lbAdd, 0], _x];
|
||||
_ctrlPanel lnbSetPicture [[_lbAdd, 0], _picture];
|
||||
_ctrlPanel lnbSetValue [[_lbAdd, 0], _mass];
|
||||
_ctrlPanel setVariable [_displayName, _mass];
|
||||
_ctrlPanel setVariable [_x, _mass];
|
||||
_ctrlPanel lnbSetValue [[_lbAdd, 2], [0, 1] select (_isUnique)];
|
||||
_ctrlPanel lbSetTooltip [_lbAdd * _columns,format ["%1\n%2", _displayName, _x]];
|
||||
};
|
||||
|
@ -12,7 +12,7 @@ _maxLoad = _maxLoad * (1 - progressPosition _loadIndicatorBarCtrl);
|
||||
|
||||
// Grey out items too big
|
||||
for "_r" from 0 to (_rows - 1) do {
|
||||
private _mass = _control getVariable (_control lnbText [_r, 1]);
|
||||
private _mass = _control getVariable (_control lnbData [_r, 0]);
|
||||
private _alpha = [1.0,0.25] select (_mass > _maxLoad);
|
||||
private _color = [1,1,1,_alpha];
|
||||
_control lnbsetcolor [[_r,1],_color];
|
||||
@ -32,5 +32,5 @@ if (progressPosition _loadIndicatorBarCtrl > 0) then {
|
||||
|
||||
// change button color if unique or too big
|
||||
private _plusButtonCtrl = _display displayCtrl IDC_arrowPlus;
|
||||
_plusButtonCtrl ctrlEnable !((_control lnbValue [_curSel, 2]) == 1 || {(_control getVariable (_control lnbText [_curSel, 1])) > _maxLoad});
|
||||
_plusButtonCtrl ctrlEnable !((_control lnbValue [_curSel, 2]) == 1 || {(_control getVariable (_control lnbData [_curSel, 0])) > _maxLoad});
|
||||
_plusButtonCtrl ctrlCommit FADE_DELAY;
|
||||
|
Reference in New Issue
Block a user