Fix weight not updating when using arrows to add / remove items

This commit is contained in:
Josuan Albin
2017-10-24 18:44:30 +02:00
parent 589574c433
commit e294e0b178
2 changed files with 3 additions and 1 deletions

View File

@ -63,6 +63,8 @@ switch GVAR(currentLeftPanel) do {
};
(_display displayCtrl IDC_loadIndicatorBar) progressSetPosition _load;
(_display displayCtrl IDC_totalWeightText) ctrlSetText (GVAR(center) call EFUNC(movement,getWeight)); // TBL
private _value = {_x == _item} count _items;
_ctrlList lnbSetText [[_lnbCurSel, 2],str _value];

View File

@ -101,4 +101,4 @@ switch (GVAR(currentRightPanel)) do {
};
};
(_display displayCtrl IDC_totalWeightText) ctrlSetText (GVAR(center) call EFUNC(movement,getWeight)); // TBL
(_display displayCtrl IDC_totalWeightText) ctrlSetText (GVAR(center) call EFUNC(movement,getWeight));