修改bug
parent
e6946944b0
commit
060cc081bb
|
@ -169,11 +169,13 @@ function this.RefreshShow(i)
|
||||||
end
|
end
|
||||||
|
|
||||||
--设置滚动条
|
--设置滚动条
|
||||||
|
local curMaxOpenId = 0
|
||||||
function this.SetScroll(i)
|
function this.SetScroll(i)
|
||||||
|
curMaxOpenId = 1
|
||||||
this.scrollView:SetData(curData,function(index,root)
|
this.scrollView:SetData(curData,function(index,root)
|
||||||
this.SetData(root,curData[index], curData[index - 1])
|
this.SetData(root,curData[index], curData[index - 1])
|
||||||
end)
|
end)
|
||||||
this.scrollView:SetIndex(1)
|
this.scrollView:SetIndex(curMaxOpenId)
|
||||||
end
|
end
|
||||||
|
|
||||||
--设置滚动条数据 root根节点 data本地表数据 ldata 上一条数据
|
--设置滚动条数据 root根节点 data本地表数据 ldata 上一条数据
|
||||||
|
@ -243,6 +245,9 @@ function this.SetData(root, data, ldata)
|
||||||
goBtnText.text=Language[10336]
|
goBtnText.text=Language[10336]
|
||||||
goBtnImage.sprite=Util.LoadSprite("s_slbz_1anniuhuise")
|
goBtnImage.sprite=Util.LoadSprite("s_slbz_1anniuhuise")
|
||||||
tip.text=Language[10337]
|
tip.text=Language[10337]
|
||||||
|
if curMaxOpenId < data.Id then
|
||||||
|
curMaxOpenId = data.Id
|
||||||
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
type=0
|
type=0
|
||||||
|
|
|
@ -163,12 +163,13 @@ function this.UpdateHeroDatas(_msgHeroData, isFindHandBook)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.SetHeroFormationList(heroDid,teamId,isAddOrDel)
|
function this.SetHeroFormationList(heroDid,teamId,isAddOrDel)
|
||||||
|
if heroDatas[heroDid] then
|
||||||
if isAddOrDel then
|
if isAddOrDel then
|
||||||
heroDatas[heroDid].formationList[teamId] = teamId
|
heroDatas[heroDid].formationList[teamId] = teamId
|
||||||
else
|
else
|
||||||
heroDatas[heroDid].formationList[teamId] = nil
|
heroDatas[heroDid].formationList[teamId] = nil
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.GetHeroEquipIdList(heroDid)
|
function this.GetHeroEquipIdList(heroDid)
|
||||||
|
|
|
@ -137,7 +137,8 @@ function this.SingleHeroDataShow(go,_heroData)
|
||||||
elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ENDLESS_MAP then
|
elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ENDLESS_MAP then
|
||||||
JumpManager.GoJump(57001)
|
JumpManager.GoJump(57001)
|
||||||
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
|
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
|
||||||
JumpManager.GoJump(57001)
|
-- JumpManager.GoJump(57001)
|
||||||
|
UIManager.OpenPanel(UIName.ArenaTopMatchPanel)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -220,7 +220,8 @@ function this.SingleHeroDataShow(go,_heroData)
|
||||||
elseif heroData.isFormations[1] == FormationTypeDef.EXPEDITION then
|
elseif heroData.isFormations[1] == FormationTypeDef.EXPEDITION then
|
||||||
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION,FormationTypeDef.EXPEDITION)
|
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION,FormationTypeDef.EXPEDITION)
|
||||||
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
|
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
|
||||||
JumpManager.GoJump(57001)
|
-- JumpManager.GoJump(57001)
|
||||||
|
UIManager.OpenPanel(UIName.ArenaTopMatchPanel)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -159,7 +159,8 @@ function this.SingleHeroDataShow(go,_heroData)
|
||||||
elseif heroData.isFormations[1] == FormationTypeDef.EXPEDITION then
|
elseif heroData.isFormations[1] == FormationTypeDef.EXPEDITION then
|
||||||
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION,FormationTypeDef.EXPEDITION)
|
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION,FormationTypeDef.EXPEDITION)
|
||||||
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
|
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
|
||||||
JumpManager.GoJump(57001)
|
-- JumpManager.GoJump(57001)
|
||||||
|
UIManager.OpenPanel(UIName.ArenaTopMatchPanel)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue