Sure, no problem. I’d do something along these lines:
import Felgo 3.0
import QtQuick 2.0
App {
SlotMachine {
anchors.centerIn: parent
id: slot
reelCount: 1
rowCount: 3
defaultReelWidth: 30
defaultItemHeight: 30
delegate: Item {
Text {
text: modelData
font.pixelSize: 16
}
}
MouseArea {
anchors.fill: parent
onClicked: slot.display(["B", "Y", "E"])
}
function display(array) {
slot.model = ['X', 'X', 'X'].concat(array.concat(['X', 'X', 'X']))
slot.spin()
slot.stopAt([slot.model.indexOf(array[0])])
}
Component.onCompleted: display(["H", "I", "!"])
}
}
You can probably try to make it look less fake by padding the original array with random letters instead of the Xs I’m using here.
If you need to keep the 3X3 structure you can use reels as shown here: https://felgo.com/doc/felgo-slotmachine/, or you can stack three SlotMachines side by side.