少年修仙传客户端代码仓库
client_linchunjie
2018-08-21 a1e7374b1d3e6af8b8cf6bf6f59e3f9b101eb8be
2621【前端】法宝、法宝之魂优化(优化潜力默认选中红点)
2个文件已修改
17 ■■■■■ 已修改文件
System/Treasure/TreasurePotentialPanel.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UI/Common/FuncOpen.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Treasure/TreasurePotentialPanel.cs
@@ -141,6 +141,15 @@
                }
            }
            for (int i = 0; i < m_Treasure.potentials.Count; i++)
            {
                if (model.SatisyPotentialLevelUp(_treasure.id, m_Treasure.potentials[i].id))
                {
                    _index = i;
                    break;
                }
            }
            selectedPotential = m_Treasure.potentials[_index].id;
            for (int i = 0; i < potentialBriefInfos.Length; i++)
UI/Common/FuncOpen.cs
@@ -77,8 +77,14 @@
            for (int i = 0; i < vNetData.FuncCount; i++)
            {
                var funcState = vNetData.FuncStateList[i];
                bool opned = funcOpenState[funcState.FuncID];
                if (!funcOpenState.ContainsKey(funcState.FuncID))
                {
                    funcOpenState.Add(funcState.FuncID, funcState.State == 1);
                }
                else
                {
                funcOpenState[funcState.FuncID] = funcState.State == 1;
                }
                if (OnFuncStateChangeEvent != null)
                {
                    OnFuncStateChangeEvent(funcState.FuncID);