-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMenuPage.qml
74 lines (63 loc) · 1.61 KB
/
MenuPage.qml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import QtQuick 2.7
import QtQuick.Controls.Material 2.0
import QtQuick.Controls 2.0
Item {
anchors.fill: parent
signal scoreBoard()
signal startGame()
Button{
width :parent.width/5
height: 70
anchors.horizontalCenter: parent.horizontalCenter
y:200
text:"Start"
Material.foreground: "black"
Material.theme: Material.Light
Material.background:Material.LightBlue
onClicked: {
startGame()
myGame.start();
}
}
Button{
width :parent.width/5
height: 70
anchors.horizontalCenter: parent.horizontalCenter
y:280
text:"Score Board"
Material.foreground: "black"
Material.theme: Material.Light
Material.background:Material.LightBlue
onClicked: scoreBoard()
}
Button{
width :parent.width/5
height: 70
anchors.horizontalCenter: parent.horizontalCenter
y:360
text:"Exit"
Material.foreground: "black"
Material.theme: Material.Light
Material.background:Material.LightBlue
onClicked: Qt.quit()
}
Rectangle{
width: showUsername.width + 50
height: 50
radius: 10
anchors{
rightMargin: 20
right: parent.right
top: parent.top
topMargin:20
}
color:Material.color( Material.Teal)
Text {
id: showUsername
text: userInfo.usernameQml
anchors.centerIn: parent
font.pixelSize: 20
color:"black"
}
}
}