mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #7140 from Bosenator/master
Movement - Display Inventory Weight in Stream Friendly UI Mode
This commit is contained in:
commit
4204205908
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user