mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +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
|
spacing: controlsTableRoot.rowPadding
|
||||||
|
|
||||||
HifiStylesUit.GraphikRegular {
|
HifiStylesUit.GraphikRegular {
|
||||||
id: mirrorText
|
id: selfieText
|
||||||
text: "Mirror Mode"
|
text: "Selfie"
|
||||||
width: paintedWidth
|
width: paintedWidth
|
||||||
height: parent.height
|
height: parent.height
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
|
@ -711,7 +711,7 @@ Item {
|
||||||
|
|
||||||
HifiStylesUit.GraphikRegular {
|
HifiStylesUit.GraphikRegular {
|
||||||
text: "See your own avatar"
|
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
|
height: parent.height
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
|
|
@ -239,6 +239,16 @@ Flickable {
|
||||||
Camera.mode = "third person"
|
Camera.mode = "third person"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SimplifiedControls.RadioButton {
|
||||||
|
id: selfie
|
||||||
|
text: "Selfie"
|
||||||
|
checked: Camera.mode === "mirror"
|
||||||
|
visible: true
|
||||||
|
onClicked: {
|
||||||
|
Camera.mode = "mirror"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: Camera
|
target: Camera
|
||||||
|
@ -248,6 +258,18 @@ Flickable {
|
||||||
firstPerson.checked = true
|
firstPerson.checked = true
|
||||||
} else if (Camera.mode === "third person") {
|
} else if (Camera.mode === "third person") {
|
||||||
thirdPerson.checked = true
|
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