Can now chat while trading
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
9c18dc0c40
commit
d7191acec9
@ -2,7 +2,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 40vw;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -31,15 +31,17 @@ const Trade = ({table}) => {
|
|||||||
|
|
||||||
if (isTurn && table.game.player && table.game.player.banks) {
|
if (isTurn && table.game.player && table.game.player.banks) {
|
||||||
table.game.player.banks.forEach(bank => {
|
table.game.player.banks.forEach(bank => {
|
||||||
players.push({ name: `Bank ${bank}`, color: undefined, gives: '*', gets: '2 wheat'});
|
players.push({ name: `Bank ${bank}`, color: undefined, gives: '1 *', gets: '2 wheat'});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
players.push({ name: `Bank`, color: undefined, gives: '1 *', gets: '3 *'})
|
||||||
}
|
}
|
||||||
|
|
||||||
players = players.map(item =>
|
players = players.map(item =>
|
||||||
<div className="TradePlayer" key={`player-${item.name}`}>
|
<div className="TradePlayer" key={`player-${item.name}`}>
|
||||||
<PlayerColor color={item.color}/>
|
<PlayerColor color={item.color}/>
|
||||||
<div>{item.name}</div>
|
<div>{item.name}</div>
|
||||||
<div className='TradeLine'>wants: <div>{item.gets}</div> for: <div>{item.gives}</div><Button>accept</Button></div>
|
<div className='TradeLine'>will take <div>{item.gets}</div> for <div>{item.gives}</div>.<Button>accept</Button></div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user