少年修仙传客户端代码仓库
client_Wu Xijin
2018-11-27 41029c958adec936110d085f39c79ac3be57db5a
5038 【1.3】4G环境下,地图分包下载显示优化
3个文件已修改
16 ■■■■■ 已修改文件
System/AssetVersion/InGameDownLoad.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/AssetVersion/MapAssetDownLoadProgress.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WorldMap/WorldMapAreaBehaviour.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/AssetVersion/InGameDownLoad.cs
@@ -193,8 +193,12 @@
    Action mapAssetDownLoadOk;
    public void RegisterMapAssetDownLoadOk(int mapId, Action callBack)
    {
        this.mapId = mapId;
        mapAssetDownLoadOk = callBack;
        var progress = GetMapAssetDownLoadProgress(mapId);
        if (progress < 0.999f)
        {
            this.mapId = mapId;
            mapAssetDownLoadOk = callBack;
        }
    }
    public void UnRegisterMapAssetDownLoadOk()
System/AssetVersion/MapAssetDownLoadProgress.cs
@@ -17,7 +17,7 @@
        this.onComplete = onComplete;
    }
    private void Start()
    private void OnEnable()
    {
        var progress = InGameDownLoad.Instance.GetMapAssetDownLoadProgress(mapId);
        if (progress >= 0.9999f)
@@ -26,7 +26,7 @@
        }
        else
        {
            m_Progress.text = Language.Get("LoadMap", StringUtility.Contact(Mathf.Clamp(progress * 100, 0, 100), "%"));
            m_Progress.text = StringUtility.Contact(Language.Get("LoadMap"), Mathf.Clamp((int)(progress * 100), 0, 100), "%");
            m_SliderProgress.fillAmount = Mathf.Clamp01(progress + 0.2f);
        }
    }
@@ -45,7 +45,7 @@
        }
        else
        {
            m_Progress.text = Language.Get("LoadMap", StringUtility.Contact(Mathf.Clamp(progress * 100, 0, 100), "%"));
            m_Progress.text = StringUtility.Contact(Language.Get("LoadMap"), Mathf.Clamp((int)(progress * 100), 0, 100), "%");
            m_SliderProgress.fillAmount = Mathf.Clamp01(progress + 0.2f);
        }
    }
System/WorldMap/WorldMapAreaBehaviour.cs
@@ -104,7 +104,7 @@
                {
                    var config = Config.Instance.Get<MapConfig>(this.m_MapArea.id);
                    ConfirmCancel.ShowPopConfirm(
                        "Mail101",
                        Language.Get("Mail101"),
                        Language.Get("LoadMap1", config.Name),
                        () => { model.RequestMapTransport(this.m_MapArea.id); }
                        );