From d24f8c2c140b728f64785df78c9c98f3746cc8fd Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Wed, 16 Dec 2020 20:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=B7=A8=E6=9C=8D=E5=A4=A9=E6=A2=AF?= =?UTF-8?q?=E3=80=91=20=E4=BF=AE=E6=94=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JumpServerHightLadderPanel.prefab | 6 +++--- .../JumpServer/JumpServerHightLadderPanel.lua | 20 +++++++++++-------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/Assets/ManagedResources/Prefabs/UI/JumpServer/JumpServerHightLadderPanel.prefab b/Assets/ManagedResources/Prefabs/UI/JumpServer/JumpServerHightLadderPanel.prefab index c99c31a3db..dc26c5e594 100644 --- a/Assets/ManagedResources/Prefabs/UI/JumpServer/JumpServerHightLadderPanel.prefab +++ b/Assets/ManagedResources/Prefabs/UI/JumpServer/JumpServerHightLadderPanel.prefab @@ -6622,7 +6622,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -43.75, y: -26.600035} + m_AnchoredPosition: {x: -55.999977, y: -26.600035} m_SizeDelta: {x: 160, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &6535556721251534509 @@ -6702,7 +6702,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: -43.75003, y: 20.700031} + m_AnchoredPosition: {x: -56, y: 20.700031} m_SizeDelta: {x: 160, y: 30} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &6535556722100132614 @@ -7875,7 +7875,7 @@ RectTransform: m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 11, y: -70.4} - m_SizeDelta: {x: 744, y: 76} + m_SizeDelta: {x: 800, y: 76} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7197382919261123197 CanvasRenderer: diff --git a/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua b/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua index bebad55532..67c1255307 100644 --- a/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/JumpServer/JumpServerHightLadderPanel.lua @@ -277,7 +277,7 @@ function this.RemainTimeDown(_timeTextExpertgo,_timeTextExpert,timeDown,str) end this.timer = Timer.New(function() if _timeTextExpert then - LogGreen(" 跨服天梯 "..this.TimeStampToDateString(timeDown)..str) + -- LogGreen(" 跨服天梯 "..this.TimeStampToDateString(timeDown)..str) _timeTextExpert.text = this.TimeStampToDateString(timeDown - GetTimeStamp())..str end if timeDown - GetTimeStamp() < 0 then @@ -287,12 +287,14 @@ function this.RemainTimeDown(_timeTextExpertgo,_timeTextExpert,timeDown,str) this.timer:Stop() this.timer = nil if not isFirstRefresh then - LogError("跨服天梯前端刷新") - JumpServerManager.GetWorldArenaInfoRequest() - isFirstRefresh = true + Timer.New(function() + LogError("跨服天梯前端刷新") + JumpServerManager.GetWorldArenaInfoRequest() + isFirstRefresh = true + end, 2):Start() end end - timeDown = timeDown - 1 + -- timeDown = timeDown - 1 end, 1, -1, true) this.timer:Start() else @@ -300,9 +302,11 @@ function this.RemainTimeDown(_timeTextExpertgo,_timeTextExpert,timeDown,str) _timeTextExpertgo:SetActive(false) end if not isFirstRefresh then - LogError("跨服天梯前端刷新") - JumpServerManager.GetWorldArenaInfoRequest() - isFirstRefresh = true + Timer.New(function() + LogError("跨服天梯前端刷新") + JumpServerManager.GetWorldArenaInfoRequest() + isFirstRefresh = true + end, 2):Start() end end end