-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplay.qml
More file actions
executable file
·111 lines (97 loc) · 2.86 KB
/
Display.qml
File metadata and controls
executable file
·111 lines (97 loc) · 2.86 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import QtQuick 2.3
Rectangle {
id:tileContainer
property alias myScore: score.text
property alias myBestScore: bestScore.text
property alias myStep: step.text
property alias myTotalStep: totalStep.text
width: 550
height: 100
color: "#cdc0b4"
FontLoader { id: localFont; source: "qrc:///fonts/DroidSansFallback.ttf" }
/*
Text {
id: gameName
font.family: localFont.name
font.pixelSize: 55
font.bold: true
text: "2048"
color: helper.myColors.fgdark
}
*/
Grid {
columns: 4
Text {
width: 100; height: 50
text: "Score:"
color: "black"
font.pixelSize: 20
font.family: localFont.name
font.bold: true
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
}
Text {
id: score
width: 100; height: 50
font.bold: true
font.pixelSize: 20
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
}
Text {
width: 100; height: 50
text: "Best Score:"
color: "white"
font.pixelSize: 20
font.family: localFont.name
font.bold: true
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
}
Text {
id: bestScore
width: 100; height: 50
font.bold: true
font.pixelSize: 20
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
}
Text {
width: 100; height: 50
text: "Step:"
color: "black"
font.pixelSize: 20
font.family: localFont.name
font.bold: true
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
}
Text {
id: step
width: 100; height: 50
font.bold: true
font.pixelSize: 20
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
}
Text {
width: 100; height: 50
text: "Total Step:"
color: "white"
font.pixelSize: 20
font.family: localFont.name
font.bold: true
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
}
Text {
id: totalStep
width: 100; height: 50
font.bold: true
font.pixelSize: 20
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
}
}
}