少年修仙传客户端代码仓库
client_wuxijin
2018-08-10 0fbb20607c1582d4bb95ca642eed242b0f3e349f
2283 【前端】BOSS血条头像显示境界
2个文件已修改
13 ■■■■■ 已修改文件
Core/GameEngine/Model/ConfigManager.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI/Common/BossLifeBar.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/Model/ConfigManager.cs
@@ -13,7 +13,7 @@
    public static string CustomIV = "4vHKRj3yfzU=";
    public static string CustomKey = "xhVs6DRXLfUGxw+AhtfQdpQGoa+8SA9d";
    protected string[] lineStep = new string[] { "\r\n" }; //行间隔体
    protected string[] lineStep = new string[] { "\r\n","\n" }; //行间隔体
    protected string[] rowStep = new string[] { "\t" }; //段间隔体
    bool isPlaying = true;
UI/Common/BossLifeBar.cs
@@ -24,6 +24,7 @@
        [SerializeField] Slider m_SliderForeground;
        [SerializeField] Text m_Surplus;
        [SerializeField] Image m_Realm;
        [SerializeField] Text m_BossName;
        [SerializeField] Text m_BossLevel;
@@ -73,6 +74,16 @@
            m_BossName.text = npcConfig.charName;
            m_BossLevel.text = _level.ToString();
            m_BossIcon.SetSprite(npcConfig.HeadPortrait);
            if (npcConfig.Realm > 0)
            {
                m_Realm.gameObject.SetActive(true);
                var realmConfig = ConfigManager.Instance.GetTemplate<RealmConfig>(npcConfig.Realm);
                m_Realm.SetSprite(realmConfig.Img);
            }
            else
            {
                m_Realm.gameObject.SetActive(false);
            }
            surplusSegments = -1;
            totalSegments = npcConfig.LifeBarCount;