From 87ab8a5840dc5d55d7755afe7488eab230313a3d Mon Sep 17 00:00:00 2001 From: vladest Date: Wed, 31 Jan 2018 21:46:05 +0100 Subject: [PATCH] Image overlay uses bounds property --- scripts/system/progress.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/system/progress.js b/scripts/system/progress.js index f4741c5b6a..db09d40608 100644 --- a/scripts/system/progress.js +++ b/scripts/system/progress.js @@ -300,7 +300,7 @@ if (visible) { x = ((Date.now() / 1000) % ANIMATION_SECONDS_PER_REPEAT) / ANIMATION_SECONDS_PER_REPEAT; - if (isHMD) { + if (!isHMD) { x = x * barDesktop.repeat; } else { x = x * BAR_HMD_REPEAT; @@ -309,9 +309,9 @@ // Update progress bar Overlays.editOverlay(barDesktop.overlay, { visible: !isHMD, - subImage: { + bounds: { x: barDesktop.repeat - x, - y: 0, + y: windowHeight - barDesktop.height, width: barDesktop.width - barDesktop.repeat, height: barDesktop.height } @@ -319,9 +319,9 @@ Overlays.editOverlay(barHMD.overlay, { visible: isHMD, - subImage: { + bounds: { x: BAR_HMD_REPEAT - x, - y: 0, + y: windowHeight - BAR_HMD_HEIGHT, width: BAR_HMD_WIDTH - BAR_HMD_REPEAT, height: BAR_HMD_HEIGHT }