Flask of Rum - Slot Game
import Felgo 4.0
import QtQuick 2.0
Item {
id: bottomBar
height: 50
property bool autoActive
property bool startActive
signal autoClicked()
signal startClicked()
signal decreaseBetClicked()
signal increaseBetClicked()
signal maxBetClicked()
Image {
anchors.fill: parent
source: Qt.resolvedUrl("../assets/BGBottomBar.png")
}
Image {
width: 61
height: 31
anchors.bottom: bottomBar.bottom
anchors.left: bottomBar.left
anchors.bottomMargin: 4
anchors.leftMargin: 8
source: bottomBar.autoActive ? "../assets/ButtonAutoActive.png" : "../assets/ButtonAuto.png"
MouseArea {
anchors.fill: parent
onClicked: autoClicked()
}
}
Image {
width: 61
height: 31
anchors.bottom: bottomBar.bottom
anchors.right: bottomBar.right
anchors.bottomMargin: 4
anchors.rightMargin: 8
source: bottomBar.startActive ? "../assets/ButtonStartActive.png" : "../assets/ButtonStart.png"
enabled: !bottomBar.startActive
MouseArea {
anchors.fill: parent
onClicked: startClicked()
}
}
Row {
anchors.bottom: bottomBar.bottom
anchors.horizontalCenter: bottomBar.horizontalCenter
anchors.bottomMargin: 8
height: 23
Image {
width: 35
height: 19
anchors.verticalCenter: parent.verticalCenter
source: Qt.resolvedUrl("../assets/TextBet.png")
}
Text {
width: 35
horizontalAlignment: Text.AlignHCenter
anchors.verticalCenter: parent.verticalCenter
text: scene.betAmount
color: "white"
font.pixelSize: 16
}
Image {
width: 27
height: 23
anchors.verticalCenter: parent.verticalCenter
source: Qt.resolvedUrl("../assets/ButtonMinus.png")
MouseArea {
anchors.fill: parent
onClicked: decreaseBetClicked()
}
}
Image {
width: 30
height: 23
anchors.verticalCenter: parent.verticalCenter
source: Qt.resolvedUrl("../assets/ButtonPlus.png")
MouseArea {
anchors.fill: parent
onClicked: increaseBetClicked()
}
}
Image {
width: 50
height: 23
anchors.verticalCenter: parent.verticalCenter
source: Qt.resolvedUrl("../assets/ButtonMax.png")
MouseArea {
anchors.fill: parent
onClicked: maxBetClicked()
}