Added Singles bets

This commit is contained in:
greek 2024-06-05 07:52:49 +01:00
parent 0787bccdb8
commit aeaaa419fd
4 changed files with 46 additions and 1 deletions

View file

@ -19,7 +19,7 @@ Item {
border.color: "blue"
border.width: 0
color: {
color: {
if (rouletteTable.numberOfBets < 2 || border.width == 2) {
if (tapHandler.pressed) {
"#AA999999"

View file

@ -41,6 +41,7 @@ qt_add_qml_module(roulette-payout
StreetBetsView.qml
Columns.qml
Dozens.qml
Singles.qml
)

View file

@ -27,6 +27,9 @@ Item {
Dozens {
}
Singles{
}
}
function destroyOnClose(obj) {

41
Singles.qml Normal file
View file

@ -0,0 +1,41 @@
import QtQuick
import QtQuick.Layouts
import roulette
Item {
GridLayout {
LayoutMirroring.enabled: true
flow: GridLayout.TopToBottom
rows: 3
rotation: 180
anchors {
right: parent.right
rightMargin: 90
top: parent.top
topMargin: 68
}
rowSpacing: 0
columnSpacing: 1.8
Repeater {
model: 36
Item {
height: 45
width: 35
BetButton {
index_: index
betType: 9
height: parent.height
width: parent.width
offsetX: 110
offsetY: 110
}
}
}
}
}