xzw 3 vuotta sitten
vanhempi
commit
8666b2b2d1
2 muutettua tiedostoa jossa 11 lisäystä ja 5 poistoa
  1. 6 2
      public/SuperTwo/js/Hot.js
  2. 5 3
      public/SuperTwo/js/main_2020_show.js

+ 6 - 2
public/SuperTwo/js/Hot.js

@@ -176,6 +176,9 @@ window.initHot = function(model){
             hotGroup.add(this)
             this.setTitleElem()          
             this.setFromInfo(info)
+            
+            
+             
         }
         
         
@@ -1013,10 +1016,11 @@ window.initHot = function(model){
                     this.titleElem = null;
                 }
             }
+            
         } 
         
         updateTitle(){
-            if(!this.titleElem)return;
+            if(!this.titleElem )return;
             
             var unvisi = ()=>{
                 this.titleElem.css("display","none");
@@ -1030,7 +1034,7 @@ window.initHot = function(model){
                     unvisi()
                 }
             }
-            if(this.mesh.visible){
+            if(this.visible){
                 if(player.mode == 'panorama'){
                     visi()
                 }else{

+ 5 - 3
public/SuperTwo/js/main_2020_show.js

@@ -22667,9 +22667,11 @@ window.Modernizr = function(n, e, t) {
                 this.updateHotVisible()
                 Hot.updateVisibles([this.currentPano])
                 this.modeTran = "panorama-panorama"
-                
-                
-                
+                setTimeout(()=>{
+                    for(var i in this.model.hots){
+                        this.model.hots[i].updateTitle()
+                    } 
+                },1000)
                 return this.mode = u.PANORAMA,
                 e.floor.enter(this.mode),
                 this.emit(w.PanoChosen, this.currentPano, this.currentPano),