Option to gently fade chaperone to disabled below a certain height (#622)
* Option to fade out chaperone when HMD goes below a configured height Useful for setups in which you have a seat just outside your VR space, or like to sit in the middle of your space for any amount of time. Will fade out the boundaries to 0% opacity over 5 seconds, 5 seconds after you sit down. Standing back up to the configured height will make them pop back in immediately. Can be found under Chaperone -> Additional Settings. * Update format.sh to require clang-format v10 * Use fade distance instead of opacity, opacity inconsistently applied * Bugfixes (#624) * stop crashing on HMD Init Errors, as well as bypass force quit on all steamvr Init Errors * add qtc clang to gitignore * add app volume adjustment * adjust app volume placement in menu * fix type error * increment version * fix version number --------- Co-authored-by: ykeara <ykeara1@gmail.com>
This commit is contained in:
@@ -96,6 +96,8 @@ class OverlayController : public QObject
|
||||
Q_PROPERTY( bool autoApplyChaperoneEnabled READ autoApplyChaperoneEnabled
|
||||
WRITE setAutoApplyChaperoneEnabled NOTIFY
|
||||
autoApplyChaperoneEnabledChanged )
|
||||
Q_PROPERTY( double soundVolume READ soundVolume WRITE setSoundVolume NOTIFY
|
||||
soundVolumeChanged )
|
||||
|
||||
private:
|
||||
vr::VROverlayHandle_t m_ulOverlayHandle = vr::k_ulOverlayHandleInvalid;
|
||||
@@ -252,6 +254,8 @@ public:
|
||||
int debugState() const;
|
||||
std::string autoApplyChaperoneName();
|
||||
|
||||
double soundVolume() const;
|
||||
|
||||
public slots:
|
||||
void renderOverlay();
|
||||
void OnRenderRequest();
|
||||
@@ -277,6 +281,7 @@ public slots:
|
||||
void setCustomTickRateMs( int value, bool notify = true );
|
||||
void setDebugState( int value, bool notify = true );
|
||||
void setAutoApplyChaperoneEnabled( bool value, bool notify = true );
|
||||
void setSoundVolume( double value, bool notify = true );
|
||||
|
||||
signals:
|
||||
void keyBoardInputSignal( QString input, unsigned long userValue = 0 );
|
||||
@@ -290,6 +295,7 @@ signals:
|
||||
void customTickRateMsChanged( int value );
|
||||
void debugStateChanged( int value );
|
||||
void autoApplyChaperoneEnabledChanged( bool value );
|
||||
void soundVolumeChanged( double value );
|
||||
};
|
||||
|
||||
} // namespace advsettings
|
||||
|
||||
Reference in New Issue
Block a user