private int GetTipIDByStep(IsoUploadInfoWndCtrl.UploadState step)
    {
        switch (step)
        {
        case IsoUploadInfoWndCtrl.UploadState.UploadPreViewFile:
            return(8000963);

        case IsoUploadInfoWndCtrl.UploadState.UploadIsoFile:
            return(8000964);

        case IsoUploadInfoWndCtrl.UploadState.SharingIso:
            return(8000965);

        case IsoUploadInfoWndCtrl.UploadState.OthePlayerDownload:
            return(8000966);

        case IsoUploadInfoWndCtrl.UploadState.ExportComplated:
            return(8000967);

        case IsoUploadInfoWndCtrl.UploadState.ExportFailed:
            return(8000968);

        case IsoUploadInfoWndCtrl.UploadState.NotEnoughMaterials:
            return(821000001);

        default:
            return(-1);
        }
    }
 public void UpdateStep(IsoUploadInfoWndCtrl.UploadState step)
 {
     m_Step = step;
     UpdateProgres(m_Step);
     UpdateToolTip(m_Step);
     //UpdateDelBtnState(m_Step);
     if (step == IsoUploadInfoWndCtrl.UploadState.ExportComplated)
     {
         StartCoroutine(AutoDeleteIterator());
     }
 }
    private void UpdateToolTip(IsoUploadInfoWndCtrl.UploadState step)
    {
        int tipID = GetTipIDByStep(step);

        if (-1 != tipID)
        {
            m_ShowToolTipItem.mStrID = tipID;
            if (m_ToolTipIsHover)
            {
                UITooltip.ShowText(PELocalization.GetString(tipID));
            }
        }
    }
 private void UpdateProgres(IsoUploadInfoWndCtrl.UploadState step)
 {
     if (step == IsoUploadInfoWndCtrl.UploadState.ExportFailed || step == IsoUploadInfoWndCtrl.UploadState.NotEnoughMaterials)
     {
         m_ProgresForeSprite.color   = m_FailedCol;
         m_UploadProgres.sliderValue = 1f;
     }
     else if (step == IsoUploadInfoWndCtrl.UploadState.ExportComplated)
     {
         m_ProgresForeSprite.color   = m_ComplatedCol;
         m_UploadProgres.sliderValue = 1f;
     }
     else if (step == IsoUploadInfoWndCtrl.UploadState.None)
     {
         m_ProgresForeSprite.color   = m_NormalCol;
         m_UploadProgres.sliderValue = 0f;
     }
     else
     {
         m_ProgresForeSprite.color   = m_NormalCol;
         m_UploadProgres.sliderValue = (float)step / (float)IsoUploadInfoWndCtrl.UploadState.ExportComplated;
     }
 }
 public void UpdateInfo(int id, string isoName, IsoUploadInfoWndCtrl.UploadState step)
 {
     ID = id;
     UpdateIsoName(isoName);
     UpdateStep(step);
 }
 private void UpdateDelBtnState(IsoUploadInfoWndCtrl.UploadState step)
 {
     m_DelBtn.gameObject.SetActive(step == IsoUploadInfoWndCtrl.UploadState.ExportFailed);
 }