【优化】图鉴,选中阵营页签后,查看神将信息,点击返回,应该固定在之前选中的页签上

dev_chengFeng
jiaoyangna 2020-08-29 17:35:49 +08:00
parent edc0193ab6
commit 4e74194195
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,7 @@ function HandBookHeroAndEquipListPanel:OnOpen(_type)
end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function HandBookHeroAndEquipListPanel:OnShow()
proId = 0
proId = PlayerManager.headBookListTag
if OpenType == 1 then
self.heroScroll:SetActive(true)
self.heroScrollbar:SetActive(false)
@ -707,6 +707,7 @@ end
--设置选中按钮
function HandBookHeroAndEquipListPanel:SetSelectBtn()
PlayerManager.headBookListTag = proId
-- self.selectBtn:SetActive(proId ~= ProIdConst.All)
if proId ~= ProIdConst.All then
self.selectBtn.transform.localPosition = tabs[proId].transform.localPosition