From bfc38772a4a3c8baa6fe505bd36f99cc15381516 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 21 十二月 2021 13:17:05 +0800
Subject: [PATCH] #

---
 static/js/app.js |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/static/js/app.js b/static/js/app.js
index 04ed3c5..ff2244a 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -253,6 +253,8 @@
 			this.controls.addEventListener( 'unlock', function () {
 				console.log("涓婂笣瑙嗚");
 				object.initCamera();
+				addClass(document.getElementById("ship-info-btn"), "show");
+				document.getElementById("ship-type-ul").style.transform = 'translateY(-40px)';
 			} );
 			document.addEventListener( 'keydown', onKeyDown );
 			document.addEventListener( 'keyup', onKeyUp );
@@ -289,14 +291,6 @@
 				}
 			}
 			this.prevTime = time;
-		}
-		this.lockControl = function () {
-			this.camera.position.y = 100;
-			this.camera.lookAt(0,100,0);
-			this.controls.getObject().position.x =0;
-			this.controls.getObject().position.y =100;
-			this.controls.getObject().position.z =580;
-			this.controls.lock();
 		}
 		this.removeObject = function (nameorid) {
 			for (let i = 0; i < this.objects.length; i++) {
@@ -401,7 +395,14 @@
 			this.backgroundType = !this.backgroundType;
 			this.initBackground();
 		}
-
+		this.lockControl = function () {
+			this.camera.position.y = 100;
+			this.camera.lookAt(0,100,0);
+			this.controls.getObject().position.x =0;
+			this.controls.getObject().position.y =100;
+			this.controls.getObject().position.z =580;
+			this.controls.lock();
+		}
 	},
 
 };

--
Gitblit v1.9.1