Merge pull request #7140 from Bosenator/master

Movement - Display Inventory Weight in Stream Friendly UI Mode
This commit is contained in:
commy2 2019-08-25 19:27:17 +02:00 committed by GitHub
commit 4204205908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,11 +17,15 @@
params ["_display"]; params ["_display"];
// forces player name control to display irrespective of isStreamFriendlyUIEnabled
(_display displayCtrl 111) ctrlShow true;
private _fnc_update = { private _fnc_update = {
params ["_display"]; params ["_display"];
private _control = _display displayCtrl 111; private _control = _display displayCtrl 111;
private _format = ["%1 - %2 %3 (%4)", "%2 %3 (%4)"] select isStreamFriendlyUIEnabled;
_control ctrlSetText format ["%1 - %2 %3 (%4)", _control ctrlSetText format [_format,
[ACE_player, false, true] call EFUNC(common,getName), [ACE_player, false, true] call EFUNC(common,getName),
localize ELSTRING(common,Weight), localize ELSTRING(common,Weight),
[ACE_player] call EFUNC(common,getWeight), [ACE_player] call EFUNC(common,getWeight),