Files
OpenVR-AdvancedSettings-frame/src/res/qml/common/mainwidget.qml
T
Vasily 760d262a57 Add page to change desktop overlay translation
The implementation is simple 3D vector scaling and addition. The
HmdMatrix34_t consists of a 3x3 rotation matrix and a 3D vector for
position.

The overlay position is only updated whenever a new overlay is changed
because we need the old overlay position in order to modify it. The
openvr call to get the position is only updated whenever you open the
menu.

A new page was created due to lack of space on the utilities page.
2019-03-31 22:31:26 +02:00

120 lines
2.3 KiB
QML

import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0
import ".."
import "../utilities_page"
import "../audio_page"
import "../motion_page"
import "../desktop_overlay_page"
Rectangle {
id: root
color: "#1b2939"
width: 1200
height: 800
property RootPage rootPage: RootPage {
stackView: mainView
}
property SteamVRPage steamVRPage: SteamVRPage {
stackView: mainView
visible: false
}
property ChaperonePage chaperonePage: ChaperonePage {
stackView: mainView
visible: false
}
property ChaperoneWarningsPage chaperoneWarningsPage: ChaperoneWarningsPage {
stackView: mainView
visible: false
}
property PlayspacePage playspacePage: PlayspacePage {
stackView: mainView
visible: false
}
property MotionPage motionPage: MotionPage {
stackView: mainView
visible: false
}
property FixFloorPage fixFloorPage: FixFloorPage {
stackView: mainView
visible: false
}
property StatisticsPage statisticsPage: StatisticsPage {
stackView: mainView
visible: false
}
property SettingsPage settingsPage: SettingsPage {
stackView: mainView
visible: false
}
property AudioPage audioPage: AudioPage {
stackView: mainView
visible: false
}
property RevivePage revivePage: RevivePage {
stackView: mainView
visible: false
}
property UtilitiesPage utilitiesPage: UtilitiesPage {
stackView: mainView
visible: false
}
property DesktopOverlayPage desktopOverlayPage: DesktopOverlayPage {
stackView: mainView
visible: false
}
StackView {
id: mainView
anchors.fill: parent
pushEnter: Transition {
PropertyAnimation {
property: "x"
from: mainView.width
to: 0
duration: 200
}
}
pushExit: Transition {
PropertyAnimation {
property: "x"
from: 0
to: -mainView.width
duration: 200
}
}
popEnter: Transition {
PropertyAnimation {
property: "x"
from: -mainView.width
to: 0
duration: 200
}
}
popExit: Transition {
PropertyAnimation {
property: "x"
from: 0
to: mainView.width
duration: 200
}
}
initialItem: rootPage
}
}