mirror of
https://gitlab.com/lunovox/minertrade.git
synced 2025-03-15 05:31:20 +00:00
[feat][v2.2.0] Change account 'City Hall' to 'THE GOVERNMENT' of mod 'E-Urn'.
This commit is contained in:
parent
8d35a41e9c
commit
7e9a30ff95
2 changed files with 31 additions and 14 deletions
38
item_atm.lua
38
item_atm.lua
|
@ -333,17 +333,21 @@ end
|
|||
modMinerTrade.showAccountBank = {
|
||||
--modMinerTrade.showAccountBank.inAtm(playername, accountname)
|
||||
inAtm = function(playername, accountname)
|
||||
modMinerTrade.bank.player[playername].focused_accountname = accountname
|
||||
modMinerTrade.bank.player[playername].focused_accountmode = "atm"
|
||||
modMinerTrade.doSoundPlayer(playername, "sfx_atm", 5)
|
||||
modMinerTrade.showAccountBank.frmMain(playername)
|
||||
if modMinerTrade.isExistAcount(accountname) then
|
||||
modMinerTrade.bank.player[playername].focused_accountname = accountname
|
||||
modMinerTrade.bank.player[playername].focused_accountmode = "atm"
|
||||
modMinerTrade.doSoundPlayer(playername, "sfx_atm", 5)
|
||||
modMinerTrade.showAccountBank.frmMain(playername)
|
||||
end
|
||||
end,
|
||||
--modMinerTrade.showAccountBank.inCreditCard(playername, accountname)
|
||||
inCreditCard = function(playername, accountname)
|
||||
modMinerTrade.bank.player[playername].focused_accountname = accountname
|
||||
modMinerTrade.bank.player[playername].focused_accountmode = "online"
|
||||
modMinerTrade.doSoundPlayer(playername, "sfx_atm", 5)
|
||||
modMinerTrade.showAccountBank.frmMain(playername)
|
||||
if modMinerTrade.isExistAcount(accountname) then
|
||||
modMinerTrade.bank.player[playername].focused_accountname = accountname
|
||||
modMinerTrade.bank.player[playername].focused_accountmode = "online"
|
||||
modMinerTrade.doSoundPlayer(playername, "sfx_atm", 5)
|
||||
modMinerTrade.showAccountBank.frmMain(playername)
|
||||
end
|
||||
end,
|
||||
--[[ ]]
|
||||
inPublicAccess = function(playername) --
|
||||
|
@ -374,6 +378,12 @@ modMinerTrade.showAccountBank = {
|
|||
if type(accountmode) == "string" and ( --Aacesso público à contas públicas não tem transferência.
|
||||
accountmode == "atm"
|
||||
or accountmode == "online"
|
||||
or (
|
||||
accountmode == "public_access" and (
|
||||
minetest.get_player_privs(playername).mayor
|
||||
or (minetest.global_exists("modEUrn") and modEUrn.getPresidentName()==playername)
|
||||
)
|
||||
)
|
||||
)
|
||||
then
|
||||
formspec = formspec
|
||||
|
@ -383,7 +393,8 @@ modMinerTrade.showAccountBank = {
|
|||
formspec = formspec
|
||||
.. "button[0.25,2.00;5.00,0.5;btnDeposits;"..minetest.formspec_escape(core.colorize("#FFFFF", modMinerTrade.translate("DEPOSITS"))).."]"
|
||||
end
|
||||
if type(accountmode) == "string" and accountmode == "atm" then
|
||||
if type(accountmode) == "string" and accountmode == "atm"
|
||||
then
|
||||
formspec = formspec
|
||||
.. "button[0.25,2.75;5.00,0.5;btnWithdrawals;"..minetest.formspec_escape(core.colorize("#FFFFF", modMinerTrade.translate("WITHDRAWALS"))).."]" -- [DINHEIRO E CHECK]
|
||||
end
|
||||
|
@ -394,7 +405,9 @@ modMinerTrade.showAccountBank = {
|
|||
.. "button[0.25,5.75;5.00,0.5;btnLottery;"..minetest.formspec_escape(core.colorize("#888888", modMinerTrade.translate("LOTTERY"))).."]" --Lotérica
|
||||
.. "button[0.25,6.50;5.00,0.5;btnSetings;"..minetest.formspec_escape(core.colorize("#888888", modMinerTrade.translate("SETTINGS"))).."]" --Se quer ou não uma senha, se quer receber uma carta quando houver uma nova movimentacao.
|
||||
end
|
||||
if type(accountmode) == "string" and accountmode ~= "public_access" then
|
||||
if type(accountmode) == "string" and accountmode ~= "public_access"
|
||||
|
||||
then
|
||||
formspec = formspec
|
||||
.."button[0.25,6.50;5.00,0.5;btnPublicAccess;"..minetest.formspec_escape(core.colorize("#FFFFFF", modMinerTrade.translate("THE GOVERNMENT"))).."]"
|
||||
end
|
||||
|
@ -407,11 +420,14 @@ modMinerTrade.showAccountBank = {
|
|||
end,
|
||||
frmBalance = function(playername) --FORMULÁRIO: SALDO
|
||||
local accountname = modMinerTrade.bank.player[playername].focused_accountname
|
||||
local account_created = ""
|
||||
local msgBalance = ""
|
||||
if modMinerTrade.isExistAcount(accountname) then
|
||||
msgBalance = modMinerTrade.translate("You have %02d minercash."):format(modMinerTrade.getBalance(accountname))
|
||||
account_created = modMinerTrade.bank.player[accountname].account_created
|
||||
else
|
||||
msgBalance = modMinerTrade.translate("Player '%s' is not an account holder of this bank."):format(accountname)
|
||||
account_created = "----/--/-- --:--:--"
|
||||
end
|
||||
|
||||
--local tblStatements = modMinerTrade.getStatement(accountname)
|
||||
|
@ -433,7 +449,7 @@ modMinerTrade.showAccountBank = {
|
|||
|
||||
.. "textarea[6.75,1.00;9.0,9.0;;"..minetest.formspec_escape(core.colorize("#00FFFF", modMinerTrade.translate("NAME OF BANKING ACCOUNT HOLDER")..":"))..";"..minetest.formspec_escape(core.colorize("#00FFFF", accountname:upper())).."]"
|
||||
|
||||
.. "textarea[6.75,2.50;9.0,9.0;;"..minetest.formspec_escape(core.colorize("#00FFFF", modMinerTrade.translate("ACCOUNT CREATED")..":"))..";"..minetest.formspec_escape(core.colorize("#00FFFF", modMinerTrade.bank.player[accountname].account_created)).."]"
|
||||
.. "textarea[6.75,2.50;9.0,9.0;;"..minetest.formspec_escape(core.colorize("#00FFFF", modMinerTrade.translate("ACCOUNT CREATED")..":"))..";"..minetest.formspec_escape(core.colorize("#00FFFF", account_created)).."]"
|
||||
|
||||
.. "textarea[6.75,4.00;9.0,9.0;;"..minetest.formspec_escape(core.colorize("#00FFFF", modMinerTrade.translate("FINANCIAL TRANSACTIONS")..":"))..";"..minetest.formspec_escape(core.colorize("#00FFFF", ("%02d"):format(totalTransactions).." transactions.")).."]"
|
||||
|
||||
|
|
7
mod.conf
7
mod.conf
|
@ -3,14 +3,15 @@
|
|||
name = minertrade
|
||||
title = Minertrade
|
||||
description = It adds various types of money, exchange table, Dispensing Machines, ATMs in stores.
|
||||
author = Lunovox Heavenfinder
|
||||
release = 0.2.2
|
||||
author = Lunovox Heavenfinder: [email](mailto:lunovox@disroot.org), [social web](http:qoto.org/@lunovox), [webchat](https://cloud.disroot.org/call/9aa2t7ib), [xmpp](xmpp:lunovox@disroot.org?join), [Mumble](mumble:mumble.disroot.org), [more contacts](https:libreplanet.org/wiki/User:Lunovox)
|
||||
license = GNU AGPL-3.0
|
||||
depends = default,dye
|
||||
optional_depends = intllib,correio
|
||||
optional_depends = intllib,correio,eurn
|
||||
min_minetest_version = 5.7
|
||||
max_minetest_version =
|
||||
created = 2017-03-13 00:00
|
||||
update = 2023-08-23 14:31
|
||||
update = 2024-03-01 20:25
|
||||
repository = https://gitlab.com/lunovox/minertrade
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue