* add native chaperone option * refactored overlaywrapper error handling * added reset all settings * added reset all settings option * clarified driver bounds language * fixed naming schema of turn settings * fixed qml issue * marked errors in settings * fixed rotation of center marker and cleaned up * ci test * removed debugging code * fixed comment * fixed rotation.... made messy * fixed crash when centermarker new was on at launch * added settings to scroll view * fixed some initialization issues w/ center marker and some race conditions * updated Documentation to be more correct/concise about openGL rendering Information issue 457 * changed default behaviour of chaperone bounds to be un-checked to be consistant w/ other settings (default is unchecked) * cleaned up code around centermarker overlay * removed unused variables, changed scope of some existing * code naming cleanup * more rename * updated Version strings for 5.1.1 release * updated string to be more concise
117 lines
3.2 KiB
QML
117 lines
3.2 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.0
|
|
import QtQuick.Layouts 1.3
|
|
import ovras.advsettings 1.0
|
|
import "../../common"
|
|
|
|
GroupBox {
|
|
id: spaceTurnGroupBox
|
|
Layout.fillWidth: true
|
|
|
|
label: MyText {
|
|
leftPadding: 10
|
|
text: "Space Turn (for manual redirected walking)"
|
|
bottomPadding: -10
|
|
}
|
|
background: Rectangle {
|
|
color: "transparent"
|
|
border.color: "#ffffff"
|
|
radius: 8
|
|
}
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
|
|
Rectangle {
|
|
color: "#ffffff"
|
|
height: 1
|
|
Layout.fillWidth: true
|
|
Layout.bottomMargin: 5
|
|
}
|
|
|
|
RowLayout {
|
|
Layout.fillWidth: true
|
|
|
|
MyToggleButton {
|
|
id: turnBindLeft
|
|
text: "Left Hand"
|
|
onCheckedChanged: {
|
|
MoveCenterTabController.turnBindLeft = this.checked
|
|
}
|
|
}
|
|
|
|
MyToggleButton {
|
|
id: turnBindRight
|
|
text: "Right Hand"
|
|
onCheckedChanged: {
|
|
MoveCenterTabController.turnBindRight = this.checked
|
|
}
|
|
}
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
}
|
|
|
|
MyText {
|
|
text: "Comfort Mode:"
|
|
horizontalAlignment: Text.AlignRight
|
|
Layout.rightMargin: 10
|
|
}
|
|
|
|
MySlider {
|
|
id: turnComfortSlider
|
|
from: 0
|
|
to: 10
|
|
stepSize: 1
|
|
value: 0
|
|
Layout.preferredWidth: 180
|
|
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
|
|
onValueChanged: {
|
|
turnComfortText.text = turnComfortSlider.value
|
|
MoveCenterTabController.turnComfortFactor = turnComfortSlider.value
|
|
}
|
|
}
|
|
|
|
MyText {
|
|
id: turnComfortText
|
|
text: "0"
|
|
horizontalAlignment: Text.AlignRight
|
|
Layout.preferredWidth: 30
|
|
Layout.rightMargin: 10
|
|
}
|
|
|
|
MyToggleButton {
|
|
id: turnBounds
|
|
text: "Force Bounds"
|
|
onCheckedChanged: {
|
|
MoveCenterTabController.turnBounds = this.checked
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
turnBindLeft.checked = MoveCenterTabController.turnBindLeft
|
|
turnBindRight.checked = MoveCenterTabController.turnBindRight
|
|
turnComfortSlider.value = MoveCenterTabController.turnComfortFactor
|
|
turnBounds.checked = MoveCenterTabController.turnBounds
|
|
}
|
|
|
|
Connections {
|
|
target: MoveCenterTabController
|
|
|
|
onTurnBindLeftChanged: {
|
|
turnBindLeft.checked = MoveCenterTabController.turnBindLeft
|
|
}
|
|
onTurnBindRightChanged: {
|
|
turnBindRight.checked = MoveCenterTabController.turnBindRight
|
|
}
|
|
onTurnComfortFactorChanged: {
|
|
turnComfortSlider.value = MoveCenterTabController.turnComfortFactor
|
|
}
|
|
onTurnBoundsChanged: {
|
|
turnBounds.checked = MoveCenterTabController.turnBounds
|
|
}
|
|
}
|
|
}
|