melhora Na aparência da interface de depósito bancário.

This commit is contained in:
Lunovox 2022-05-15 09:57:51 -03:00
parent 73924b68bc
commit 19acc2b704
2 changed files with 15 additions and 22 deletions

View file

@ -496,16 +496,14 @@ modMinerTrade.showAtm = {
})
newInv:set_size("deposit", 1)
newInv:set_stack("deposit", 1, nil)
--return newInv:get_list("deposit")
--[[
local invList = modMinerTrade.getSafeInventory(playername)
if invList~=nil and #invList>=1 then
newInv:set_list("safe", invList)
local msgBalance = ""
if modMinerTrade.isExistAcount(playername) then
msgBalance = modMinerTrade.translate("You have %02d minercash."):format(modMinerTrade.getBalance(playername))
else
newInv:set_size("safe", modMinerTrade.size.width*modMinerTrade.size.height)
msgBalance = modMinerTrade.translate("Player '%s' is not an account holder of this bank."):format(playername)
end
--]]
local formspec = "size[16,10]"
.."bgcolor[#636D7688;false]"
@ -519,29 +517,24 @@ modMinerTrade.showAtm = {
.."button_exit[0.25,6.50;5.00,0.5;;"..minetest.formspec_escape(core.colorize("#FFFFFF", modMinerTrade.translate("EXIT"))).."]"
.."background[6.0,0.25;9.5,9.5;text_atm_front.png]"
.. "box[6.0,0.25;9.5,9.5;#000000CC]"
.. "box[6.0,0.25;9.5,9.5;#000000AA]"
.. "label[6.75,0.75;"..minetest.formspec_escape(core.colorize("#00FFFF", modMinerTrade.translate("BANK DEPOSIT")..":")).."]"
.. "label[6.50,0.50;"..minetest.formspec_escape(core.colorize("#00FFFF", modMinerTrade.translate("BANK DEPOSIT") )).."]"
--.. "textarea[5.75,1.00;9.0,9.0;;"..minetest.formspec_escape(core.colorize("#00FFFF", modMinerTrade.translate("BALANCES")..":"))..";"..minetest.formspec_escape(core.colorize("#00FFFF", msgBalance)).."]"
--.. "button[6.25,1.50;1.00,1.00;btnAtmMain;"..minetest.formspec_escape(core.colorize("#FFFFFF", modMinerTrade.translate("BACK"))).."]"
--.."style_type[image_button;bgcolor=#00000000;border=false]"
--.."style[btnMinercoin;bgimg=sbl_save.png;bgimg_hovered=sbl_save_pressed.png;bgimg_pressed=sbl_save_pressed.png;border=false]"
--[[
.. "label[9.25,3.25;"..minetest.formspec_escape(core.colorize("#FFFFFF", "MINERCASH")).."]"
.."tooltip[btnMinercoin;"..minetest.formspec_escape(modMinerTrade.translate("Withdrawals in minercash."))..";#CCCC0088;#000000]"
.."image_button[7.25,2.50;2.00,2.00;obj_minercoin.png;btnGiveCash;]"
.. "label[9.25,5.75;"..minetest.formspec_escape(core.colorize("#FFFFFF", "BANK CHECK")).."]"
.."tooltip[btnMinercoin;"..minetest.formspec_escape(modMinerTrade.translate("Withdrawals in bank check."))..";#CCCC0088;#000000]"
.."image_button[7.25,5.00;2.00,2.00;obj_bank_check.png;btnGiveCheck;]"
--]]
.. "box[6.5,1.50;8.5,1.05;#00FF0044]"
.."textarea[7.25,2.00;9.0,2.0;;"
..minetest.formspec_escape(core.colorize("#FFFF00", modMinerTrade.translate("YOUR BALANCE")..":"))..";"
..minetest.formspec_escape(core.colorize("#FFFFFF", minetest.formspec_escape(msgBalance)))
.."]"
--listcolors[slot_bg_normal;slot_bg_hover;slot_border;tooltip_bgcolor;tooltip_fontcolor]
.."listcolors[#88888866;#666666;#CCCCCC;#444444;#FFFFFF]"
.."label[7.00,3.00;"..minetest.formspec_escape(modMinerTrade.translate("ATM entrance"))..":]"
.."list[detached:deposits;deposit;11.50,3.50;1,1;]"
.."image[9.00,3.35;2,2;obj_minercoin.png]"
.."image[10.50,3.75;1,1;gui_arrow.png^[transformR270]"
.."list[detached:deposits;deposit;11.50,3.75;1,1;]"
--.."button[3,2.0;2,1;exchange;"..minetest.formspec_escape(modMinerTrade.translate("DEPOSIT")).."]"

BIN
textures/gui_arrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B