|
@@ -252,7 +252,17 @@ var initOverlay = function(THREE) {
|
|
|
|
|
|
|
|
|
|
Overlay.prototype.updateVisibles = function(panos) {
|
|
Overlay.prototype.updateVisibles = function(panos) {
|
|
- this.visible = !!panos.find(pano=>this.visiblePanos.includes(pano))
|
|
|
|
|
|
+ var v = !!panos.find(pano=>this.visiblePanos.includes(pano))
|
|
|
|
+
|
|
|
|
+ if(this == window.leftBtn || this == window.rightBtn){
|
|
|
|
+ this.visible = v && this.visible_;
|
|
|
|
+ return;
|
|
|
|
+ }else{
|
|
|
|
+ this.visible = v
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
if(this.overlayType == 'video'){
|
|
if(this.overlayType == 'video'){
|
|
this.visible ? this.videoControl("play") : this.videoControl('stop')
|
|
this.visible ? this.videoControl("play") : this.videoControl('stop')
|
|
@@ -265,7 +275,13 @@ var initOverlay = function(THREE) {
|
|
|
|
|
|
Overlay.updateVisibles = function(panos) {
|
|
Overlay.updateVisibles = function(panos) {
|
|
if (panos === true) {
|
|
if (panos === true) {
|
|
- player.overlayGroup.children.forEach(e=>e.visible = true)
|
|
|
|
|
|
+ player.overlayGroup.children.forEach(e=>{
|
|
|
|
+ if(e == window.leftBtn || e == window.rightBtn){
|
|
|
|
+ e.visible = e.visible_;
|
|
|
|
+ }else{
|
|
|
|
+ e.visible = true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
player.overlayGroup.children.forEach(e=>e.updateVisibles(panos))
|
|
player.overlayGroup.children.forEach(e=>e.updateVisibles(panos))
|
|
}
|
|
}
|
|
@@ -281,6 +297,9 @@ var initOverlay = function(THREE) {
|
|
//console.log("pause")
|
|
//console.log("pause")
|
|
}else if(state){
|
|
}else if(state){
|
|
this.plane.material.map.image.paused && this.plane.material.map.image.play()
|
|
this.plane.material.map.image.paused && this.plane.material.map.image.play()
|
|
|
|
+ if(this.hasSound){
|
|
|
|
+ manage.switchBgmState(false)
|
|
|
|
+ }
|
|
//console.log("play")
|
|
//console.log("play")
|
|
}
|
|
}
|
|
}
|
|
}
|