From da033e14ca3449f7335e9c4d0f0c3c8ad8439b46 Mon Sep 17 00:00:00 2001 From: cailean Date: Thu, 27 Nov 2025 23:42:30 +0000 Subject: [PATCH] check --- js/Item.js | 18 +++++++++--------- js/Player.js | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/js/Item.js b/js/Item.js index 8fb4f38..6b32dd7 100644 --- a/js/Item.js +++ b/js/Item.js @@ -459,15 +459,15 @@ export class Item { if (this.loadState !== 'loaded') return; - if (this.hoverIndicator) { - this.pulseTime += delta * 5; // Adjust the multiplier to change pulse speed - const minOpacity = 0.1; - const maxOpacity = 0.8; - // Create a sine wave that oscillates between 0 and 1 - const oscillation = (Math.sin(this.pulseTime) + 1) / 4; - // Apply the oscillation to the desired opacity range - this.hoverIndicator.material.opacity = minOpacity + oscillation * (maxOpacity - minOpacity); - } + // if (this.hoverIndicator) { + // this.pulseTime += delta * 5; // Adjust the multiplier to change pulse speed + // const minOpacity = 0.1; + // const maxOpacity = 0.8; + // // Create a sine wave that oscillates between 0 and 1 + // const oscillation = (Math.sin(this.pulseTime) + 1) / 4; + // // Apply the oscillation to the desired opacity range + // this.hoverIndicator.material.opacity = minOpacity + oscillation * (maxOpacity - minOpacity); + // } this.lastPosition = this.object.position.clone(); diff --git a/js/Player.js b/js/Player.js index 338fa50..f4cf20f 100644 --- a/js/Player.js +++ b/js/Player.js @@ -873,10 +873,10 @@ export class Player { // If the hovered item has changed, update outlines if (previouslyHoveredItem !== this.currentIntItem) { if (previouslyHoveredItem) { - //previouslyHoveredItem.hideOutline(); + previouslyHoveredItem.hideOutline(); } if (this.currentIntItem) { - //this.currentIntItem.showOutline(); + this.currentIntItem.showOutline(); } } }