xzw hai 10 meses
pai
achega
3364c7f0ca
Modificáronse 1 ficheiros con 14 adicións e 11 borrados
  1. 14 11
      scene/public/static/js/manage.js

+ 14 - 11
scene/public/static/js/manage.js

@@ -1812,7 +1812,7 @@ function initByTHREE(THREE){
         }
         
  
-        let arrowTex = Texture.load('images/arrow.png') 
+        let arrowTex = Texture.load('static/images/arrow.png') 
             arrowTex.anisotropy = 4
             
             
@@ -2125,19 +2125,25 @@ function initByTHREE(THREE){
                             let index = oldFloor.chunks.indexOf(chunk)
                             oldFloor.chunks.splice(index,1)
                         } 
+                        
+                        
+                        //更改一下楼层按钮的样式,不用文字,用图标
+                        $(".gui-floor-title").remove()
+                        $(".gui-floor-number").remove()
+                        player.mode == 'panorama' && $('.gui-floor').hide()
+                        $('.gui-floor [data-index=all']).text('外部') 
+                        $('.gui-floor [data-index=0']).text('内部') 
                     },10)
                     
                 } 
                 
             }
-            player.model.on("floor.changed",(currentFloor, mode, oldFloor)=>{ 
-                
+            player.model.on("floor.changed",(currentFloor, mode, oldFloor)=>{  
                 if(player.model.allFloorsVisible){
-                    $('.gui-floor .gui-floor-icon').addClass('inside')
-                }else{
                     $('.gui-floor .gui-floor-icon').removeClass('inside')
-                } 
-                
+                }else{
+                    $('.gui-floor .gui-floor-icon').addClass('inside')
+                }  
             })
             
             player.on('mode.changed',(e)=>{
@@ -2145,13 +2151,10 @@ function initByTHREE(THREE){
                     $('.gui-floor').hide()
                 }else{
                     $('.gui-floor').show()
-                }
-                
+                } 
             })
             
             
-            $(".gui-floor-title").remove()
-            
             
             
         }