mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
a few updates to adjust wearables & settings pages
This commit is contained in:
parent
4bb517f620
commit
6059ef2904
3 changed files with 49 additions and 27 deletions
|
@ -54,10 +54,25 @@ Rectangle {
|
||||||
id: header
|
id: header
|
||||||
z: 100
|
z: 100
|
||||||
|
|
||||||
pageTitle: !settings.visible ? "Avatar" : "Avatar Settings"
|
property string currentPage: "Avatar"
|
||||||
avatarIconVisible: !settings.visible
|
property bool mainPageVisible: !settings.visible && !adjustWearables.visible
|
||||||
settingsButtonVisible: !settings.visible
|
|
||||||
|
|
||||||
|
Binding on currentPage {
|
||||||
|
when: settings.visible
|
||||||
|
value: "Avatar Settings"
|
||||||
|
}
|
||||||
|
Binding on currentPage {
|
||||||
|
when: adjustWearables.visible
|
||||||
|
value: "Adjust Wearables"
|
||||||
|
}
|
||||||
|
Binding on currentPage {
|
||||||
|
when: header.mainPageVisible
|
||||||
|
value: "Avatar"
|
||||||
|
}
|
||||||
|
|
||||||
|
pageTitle: currentPage
|
||||||
|
avatarIconVisible: mainPageVisible
|
||||||
|
settingsButtonVisible: mainPageVisible
|
||||||
onSettingsClicked: {
|
onSettingsClicked: {
|
||||||
settings.open();
|
settings.open();
|
||||||
}
|
}
|
||||||
|
@ -65,6 +80,12 @@ Rectangle {
|
||||||
|
|
||||||
Settings {
|
Settings {
|
||||||
id: settings
|
id: settings
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.top: header.bottom
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
|
||||||
|
z: 3
|
||||||
|
|
||||||
onSaveClicked: function() {
|
onSaveClicked: function() {
|
||||||
close();
|
close();
|
||||||
|
@ -74,6 +95,16 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AdjustWearables {
|
||||||
|
id: adjustWearables
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.top: header.bottom
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
|
||||||
|
z: 3
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: mainBlock
|
id: mainBlock
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
@ -716,11 +747,6 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AdjustWearables {
|
|
||||||
id: adjustWearables
|
|
||||||
z: 2
|
|
||||||
}
|
|
||||||
|
|
||||||
MessageBox {
|
MessageBox {
|
||||||
id: popup
|
id: popup
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ Rectangle {
|
||||||
visible: false;
|
visible: false;
|
||||||
width: 480
|
width: 480
|
||||||
height: 706
|
height: 706
|
||||||
color: 'lightgray'
|
color: 'white'
|
||||||
|
|
||||||
property bool modified: false;
|
property bool modified: false;
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
@ -50,18 +50,6 @@ Rectangle {
|
||||||
spacing: 20
|
spacing: 20
|
||||||
width: parent.width - 30 * 2
|
width: parent.width - 30 * 2
|
||||||
|
|
||||||
TextStyle5 {
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
text: "Adjust Wearables"
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
height: 2
|
|
||||||
color: 'gray'
|
|
||||||
}
|
|
||||||
|
|
||||||
HifiControlsUit.ComboBox {
|
HifiControlsUit.ComboBox {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
@ -91,6 +79,8 @@ Rectangle {
|
||||||
|
|
||||||
Vector3 {
|
Vector3 {
|
||||||
id: position
|
id: position
|
||||||
|
backgroundColor: "lightgray"
|
||||||
|
|
||||||
onXvalueChanged: modified = true;
|
onXvalueChanged: modified = true;
|
||||||
onYvalueChanged: modified = true;
|
onYvalueChanged: modified = true;
|
||||||
onZvalueChanged: modified = true;
|
onZvalueChanged: modified = true;
|
||||||
|
@ -115,6 +105,8 @@ Rectangle {
|
||||||
|
|
||||||
Vector3 {
|
Vector3 {
|
||||||
id: rotation
|
id: rotation
|
||||||
|
backgroundColor: "lightgray"
|
||||||
|
|
||||||
onXvalueChanged: modified = true;
|
onXvalueChanged: modified = true;
|
||||||
onYvalueChanged: modified = true;
|
onYvalueChanged: modified = true;
|
||||||
onZvalueChanged: modified = true;
|
onZvalueChanged: modified = true;
|
||||||
|
@ -136,7 +128,7 @@ Rectangle {
|
||||||
HifiControlsUit.SpinBox {
|
HifiControlsUit.SpinBox {
|
||||||
id: scalespinner
|
id: scalespinner
|
||||||
value: 0
|
value: 0
|
||||||
backgroundColor: "darkgray"
|
backgroundColor: "lightgray"
|
||||||
width: position.spinboxWidth
|
width: position.spinboxWidth
|
||||||
colorScheme: hifi.colorSchemes.light
|
colorScheme: hifi.colorSchemes.light
|
||||||
onValueChanged: modified = true;
|
onValueChanged: modified = true;
|
||||||
|
|
|
@ -10,12 +10,7 @@ Rectangle {
|
||||||
id: settings
|
id: settings
|
||||||
|
|
||||||
color: 'white'
|
color: 'white'
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.top: header.bottom
|
|
||||||
anchors.bottom: parent.bottom
|
|
||||||
visible: false;
|
visible: false;
|
||||||
z: 3
|
|
||||||
|
|
||||||
property alias onSaveClicked: dialogButtons.onYesClicked
|
property alias onSaveClicked: dialogButtons.onYesClicked
|
||||||
property alias onCancelClicked: dialogButtons.onNoClicked
|
property alias onCancelClicked: dialogButtons.onNoClicked
|
||||||
|
@ -28,6 +23,15 @@ Rectangle {
|
||||||
visible = false
|
visible = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This object is always used in a popup.
|
||||||
|
// This MouseArea is used to prevent a user from being
|
||||||
|
// able to click on a button/mouseArea underneath the popup.
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent;
|
||||||
|
propagateComposedEvents: false;
|
||||||
|
hoverEnabled: true;
|
||||||
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: 27
|
anchors.leftMargin: 27
|
||||||
|
|
Loading…
Reference in a new issue