Added selfie view and updated help

This commit is contained in:
milad 2019-09-24 16:44:34 -07:00
parent e275fe1da8
commit edb135776a
2 changed files with 25 additions and 3 deletions

View file

@ -699,8 +699,8 @@ Item {
spacing: controlsTableRoot.rowPadding
HifiStylesUit.GraphikRegular {
id: mirrorText
text: "Mirror Mode"
id: selfieText
text: "Selfie"
width: paintedWidth
height: parent.height
horizontalAlignment: Text.AlignLeft
@ -711,7 +711,7 @@ Item {
HifiStylesUit.GraphikRegular {
text: "See your own avatar"
width: parent.width - mirrorText.width - parent.spacing - controlsTableRoot.rowPadding
width: parent.width - selfieText.width - parent.spacing - controlsTableRoot.rowPadding
height: parent.height
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter

View file

@ -239,6 +239,16 @@ Flickable {
Camera.mode = "third person"
}
}
SimplifiedControls.RadioButton {
id: selfie
text: "Selfie"
checked: Camera.mode === "mirror"
visible: true
onClicked: {
Camera.mode = "mirror"
}
}
Connections {
target: Camera
@ -248,6 +258,18 @@ Flickable {
firstPerson.checked = true
} else if (Camera.mode === "third person") {
thirdPerson.checked = true
} else if (Camera.mode === "mirror" && HMD.active) {
selfie.checked = true
}
}
}
Connections {
target: HMD
onDisplayModeChanged {
if (isHMDMode) {
selfie.visible = false;
}
}
}