1
0

Can now chat while trading

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2022-02-15 17:30:44 -08:00
parent 9c18dc0c40
commit d7191acec9
2 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
display: flex;
position: absolute;
left: 0;
right: 0;
right: 40vw;
bottom: 0;
top: 0;
justify-content: center;

View File

@ -31,15 +31,17 @@ const Trade = ({table}) => {
if (isTurn && table.game.player && table.game.player.banks) {
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 =>
<div className="TradePlayer" key={`player-${item.name}`}>
<PlayerColor color={item.color}/>
<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>
);