@@ -103,7 +103,10 @@ class GameModeExplore implements IGameUI {
103103 if ( ! activatable . actionIds || ! activatable . actionIds . length ) {
104104 return ;
105105 }
106- activatable . clickArea . on ( 'pointerout' , ( ) => this . explorePointerOut ( ) ) ;
106+
107+ activatable . clickArea . on ( 'pointerout' , ( ) =>
108+ this . explorePointerOut ( activatable . interactionId )
109+ ) ;
107110 activatable . clickArea . on ( 'pointerover' , ( ) =>
108111 this . explorePointerOver ( activatable . interactionId )
109112 ) ;
@@ -138,6 +141,8 @@ class GameModeExplore implements IGameUI {
138141 */
139142 private explorePointerOver ( id : ItemId ) {
140143 const hasTriggered = GameGlobalAPI . getInstance ( ) . hasTriggeredInteraction ( id ) ;
144+ GameGlobalAPI . getInstance ( ) . objectHoverGlow ( id , true ) ;
145+
141146 if ( hasTriggered ) {
142147 GameGlobalAPI . getInstance ( ) . setDefaultCursor ( ExploreModeConstants . checked ) ;
143148 } else {
@@ -149,8 +154,9 @@ class GameModeExplore implements IGameUI {
149154 * Function to be executed when user off hover upon interactable object/bbox.
150155 * It sets the cursor back to 'Explore' mode cursor.
151156 */
152- private explorePointerOut ( ) {
157+ private explorePointerOut ( id : ItemId ) {
153158 GameGlobalAPI . getInstance ( ) . setDefaultCursor ( ExploreModeConstants . normal ) ;
159+ GameGlobalAPI . getInstance ( ) . objectHoverGlow ( id , false ) ;
154160 }
155161
156162 /**
@@ -163,6 +169,7 @@ class GameModeExplore implements IGameUI {
163169 */
164170 private explorePointerUp ( id : string ) {
165171 GameGlobalAPI . getInstance ( ) . setDefaultCursor ( Constants . defaultCursor ) ;
172+ GameGlobalAPI . getInstance ( ) . objectHoverGlow ( id , false ) ;
166173 GameGlobalAPI . getInstance ( ) . triggerInteraction ( id ) ;
167174 GameGlobalAPI . getInstance ( ) . setDefaultCursor ( ExploreModeConstants . normal ) ;
168175 }
0 commit comments