少年修仙传客户端代码仓库
client_Wu Xijin
2019-01-23 b3426026ed3203afd38ccc1d214f4d663fd0e943
5971 双进度条表现逻辑
1个文件已修改
20 ■■■■■ 已修改文件
System/Launch/LaunchWin.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Launch/LaunchWin.cs
@@ -168,8 +168,24 @@
                var progressInfo = Launch.progressInfo;
                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), "%");
                if (progressInfo.stage == Launch.LaunchStage.DownLoad)
                {
                    if (m_PartProgressSlider.gameObject.activeInHierarchy)
                    {
                        m_PartProgressSlider.gameObject.SetActive(false);
                    }
                }
                else
                {
                    if (!m_PartProgressSlider.gameObject.activeInHierarchy)
                    {
                        m_PartProgressSlider.gameObject.SetActive(true);
                    }
                    m_PartProgressSlider.value = progressInfo.partProgress;
                    m_PartProgress.text = StringUtility.Contact(Mathf.RoundToInt(progressInfo.partProgress * 100), "%");
                }
                DisplayStageDescription(progressInfo.stage);