client/addons/bank/functions/fnc_refresh.sqf
Jacob Schmidt c6daf95415
All checks were successful
Build / Build (push) Successful in 53s
Initial Repo Setup
2025-01-01 14:35:12 -06:00

17 lines
728 B
Plaintext

#include "..\script_component.hpp"
// private _bank = player getVariable ["FORGE_Bank", 0];
// private _cash = player getVariable ["FORGE_Cash", 0];
// private _rating = player getVariable ["FORGE_Rating", 0];
private _bank = GETVAR(player,FORGE_Bank,0);
private _cash = GETVAR(player,FORGE_Cash,0);
private _rating = GETVAR(player,FORGE_Rating,0);
if (!isNull (findDisplay IDD_BANKDIALOG)) then {
ctrlSetText [IDC_CASHTEXT, format ["Cash: $%1", _cash]];
ctrlSetText [IDC_BANKTEXT, format ["Bank: $%1", _bank]];
ctrlSetText [IDC_RATINGTEXT, format ["Rating: %1", _rating]];
ctrlSetText [IDC_TIMESHEETTEXT, "Ready for Timesheet"];
ctrlSetText [IDC_AMOUNTINPUT, ""];
ctrlSetText [IDC_PLAYERINPUT, ""];
};