|
@@ -230,7 +230,9 @@ namespace GFGGame
|
|
item.m_loaIcon.url = string.Format("ui://League/tb_jn_{0}", _type);
|
|
item.m_loaIcon.url = string.Format("ui://League/tb_jn_{0}", _type);
|
|
bool isLock = !SkillDataManager.Instance.LeagueSkillDatas.ContainsKey(_type) ||
|
|
bool isLock = !SkillDataManager.Instance.LeagueSkillDatas.ContainsKey(_type) ||
|
|
SkillDataManager.Instance.LeagueSkillDatas[_type].IndexOf(skillCfgs[index].id) < 0;
|
|
SkillDataManager.Instance.LeagueSkillDatas[_type].IndexOf(skillCfgs[index].id) < 0;
|
|
|
|
+
|
|
item.m_imgLock.visible = isLock;
|
|
item.m_imgLock.visible = isLock;
|
|
|
|
+
|
|
bool canActive = true;
|
|
bool canActive = true;
|
|
List<LeagueSkillCfg> lastSkillCfgs =
|
|
List<LeagueSkillCfg> lastSkillCfgs =
|
|
LeagueSkillCfgArray.Instance.GetCfgsBytypeAndlayer(_type, skillCfgs[index].layer - 1);
|
|
LeagueSkillCfgArray.Instance.GetCfgsBytypeAndlayer(_type, skillCfgs[index].layer - 1);
|
|
@@ -244,7 +246,10 @@ namespace GFGGame
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- item.m_imgSuo.visible = !canActive;
|
|
|
|
|
|
+ if (!canActive)
|
|
|
|
+ item.m_c1.selectedIndex = 0;
|
|
|
|
+ else
|
|
|
|
+ item.m_c1.selectedIndex = 1;
|
|
|
|
|
|
if (isLock && canActive && _effectUIs.Count <= index)
|
|
if (isLock && canActive && _effectUIs.Count <= index)
|
|
{
|
|
{
|