少年修仙传客户端代码仓库
QD_LCJ
2018-08-09 fdd07aa1409e76b78a3585fcd36a318fa98499e7
2030 【前端】境界功能界面修改
2个文件已修改
25 ■■■■ 已修改文件
System/Realm/RealmProgressBehaviour.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmStageBehaviour.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmProgressBehaviour.cs
@@ -47,7 +47,7 @@
            {
                m_RealmStages[index].transform.localPosition = GetStagePosition(true, leftIndex);
                m_RealmStages[index].gameObject.SetActive(true);
                m_RealmStages[index].Display(i, false);
                m_RealmStages[index].Display(i, false, true, leftIndex);
                leftRatio = m_StageLeftRatio[leftIndex];
                leftIndex++;
                index++;
@@ -57,7 +57,7 @@
            {
                m_RealmStages[index].transform.localPosition = GetStagePosition(false, rightIndex);
                m_RealmStages[index].gameObject.SetActive(true);
                m_RealmStages[index].Display(i, i == end);
                m_RealmStages[index].Display(i, i == end, false, rightIndex);
                DisplayRemind(i);
                rightRatio = m_StageRightRatio[rightIndex];
                rightIndex++;
@@ -117,6 +117,19 @@
            Vector3 localpos = Vector3.zero.SetX(m_ContainerPoint.rect.width * ratio);
            return localpos;
        }
#if UNITY_EDITOR
        private void LateUpdate()
        {
            for (int i = 0; i < m_RealmStages.Length; i++)
            {
                if (m_RealmStages[i].gameObject.activeSelf)
                {
                    m_RealmStages[i].transform.localPosition = GetStagePosition(m_RealmStages[i].left, m_RealmStages[i].index);
                }
            }
        }
#endif
    }
}
System/Realm/RealmStageBehaviour.cs
@@ -12,7 +12,10 @@
        [SerializeField] Image m_RealmCompleted;
        [SerializeField] Image m_Arrow;
        [SerializeField] Image m_Last;
        public void Display(int _realmLv, bool last)
        public bool left { get; private set; }
        public int index { get; private set; }
        public void Display(int _realmLv, bool last, bool left, int index)
        {
            var config = ConfigManager.Instance.GetTemplate<RealmConfig>(_realmLv);
            var realmLevel = PlayerDatas.Instance.baseData.realmLevel;
@@ -23,6 +26,9 @@
                m_Arrow.gameObject.SetActive(realmLevel == _realmLv);
                m_Last.gameObject.SetActive(last);
            }
            this.left = left;
            this.index = index;
        }
    }
}