public void DoChangePanel_FadeInout(ENUM_Panel_Name ePanelHide, ENUM_Panel_Name ePanelShow, float fFadeTime = 1f) { CUIPanelData pPanelHide = _mapPanelData[ePanelHide]; CUIPanelData pPanelShow = _mapPanelData[ePanelShow]; int iSortOrder = 0; if (pPanelShow.p_pPanel.p_bIsFixedSortOrder == false) { iSortOrder = CaculateSortOrder_Top(); } pPanelShow.EventSetOrder(iSortOrder); AutoFade.DoStartFade(fFadeTime, Color.black, pPanelHide.DoHide, pPanelShow.DoShow); }
public void DoShowPanel_FadeIn(ENUM_Panel_Name ePanel, float fFadeTime = 1f) { CUIPanelData pPanel = _mapPanelData[ePanel]; int iSortOrder = 0; if (pPanel.p_pPanel.p_bIsFixedSortOrder == false) { iSortOrder = CaculateSortOrder_Top(); } pPanel.EventSetOrder(iSortOrder); AutoFade.DoStartFade(fFadeTime, Color.black, pPanel.DoShow); }
public void DoHidePanel_FadeOut(ENUM_Panel_Name ePanel, float fFadeTime = 1f) { CUIPanelData pPanel = _mapPanelData[ePanel]; AutoFade.DoStartFade(fFadeTime, Color.black, pPanel.DoHide); }
public void DoHidePanel_FadeOut(ENUM_Panel_Name ePanel, System.Action OnFinishFadeOut, float fFadeTime = 1f) { CUIPanelData pPanel = _mapPanelData[ePanel]; AutoFade.DoStartFade(fFadeTime, Color.black, pPanel.DoHide_IgnoreAnimation, OnFinishFadeOut); }