changed color combination for doudizhu gameboard and probability area

This commit is contained in:
songyih 2020-02-23 19:47:47 -08:00
parent 6af541d935
commit 7e53368ead
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
.doudizhu-wrapper {
width: 100%;
height: 100%;
background-color: #FEF9E7;
background-color: #C3CDFF;
background-image: url("./images/table.png");
background-repeat: no-repeat;
background-size: 100% 70%;

View File

@ -272,7 +272,7 @@ class DoudizhuGameView extends React.Component {
computeProbabilityItem(idx){
if(this.state.gameInfo.gameStatus !== "ready" && this.state.gameInfo.turn < this.moveHistory.length){
let style = {};
style["backgroundColor"] = this.moveHistory[this.state.gameInfo.turn].probabilities.length > idx ? `rgba(245, 176, 65 , ${this.moveHistory[this.state.gameInfo.turn].probabilities[idx].probability})` : "#bdbdbd";
style["backgroundColor"] = this.moveHistory[this.state.gameInfo.turn].probabilities.length > idx ? `rgba(130, 151, 255 , ${this.moveHistory[this.state.gameInfo.turn].probabilities[idx].probability})` : "#bdbdbd";
return (
<div className={"playing"} style={style}>
<div className="probability-move">