少年修仙传客户端代码仓库
client_Wu Xijin
2018-08-29 f74120517dfe19ab4f3d0f434190b749c9b00fed
3037 【开发】将loading图转移到打包资源配置中
2个文件已修改
22 ■■■■■ 已修改文件
Core/GameEngine/Login/Launch.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Launch/LaunchWin.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Login/Launch.cs
@@ -61,7 +61,7 @@
    {
        Config.Instance.PreLoadConfigs();
        ServerListCenter.Instance.RequestJumpUrl();
        WindowCenter.Instance.OpenFromLocal<LaunchBackGroundWin>();
        WindowCenter.Instance.OpenFromLocal<LaunchWin>();
        DebugUtility.Instance.CreateDebugRoot();
@@ -280,6 +280,16 @@
        UI3DModelExhibition.CreateStage();
        var launchWin = WindowCenter.Instance.Get<LaunchWin>();
        if (launchWin != null)
        {
            launchWin.FadeOut();
        }
        WindowCenter.Instance.OpenFromLocal<LaunchBackGroundWin>();
        var launchBackGroundWin = WindowCenter.Instance.Get<LaunchBackGroundWin>();
        launchBackGroundWin.transform.SetAsFirstSibling();
        progressBuf = progress;
        timer = 0f;
        duration = 1f;
System/Launch/LaunchWin.cs
@@ -14,6 +14,8 @@
    public class LaunchWin : Window
    {
        [SerializeField] UIAlphaTween m_AlphaTween;
        [SerializeField] Image m_BackGround;
        [SerializeField] SmoothSlider m_ProgressSlider;
        [SerializeField] Text m_Progress;
        [SerializeField] Text m_BuildTime;
@@ -33,6 +35,8 @@
        #region Built-in
        protected override void BindController()
        {
            var sprite = Resources.Load<Sprite>("UI/Sprites/Launch");
            m_BackGround.overrideSprite = sprite;
        }
        protected override void AddListeners()
@@ -45,6 +49,7 @@
            behaviourProgress = 0f;
            trueProgress = 0f;
            m_ProgressSlider.ResetValue(0f);
            m_AlphaTween.SetStartState();
            m_Version.text = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex);
            if (VersionConfig.Get().debugVersion)
@@ -77,6 +82,11 @@
        }
        #endregion
        public void FadeOut()
        {
            m_AlphaTween.Play();
        }
        void UpdateLoadingProgress(Launch.LaunchStage _stage, float _progress)
        {
            trueProgress = Mathf.Max(_progress, behaviourProgress);