From c2e97f144da5b5a6a0e28467e89c7dfc3cf28641 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Fri, 23 Apr 2021 16:04:28 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=A3=AE=E7=BD=97=E6=97=A0=E5=B0=BD?= =?UTF-8?q?=E3=80=91=E5=B0=8F=E4=BA=BA=E6=B6=88=E5=A4=B1i=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Prefabs/Map/SingleFightPlayerView.prefab | 12 ++++++------ .../~Lua/Modules/Map/View/MapPlayerView.lua | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/Map/SingleFightPlayerView.prefab b/Assets/ManagedResources/Prefabs/Map/SingleFightPlayerView.prefab index 42880c62c6..ac667046ba 100644 --- a/Assets/ManagedResources/Prefabs/Map/SingleFightPlayerView.prefab +++ b/Assets/ManagedResources/Prefabs/Map/SingleFightPlayerView.prefab @@ -91241,10 +91241,10 @@ RectTransform: m_Father: {fileID: 667622548077141306} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 124, y: 0} + m_SizeDelta: {x: 248, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5198151986810192474 CanvasRenderer: @@ -129713,7 +129713,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &667622548077141306 RectTransform: m_ObjectHideFlags: 0 @@ -129732,7 +129732,7 @@ RectTransform: m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: -0.0000000018626, y: 185.3} - m_SizeDelta: {x: 0, y: 65.18} + m_SizeDelta: {x: 248, y: 65.18} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &637370238056003773 CanvasRenderer: diff --git a/Assets/ManagedResources/~Lua/Modules/Map/View/MapPlayerView.lua b/Assets/ManagedResources/~Lua/Modules/Map/View/MapPlayerView.lua index 0b516535b1..1167d7e973 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/View/MapPlayerView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/View/MapPlayerView.lua @@ -2,7 +2,7 @@ local this = {} local ctrlView = require("Modules/Map/View/MapControllView") -local mapNpcOp = "UI_effect_DiTu_huoguang" +local mapNpcOp = "SingleFightPlayerView" -- local mapNpc = "live2d_npc_map" -- local mapNpc2 = "live2d_npc_map_nv" local npc, scale @@ -142,6 +142,7 @@ function this.InitRolePre(u, v) if this.NpcGO then this.NpcGO:OnClose() end + Util.GetTransform(this.leader, "root/ui/nemeDi"):SetActive(false) this.NpcGO = PlayerLiveView:New(Util.GetTransform(this.leader, "root/ui/roleRoot"),1) this.NpcGO:OnOpen(GetPlayerRoleSingleConFig().Scale9,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT) end