Only allow croupier to choose single numbers.
This commit is contained in:
parent
fd7a8fbd8a
commit
b93630dff5
1 changed files with 5 additions and 1 deletions
|
@ -22,6 +22,8 @@ Item {
|
|||
color: {
|
||||
if (PlayerAreaModel.focusedPlayer == 0 && rouletteTable.numberOfBets == 1 && border.width != 3) {
|
||||
"#00000000"
|
||||
} else if (PlayerAreaModel.focusedPlayer == 0 && betType != 9) {
|
||||
"#00000000"
|
||||
} else if (rouletteTable.numberOfBets < 2 || border.width == 3) {
|
||||
if ((PlayerAreaModel.focusedPlayer == 0 && rouletteTable.numberOfBets < 1) || PlayerAreaModel.focusedPlayer != 0 || border.width == 3) {
|
||||
if (tapHandler.pressed) {
|
||||
|
@ -48,6 +50,8 @@ Item {
|
|||
onTapped: {
|
||||
if (PlayerAreaModel.focusedPlayer == 0 && rouletteTable.numberOfBets == 1 && parent.border.width != 3) {
|
||||
|
||||
} else if (PlayerAreaModel.focusedPlayer == 0 && betType != 9) {
|
||||
|
||||
}else if (rouletteTable.numberOfBets < 2 && parent.border.width == 0) {
|
||||
parent.border.width = 3
|
||||
|
||||
|
|
Loading…
Reference in a new issue