Make trader form less confusing
This commit is contained in:
parent
4ee10b65a7
commit
2dd1aa1ae6
@ -138,27 +138,27 @@ local form_trading = ""
|
||||
|
||||
form_trading = form_trading .. default.ui.get_page("default:2part")
|
||||
|
||||
form_trading = form_trading .. "list[current_player;gold_trade_out;3.75,2.25;1,1;]"
|
||||
form_trading = form_trading .. "list[current_player;gold_trade_out;4.75,2.25;1,1;]"
|
||||
|
||||
form_trading = form_trading .. default.ui.get_hotbar_itemslot_bg(3.75, 2.25, 1, 1)
|
||||
form_trading = form_trading .. default.ui.get_hotbar_itemslot_bg(4.75, 2.25, 1, 1)
|
||||
|
||||
form_trading = form_trading .. "list[current_player;main;0.25,4.75;8,4;]"
|
||||
form_trading = form_trading .. default.ui.get_hotbar_itemslot_bg(0.25, 4.75, 8, 1)
|
||||
form_trading = form_trading .. default.ui.get_itemslot_bg(0.25, 5.75, 8, 3)
|
||||
|
||||
form_trading = form_trading .. "list[current_player;gold_trade_in;6.25,1.25;1,2;]"
|
||||
form_trading = form_trading .. default.ui.get_itemslot_bg(6.25, 1.25, 1, 2)
|
||||
form_trading = form_trading .. "list[current_player;gold_trade_in;1.25,2.25;2,1;]"
|
||||
form_trading = form_trading .. default.ui.get_itemslot_bg(1.25, 2.25, 2, 1)
|
||||
|
||||
form_trading = form_trading .. "listring[current_player;main]"
|
||||
form_trading = form_trading .. "listring[current_player;gold_trade_in]"
|
||||
form_trading = form_trading .. "listring[current_player;main]"
|
||||
form_trading = form_trading .. "listring[current_player;gold_trade_out]"
|
||||
|
||||
form_trading = form_trading .. "image[2.5,1.25;1,1;ui_arrow_bg.png^[transformR270]"
|
||||
form_trading = form_trading .. "image[5,2.25;1,1;ui_arrow.png^[transformR90]"
|
||||
form_trading = form_trading .. "image[3.5,1.25;1,1;ui_arrow_bg.png^[transformR270]"
|
||||
form_trading = form_trading .. "image[3.5,2.25;1,1;ui_arrow.png^[transformR270]"
|
||||
|
||||
form_trading = form_trading .. default.ui.button_exit(1.25, 3.25, 2, 1, "cancel", S("Cancel"))
|
||||
form_trading = form_trading .. default.ui.button(5.25, 3.25, 2, 1, "trade", S("Trade"))
|
||||
form_trading = form_trading .. default.ui.button(1.25, 3.25, 2, 1, "trade", S("Trade"))
|
||||
form_trading = form_trading .. default.ui.button_exit(5.25, 3.25, 2, 1, "cancel", S("Cancel"))
|
||||
|
||||
default.ui.register_page("gold_trading_book", form_trading)
|
||||
|
||||
@ -199,8 +199,8 @@ function gold.trade(trade, trade_type, player)
|
||||
form = form .. "label[0.25,0.25;"..minetest.formspec_escape(trade_name).."]"
|
||||
|
||||
form = form .. default.ui.fake_itemstack(1.25, 1.25, trade_wanted1)
|
||||
form = form .. default.ui.fake_itemstack(1.25, 2.25, trade_wanted2)
|
||||
form = form .. default.ui.fake_itemstack(3.75, 1.25, ItemStack(trade[3]))
|
||||
form = form .. default.ui.fake_itemstack(2.25, 1.25, trade_wanted2)
|
||||
form = form .. default.ui.fake_itemstack(4.75, 1.25, ItemStack(trade[3]))
|
||||
|
||||
minetest.show_formspec(name, "gold:trading_book", form)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user