|
@@ -93,15 +93,16 @@ namespace GFGGame
|
|
|
LeagueSkillCountCfg skillCountCfg = LeagueSkillCountCfgArray.Instance.dataArray[index];
|
|
|
UI_ListSkillTypeItem item = UI_ListSkillTypeItem.Proxy(obj);
|
|
|
int maxFinishType = LeagueDataManager.Instance.MaxFinishType;
|
|
|
- // if (skillCountCfg.type <= maxFinishType + 1)
|
|
|
- // {
|
|
|
- item.m_txtTitle.text = string.Format("茶艺·{0}", skillCountCfg.name);
|
|
|
- // }
|
|
|
- // else
|
|
|
- // {
|
|
|
- // LeagueSkillCountCfg lastSkillCountCfg = LeagueSkillCountCfgArray.Instance.dataArray[index - 1];
|
|
|
- // item.m_txtTitle.text = string.Format("学习完茶艺-{0}后开启", lastSkillCountCfg.name);
|
|
|
- // }
|
|
|
+ if (skillCountCfg.type <= maxFinishType + 1)
|
|
|
+ {
|
|
|
+ item.m_txtTitle.text = string.Format("茶艺·{0}", skillCountCfg.name);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LeagueSkillCountCfg lastSkillCountCfg = LeagueSkillCountCfgArray.Instance.dataArray[index - 1];
|
|
|
+ item.m_txtTitle.text = string.Format("学习完茶艺-{0}后开启", lastSkillCountCfg.name);
|
|
|
+ }
|
|
|
+ item.m_loaBg.url = string.Format("ui://League/skill_{0}", index + 1);
|
|
|
item.m_grpLock.visible = skillCountCfg.type > maxFinishType + 1;
|
|
|
double progress = LeagueDataManager.Instance.GetSkillProgressByType(skillCountCfg.type);
|
|
|
// item.m_txtProgress.text = string.Format("进度{0}%", progress);
|