@@ -103,7 +103,10 @@ class GameModeExplore implements IGameUI {
103
103
if ( ! activatable . actionIds || ! activatable . actionIds . length ) {
104
104
return ;
105
105
}
106
- activatable . clickArea . on ( 'pointerout' , ( ) => this . explorePointerOut ( ) ) ;
106
+
107
+ activatable . clickArea . on ( 'pointerout' , ( ) =>
108
+ this . explorePointerOut ( activatable . interactionId )
109
+ ) ;
107
110
activatable . clickArea . on ( 'pointerover' , ( ) =>
108
111
this . explorePointerOver ( activatable . interactionId )
109
112
) ;
@@ -138,6 +141,8 @@ class GameModeExplore implements IGameUI {
138
141
*/
139
142
private explorePointerOver ( id : ItemId ) {
140
143
const hasTriggered = GameGlobalAPI . getInstance ( ) . hasTriggeredInteraction ( id ) ;
144
+ GameGlobalAPI . getInstance ( ) . objectHoverGlow ( id , true ) ;
145
+
141
146
if ( hasTriggered ) {
142
147
GameGlobalAPI . getInstance ( ) . setDefaultCursor ( ExploreModeConstants . checked ) ;
143
148
} else {
@@ -149,8 +154,9 @@ class GameModeExplore implements IGameUI {
149
154
* Function to be executed when user off hover upon interactable object/bbox.
150
155
* It sets the cursor back to 'Explore' mode cursor.
151
156
*/
152
- private explorePointerOut ( ) {
157
+ private explorePointerOut ( id : ItemId ) {
153
158
GameGlobalAPI . getInstance ( ) . setDefaultCursor ( ExploreModeConstants . normal ) ;
159
+ GameGlobalAPI . getInstance ( ) . objectHoverGlow ( id , false ) ;
154
160
}
155
161
156
162
/**
@@ -163,6 +169,7 @@ class GameModeExplore implements IGameUI {
163
169
*/
164
170
private explorePointerUp ( id : string ) {
165
171
GameGlobalAPI . getInstance ( ) . setDefaultCursor ( Constants . defaultCursor ) ;
172
+ GameGlobalAPI . getInstance ( ) . objectHoverGlow ( id , false ) ;
166
173
GameGlobalAPI . getInstance ( ) . triggerInteraction ( id ) ;
167
174
GameGlobalAPI . getInstance ( ) . setDefaultCursor ( ExploreModeConstants . normal ) ;
168
175
}
0 commit comments