Minor modification.
This commit is contained in:
parent
228841538e
commit
3bc61bcfe7
@ -157,6 +157,7 @@ OV.Website = class
|
|||||||
this.FitModelToWindow (true);
|
this.FitModelToWindow (true);
|
||||||
|
|
||||||
if (this.parameters.fileNameDiv.innerHTML === 'christmas_challenge.gltf') {
|
if (this.parameters.fileNameDiv.innerHTML === 'christmas_challenge.gltf') {
|
||||||
|
this.eventHandler.HandleEvent ('christmas_challenge', { type : 'started' });
|
||||||
this.dialog = OV.ShowMessageDialog (
|
this.dialog = OV.ShowMessageDialog (
|
||||||
'Christmas Challenge',
|
'Christmas Challenge',
|
||||||
'Click on the boxes and find the hidden surprise. 🎁',
|
'Click on the boxes and find the hidden surprise. 🎁',
|
||||||
@ -172,7 +173,7 @@ OV.Website = class
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.parameters.fileNameDiv.innerHTML === 'christmas_challenge.gltf') {
|
if (this.parameters.fileNameDiv.innerHTML === 'christmas_challenge.gltf') {
|
||||||
this.eventHandler.HandleEvent ('christmas_challenge', { type : 'loaded' });
|
this.eventHandler.HandleEvent ('christmas_challenge', { type : 'clicked' });
|
||||||
let meshUserData = this.viewer.GetMeshUserDataUnderMouse (mouseCoordinates);
|
let meshUserData = this.viewer.GetMeshUserDataUnderMouse (mouseCoordinates);
|
||||||
if (meshUserData !== null && meshUserData.originalMeshId.meshIndex === 0) {
|
if (meshUserData !== null && meshUserData.originalMeshId.meshIndex === 0) {
|
||||||
this.navigator.ToggleMeshVisibility (meshUserData.originalMeshId);
|
this.navigator.ToggleMeshVisibility (meshUserData.originalMeshId);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user