Merge pull request #12924 from zfox23/MS12292_snapshotResourcesPath

Fix paths to various Snapshot resource files
This commit is contained in:
Zach Fox 2018-04-18 13:44:53 -07:00 committed by GitHub
commit e0012ed5dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -275,7 +275,7 @@ function onMessage(message) {
}
}
var POLAROID_PRINT_SOUND = SoundCache.getSound(Script.resolvePath("assets/sounds/sound-print-photo.wav"));
var POLAROID_PRINT_SOUND = SoundCache.getSound(Script.resourcesPath() + "sounds/snapshot/sound-print-photo.wav");
var POLAROID_MODEL_URL = 'http://hifi-content.s3.amazonaws.com/alan/dev/Test/snapshot.fbx';
function printToPolaroid(image_url) {
@ -347,7 +347,7 @@ function fillImageDataFromPrevious() {
story_id: previousStillSnapStoryID,
blastButtonDisabled: previousStillSnapBlastingDisabled,
hifiButtonDisabled: previousStillSnapHifiSharingDisabled,
errorPath: Script.resolvePath(Script.resourcesPath() + 'snapshot/img/no-image.jpg')
errorPath: Script.resourcesPath() + 'snapshot/img/no-image.jpg'
});
}
if (previousAnimatedSnapPath !== "") {
@ -356,7 +356,7 @@ function fillImageDataFromPrevious() {
story_id: previousAnimatedSnapStoryID,
blastButtonDisabled: previousAnimatedSnapBlastingDisabled,
hifiButtonDisabled: previousAnimatedSnapHifiSharingDisabled,
errorPath: Script.resolvePath(Script.resourcesPath() + 'snapshot/img/no-image.jpg')
errorPath: Script.resourcesPath() + 'snapshot/img/no-image.jpg'
});
}
}
@ -473,7 +473,7 @@ function takeSnapshot() {
Menu.setIsOptionChecked("Overlays", false);
}
var snapActivateSound = SoundCache.getSound(Script.resolvePath("../../resources/sounds/snap.wav"));
var snapActivateSound = SoundCache.getSound(Script.resourcesPath() + "sounds/snapshot/snap.wav");
// take snapshot (with no notification)
Script.setTimeout(function () {
@ -596,7 +596,7 @@ function processingGifStarted(pathStillSnapshot) {
snapshotOptions = {
containsGif: true,
processingGif: true,
loadingGifPath: Script.resolvePath(Script.resourcesPath() + 'icons/loadingDark.gif'),
loadingGifPath: Script.resourcesPath() + 'icons/loadingDark.gif',
canShare: canShare,
isLoggedIn: isLoggedIn
};