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: {
|
color: {
|
||||||
if (PlayerAreaModel.focusedPlayer == 0 && rouletteTable.numberOfBets == 1 && border.width != 3) {
|
if (PlayerAreaModel.focusedPlayer == 0 && rouletteTable.numberOfBets == 1 && border.width != 3) {
|
||||||
"#00000000"
|
"#00000000"
|
||||||
|
} else if (PlayerAreaModel.focusedPlayer == 0 && betType != 9) {
|
||||||
|
"#00000000"
|
||||||
} else if (rouletteTable.numberOfBets < 2 || border.width == 3) {
|
} else if (rouletteTable.numberOfBets < 2 || border.width == 3) {
|
||||||
if ((PlayerAreaModel.focusedPlayer == 0 && rouletteTable.numberOfBets < 1) || PlayerAreaModel.focusedPlayer != 0 || border.width == 3) {
|
if ((PlayerAreaModel.focusedPlayer == 0 && rouletteTable.numberOfBets < 1) || PlayerAreaModel.focusedPlayer != 0 || border.width == 3) {
|
||||||
if (tapHandler.pressed) {
|
if (tapHandler.pressed) {
|
||||||
|
@ -48,7 +50,9 @@ Item {
|
||||||
onTapped: {
|
onTapped: {
|
||||||
if (PlayerAreaModel.focusedPlayer == 0 && rouletteTable.numberOfBets == 1 && parent.border.width != 3) {
|
if (PlayerAreaModel.focusedPlayer == 0 && rouletteTable.numberOfBets == 1 && parent.border.width != 3) {
|
||||||
|
|
||||||
} else if (rouletteTable.numberOfBets < 2 && parent.border.width == 0) {
|
} else if (PlayerAreaModel.focusedPlayer == 0 && betType != 9) {
|
||||||
|
|
||||||
|
}else if (rouletteTable.numberOfBets < 2 && parent.border.width == 0) {
|
||||||
parent.border.width = 3
|
parent.border.width = 3
|
||||||
|
|
||||||
/* Don't show this dialog for the croupier */
|
/* Don't show this dialog for the croupier */
|
||||||
|
|
Loading…
Reference in a new issue