|
@@ -231,7 +231,7 @@ namespace GFGGame
|
|
|
&& !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
|
{
|
|
|
GuideDataManager.currentGuideId = ConstGuideId.TARGET_FIGHT_GUIDE;
|
|
|
- ShowGuide(target, false, "双人对战部件评分会显示在这里", 0, devWidth, devHeight);
|
|
|
+ ShowGuide(target, false, "双人对战部件评分会显示在这里", 0, false, devWidth, devHeight);
|
|
|
}
|
|
|
}
|
|
|
public static void TryGuideStoryFightTargetScorebtnSkill0(GObject target)
|
|
@@ -337,7 +337,7 @@ namespace GFGGame
|
|
|
&& StoryDataManager.currentChapter == 2 && StoryDataManager.currentLevel <= 2)
|
|
|
{
|
|
|
GuideDataManager.currentGuideId = ConstGuideId.SUIT_SYNTHETIC_GUIDE;
|
|
|
- ShowGuide(target, false, "还没有通关必须穿戴的衣服,快去合成一件吧!", 0);
|
|
|
+ ShowGuide(target, false, "还没有通关必须穿戴的衣服,快去合成一件吧!", 0, true);
|
|
|
}
|
|
|
}
|
|
|
public static void TryGuideStoryLevelInfoView(GObject target)
|
|
@@ -345,7 +345,8 @@ namespace GFGGame
|
|
|
|
|
|
if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
&& StoryDataManager.CheckLevelPass(2, 1)
|
|
|
- && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2)
|
|
|
+ && GuideDataManager.currentGuideId == ConstGuideId.SUIT_SYNTHETIC_GUIDE)
|
|
|
{
|
|
|
ShowGuide(target, false, "点击空白处关闭", 1400);
|
|
|
}
|
|
@@ -360,7 +361,7 @@ namespace GFGGame
|
|
|
ShowGuide(target, false, "点击返回主界面", 0);
|
|
|
}
|
|
|
}
|
|
|
- public static void TryGuideMainUIViewBtnXiuFang(GObject target)
|
|
|
+ public static bool TryGuideMainUIViewBtnXiuFang(GObject target)
|
|
|
{
|
|
|
|
|
|
if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
@@ -371,7 +372,10 @@ namespace GFGGame
|
|
|
{
|
|
|
GuideDataManager.currentGuideId = ConstGuideId.SUIT_SYNTHETIC_GUIDE;
|
|
|
ShowGuide(target, false, "点击进入绣坊", 0);
|
|
|
+ return true;
|
|
|
}
|
|
|
+ return false;
|
|
|
+
|
|
|
}
|
|
|
public static void TryGuideSuitSyntheticView(GObject target)
|
|
|
{
|
|
@@ -413,7 +417,7 @@ namespace GFGGame
|
|
|
UI_MateriasListItem listItem = UI_MateriasListItem.Proxy(list.GetChildAt(0));
|
|
|
if (listItem != null)
|
|
|
{
|
|
|
- ShowGuide(listItem.m_loaderIcon, true, "点击查看制作材料");
|
|
|
+ ShowGuide(listItem.m_loaderIcon, true, "点击查看制作材料", 0, false);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -466,6 +470,85 @@ namespace GFGGame
|
|
|
ShowGuide(target, true, "点击确定进行战斗");
|
|
|
}
|
|
|
}
|
|
|
+ /*****************************************************************提示标签**************************************************/
|
|
|
+ public static void TryGuideStoryLevelInfoListTag(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.TIPS_TAGS_FIGHT) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 7)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 8))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.TIPS_TAGS_FIGHT;
|
|
|
+ ShowGuide(target, true, "穿戴符合提示的标签,在战斗中可以获取更多分数", 0, true);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /***********************************************************词牌升星********************************************************/
|
|
|
+ public static void TryGuideStoryLevelInfoBtnHome(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CARD_UP_STAR) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 14)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 15))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.CARD_UP_STAR;
|
|
|
+ ShowGuide(target, true, "已经攒够升星材料了,快去词牌升星看看吧", 0, true);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideMainUIViewBtnCiPai(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CARD_UP_STAR) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 14)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 15))
|
|
|
+ // && GuideDataManager.currentGuideId == ConstGuideId.CARD_UP_STAR)
|
|
|
+ {
|
|
|
+ // GuideDataManager.currentGuideId = ConstGuideId.CARD_UP_STAR;
|
|
|
+ ShowGuide(target, true, "点击词牌", 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideCardViewBtnDetail(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CARD_UP_STAR) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 14)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 15))
|
|
|
+ {
|
|
|
+
|
|
|
+ ShowGuide(target, true, "点击词牌列表", 0, false, -236, -181);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideCardDetailViewList(GList list)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CARD_UP_STAR) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 14)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 15))
|
|
|
+ {
|
|
|
+ if (list.numChildren > 0)
|
|
|
+ {
|
|
|
+ UI.Card.UI_ListCardItem listItem = UI.Card.UI_ListCardItem.Proxy(list.GetChildAt(0));
|
|
|
+ if (listItem != null)
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.USE_CARD_FIGHT;
|
|
|
+ ShowGuide(listItem.target, true, "选择要升星的卡牌", 0);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideCardFosterViewBtnStar(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CARD_UP_STAR) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 14)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 15))
|
|
|
+ {
|
|
|
+
|
|
|
+ ShowGuide(target, true, "点击升星", 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
/*******************************************************************************************************************/
|
|
|
public static bool TryGuideByGuideId(GObject target, int guideId, int maxCount = 1, bool needUpdate = false, string guideStr = null, int yTxt = 0, int preGuideIdAtThisLogin = 0)
|
|
|
{
|
|
@@ -497,14 +580,15 @@ namespace GFGGame
|
|
|
ViewManager.Hide(ViewName.GUIDE_VIEW);
|
|
|
}
|
|
|
|
|
|
- private static void ShowGuide(GObject target, bool needUpdate = false, string guideStr = null, int yTxt = 0, float devWidth = 0, float devHeight = 0)
|
|
|
+ private static void ShowGuide(GObject target, bool needUpdate = false, string guideStr = null, int yTxt = 0, bool isOptionalGuide = false, float devWidth = 0, float devHeight = 0)
|
|
|
{
|
|
|
HideGuide();
|
|
|
if (GameGlobal.skipGuide)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
- ViewManager.Show(ViewName.GUIDE_VIEW, new List<object> { target, needUpdate, guideStr, yTxt, devWidth, devHeight });
|
|
|
+ ViewManager.Show(ViewName.GUIDE_VIEW, new List<object> { target, needUpdate, guideStr, yTxt, isOptionalGuide, devWidth, devHeight
|
|
|
+});
|
|
|
}
|
|
|
}
|
|
|
}
|