-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBoardTopSide.qml
49 lines (45 loc) · 1.44 KB
/
BoardTopSide.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
import QtQuick 2.9
import QtQuick.Controls 2.5
Item {
Rectangle {
anchors.fill: parent
color: "white"
Image {
width: parent.width - 2
height: parent.height - 2
id: wood3
anchors.centerIn: parent
source: "qrc:/Assets/Images/Wood5.jpg"
GridView {
interactive: false
id: topGrid
anchors.centerIn: parent
width: parent.width * 0.98
height: parent.height * 0.90
model: 16
cellHeight: topGrid.height / 2
cellWidth: topGrid.width / 8
delegate: Rectangle {
id: topCell
height: topGrid.height / 2
width: topGrid.width / 8
color: "#00000000"
border.color: "#7c6d43"
//outs icons
Image {
id: image
anchors.centerIn: parent
source: bknd.getP2OutsIcon(index)
width: topCell.width * 0.78
height: topCell.height * 0.8
NumberAnimation on opacity {
duration: 600
from: 0
to: 1
}
}
}
}
}
}
}