Epoch/Sources/epoch_code/gui/scripts/Epoch_showStats.sqf
2016-06-13 11:54:19 -05:00

24 lines
799 B
Plaintext

/*
Author: Aaron Clark
Contributors:
Description:
Displays Crypto and Energy stats on screen
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/gui/scripts/Epoch_showStats.sqf
*/
disableSerialization;
private "_display";
9992 cutRsc["EpochGameUI2", "PLAIN", 2, false];
_display = uiNamespace getVariable "EPOCH_EpochGameUI2";
(_display displayCtrl 21208) ctrlSetText format["%1", EPOCH_playerCrypto];
9993 cutRsc["EpochGameUI3", "PLAIN", 2, false];
_display3 = uiNamespace getVariable "EPOCH_EpochGameUI3";
(_display3 displayCtrl 21210) ctrlSetText format["%1/%2", round(EPOCH_playerEnergy), EPOCH_playerEnergyMax];