diff --git a/BetButton.qml b/BetButton.qml index 390a176..d73c0b0 100644 --- a/BetButton.qml +++ b/BetButton.qml @@ -19,7 +19,7 @@ Item { border.color: "blue" border.width: 0 - color: { + color: { if (rouletteTable.numberOfBets < 2 || border.width == 2) { if (tapHandler.pressed) { "#AA999999" diff --git a/CMakeLists.txt b/CMakeLists.txt index 81dcefd..d1bec5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,7 @@ qt_add_qml_module(roulette-payout StreetBetsView.qml Columns.qml Dozens.qml + Singles.qml ) diff --git a/Roulette.qml b/Roulette.qml index 318699a..68a375c 100644 --- a/Roulette.qml +++ b/Roulette.qml @@ -27,6 +27,9 @@ Item { Dozens { } + + Singles{ + } } function destroyOnClose(obj) { diff --git a/Singles.qml b/Singles.qml new file mode 100644 index 0000000..0c8e9fc --- /dev/null +++ b/Singles.qml @@ -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 + } + } + } + } +}