by cornernote » Wed Sep 19, 2012 00:51
Talking to <T_A_N_K> and <GloopMaster> in IRC.
T_A_N_K suggested a trading API, no need to have a formspec when you click a player.
GloopMaster suggested applying the trading API as an inventory_plus mod
so it would be something like this:
in inventory_plus, a new button "Trading"
Trading Overview
button[Request New Trade]
label[My Trade Requests]
for each outgoing trade request show a button with the other players name, button goes to player trade page
label[Incoming Trade Requests]
for each incoming trade request show a button with the other players name, button goes to player trade page
New Trade - done by trader
inventory[give, 3x3] <-- can drag items to here
inventory[player inventory]
input[player_name]
input[message] <-- message is sent to other player
input[price] <-- for support of a currency type mod
button[request] <-- sends the request to the other player
Trade Request - done by tradee
label[message] <-- message from trader
input[message] <-- message is sent to trader
inventory[get, 3x3] <-- this is locked
inventory[give, 3x3] <-- can drag items to here
inventory[player inventory]
button[request]
button[reject]
Trade Confirm - done by trader
label[message] <-- message from tradee
input[message] <-- message is sent to tradee
inventory[get, 3x3] <-- this is locked
inventory[give, 3x3] <-- can drag items to here, onchange cannot confirm
inventory[player inventory]
button[request] <-- can only do this if player changes "give", if this happens then the tradee will see this screen
button[confirm]
button[reject]
Last edited by
cornernote on Wed Sep 19, 2012 00:54, edited 1 time in total.