blob: 6d70b7f2bb6c7f2ba93dc7e2ea5d33206f04c5b7 (
plain)
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
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.15
import QtQuick.Layouts 1.15
import HelperWidgets 2.0
import StudioTheme 1.0 as StudioTheme
Column {
width: parent.width
Section {
width: parent.width
caption: qsTr("Physics Node")
SectionLayout {
PropertyLabel {
text: qsTr("Collision Shapes")
Layout.alignment: Qt.AlignTop
Layout.topMargin: 5
}
SecondColumnLayout {
EditableListView {
backendValue: backendValues.collisionShapes
model: backendValues.collisionShapes.expressionAsList
Layout.fillWidth: true
typeFilter: "QtQuick3D.Physics.CollisionShape"
onAdd: function(value) { backendValues.collisionShapes.idListAdd(value) }
onRemove: function(idx) { backendValues.collisionShapes.idListRemove(idx) }
onReplace: function (idx, value) { backendValues.collisionShapes.idListReplace(idx, value) }
}
ExpandingSpacer {}
}
PropertyLabel {
text: qsTr("Receive Contact Reports")
tooltip: qsTr("Determines whether this body will receive contact reports when colliding with other bodies.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.receiveContactReports.valueToString
backendValue: backendValues.receiveContactReports
implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ StudioTheme.Values.actionIndicatorWidth
}
ExpandingSpacer {}
}
PropertyLabel {
text: qsTr("Send Contact Reports")
tooltip: qsTr("Determines whether this body will send contact reports when colliding with other bodies.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.sendContactReports.valueToString
backendValue: backendValues.sendContactReports
implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ StudioTheme.Values.actionIndicatorWidth
}
ExpandingSpacer {}
}
PropertyLabel {
text: qsTr("Receive Trigger Reports")
tooltip: qsTr("Determines whether this body will receive reports when entering or leaving a trigger body.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.receiveTriggerReports.valueToString
backendValue: backendValues.receiveTriggerReports
implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ StudioTheme.Values.actionIndicatorWidth
}
ExpandingSpacer {}
}
PropertyLabel {
text: qsTr("Send Trigger Reports")
tooltip: qsTr("Determines whether this body will send contact reports when colliding with other bodies.")
}
SecondColumnLayout {
CheckBox {
text: backendValues.sendTriggerReports.valueToString
backendValue: backendValues.sendTriggerReports
implicitWidth: StudioTheme.Values.twoControlColumnWidth
+ StudioTheme.Values.actionIndicatorWidth
}
ExpandingSpacer {}
}
}
}
}
|