StendhalRefactoringRP: Difference between revisions
Content deleted Content added
imported>Oslsachem |
imported>Oslsachem |
||
Line 130:
''Player1'' offers a trading deal with ''Player2'' by right-clicking on ''Player2'' and choosing ''Trade'':
*A bag window opens in the middle of the screen. The window is vertically splitted in two parts with a certain number of free slots in each part.▼
**Each part has the name of each Player on Top:▼
**Each part of the window has two buttons at the bottom: ''accept'' or ''reject'' (alternatively ''deal!'' or ''no way!'')▼
*Each player can drag items from his respective bag and drop them only in his part of the window BUT once the item is dropped, none of the players can remove it (this measure prevents cheating in the deal due to net lag).▼
▲
*Satisfied with what the other player has dropped in the other part of window and▼
*The left part corresponds always to each Player, so the window that both players are looking is different because it is horizontally flipped from their view.
*Satisfied with the items he has offered for the trade in his own part of the window▼
▲
GUI suggested by '''danter'''
<pre>
|----------------------------------|
|Myself ||Other |
|----------------||----------------|
|ITEM ITEM ||ITEM////////////|
| ||////////////////|
|ITEM ||////////////////|
| ||////////////////|
|----------------||----------------|
|ICON || ICON |
|----------------||----------------|
|This is my offer!| Deal! | No way!|
|----------------------------------|
</pre>
▲
▲
Once a player has clicked on ''that's my offer'', the button is greyed and the background of the items he has offered for the deal appears greyed. If he tries to drop more items or remove any item, the ''that's my offer'' button is lightened again and the background too.
Once both players have clicked on ''that's my offer'' then their respective ''deal!'' buttons lighten.
▲
*If both players click on ''
*If any of the players clicks on ''
▲*If any of the players clicks on ''reject'' at any time: the window is closed and the items return to their original owners.
▲*If both players click on ''accept'': the window is closed too and the items are exchanged between them
<br>
| |||