少年修仙传客户端代码仓库
client_Wu Xijin
2018-11-24 ac668cfbc285cabf24b445906901d8354c0bbdc5
4805 【1.3】【前端】loading图增加等级显示
3个文件已修改
2个文件已添加
77 ■■■■ 已修改文件
Core/GameEngine/Model/Config/LoadingBackGroundConfig.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/LoadingBackGroundConfig.cs.meta 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/TelPartialConfig/ParticalLoadingBackGroundConfig.cs 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/TelPartialConfig/ParticalLoadingBackGroundConfig.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Loading/LoadingWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/Config/LoadingBackGroundConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:            第二世界
//    [  Date ]:           Thursday, November 15, 2018
//    [  Date ]:           Saturday, November 24, 2018
//--------------------------------------------------------
using UnityEngine;
@@ -12,6 +12,7 @@
    public partial class LoadingBackGroundConfig : ConfigBase {
        public int id { get ; private set ; }
        public int lineId { get ; private set ; }
        public string[] icons;
        public string levelLimit { get ; private set; } 
        public string name { get ; private set; } 
@@ -27,13 +28,15 @@
            {
                id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; 
            
                icons = rawContents[1].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
                lineId=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
            
                levelLimit = rawContents[2].Trim();
                icons = rawContents[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
            
                name = rawContents[3].Trim();
                levelLimit = rawContents[3].Trim();
            
                description = rawContents[4].Trim();
                name = rawContents[4].Trim();
                description = rawContents[5].Trim();
            }
            catch (Exception ex)
            {
Core/GameEngine/Model/Config/LoadingBackGroundConfig.cs.meta
@@ -1,6 +1,6 @@
fileFormatVersion: 2
guid: 791645468791ce74c84280782740fa99
timeCreated: 1542267123
timeCreated: 1543051187
licenseType: Pro
MonoImporter:
  serializedVersion: 2
Core/GameEngine/Model/TelPartialConfig/ParticalLoadingBackGroundConfig.cs
New file
@@ -0,0 +1,46 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TableConfig
{
    public partial class LoadingBackGroundConfig : ConfigBase, IConfigPostProcess
    {
        static Dictionary<int, Dictionary<int, LoadingBackGroundConfig>> configs = new Dictionary<int, Dictionary<int, LoadingBackGroundConfig>>();
        public void OnConfigParseCompleted()
        {
            if (!configs.ContainsKey(this.id))
            {
                configs[this.id] = new Dictionary<int, LoadingBackGroundConfig>();
            }
            configs[this.id][this.lineId] = this;
        }
        public static LoadingBackGroundConfig Get(int dataId, int lineId)
        {
            if (!configs.ContainsKey(dataId))
            {
                return null;
            }
            var lineConfigs = configs[dataId];
            if (lineConfigs.ContainsKey(lineId))
            {
                return lineConfigs[lineId];
            }
            if (lineConfigs.ContainsKey(0))
            {
                return lineConfigs[0];
            }
            return null;
        }
    }
}
Core/GameEngine/Model/TelPartialConfig/ParticalLoadingBackGroundConfig.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 52a6ecf096739d445abdfd4997b4cfda
timeCreated: 1543051260
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
System/Loading/LoadingWin.cs
@@ -68,7 +68,7 @@
                var mapResConfig = Config.Instance.Get<MapResourcesConfig>(targetMapResId);
                if (mapResConfig != null)
                {
                    var loadingBackGroudConfig = Config.Instance.Get<LoadingBackGroundConfig>(mapResConfig.DataID);
                    var loadingBackGroudConfig = LoadingBackGroundConfig.Get(mapResConfig.DataID, mapResConfig.LineID);
                    if (loadingBackGroudConfig != null && loadingBackGroudConfig.icons.Length > 0)
                    {
                        var icons = new List<string>();
@@ -141,7 +141,7 @@
                        {
                            m_ContainerMapDescription.gameObject.SetActive(false);
                        }
                    }
                }
            }