Merged fallbacks for inputs

This commit is contained in:
Eddoursul 2024-02-15 11:13:39 +01:00
parent d9476ac786
commit 5cba6f3c76
7 changed files with 14 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -153,12 +153,24 @@ function Transfer(string TransferRate, string TransferAction)
if TransferAction == "Deposit"
_00E_Bank_NotEnoughMoneyDeposit.Show()
if ! EnderalFunctions.TextInputEnabled()
bTransferInAction = False
return
endif
bRestartDeposit = True
RegisterForSingleUpdate(1)
Else
_00E_Bank_NotEnoughMoneyWithdraw.Show()
if ! EnderalFunctions.TextInputEnabled()
bTransferInAction = False
return
endif
bRestartWithdraw = True
RegisterForSingleUpdate(1)
@ -170,14 +182,14 @@ function Transfer(string TransferRate, string TransferAction)
getplayer().removeItem(Gold, CashFlow, False)
REFdepositBox.additem(Gold, CashFlow)
SFXgoldDeposit.play(getplayer())
;SFXgoldDeposit.play(getplayer())
GLBcurrent.setValue(Deposited)
elseif TransferAction == "Withdraw"
getplayer().additem(Gold, CashFlow, False)
REFdepositBox.removeitem(Gold, CashFlow)
SFXgoldWithdraw.play(getplayer())
;SFXgoldWithdraw.play(getplayer())
GLBcurrent.setValue(Deposited)
endif

Binary file not shown.

Binary file not shown.