roulette-payout/Root.qml
2024-06-07 18:03:22 +01:00

65 lines
1.4 KiB
QML

import QtQuick
import QtQuick.Controls
import roulette /* this is importing the target "roulette-payout" defined in CMakeLists.txt */
Window {
height: 500
width: 1000
title: "Roulette Payout"
visible: true
Pane {
anchors.fill: parent
MouseArea {
anchors.fill: parent
onClicked: focus = true
}
PlayerAreaView {
id: playerAreaView
}
Roulette {
id: roulette
height: parent.height / 1.7
width: parent.width / 1.7
anchors{
top: parent.top
right: parent.right
}
}
Button {
text: "Payout"
font.pointSize: 15
highlighted: false
onClicked: PlayerAreaModel.payout()
anchors {
left: roulette.left
bottom: parent.bottom
bottomMargin: 20
}
background: Rectangle {
implicitWidth: 150
implicitHeight: 60
opacity: {
if (parent.pressed) {
1
} else if (parent.hovered) {
0.2
} else {
0.3
}
}
color: "#CCCCCC"
border.width: 0
}
}
}
}