From c2dc2b036657b6883ed6e78c53bd963f58428a25 Mon Sep 17 00:00:00 2001 From: gaozl Date: Mon, 27 Mar 2023 15:28:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BC=96=E8=BE=91=E5=99=A8=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=9C=B0=E5=9B=BE=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/qm/MainMap_QM.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/public/static/qm/MainMap_QM.js b/public/static/qm/MainMap_QM.js index ac7b7ea..be10083 100644 --- a/public/static/qm/MainMap_QM.js +++ b/public/static/qm/MainMap_QM.js @@ -1403,6 +1403,20 @@ MainMap_QM.prototype = { this.util.lightOptions.s_col = this.util.allMap[this.util.selectBuild].s_col || 0xfffff0; this.util.lightOptions.g_col = this.util.allMap[this.util.selectBuild].g_col || 0xffffff; this.util.lightOptions.a_int = this.util.allMap[this.util.selectBuild].a_int || 0.6; + + if(this.util.allMap[this.util.selectBuild].c_site && this.util.allMap[this.util.selectBuild].c_site.split(",")){ + this.util.guiOptions.cameraX = this.util.allMap[this.util.selectBuild].c_site.split(",")[0] || 0; + this.util.guiOptions.cameraY = this.util.allMap[this.util.selectBuild].c_site.split(",")[1] ?? 220; + this.util.guiOptions.cameraZ = this.util.allMap[this.util.selectBuild].c_site.split(",")[2] ?? 220; + } + if(this.util.allMap[this.util.selectBuild].m_site && this.util.allMap[this.util.selectBuild].m_site.split(",")){ + this.util.guiOptions.targatX = this.util.allMap[this.util.selectBuild].m_site.split(",")[0] || 0; + this.util.guiOptions.targatY = this.util.allMap[this.util.selectBuild].m_site.split(",")[1] || 0; + this.util.guiOptions.targatZ = this.util.allMap[this.util.selectBuild].m_site.split(",")[2] || 0; + } + if(this.util.allMap[this.util.selectBuild].m_zoom){ + this.util.sceneGap.scale = this.util.allMap[this.util.selectBuild].m_zoom; + } } let { playSpeed = 6, collision = true, showStyle = false, modelIcon = true, shopStyle = "shopName", shadow = true, otherPath = [], navColor = 0xEE6A50, iconUrl = [], overlap = false, iconName = false, camZoom = 3, inArea = false, pathColor = 0xb47834, pathStyle = "3D" } = options; this.util.options.playSpeed = playSpeed != 6 ? playSpeed : this.util.options.playSpeed;