2024-06-01 01:14:46 +01:00
|
|
|
import QtQuick
|
2024-06-01 14:46:10 +01:00
|
|
|
import QtQuick.Layouts
|
2024-06-01 01:14:46 +01:00
|
|
|
|
|
|
|
import roulette
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
|
|
|
StreetBetsModel {
|
|
|
|
id: streetBetsModel
|
|
|
|
}
|
|
|
|
|
2024-06-01 14:46:10 +01:00
|
|
|
RowLayout {
|
|
|
|
anchors {
|
|
|
|
left: parent.left
|
|
|
|
leftMargin: 90
|
|
|
|
top: parent.top
|
|
|
|
topMargin: 22
|
|
|
|
}
|
2024-06-01 01:14:46 +01:00
|
|
|
|
2024-06-01 14:46:10 +01:00
|
|
|
spacing: 1.8
|
2024-06-01 01:14:46 +01:00
|
|
|
|
2024-06-01 14:46:10 +01:00
|
|
|
Repeater {
|
|
|
|
model: 12
|
2024-06-01 01:14:46 +01:00
|
|
|
|
2024-06-01 14:46:10 +01:00
|
|
|
Rectangle {
|
|
|
|
visible: true
|
|
|
|
color: tapHandler1.pressed ? "#999999" : "#EEEEEE"
|
|
|
|
opacity: hoverHandler.hovered ? 0.4 : 0
|
|
|
|
height: 45
|
|
|
|
width: 35
|
|
|
|
|
|
|
|
HoverHandler {
|
|
|
|
id: hoverHandler
|
|
|
|
}
|
|
|
|
TapHandler {
|
|
|
|
id: tapHandler1
|
|
|
|
}
|
2024-06-01 01:14:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-01 14:46:10 +01:00
|
|
|
Repeater {
|
|
|
|
model: 12
|
2024-06-01 01:14:46 +01:00
|
|
|
|
2024-06-01 14:46:10 +01:00
|
|
|
delegate: Rectangle {
|
|
|
|
visible: true
|
|
|
|
color: "transparent"
|
|
|
|
height: 44
|
|
|
|
width: 35
|
|
|
|
border.color: "blue"
|
|
|
|
border.width: 0
|
2024-06-01 01:14:46 +01:00
|
|
|
|
2024-06-01 14:46:10 +01:00
|
|
|
TapHandler {
|
2024-06-01 01:14:46 +01:00
|
|
|
|
2024-06-01 14:46:10 +01:00
|
|
|
onTapped: ()=> {
|
|
|
|
if (parent.border.width == 0) {
|
|
|
|
parent.border.width = 2
|
|
|
|
} else {
|
|
|
|
parent.border.width = 0
|
|
|
|
}
|
|
|
|
PlayerAreaModel.bet(PlayerAreaModel.STREET, index)
|
2024-06-01 01:14:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|