Slides for intro
Closed this issue · 2 comments
Had to update Slides in EN and FR to #10. Cannot find where to edit counter in innfosec.js. For the moment only slides from 1 to 8 show.
cf
OnClick: function() {
if(!Data.GameLang) { return }
let test = this.ob[this.Count]
if(!test) {
if(this.Used) { return }
this.Used = true
this.cursorTeleport.teleportTo(this.Exit.object3D.position, this.Exit.object3D.quaternion);
document.querySelector("#audiobox").emit("click");
$("#PHONE_ASSET").show();
CreateNotif("Intro")
document.querySelector("#liftdoor1").emit('animclose')
document.querySelector("#liftdoor2").emit('animclose')
setTimeout(function() {
document.querySelector("#liftdoor1").emit('animopen')
document.querySelector("#liftdoor2").emit('animopen')
}, 3000);
return
}
this.clicker.setAttribute("src", ./resources/GameInfo/Slides/${Data.GameLang}/${test}.jpeg
)
this.Count += 1
I'll edit that right away
Thanks for the report
Also FYI you can edit the slides shown by using the "infoloader" componant
Example on line 251 from resources/pages/GAMETEST-LOW/low.html
<a-entity infoloader="1,2,3,4,5,6,7,8,9,10"> <!-- The argument is an array of files to show in order -->