Added desktop and no-sound modes.
When -desktop is given on the command line then the settings menu is shown on the desktop instead of an vr overlay. When -nosound is given on the command line then there are no sound effects.
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
pragma Singleton
|
||||
import QtQuick 2.7
|
||||
import QtMultimedia 5.6
|
||||
import matzman666.advsettings 1.0
|
||||
|
||||
QtObject {
|
||||
function playActivationSound() {
|
||||
if (!OverlayController.soundDisabled()) {
|
||||
activationSound.play()
|
||||
}
|
||||
}
|
||||
function playFocusChangedSound() {
|
||||
if (!OverlayController.soundDisabled()) {
|
||||
focusChangedSound.play()
|
||||
}
|
||||
}
|
||||
property SoundEffect activationSound: SoundEffect {
|
||||
source: vrRuntimePath + "tools/content/panorama/sounds/activation.wav"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user