Video and Steam VR Tab Re-work + keyboard binds (#289)

* changed color overlay to use gain values instead of overlay

* moved SS/Motion smoothing, and filter to video tab

* began refactor of steamVR qml page

* added misc toggles to steamvr tab

* added imu fallback and DND, and some qml formatting

* added Camera Settings to SteamVR page

* changed formatting to minimize height

* added video profiles cleaned up steamvr controller

* delta comparison change

* added profiles for video

* fixed display bug in colorgroupbox and removed frivoulous saves

* removed commented code

* added custom keybind buttons
This commit is contained in:
ykeara
2019-09-01 02:35:00 -05:00
committed by GitHub
parent 5452144157
commit 4b0be27ff6
24 changed files with 1750 additions and 1257 deletions
+20 -18
View File
@@ -164,34 +164,36 @@ MyStackViewPage {
spacing: 18
MyText {
text: "Supersampling Profile:"
text: "Video Profile:"
}
Item{
Layout.fillWidth: true
}
MyComboBox {
id: summarySteamVRProfileComboBox
id: summaryVideoProfileComboBox
Layout.maximumWidth: 378
Layout.minimumWidth: 378
Layout.preferredWidth: 378
Layout.fillWidth: true
model: [""]
onCurrentIndexChanged: {
if (currentIndex > 0) {
summarySteamVRProfileApplyButton.enabled = true
summaryVideoProfileApplyButton.enabled = true
} else {
summarySteamVRProfileApplyButton.enabled = false
summaryVideoProfileApplyButton.enabled = false
}
}
}
MyPushButton {
id: summarySteamVRProfileApplyButton
id: summaryVideoProfileApplyButton
enabled: false
Layout.preferredWidth: 150
text: "Apply"
onClicked: {
if (summarySteamVRProfileComboBox.currentIndex > 0) {
SteamVRTabController.applySteamVRProfile(summarySteamVRProfileComboBox.currentIndex - 1)
summarySteamVRProfileComboBox.currentIndex = 0
if (summaryVideoProfileComboBox.currentIndex > 0) {
VideoTabController.applyVideoProfile(summaryVideoProfileComboBox.currentIndex - 1)
summaryVideoProfileComboBox.currentIndex = 0
}
}
}
@@ -394,7 +396,7 @@ MyStackViewPage {
Component.onCompleted: {
reloadChaperoneProfiles()
reloadSteamVRProfiles()
reloadVideoProfiles()
summaryVersionText.text = applicationVersion
@@ -423,9 +425,9 @@ MyStackViewPage {
}
Connections {
target: SteamVRTabController
onSteamVRProfilesUpdated: {
reloadSteamVRProfiles()
target: VideoTabController
onVideoProfilesUpdated: {
reloadVideoProfiles()
}
}
@@ -499,13 +501,13 @@ MyStackViewPage {
}
function reloadSteamVRProfiles() {
function reloadVideoProfiles() {
var profiles = [""]
var profileCount = SteamVRTabController.getSteamVRProfileCount()
var profileCount = VideoTabController.getVideoProfileCount()
for (var i = 0; i < profileCount; i++) {
profiles.push(SteamVRTabController.getSteamVRProfileName(i))
profiles.push(VideoTabController.getVideoProfileName(i))
}
summarySteamVRProfileComboBox.currentIndex = 0
summarySteamVRProfileComboBox.model = profiles
summaryVideoProfileComboBox.currentIndex = 0
summaryVideoProfileComboBox.model = profiles
}
}