mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +02:00
Merge pull request #16219 from zfox23/vrRotationSimplified
DEV-152: Implement 'Smooth/Snap Turn' setting in SimplifiedUI > Settings > VR
This commit is contained in:
commit
058c74f7d2
1 changed files with 40 additions and 1 deletions
|
@ -71,7 +71,7 @@ Flickable {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: controlsContainer
|
id: controlsContainer
|
||||||
Layout.preferredWidth: parent.width
|
Layout.preferredWidth: parent.width
|
||||||
Layout.topMargin: 24
|
Layout.topMargin: 24
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
HifiStylesUit.GraphikSemiBold {
|
HifiStylesUit.GraphikSemiBold {
|
||||||
|
@ -155,6 +155,45 @@ Flickable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
Layout.preferredWidth: parent.width
|
||||||
|
spacing: 0
|
||||||
|
|
||||||
|
HifiStylesUit.GraphikSemiBold {
|
||||||
|
text: "VR Rotation Mode"
|
||||||
|
Layout.preferredWidth: parent.width
|
||||||
|
height: paintedHeight
|
||||||
|
size: 22
|
||||||
|
color: simplifiedUI.colors.text.white
|
||||||
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
width: parent.width
|
||||||
|
Layout.topMargin: simplifiedUI.margins.settings.settingsGroupTopMargin
|
||||||
|
spacing: simplifiedUI.margins.settings.spacingBetweenRadiobuttons
|
||||||
|
|
||||||
|
ButtonGroup { id: rotationButtonGroup }
|
||||||
|
|
||||||
|
SimplifiedControls.RadioButton {
|
||||||
|
text: "Snap Turn"
|
||||||
|
ButtonGroup.group: rotationButtonGroup
|
||||||
|
checked: MyAvatar.getSnapTurn() === true
|
||||||
|
onClicked: {
|
||||||
|
MyAvatar.setSnapTurn(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SimplifiedControls.RadioButton {
|
||||||
|
text: "Smooth Turn"
|
||||||
|
ButtonGroup.group: rotationButtonGroup
|
||||||
|
checked: MyAvatar.getSnapTurn() === false
|
||||||
|
onClicked: {
|
||||||
|
MyAvatar.setSnapTurn(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: micControlsContainer
|
id: micControlsContainer
|
||||||
Layout.preferredWidth: parent.width
|
Layout.preferredWidth: parent.width
|
||||||
|
|
Loading…
Reference in a new issue