|
@@ -2,15 +2,18 @@ using FairyGUI;
|
|
|
using UI.DressUp;
|
|
|
using UI.Main;
|
|
|
using System.Collections.Generic;
|
|
|
+using UnityEngine;
|
|
|
+using UI.ClothingSynthetic;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
|
public class GuideController
|
|
|
{
|
|
|
|
|
|
+ /*******************************************************单人战斗引导***********************************************/
|
|
|
public static void TryGuideChapterViewLevelItem(GObject target, string guideStr = null)
|
|
|
{
|
|
|
- if (GuideDataManager.GetGuideCount(ConstGuideId.CHAPTER_VIEW_BTN_HOME) <= 0)
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SINGLE_FIGHT_GUIDE) <= 0)
|
|
|
{
|
|
|
if (guideStr == null)
|
|
|
{
|
|
@@ -22,7 +25,7 @@ namespace GFGGame
|
|
|
StoryLevelCfg storyLevelCfg = StoryLevelCfgArray.Instance.GetCfg(levelID);
|
|
|
if (storyLevelCfg.fightID != null && storyLevelCfg.fightID.Length > 0)
|
|
|
{
|
|
|
- guideStr = "点击关卡图标,继续挑战";
|
|
|
+ guideStr = "遇到意外事件了,暂时解释不清,先按请求换上服饰吧";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -34,13 +37,18 @@ namespace GFGGame
|
|
|
guideStr = "点击,继续";
|
|
|
}
|
|
|
}
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.SINGLE_FIGHT_GUIDE;
|
|
|
ShowGuide(target, true, guideStr);
|
|
|
}
|
|
|
+ else if (GuideDataManager.GetGuideCount(ConstGuideId.SINGLE_FIGHT_GUIDE) <= 0)
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public static void TryGuideChapterInfoViewBtnStart(GObject target, string guideStr = null)
|
|
|
{
|
|
|
- if (GuideDataManager.GetGuideCount(ConstGuideId.CHAPTER_VIEW_BTN_HOME) <= 0)
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SINGLE_FIGHT_GUIDE) <= 0)
|
|
|
{
|
|
|
if (guideStr == null)
|
|
|
{
|
|
@@ -50,7 +58,7 @@ namespace GFGGame
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static bool TryGuideDressUpFightViewMenuType1(GList list)
|
|
|
+ public static bool TryGuideDressUpFightViewMenuType0(GList list)
|
|
|
{
|
|
|
if (StoryDataManager.currentChapter == 1 && StoryDataManager.currentLevel <= 2
|
|
|
&& !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
@@ -65,7 +73,7 @@ namespace GFGGame
|
|
|
DressUpMenuItemCfg1 dressUpMenuItemCfg1 = DressUpMenuItemCfg1Array.Instance.GetCfg(menuID);
|
|
|
if (dressUpMenuItemCfg1.type == ConstDressUpItemType.LIAN_YI_QUN)
|
|
|
{
|
|
|
- ShowGuide(item.target, true, "点击分类图标,可查看对应类型的服装");
|
|
|
+ ShowGuide(item.target, true, "点击相应的分类,可以快速找到服饰");
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
@@ -73,41 +81,212 @@ namespace GFGGame
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
- public static void TryGuideDressUpFightViewMenuPart(GList list)
|
|
|
+ public static void TryGuideDressUpFightViewMenuPart0(GList list, string guideStr)
|
|
|
{
|
|
|
- if (list.numChildren > 0)
|
|
|
+ if (StoryDataManager.currentChapter == 1 && StoryDataManager.currentLevel <= 2
|
|
|
+ && !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
|
{
|
|
|
- UI_PartsListItem listItem = UI_PartsListItem.Proxy(list.GetChildAt(0));
|
|
|
- if (listItem != null)
|
|
|
+ if (list.numChildren > 0)
|
|
|
{
|
|
|
- ShowGuide(listItem.target, true, "点击图标,换上新衣服吧");
|
|
|
- return;
|
|
|
+ UI_PartsListItem listItem = UI_PartsListItem.Proxy(list.GetChildAt(0));
|
|
|
+ if (listItem != null)
|
|
|
+ {
|
|
|
+ ShowGuide(listItem.target, true, guideStr);
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ public static void TryGuideDressUpFightViewBtnNext0(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SINGLE_FIGHT_GUIDE) <= 0)
|
|
|
+ {
|
|
|
+ ShowGuide(target, false, "接下来验证一下,换上的服饰是否符合需求");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- public static void TryGuideDressUpFightViewBtnRecommend(GObject target)
|
|
|
+ public static void TryGuideSingleScoreViewComClickCircle(GObject target)
|
|
|
{
|
|
|
- if (GuideDataManager.GetGuideCount(ConstGuideId.CHAPTER_VIEW_BTN_HOME) <= 0
|
|
|
+
|
|
|
+ ShowGuide(target, false, "服饰比较繁琐,适当的整理会更加分,点击为各部位修整吧");
|
|
|
+ }
|
|
|
+
|
|
|
+ /*******************************************************引导购买必需品***********************************************/
|
|
|
+
|
|
|
+ public static void TryGuideDressUpFightViewBtnRecommend(GObject target, GList list)
|
|
|
+ {
|
|
|
+ _list = list;
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY) <= 0
|
|
|
+ && StoryDataManager.currentLevel == 4
|
|
|
&& !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel)
|
|
|
&& DressUpMenuItemDataManager.GetRecommendCount() >= 2)
|
|
|
{
|
|
|
- ShowGuide(target, false, "点击推荐搭配, 可快速换上目标属性最高的服装");
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY;
|
|
|
+ ShowGuide(target, false, "当提示有“必需品”时,需要穿上对应物品才能通关");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- public static void TryGuideDressUpFightViewBtnNext(GObject target)
|
|
|
+ public static void TryGuideApproachOfItemViewList(GList list)
|
|
|
{
|
|
|
- if (GuideDataManager.GetGuideCount(ConstGuideId.CHAPTER_VIEW_BTN_HOME) <= 0
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY) <= 0
|
|
|
+ && StoryDataManager.currentLevel == 4
|
|
|
&& !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel)
|
|
|
- && EquipDataCache.cacher.CheckCurrentScoreEnough()
|
|
|
- && EquipDataCache.cacher.CheckEquipedFightNeeded())
|
|
|
+ && DressUpMenuItemDataManager.GetRecommendCount() >= 2)
|
|
|
+ {
|
|
|
+ UI.CommonGame.UI_ApproachOfItemUI listItem = UI.CommonGame.UI_ApproachOfItemUI.Proxy(list.GetChildAt(0));
|
|
|
+ if (listItem != null)
|
|
|
+ {
|
|
|
+ ShowGuide(listItem.target, false, "该物品可以在服装店购买,点开服装店看看");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideClothingShopViewBtnBug(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY) <= 0
|
|
|
+ && StoryDataManager.currentLevel == 4
|
|
|
+ && !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel)
|
|
|
+ && DressUpMenuItemDataManager.GetRecommendCount() >= 2)
|
|
|
+ {
|
|
|
+ ShowGuide(target, false, "找到需要的物品了,点击购买吧");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideBuyCountViewBtnSure(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY) <= 0
|
|
|
+ && StoryDataManager.currentLevel == 4
|
|
|
+ && !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
|
+ {
|
|
|
+ ShowGuide(target, false, "点击购买");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void TryGuideClothingShopViewBtnBack(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY) <= 0
|
|
|
+ && StoryDataManager.currentLevel == 4
|
|
|
+ && !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
|
+ {
|
|
|
+ ShowGuide(target, false, "点击返回,回到换装");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ private static GList _list;
|
|
|
+ public static bool TryGuideDressUpFightViewMenuType1()
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY) <= 0
|
|
|
+ && StoryDataManager.currentLevel == 4
|
|
|
+ && !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
|
+ {
|
|
|
+ int len = _list.numChildren;
|
|
|
+ for (int i = 0; i < len; i++)
|
|
|
+ {
|
|
|
+ UI_comListType item = UI_comListType.Proxy(_list.GetChildAt(i));
|
|
|
+ if (item != null)
|
|
|
+ {
|
|
|
+ int menuID = (int)item.target.data;
|
|
|
+ DressUpMenuItemCfg1 dressUpMenuItemCfg1 = DressUpMenuItemCfg1Array.Instance.GetCfg(menuID);
|
|
|
+ if (dressUpMenuItemCfg1.type == ConstDressUpItemType.LIAN_YI_QUN)
|
|
|
+ {
|
|
|
+ ShowGuide(item.target, true, "在相应分类里就可以找到必需品啦");
|
|
|
+ _list = null;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ public static void TryGuideDressUpFightViewMenuPart1(GList list, string guideStr)
|
|
|
+ {
|
|
|
+ if (StoryDataManager.currentChapter == 1 && StoryDataManager.currentLevel == 4
|
|
|
+ && !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
|
+ {
|
|
|
+ if (list.numChildren > 0)
|
|
|
+ {
|
|
|
+ UI_PartsList listItem = UI_PartsList.Proxy(list.GetChildAt(0));
|
|
|
+ if (listItem != null)
|
|
|
+ {
|
|
|
+ ShowGuide(listItem.target, true, guideStr);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /***************************************************点击查看关卡提示***************************************************/
|
|
|
+ public static void TryGuideDressUpFightViewBtnHint(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SEE_DRESS_TIPS) <= 0
|
|
|
+ && StoryDataManager.currentLevel == 6
|
|
|
+ && !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.SEE_DRESS_TIPS;
|
|
|
+ ShowGuide(target, false, "这次换装需要获得别人的认可呢");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /******************************************************双人对战评分************************************************/
|
|
|
+
|
|
|
+ public static void TryGuideStoryFightTargetScoreComCircle(GObject target, float devWidth, float devHeight)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.TARGET_FIGHT_GUIDE) <= 0
|
|
|
+ && StoryDataManager.currentLevel == 6
|
|
|
+ && !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.TARGET_FIGHT_GUIDE;
|
|
|
+ ShowGuide(target, false, "这里可以观察双方的分数计算", 0, true, devWidth, devHeight);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideStoryFightTargetScorebtnSkill0(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.TARGET_FIGHT_GUIDE) <= 0
|
|
|
+ && StoryDataManager.currentLevel == 6
|
|
|
+ && !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
|
{
|
|
|
- ShowGuide(target, false, "服装搭配好后,点击下一步,看看战果如何");
|
|
|
+ ShowGuide(target, false, "使用技能,可以增加胜出的几率哦,点击看看");
|
|
|
}
|
|
|
}
|
|
|
+ /*******************************************************引导抽奖***********************************************/
|
|
|
+ public static bool TryGuideGoBackStoryChapter(GObject target)
|
|
|
+ {
|
|
|
+ Debug.Log(StoryDataManager.CheckLevelPass(1, 10));
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.MAIN_UI_BTN_ZHAI_XING) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(1, 10)
|
|
|
+ && !StoryDataManager.CheckLevelPass(1, 11))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.MAIN_UI_BTN_ZHAI_XING;
|
|
|
+ ShowGuide(target, true, "点击返回主界面", 0);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ public static bool TryGuideLuckyBox(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.MAIN_UI_BTN_ZHAI_XING) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(1, 10)
|
|
|
+ && !StoryDataManager.CheckLevelPass(1, 11))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.MAIN_UI_BTN_ZHAI_XING;
|
|
|
+ ShowGuide(target, false, "“摘星”里可以通过星辰的力量获得服饰");
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ public static bool TryGuideLuckyBoxStar()
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.MAIN_UI_BTN_ZHAI_XING) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(1, 10)
|
|
|
+ && !StoryDataManager.CheckLevelPass(1, 11))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.MAIN_UI_BTN_ZHAI_XING;
|
|
|
+ ShowGuide(null, false, "点击将星星链接在一起", 1400);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ /*****************************************************引导自由换装保存套装*************************************************/
|
|
|
|
|
|
public static bool TryGuideDressUpViewMenuType1(GList list)
|
|
|
{
|
|
@@ -117,14 +296,14 @@ namespace GFGGame
|
|
|
list.ScrollToView(len - 1);
|
|
|
for (int i = 0; i < len; i++)
|
|
|
{
|
|
|
- UI_TypeItem item = UI_TypeItem.Proxy(list.GetChildAt(i));
|
|
|
+ UI_comListType item = UI_comListType.Proxy(list.GetChildAt(i));
|
|
|
if (item != null)
|
|
|
{
|
|
|
int menuID = (int)item.target.data;
|
|
|
DressUpMenuItemCfg1 dressUpMenuItemCfg1 = DressUpMenuItemCfg1Array.Instance.GetCfg(menuID);
|
|
|
if (dressUpMenuItemCfg1.type == ConstDressUpItemType.TAO_ZHUANG)
|
|
|
{
|
|
|
- ShowGuide(item.target, true, "点击套装分类,可查看收集的套装");
|
|
|
+ ShowGuide(item.target, true, "套装分类里,可以查看集齐成套的服饰");
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
@@ -139,17 +318,373 @@ namespace GFGGame
|
|
|
{
|
|
|
if (list.numChildren > 0)
|
|
|
{
|
|
|
- UI_PartsListItem listItem = UI_PartsListItem.Proxy(list.GetChildAt(0));
|
|
|
+ UI_PartsList listItem = UI_PartsList.Proxy(list.GetChildAt(0));
|
|
|
+ if (listItem != null)
|
|
|
+ {
|
|
|
+ ShowGuide(listItem.target, true, "点击一键换上");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /************************************************************引导合成套装*******************************************************/
|
|
|
+
|
|
|
+ public static void TryGuideStoryChapterView(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2)
|
|
|
+ && StoryDataManager.currentChapter == 2 && StoryDataManager.currentLevel <= 2)
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.SUIT_SYNTHETIC_GUIDE;
|
|
|
+ ShowGuide(target, false, "点击进行下一关");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideStoryLevelInfoViewTxtNeed(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2)
|
|
|
+ && StoryDataManager.currentChapter == 2 && StoryDataManager.currentLevel <= 2)
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.SUIT_SYNTHETIC_GUIDE;
|
|
|
+ ShowGuide(target, false, "这次必需品,要通过合成获得", 0, true);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideStoryLevelInfoView(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2)
|
|
|
+ && GuideDataManager.currentGuideId == ConstGuideId.SUIT_SYNTHETIC_GUIDE)
|
|
|
+ {
|
|
|
+ ShowGuide(target, false, "点击空白处关闭", 1400);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideStoryChapterViewBtnHome(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
+ {
|
|
|
+ ShowGuide(target, false, "先回到主界面", 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static bool TryGuideMainUIViewBtnXiuFang(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2)
|
|
|
+ // && GuideDataManager.currentGuideId == ConstGuideId.SUIT_SYNTHETIC_GUIDE
|
|
|
+ )
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.SUIT_SYNTHETIC_GUIDE;
|
|
|
+ ShowGuide(target, false, "绣坊里增添了新功能", 0);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+
|
|
|
+ }
|
|
|
+ public static void TryGuideSuitSyntheticView(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
+ {
|
|
|
+ ShowGuide(target, false, "这里可以查看已获得的服饰图谱", 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideSuitSyntheticViewList(GList list)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
+ {
|
|
|
+ if (list.numChildren > 0)
|
|
|
+ {
|
|
|
+ UI_SuitListItem listItem = UI_SuitListItem.Proxy(list.GetChildAt(0));
|
|
|
+ if (listItem != null)
|
|
|
+ {
|
|
|
+ ShowGuide(listItem.target, true, "查看已解锁的图谱");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideClothingSyntheticViewSuitList(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, "找到需要合成的物品", 0, false);
|
|
|
+ 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, "这里可以查看合成需要的材料,和材料的获取途径", 0, false);
|
|
|
+ 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 void TryGuideClothingSyntheticViewBtnHome(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SUIT_SYNTHETIC_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 1)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 2))
|
|
|
+ {
|
|
|
+ ShowGuide(target, true, "获得必需品啦,继续通关主线剧情吧");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /************************************************************引导使用卡牌战斗*******************************************************/
|
|
|
+ public static void TryGuideStoryCardChoose(GList list)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.USE_CARD_FIGHT) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 5)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 6)
|
|
|
+ && StoryDataManager.currentChapter == 2 && StoryDataManager.currentLevel == 6)
|
|
|
+ {
|
|
|
+ if (list.numChildren > 0)
|
|
|
+ {
|
|
|
+ UI_ListCardItem listItem = UI_ListCardItem.Proxy(list.GetChildAt(0));
|
|
|
+ if (listItem != null)
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.USE_CARD_FIGHT;
|
|
|
+ ShowGuide(listItem.target, true, "选择一张合适的词牌,增加过关战斗力");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static void TryGuideStoryCardChooseBtnConfirm(GObject target)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.USE_CARD_FIGHT) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 5)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 6))
|
|
|
+ {
|
|
|
+
|
|
|
+ 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;
|
|
|
+ ShowGuide(target, true, "点击词牌", 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ 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)
|
|
|
{
|
|
|
- ShowGuide(listItem.target, true, "点击图标,可换上整套衣服");
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.CARD_UP_STAR;
|
|
|
+ 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, "升满5星后,可解锁词牌的隐藏卡面哦", 0);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /***********************************************************引导拍照********************************************************/
|
|
|
+ // PHOTOGRAPH_GUIDE
|
|
|
+ public static bool TryGuideGoBackStoryChapter1(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.PHOTOGRAPH_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 4)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 5))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.PHOTOGRAPH_GUIDE;
|
|
|
+ ShowGuide(target, false, "拍照功能开启了,点击返回主界面", 0);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ public static bool TryGuideOpenDressUpView(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.PHOTOGRAPH_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 4)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 5))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.PHOTOGRAPH_GUIDE;
|
|
|
+ ShowGuide(target, false, "点击进入自由换装", 0);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ public static bool TryGuideDressUpViewMenuType2(GList list)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.currentGuideId == ConstGuideId.PHOTOGRAPH_GUIDE)
|
|
|
+ {
|
|
|
+ int len = list.numChildren;
|
|
|
+ list.ScrollToView(len - 1);
|
|
|
+ for (int i = 0; i < len; i++)
|
|
|
+ {
|
|
|
+ UI_comListType item = UI_comListType.Proxy(list.GetChildAt(i));
|
|
|
+ if (item != null)
|
|
|
+ {
|
|
|
+ int menuID = (int)item.target.data;
|
|
|
+ DressUpMenuItemCfg1 dressUpMenuItemCfg1 = DressUpMenuItemCfg1Array.Instance.GetCfg(menuID);
|
|
|
+ if (dressUpMenuItemCfg1.type == ConstDressUpItemType.TAO_ZHUANG)
|
|
|
+ {
|
|
|
+ ShowGuide(item.target, true, "点击套装");
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
+ return false;
|
|
|
}
|
|
|
+ public static void TryGuideDressUpViewMenuPart1(GList list)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.currentGuideId == ConstGuideId.PHOTOGRAPH_GUIDE)
|
|
|
+ {
|
|
|
+ if (list.numChildren > 0)
|
|
|
+ {
|
|
|
+ UI_PartsList listItem = UI_PartsList.Proxy(list.GetChildAt(0));
|
|
|
+ if (listItem != null)
|
|
|
+ {
|
|
|
+ ShowGuide(listItem.target, true, "选择一套衣服换上");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ public static bool TryGuideOpenPhotographView(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.PHOTOGRAPH_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 4)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 5))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.PHOTOGRAPH_GUIDE;
|
|
|
+ ShowGuide(target, false, "换好衣服去试着拍张照片吧", 0);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ public static bool TryGuideBtnPhotograph(GObject target)
|
|
|
+ {
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.PHOTOGRAPH_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 4)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 5))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.PHOTOGRAPH_GUIDE;
|
|
|
+ ShowGuide(target, false, "摆好姿势可以拍照了", 0);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ public static bool TryGuideBtnSave(GObject target)
|
|
|
+ {
|
|
|
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.PHOTOGRAPH_GUIDE) <= 0
|
|
|
+ && StoryDataManager.CheckLevelPass(2, 4)
|
|
|
+ && !StoryDataManager.CheckLevelPass(2, 5))
|
|
|
+ {
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.PHOTOGRAPH_GUIDE;
|
|
|
+ ShowGuide(target, false, "拍照的照片记得保存到手机相册哦", 0);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ /*******************************************************************************************************************/
|
|
|
public static bool TryGuideByGuideId(GObject target, int guideId, int maxCount = 1, bool needUpdate = false, string guideStr = null, int yTxt = 0, int preGuideIdAtThisLogin = 0)
|
|
|
{
|
|
|
if (preGuideIdAtThisLogin > 0 && !GuideDataManager.CheckGuideIsCompletedAtThisLogin(preGuideIdAtThisLogin))
|
|
@@ -180,14 +715,15 @@ namespace GFGGame
|
|
|
ViewManager.Hide(ViewName.GUIDE_VIEW);
|
|
|
}
|
|
|
|
|
|
- private static void ShowGuide(GObject target, bool needUpdate = false, string guideStr = null, int yTxt = 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 });
|
|
|
+ ViewManager.Show(ViewName.GUIDE_VIEW, new List<object> { target, needUpdate, guideStr, yTxt, isOptionalGuide, devWidth, devHeight
|
|
|
+});
|
|
|
}
|
|
|
}
|
|
|
}
|