-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGamePage.qml
More file actions
66 lines (58 loc) · 1.46 KB
/
Copy pathGamePage.qml
File metadata and controls
66 lines (58 loc) · 1.46 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
import QtQuick 2.9
import QtQuick.Controls 2.5
import QtQuick.Window 2.3
Page {
id: gamePage
title: persian.checked ? "صفحه ی بازی" : "Game Page"
background: Image {
source: "qrc:/Assets/Images/Wood2.jpg"
}
Board {
id: board
height: parent.height * 0.55
width: parent.height * 0.55
x: parent.width / 2 - width / 2
y: parent.height / 2 - height / 2
}
//orders
BoardLeftSide {
id: leftSide
anchors.right: board.left
anchors.rightMargin: 8
width: parent.width * 0.125
height: board.height
anchors.verticalCenter: board.verticalCenter
}
//scores
BoardRightSide {
id: rightSide
anchors.left: board.right
anchors.leftMargin: 8
width: parent.width * 0.125
height: board.height
anchors.verticalCenter: board.verticalCenter
}
//P1 outs
BoardBottomSide {
id: outs1
anchors.top: board.bottom
anchors.topMargin: 8
width: board.width
height: parent.height * 0.13
anchors.horizontalCenter: board.horizontalCenter
}
//P2 outs
BoardTopSide {
id: outs2
anchors.bottom: board.top
anchors.bottomMargin: 8
width: board.width
height: parent.height * 0.13
anchors.horizontalCenter: board.horizontalCenter
}
}
/*##^##
Designer {
D{i:0;autoSize:true;height:480;width:640}
}
##^##*/