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

Binary file not shown.

Binary file not shown.