mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Added selfie view and updated help
This commit is contained in:
parent
e275fe1da8
commit
edb135776a
2 changed files with 25 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue