少年修仙传客户端代码仓库
client_Wu Xijin
2019-01-24 a167343313406ca0d788a3250afaf6efbd40451d
System/Launch/LaunchWin.cs
@@ -166,14 +166,18 @@
            else
            {
                var progressInfo = Launch.progressInfo;
                m_TotalProgressSlider.value = progressInfo.totalProgress;
                m_TotalProgress.text = StringUtility.Contact(Mathf.RoundToInt(progressInfo.totalProgress * 100), "%");
                if (progressInfo.stage == Launch.LaunchStage.DownLoad)
                {
                    if (m_PartProgressSlider.gameObject.activeInHierarchy)
                    {
                        m_PartProgressSlider.gameObject.SetActive(false);
                    }
                    if (m_TotalProgressSlider.gameObject.activeInHierarchy)
                    {
                        m_TotalProgressSlider.gameObject.SetActive(false);
                    }
                }
                else
@@ -183,6 +187,14 @@
                        m_PartProgressSlider.gameObject.SetActive(true);
                    }
                    if (!m_TotalProgressSlider.gameObject.activeInHierarchy)
                    {
                        m_TotalProgressSlider.gameObject.SetActive(true);
                    }
                    m_TotalProgressSlider.value = progressInfo.totalProgress;
                    m_TotalProgress.text = StringUtility.Contact(Mathf.RoundToInt(progressInfo.totalProgress * 100), "%");
                    m_PartProgressSlider.value = progressInfo.partProgress;
                    m_PartProgress.text = StringUtility.Contact(Mathf.RoundToInt(progressInfo.partProgress * 100), "%");
                }