Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
    public void DoHidePanel_FadeOut(ENUM_Panel_Name ePanel, float fFadeTime = 1f)
    {
        CUIPanelData pPanel = _mapPanelData[ePanel];

        AutoFade.DoStartFade(fFadeTime, Color.black, pPanel.DoHide);
    }
Exemplo n.º 4
0
    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);
    }