diff --git a/Assets/ManagedResources/~Lua/Modules/Incarnation/IncarnationPanel.lua b/Assets/ManagedResources/~Lua/Modules/Incarnation/IncarnationPanel.lua index 72ef5d1972..485452d647 100644 --- a/Assets/ManagedResources/~Lua/Modules/Incarnation/IncarnationPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Incarnation/IncarnationPanel.lua @@ -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 \ No newline at end of file