From b0e9c391187bcee650cdc365b7dfce80b2c46fee Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Wed, 29 Jul 2020 15:29:29 -0500 Subject: [PATCH] Update player_updateGui.sqf --- SQF/dayz_code/compile/player_updateGui.sqf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/SQF/dayz_code/compile/player_updateGui.sqf b/SQF/dayz_code/compile/player_updateGui.sqf index e67127464..cbbdb819b 100644 --- a/SQF/dayz_code/compile/player_updateGui.sqf +++ b/SQF/dayz_code/compile/player_updateGui.sqf @@ -324,3 +324,20 @@ if (dayz_humanitytarget != _string) then { _targetControl ctrlSetStructuredText (parseText _string); dayz_humanitytarget = _string; }; + +// ZSC +if (Z_singleCurrency) then { + _display = uiNameSpace getVariable "ZSC_Money_Display"; + _ctrlZSC = _display displayCtrl 4900; + _string = ""; + if (Z_showCurrencyUI) then { + _cashAmt = player getVariable[(["cashMoney","globalMoney"] select Z_persistentMoney),0]; + _string = format ["%1
",[_cashAmt] call BIS_fnc_numberText]; + }; + if (Z_globalBanking && Z_showBankUI) then { + _bankAmt = player getVariable ["bankMoney",0]; + _string = _string + format ["%1
",[_bankAmt] call BIS_fnc_numberText]; + }; + _ctrlZSC ctrlSetStructuredText parseText _string; + _ctrlZSC ctrlCommit 0; +};