Optimise PlayspacePage QML, add debug toggle to Settings page
This commit is contained in:
@@ -530,11 +530,12 @@ MyStackViewPage {
|
|||||||
if (MoveCenterTabController.trackingUniverse === 0) {
|
if (MoveCenterTabController.trackingUniverse === 0) {
|
||||||
spaceModeText.text = "Sitting"
|
spaceModeText.text = "Sitting"
|
||||||
spaceSeatedRecenter.visible = true
|
spaceSeatedRecenter.visible = true
|
||||||
offsetsGroupBox.visible = MoveCenterTabController.enableSeatedMotion
|
var boolEnableSeatedMotion = MoveCenterTabController.enableSeatedMotion
|
||||||
rotationGroupBox.visible = MoveCenterTabController.enableSeatedMotion
|
offsetsGroupBox.visible = boolEnableSeatedMotion
|
||||||
resetButtonRow.visible = MoveCenterTabController.enableSeatedMotion
|
rotationGroupBox.visible = boolEnableSeatedMotion
|
||||||
profileSection.visible = MoveCenterTabController.enableSeatedMotion
|
resetButtonRow.visible = boolEnableSeatedMotion
|
||||||
seatedDisableWarningText.visible = !MoveCenterTabController.enableSeatedMotion
|
profileSection.visible = boolEnableSeatedMotion
|
||||||
|
seatedDisableWarningText.visible = !boolEnableSeatedMotion
|
||||||
|
|
||||||
} else if (MoveCenterTabController.trackingUniverse === 1) {
|
} else if (MoveCenterTabController.trackingUniverse === 1) {
|
||||||
spaceModeText.text = "Standing"
|
spaceModeText.text = "Standing"
|
||||||
@@ -570,8 +571,9 @@ MyStackViewPage {
|
|||||||
spaceRotationSlider.value = ( MoveCenterTabController.rotation / 100 )
|
spaceRotationSlider.value = ( MoveCenterTabController.rotation / 100 )
|
||||||
}
|
}
|
||||||
onTempRotationChanged: {
|
onTempRotationChanged: {
|
||||||
spaceRotationSlider.value = ( MoveCenterTabController.tempRotation / 100 )
|
var intTempRotation = MoveCenterTabController.tempRotation
|
||||||
spaceRotationText.text = ( MoveCenterTabController.tempRotation / 100 ) + "°"
|
spaceRotationSlider.value = ( intTempRotation / 100 )
|
||||||
|
spaceRotationText.text = ( intTempRotation / 100 ) + "°"
|
||||||
}
|
}
|
||||||
onAdjustChaperoneChanged: {
|
onAdjustChaperoneChanged: {
|
||||||
spaceAdjustChaperoneToggle.checked = MoveCenterTabController.adjustChaperone
|
spaceAdjustChaperoneToggle.checked = MoveCenterTabController.adjustChaperone
|
||||||
@@ -589,22 +591,24 @@ MyStackViewPage {
|
|||||||
if (MoveCenterTabController.trackingUniverse === 0) {
|
if (MoveCenterTabController.trackingUniverse === 0) {
|
||||||
spaceModeText.text = "Sitting"
|
spaceModeText.text = "Sitting"
|
||||||
spaceSeatedRecenter.visible = true
|
spaceSeatedRecenter.visible = true
|
||||||
offsetsGroupBox.visible = MoveCenterTabController.enableSeatedMotion
|
var boolEnableSeatedMotion = MoveCenterTabController.enableSeatedMotion
|
||||||
rotationGroupBox.visible = MoveCenterTabController.enableSeatedMotion
|
offsetsGroupBox.visible = boolEnableSeatedMotion
|
||||||
resetButtonRow.visible = MoveCenterTabController.enableSeatedMotion
|
rotationGroupBox.visible = boolEnableSeatedMotion
|
||||||
profileSection.visible = MoveCenterTabController.enableSeatedMotion
|
resetButtonRow.visible = boolEnableSeatedMotion
|
||||||
seatedDisableWarningText.visible = !MoveCenterTabController.enableSeatedMotion
|
profileSection.visible = boolEnableSeatedMotion
|
||||||
|
seatedDisableWarningText.visible = !boolEnableSeatedMotion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onTrackingUniverseChanged: {
|
onTrackingUniverseChanged: {
|
||||||
if (MoveCenterTabController.trackingUniverse === 0) {
|
if (MoveCenterTabController.trackingUniverse === 0) {
|
||||||
spaceModeText.text = "Sitting"
|
spaceModeText.text = "Sitting"
|
||||||
spaceSeatedRecenter.visible = true
|
spaceSeatedRecenter.visible = true
|
||||||
offsetsGroupBox.visible = MoveCenterTabController.enableSeatedMotion
|
var boolEnableSeatedMotion = MoveCenterTabController.enableSeatedMotion
|
||||||
rotationGroupBox.visible = MoveCenterTabController.enableSeatedMotion
|
offsetsGroupBox.visible = boolEnableSeatedMotion
|
||||||
resetButtonRow.visible = MoveCenterTabController.enableSeatedMotion
|
rotationGroupBox.visible = boolEnableSeatedMotion
|
||||||
profileSection.visible = MoveCenterTabController.enableSeatedMotion
|
resetButtonRow.visible = boolEnableSeatedMotion
|
||||||
seatedDisableWarningText.visible = !MoveCenterTabController.enableSeatedMotion
|
profileSection.visible = boolEnableSeatedMotion
|
||||||
|
seatedDisableWarningText.visible = !boolEnableSeatedMotion
|
||||||
} else if (MoveCenterTabController.trackingUniverse === 1) {
|
} else if (MoveCenterTabController.trackingUniverse === 1) {
|
||||||
spaceModeText.text = "Standing"
|
spaceModeText.text = "Standing"
|
||||||
spaceSeatedRecenter.visible = false
|
spaceSeatedRecenter.visible = false
|
||||||
|
|||||||
@@ -165,6 +165,22 @@ MyStackViewPage {
|
|||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
|
MyToggleButton {
|
||||||
|
id: debugToggle
|
||||||
|
text: "Debug"
|
||||||
|
onCheckedChanged: {
|
||||||
|
OverlayController.setEnableDebug(checked, true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
settingsAutoStartToggle.checked = SettingsTabController.autoStartEnabled
|
settingsAutoStartToggle.checked = SettingsTabController.autoStartEnabled
|
||||||
|
|||||||
Reference in New Issue
Block a user