|
@@ -2,15 +2,17 @@ using FairyGUI;
|
|
using UI.DressUp;
|
|
using UI.DressUp;
|
|
using UI.Main;
|
|
using UI.Main;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
|
+using UnityEngine;
|
|
|
|
|
|
namespace GFGGame
|
|
namespace GFGGame
|
|
{
|
|
{
|
|
public class GuideController
|
|
public class GuideController
|
|
{
|
|
{
|
|
|
|
|
|
|
|
+ /*******************************************************单人战斗引导***********************************************/
|
|
public static void TryGuideChapterViewLevelItem(GObject target, string guideStr = null)
|
|
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)
|
|
if (guideStr == null)
|
|
{
|
|
{
|
|
@@ -34,13 +36,14 @@ namespace GFGGame
|
|
guideStr = "点击,继续";
|
|
guideStr = "点击,继续";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.SINGLE_FIGHT_GUIDE;
|
|
ShowGuide(target, true, guideStr);
|
|
ShowGuide(target, true, guideStr);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public static void TryGuideChapterInfoViewBtnStart(GObject target, string guideStr = null)
|
|
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)
|
|
if (guideStr == null)
|
|
{
|
|
{
|
|
@@ -50,7 +53,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public static bool TryGuideDressUpFightViewMenuType1(GList list)
|
|
|
|
|
|
+ public static bool TryGuideDressUpFightViewMenuType0(GList list)
|
|
{
|
|
{
|
|
if (StoryDataManager.currentChapter == 1 && StoryDataManager.currentLevel <= 2
|
|
if (StoryDataManager.currentChapter == 1 && StoryDataManager.currentLevel <= 2
|
|
&& !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
&& !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel))
|
|
@@ -73,56 +76,155 @@ namespace GFGGame
|
|
}
|
|
}
|
|
return false;
|
|
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)
|
|
public static void TryGuideDressUpFightViewBtnNext0(GObject target)
|
|
{
|
|
{
|
|
- if (GuideDataManager.GetGuideCount(ConstGuideId.CHAPTER_VIEW_BTN_HOME) <= 0)
|
|
|
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.SINGLE_FIGHT_GUIDE) <= 0)
|
|
{
|
|
{
|
|
ShowGuide(target, false, "换好衣服后,点击下一步进行战斗");
|
|
ShowGuide(target, false, "换好衣服后,点击下一步进行战斗");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
public static void TryGuideSingleScoreViewComClickCircle(GObject target)
|
|
public static void TryGuideSingleScoreViewComClickCircle(GObject target)
|
|
{
|
|
{
|
|
- // if (GuideDataManager.GetGuideCount(ConstGuideId.CHAPTER_VIEW_BTN_HOME) <= 0)
|
|
|
|
- // {
|
|
|
|
|
|
+
|
|
ShowGuide(target, false, "点击圆圈进行部件评分,精准率越高,部件额外加分越高哦");
|
|
ShowGuide(target, false, "点击圆圈进行部件评分,精准率越高,部件额外加分越高哦");
|
|
- // }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- public static void TryGuideDressUpFightViewBtnRecommend(GObject target)
|
|
|
|
|
|
+ /*******************************************************引导购买必需品***********************************************/
|
|
|
|
+
|
|
|
|
+ public static void TryGuideDressUpFightViewBtnRecommend(GObject target, GList list)
|
|
{
|
|
{
|
|
- if (GuideDataManager.GetGuideCount(ConstGuideId.CHAPTER_VIEW_BTN_HOME) <= 0
|
|
|
|
|
|
+ _list = list;
|
|
|
|
+ Debug.Log(StoryDataManager.currentLevel);
|
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY) <= 0
|
|
|
|
+ && StoryDataManager.currentLevel == 4
|
|
&& !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel)
|
|
&& !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel)
|
|
&& DressUpMenuItemDataManager.GetRecommendCount() >= 2)
|
|
&& DressUpMenuItemDataManager.GetRecommendCount() >= 2)
|
|
{
|
|
{
|
|
- ShowGuide(target, false, "点击推荐搭配, 可快速换上目标属性最高的服装");
|
|
|
|
|
|
+ GuideDataManager.currentGuideId = ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY;
|
|
|
|
+ ShowGuide(target, false, "想要通过此关要穿戴提示的必需品哦,点击必需品提示看看");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static void TryGuideApproachOfItemViewList(GList list)
|
|
|
|
+ {
|
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY) <= 0
|
|
|
|
+ && StoryDataManager.currentLevel == 4
|
|
|
|
+ && !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel)
|
|
|
|
+ && DressUpMenuItemDataManager.GetRecommendCount() >= 2)
|
|
|
|
+ {
|
|
|
|
+ UI_PartsListItem listItem = UI_PartsListItem.Proxy(list.GetChildAt(0));
|
|
|
|
+ if (listItem != null)
|
|
|
|
+ {
|
|
|
|
+ ShowGuide(listItem.target, false, "这里是物品产出的所有来源,点击服装店");
|
|
|
|
+ }
|
|
|
|
|
|
- public static void TryGuideDressUpFightViewBtnNext(GObject target)
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ 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.CHAPTER_VIEW_BTN_HOME) <= 0
|
|
|
|
|
|
+ if (GuideDataManager.GetGuideCount(ConstGuideId.CLOTHING_SHOP_VIEW_BTN_BUY) <= 0
|
|
|
|
+ && StoryDataManager.currentLevel == 4
|
|
&& !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel)
|
|
&& !StoryDataManager.CheckLevelPass(StoryDataManager.currentChapter, StoryDataManager.currentLevel)
|
|
- && EquipDataCache.cacher.CheckCurrentScoreEnough()
|
|
|
|
- && EquipDataCache.cacher.CheckEquipedFightNeeded())
|
|
|
|
|
|
+ && DressUpMenuItemDataManager.GetRecommendCount() >= 2)
|
|
{
|
|
{
|
|
- ShowGuide(target, false, "服装搭配好后,点击下一步,看看战果如何");
|
|
|
|
|
|
+ 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)
|
|
|
|
+ && DressUpMenuItemDataManager.GetRecommendCount() >= 2)
|
|
|
|
+ {
|
|
|
|
+ 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)
|
|
|
|
+ && DressUpMenuItemDataManager.GetRecommendCount() >= 2)
|
|
|
|
+ {
|
|
|
|
+ int len = _list.numChildren;
|
|
|
|
+ for (int i = 0; i < len; i++)
|
|
|
|
+ {
|
|
|
|
+ UI_TypeItem item = UI_TypeItem.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_PartsListItem listItem = UI_PartsListItem.Proxy(list.GetChildAt(0));
|
|
|
|
+ if (listItem != null)
|
|
|
|
+ {
|
|
|
|
+ ShowGuide(listItem.target, true, guideStr);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // public static void TryGuideDressUpFightViewMenuPart(GList list)
|
|
|
|
+ // {
|
|
|
|
+ // if (list.numChildren > 0)
|
|
|
|
+ // {
|
|
|
|
+ // UI_PartsListItem listItem = UI_PartsListItem.Proxy(list.GetChildAt(0));
|
|
|
|
+ // if (listItem != null)
|
|
|
|
+ // {
|
|
|
|
+ // ShowGuide(listItem.target, true, "点击");
|
|
|
|
+ // return;
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+
|
|
public static bool TryGuideDressUpViewMenuType1(GList list)
|
|
public static bool TryGuideDressUpViewMenuType1(GList list)
|
|
{
|
|
{
|
|
if (GuideDataManager.currentGuideId == ConstGuideId.MAIN_UI_BTN_HUAN_ZHUANG)
|
|
if (GuideDataManager.currentGuideId == ConstGuideId.MAIN_UI_BTN_HUAN_ZHUANG)
|