添加资源条

dev_chengFeng
jiaoyangna 2021-11-26 13:07:45 +08:00
parent 0d18d4595e
commit 838d7108bd
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ function IncarnationPanel:InitComponent()
self.empty = Util.GetGameObject(self.gameObject,"bg/NoneImage")
self.cardList = {}
self.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform)
end
function IncarnationPanel:BindEvent()
@ -162,6 +163,7 @@ function IncarnationPanel:OnOpen()
end
function IncarnationPanel:OnShow()
self.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main })
self:RefreshUpList()
self:SetSelectBtn()
self:RefreshList(false,false)
@ -362,6 +364,7 @@ function IncarnationPanel:OnDestroy()
ClearRedPointObject(RedPointType.incarnation_buddish,tabsRedpoints[2].gameObject)
ClearRedPointObject(RedPointType.incarnation_demon,tabsRedpoints[3].gameObject)
ClearRedPointObject(RedPointType.incarnation_taoist,tabsRedpoints[4].gameObject)
SubUIManager.Close(self.UpView)
end
return IncarnationPanel