parent
eac03c7d20
commit
04721fe715
|
|
@ -29,6 +29,7 @@ end
|
|||
function this.GetOpenMapData(func)
|
||||
NetManager.JourneyGetInfoResponse(function (msg)
|
||||
local _data={}
|
||||
LogGreen("#msg.infos:"..#msg.infos)
|
||||
for i = 1, #msg.infos do
|
||||
_data[msg.infos[i].mapId]={}
|
||||
_data[msg.infos[i].mapId].process=msg.infos[i].process
|
||||
|
|
|
|||
|
|
@ -130,7 +130,13 @@ function this.ScrollToBottom()
|
|||
local dheight = cheight - vheight
|
||||
-- 判断滚动到最下面的条件
|
||||
local pos = this.content.transform.anchoredPosition3D
|
||||
this.content.transform.anchoredPosition3D = Vector3(pos.x, dheight, 0)
|
||||
LogGreen("#data:"..LengthOfTable(XiaoYaoManager.allMapData))
|
||||
if LengthOfTable(XiaoYaoManager.allMapData) >= 7 then
|
||||
this.content.transform.anchoredPosition3D = Vector3(pos.x, 0, 0)
|
||||
else
|
||||
this.content.transform.anchoredPosition3D = Vector3(pos.x, dheight, 0)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
--刷新每一条的显示数据
|
||||
|
|
|
|||
Loading…
Reference in New Issue