changed color combination for doudizhu gameboard and probability area
This commit is contained in:
parent
6af541d935
commit
7e53368ead
|
@ -3,7 +3,7 @@
|
||||||
.doudizhu-wrapper {
|
.doudizhu-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #FEF9E7;
|
background-color: #C3CDFF;
|
||||||
background-image: url("./images/table.png");
|
background-image: url("./images/table.png");
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: 100% 70%;
|
background-size: 100% 70%;
|
||||||
|
|
|
@ -272,7 +272,7 @@ class DoudizhuGameView extends React.Component {
|
||||||
computeProbabilityItem(idx){
|
computeProbabilityItem(idx){
|
||||||
if(this.state.gameInfo.gameStatus !== "ready" && this.state.gameInfo.turn < this.moveHistory.length){
|
if(this.state.gameInfo.gameStatus !== "ready" && this.state.gameInfo.turn < this.moveHistory.length){
|
||||||
let style = {};
|
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 (
|
return (
|
||||||
<div className={"playing"} style={style}>
|
<div className={"playing"} style={style}>
|
||||||
<div className="probability-move">
|
<div className="probability-move">
|
||||||
|
|
Loading…
Reference in New Issue