mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:17:45 +02:00
Merge pull request #16247 from MiladNazeri/DEV-148/add-mirror-mode-to-settings
Dev 148/add mirror mode to settings
This commit is contained in:
commit
7d7024f5eb
2 changed files with 27 additions and 7 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
|
||||||
|
@ -710,8 +710,8 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
HifiStylesUit.GraphikRegular {
|
HifiStylesUit.GraphikRegular {
|
||||||
text: "See your own avatar"
|
text: "Look at self"
|
||||||
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
|
||||||
|
|
|
@ -234,9 +234,19 @@ Flickable {
|
||||||
SimplifiedControls.RadioButton {
|
SimplifiedControls.RadioButton {
|
||||||
id: thirdPerson
|
id: thirdPerson
|
||||||
text: "Third Person View"
|
text: "Third Person View"
|
||||||
checked: Camera.mode === "third person"
|
checked: Camera.mode === "look at"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Camera.mode = "third person"
|
Camera.mode = "look at"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SimplifiedControls.RadioButton {
|
||||||
|
id: selfie
|
||||||
|
text: "Selfie"
|
||||||
|
checked: Camera.mode === "selfie"
|
||||||
|
visible: true
|
||||||
|
onClicked: {
|
||||||
|
Camera.mode = "selfie"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,11 +256,21 @@ Flickable {
|
||||||
onModeUpdated: {
|
onModeUpdated: {
|
||||||
if (Camera.mode === "first person") {
|
if (Camera.mode === "first person") {
|
||||||
firstPerson.checked = true
|
firstPerson.checked = true
|
||||||
} else if (Camera.mode === "third person") {
|
} else if (Camera.mode === "look at") {
|
||||||
thirdPerson.checked = true
|
thirdPerson.checked = true
|
||||||
|
} else if (Camera.mode === "selfie" && HMD.active) {
|
||||||
|
selfie.checked = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: HMD
|
||||||
|
|
||||||
|
onDisplayModeChanged: {
|
||||||
|
selfie.visible = isHMDMode ? false : true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue