|
@@ -184,7 +184,8 @@ namespace GFGGame
|
|
if (item.chapterId == rewardID)
|
|
if (item.chapterId == rewardID)
|
|
{
|
|
{
|
|
UI_ListChapterItem listItem = UI_ListChapterItem.Proxy(_ui.m_listChapter.GetChildAt(item.id%10));
|
|
UI_ListChapterItem listItem = UI_ListChapterItem.Proxy(_ui.m_listChapter.GetChildAt(item.id%10));
|
|
- listItem.m_content.m_reward.target.visible = false;
|
|
|
|
|
|
+ listItem.m_content.m_reward.m_isGetted.visible = true;
|
|
|
|
+ listItem.m_content.m_reward.m_gettedBg.visible = true;
|
|
RedDotController.Instance.SetComRedDot(listItem.m_content.m_reward.target, false, "");
|
|
RedDotController.Instance.SetComRedDot(listItem.m_content.m_reward.target, false, "");
|
|
UI_ListChapterItem.ProxyEnd();
|
|
UI_ListChapterItem.ProxyEnd();
|
|
}
|
|
}
|
|
@@ -210,6 +211,7 @@ namespace GFGGame
|
|
listItem.m_content.m_txtChapterName2.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
listItem.m_content.m_txtChapterName2.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
listItem.m_content.m_txtChapterName3.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
listItem.m_content.m_txtChapterName3.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
listItem.m_content.m_txtChapterName4.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
listItem.m_content.m_txtChapterName4.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
|
|
+ listItem.m_content.m_txtChapterName5.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
listItem.m_content.m_txtChapter.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
listItem.m_content.m_txtChapter.strokeColor = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
//listItem.m_content.m_txtCurProgress.color = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
//listItem.m_content.m_txtCurProgress.color = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
//listItem.m_content.m_txtMaxProgress.color = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
//listItem.m_content.m_txtMaxProgress.color = new Color(0.592f, 0.773f, 0.961f, 1.000f);
|
|
@@ -224,6 +226,7 @@ namespace GFGGame
|
|
listItem.m_content.m_txtChapterName2.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
|
|
listItem.m_content.m_txtChapterName2.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
|
|
listItem.m_content.m_txtChapterName3.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
|
|
listItem.m_content.m_txtChapterName3.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
|
|
listItem.m_content.m_txtChapterName4.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
|
|
listItem.m_content.m_txtChapterName4.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
|
|
|
|
+ listItem.m_content.m_txtChapterName5.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
|
|
listItem.m_content.m_txtChapter.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
|
|
listItem.m_content.m_txtChapter.strokeColor = new Color(1.000f, 0.686f, 0.318f, 1.000f);
|
|
//listItem.m_content.m_txtCurProgress.color = new Color(0.514f, 0.345f, 0.220f, 1.000f);
|
|
//listItem.m_content.m_txtCurProgress.color = new Color(0.514f, 0.345f, 0.220f, 1.000f);
|
|
//listItem.m_content.m_txtMaxProgress.color = new Color(0.514f, 0.345f, 0.220f, 1.000f);
|
|
//listItem.m_content.m_txtMaxProgress.color = new Color(0.514f, 0.345f, 0.220f, 1.000f);
|
|
@@ -244,6 +247,7 @@ namespace GFGGame
|
|
listItem.m_content.m_txtChapterName2.text = chapterCfg.name.Length > 2 ? chapterCfg.name[2].ToString() : "";
|
|
listItem.m_content.m_txtChapterName2.text = chapterCfg.name.Length > 2 ? chapterCfg.name[2].ToString() : "";
|
|
listItem.m_content.m_txtChapterName3.text = chapterCfg.name.Length > 3 ? chapterCfg.name[3].ToString() : "";
|
|
listItem.m_content.m_txtChapterName3.text = chapterCfg.name.Length > 3 ? chapterCfg.name[3].ToString() : "";
|
|
listItem.m_content.m_txtChapterName4.text = chapterCfg.name.Length > 4 ? chapterCfg.name[4].ToString() : "";
|
|
listItem.m_content.m_txtChapterName4.text = chapterCfg.name.Length > 4 ? chapterCfg.name[4].ToString() : "";
|
|
|
|
+ listItem.m_content.m_txtChapterName5.text = chapterCfg.name.Length > 5 ? chapterCfg.name[5].ToString() : "";
|
|
int order = StoryUtil.GetChapterOrder(chapterCfg.id);
|
|
int order = StoryUtil.GetChapterOrder(chapterCfg.id);
|
|
listItem.m_content.m_txtChapter.text = order < 10 ? "0" + order : order.ToString();
|
|
listItem.m_content.m_txtChapter.text = order < 10 ? "0" + order : order.ToString();
|
|
|
|
|
|
@@ -315,25 +319,25 @@ namespace GFGGame
|
|
listItem.m_content.m_txtLockDesc.visible = false;
|
|
listItem.m_content.m_txtLockDesc.visible = false;
|
|
currentChapterIndex = i;
|
|
currentChapterIndex = i;
|
|
List<StoryLevelCfg> storylevelList = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(chapterCfg.type,chapterCfg.subType,chapterCfg.id);
|
|
List<StoryLevelCfg> storylevelList = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(chapterCfg.type,chapterCfg.subType,chapterCfg.id);
|
|
-
|
|
|
|
- if(InstanceZonesDataManager.CheckLevelPass(storylevelList[storylevelList.Count - 1].id))
|
|
|
|
|
|
+ ChapterRewardCfg chapterReward = ChapterRewardCfgArray.Instance.GetCfgBychapterId(chapterID);
|
|
|
|
+ listItem.m_content.m_reward.m_rewardIcon.url = ResPathUtil.GetIconPath(ItemCfgArray.Instance.GetCfg(chapterReward.bonusOnceArr[0][0]).res, "png");
|
|
|
|
+ listItem.m_content.m_reward.m_rewardNum.text = string.Format("x{0}", chapterReward.bonusOnceArr[0][1].ToString());
|
|
|
|
+
|
|
|
|
+ if (InstanceZonesDataManager.CheckLevelPass(storylevelList[storylevelList.Count - 1].id))
|
|
{
|
|
{
|
|
listItem.m_content.m_reward.target.visible = true;
|
|
listItem.m_content.m_reward.target.visible = true;
|
|
|
|
+ listItem.m_content.m_reward.m_isGetted.visible = false;
|
|
|
|
+ listItem.m_content.m_reward.m_gettedBg.visible = false;
|
|
RedDotController.Instance.SetComRedDot(listItem.m_content.m_reward.target, false, "");
|
|
RedDotController.Instance.SetComRedDot(listItem.m_content.m_reward.target, false, "");
|
|
int status;
|
|
int status;
|
|
- if (MainStoryDataManager.ChapterRewardStatusDic.TryGetValue(chapterID, out status))
|
|
|
|
- {
|
|
|
|
- ChapterRewardCfg chapterReward = ChapterRewardCfgArray.Instance.GetCfgBychapterId(chapterID);
|
|
|
|
- listItem.m_content.m_reward.m_rewardIcon.url = ResPathUtil.GetIconPath(ItemCfgArray.Instance.GetCfg(chapterReward.bonusOnceArr[0][0]).res, "png");
|
|
|
|
- listItem.m_content.m_reward.m_rewardNum.text = string.Format("x{0}", chapterReward.bonusOnceArr[0][1].ToString());
|
|
|
|
- }
|
|
|
|
if (MainStoryDataManager.ChapterRewardStatusDic.TryGetValue(chapterID, out status) && status == 1)
|
|
if (MainStoryDataManager.ChapterRewardStatusDic.TryGetValue(chapterID, out status) && status == 1)
|
|
{
|
|
{
|
|
RedDotController.Instance.SetComRedDot(listItem.m_content.m_reward.target, true, "",-50,20);
|
|
RedDotController.Instance.SetComRedDot(listItem.m_content.m_reward.target, true, "",-50,20);
|
|
}
|
|
}
|
|
else if (MainStoryDataManager.ChapterRewardStatusDic.TryGetValue(chapterID, out status) && status == 2)
|
|
else if (MainStoryDataManager.ChapterRewardStatusDic.TryGetValue(chapterID, out status) && status == 2)
|
|
{
|
|
{
|
|
- listItem.m_content.m_reward.target.visible = false;
|
|
|
|
|
|
+ listItem.m_content.m_reward.m_isGetted.visible = true;
|
|
|
|
+ listItem.m_content.m_reward.m_gettedBg.visible = true;
|
|
}
|
|
}
|
|
|
|
|
|
if (listItem.m_content.m_reward.target.data == null)
|
|
if (listItem.m_content.m_reward.target.data == null)
|
|
@@ -342,10 +346,6 @@ namespace GFGGame
|
|
}
|
|
}
|
|
listItem.m_content.m_reward.target.data = chapterID;
|
|
listItem.m_content.m_reward.target.data = chapterID;
|
|
}
|
|
}
|
|
- else
|
|
|
|
- {
|
|
|
|
- listItem.m_content.m_reward.target.visible = false;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|