|
@@ -3,6 +3,7 @@ using UI.DressUp;
|
|
|
using UI.Main;
|
|
|
using System.Collections.Generic;
|
|
|
using UnityEngine;
|
|
|
+using UI.ClothingSynthetic;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
@@ -331,29 +332,30 @@ namespace GFGGame
|
|
|
{
|
|
|
|
|
|
if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
- && StoryDataManager.CheckLevelPass(1, 11)
|
|
|
- && !StoryDataManager.CheckLevelPass(1, 12))
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2)
|
|
|
+ && StoryDataManager.currentChapter == 2 && StoryDataManager.currentLevel <= 2)
|
|
|
{
|
|
|
GuideDataManager.currentGuideId = ConstGuideId.SUIT_SYNTHETIC_GUIDE;
|
|
|
- ShowGuide(target, false, "还没有通关必须合成的衣服,快去合成一件吧!", 0);
|
|
|
+ ShowGuide(target, false, "还没有通关必须穿戴的衣服,快去合成一件吧!", 0);
|
|
|
}
|
|
|
}
|
|
|
public static void TryGuideStoryLevelInfoView(GObject target)
|
|
|
{
|
|
|
|
|
|
if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
- && StoryDataManager.CheckLevelPass(1, 11)
|
|
|
- && !StoryDataManager.CheckLevelPass(1, 12))
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
{
|
|
|
- ShowGuide(target, false, "点击空白处关闭", 0);
|
|
|
+ ShowGuide(target, false, "点击空白处关闭", 1400);
|
|
|
}
|
|
|
}
|
|
|
public static void TryGuideStoryChapterViewBtnHome(GObject target)
|
|
|
{
|
|
|
|
|
|
if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
- && StoryDataManager.CheckLevelPass(1, 11)
|
|
|
- && !StoryDataManager.CheckLevelPass(1, 12))
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
{
|
|
|
ShowGuide(target, false, "点击返回主界面", 0);
|
|
|
}
|
|
@@ -362,8 +364,10 @@ namespace GFGGame
|
|
|
{
|
|
|
|
|
|
if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
- && StoryDataManager.CheckLevelPass(1, 11)
|
|
|
- && !StoryDataManager.CheckLevelPass(1, 12))
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2)
|
|
|
+ // && GuideDataManager.currentGuideId == ConstGuideId.SUIT_SYNTHETIC_GUIDE
|
|
|
+ )
|
|
|
{
|
|
|
GuideDataManager.currentGuideId = ConstGuideId.SUIT_SYNTHETIC_GUIDE;
|
|
|
ShowGuide(target, false, "点击进入绣坊", 0);
|
|
@@ -371,25 +375,63 @@ namespace GFGGame
|
|
|
}
|
|
|
public static void TryGuideSuitSyntheticView(GObject target)
|
|
|
{
|
|
|
-
|
|
|
if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
- && StoryDataManager.CheckLevelPass(1, 11)
|
|
|
- && !StoryDataManager.CheckLevelPass(1, 12))
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
{
|
|
|
ShowGuide(target, false, "点击进入套装合成", 0);
|
|
|
}
|
|
|
}
|
|
|
- public static void TryGuideSuitSyntheticViewList(GList target)
|
|
|
+ public static void TryGuideSuitSyntheticViewList(GList list)
|
|
|
{
|
|
|
|
|
|
if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
- && StoryDataManager.CheckLevelPass(1, 11)
|
|
|
- && !StoryDataManager.CheckLevelPass(1, 12))
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
{
|
|
|
- ShowGuide(target, false, "点击进入套装合成", 0);
|
|
|
+ if (list.numChildren > 0)
|
|
|
+ {
|
|
|
+ UI_PartsListItem listItem = UI_PartsListItem.Proxy(list.GetChildAt(0));
|
|
|
+ if (listItem != null)
|
|
|
+ {
|
|
|
+ ShowGuide(listItem.target, true, "点击套装");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideClothingSyntheticViewList(GList list)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
+ {
|
|
|
+ if (list.numChildren > 0)
|
|
|
+ {
|
|
|
+ UI_MateriasListItem listItem = UI_MateriasListItem.Proxy(list.GetChildAt(0));
|
|
|
+ if (listItem != null)
|
|
|
+ {
|
|
|
+ ShowGuide(listItem.m_loaderIcon, true, "点击查看制作材料");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ public static void TryGuideClothingSyntheticViewBtnProduction(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
+ {
|
|
|
+
|
|
|
+ ShowGuide(target, true, "点击进行制作");
|
|
|
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
/*******************************************************************************************************************/
|
|
|
public static bool TryGuideByGuideId(GObject target, int guideId, int maxCount = 1, bool needUpdate = false, string guideStr = null, int yTxt = 0, int preGuideIdAtThisLogin = 0)
|