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'':
 
*''Player2'' is prompted with a window asking for accepting beginning a deal with ''Player1'' or not.
*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:
**The left part corresponds to Player1 who has made the trading offer and the right part to Player2 who has accepted it.
**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).
 
*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.
One of the players clicks on one of the buttons at the bottom once he is:
**Each part has the name of each Player on Top:
*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
**Each part of the window has twothree buttons at the bottom: ''accept'that's ormy offer''reject'' (alternatively, ''deal!'' orand ''no way!''). The ''deal!'' button is greyed at first.
 
GUI suggested by '''danter'''
<pre>
|----------------------------------|
|Myself ||Other |
|----------------||----------------|
|ITEM ITEM ||ITEM////////////|
| ||////////////////|
|ITEM ||////////////////|
| ||////////////////|
|----------------||----------------|
|ICON || ICON |
|----------------||----------------|
|This is my offer!| Deal! | No way!|
|----------------------------------|
</pre>
 
*Each player can drag items from his respective bag and drop or remove 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).
 
*SatisfiedEach player clicks on the ''that's my offer'' button at the bottom once he is satisfied with the items he has offered for the trade in his own part of the window.
 
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.
*SatisfiedThey press it if they are satisfied with what the other player has dropped in the other part of window and.
 
*If both players click on ''acceptdeal!'': the window is closed too and the items are exchanged between them.
*If any of the players clicks on ''rejectno way!'' at any time: the window is closed and the items return to their original owners.
 
Let's suppose he clicks on ''accept'' then the other player sees that the first player has accepted the deal and that he can't drop any more items to his part of the window. So, he just can choose ''accept'' or ''reject'' too.
*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>