-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainMenu.qml
More file actions
53 lines (45 loc) · 1.33 KB
/
Copy pathMainMenu.qml
File metadata and controls
53 lines (45 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import QtQuick
import QtQuick.Controls
Rectangle {
id: menuPage
color: "#f0f0f0"
signal startGame
signal openStats()
signal openTutorial()
Column {
anchors.centerIn: parent
spacing: 20
Text {
text: "QR DECODER"
font.pointSize: 40; color: "black"; font.bold: true
anchors.horizontalCenter: parent.horizontalCenter
}
Button {
text: "Грати"
width: 200; height: 60; anchors.horizontalCenter: parent.horizontalCenter
palette.buttonText: "black"
onClicked: startGame()
}
Button {
text: "НАВЧАННЯ"
width: 200; height: 60
anchors.horizontalCenter: parent.horizontalCenter
onClicked: menuPage.openTutorial()
palette.buttonText: "black"
}
Button {
text: "СТАТИСТИКА"
width: 200; height: 60
anchors.horizontalCenter: parent.horizontalCenter
onClicked: menuPage.openStats()
palette.buttonText: "black"
}
Button {
text: "ВИХІД"
width: 200; height: 60
anchors.horizontalCenter: parent.horizontalCenter
palette.buttonText: "black"
onClicked: Qt.quit()
}
}
}