|
@@ -73,6 +73,7 @@ public class TutorialManager : Regist
|
|
|
public static int MinFlowerForFindSoloGame = 2;
|
|
|
public static int MinFlowerForFindMissingGame = 3;
|
|
|
public static int FindMissingMinigameTutorialLevel = 31;
|
|
|
+ public static int FashionShowTutorialLevel = 21;
|
|
|
|
|
|
public static bool NewplayerTutorial;
|
|
|
public static int NewplayerTutorialIndex;
|
|
@@ -101,6 +102,11 @@ public class TutorialManager : Regist
|
|
|
public static bool plazaRoomTutorial;
|
|
|
public static int PlazaRoomTutorialIndex;
|
|
|
|
|
|
+
|
|
|
+ public static bool FashionShowTutorial;
|
|
|
+ public static bool fashionShowTutorial;
|
|
|
+ public static int FashionShowTutorialIndex;
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
public override void InstantiatePrefabs()
|
|
@@ -1373,4 +1379,254 @@ public class TutorialManager : Regist
|
|
|
}
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public static void EndClickFashionShowBtn()
|
|
|
+ {
|
|
|
+ StaticsManager.GetInstance().TutoComplete("EndClickFashionShowBtn");
|
|
|
+
|
|
|
+ Tutorial.HightDisable();
|
|
|
+ ResourceManager.SetActive(CanvasLabel.N_Tutorial, false);
|
|
|
+
|
|
|
+ ShowHomePageDesc();
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void EndHomePageDesc()
|
|
|
+ {
|
|
|
+ StaticsManager.GetInstance().TutoComplete("EndHomePageDesc");
|
|
|
+ ResourceManager.SetActive(CanvasLabel.Pi_Tutorial, false);
|
|
|
+ ResourceManager.SetActive(CanvasLabel.Pi_HomePageTipBK, false);
|
|
|
+
|
|
|
+ ClickMineTabButton();
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void EndClickMineTabButton()
|
|
|
+ {
|
|
|
+ StaticsManager.GetInstance().TutoComplete("EndClickMineTabButton");
|
|
|
+ Tutorial.HightDisable();
|
|
|
+ ResourceManager.SetActive(CanvasLabel.N_Tutorial, false);
|
|
|
+
|
|
|
+ DelayCall.Call(1, ShowLeaveDesc);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void EndLeaveDesc()
|
|
|
+ {
|
|
|
+ StaticsManager.GetInstance().TutoComplete("EndLeaveDesc");
|
|
|
+
|
|
|
+ Tutorial.HightDisable();
|
|
|
+ ResourceManager.SetActive(CanvasLabel.N_Tutorial, false);
|
|
|
+
|
|
|
+ ResourceManager.SetActive(CanvasLabel.Pi_Tutorial, false);
|
|
|
+ ResourceManager.SetActive(CanvasLabel.Pi_LeaveTipBK, false);
|
|
|
+
|
|
|
+ ShowCloseDesc();
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void EndCloseDesc()
|
|
|
+ {
|
|
|
+ StaticsManager.GetInstance().TutoComplete("EndCloseDesc");
|
|
|
+ ResourceManager.SetActive(CanvasLabel.P_Tutorial, false);
|
|
|
+ ResourceManager.SetActive(CanvasLabel.P_CloseTipBK, false);
|
|
|
+ ClickShareButton();
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void EndFashionShowTutorial()
|
|
|
+ {
|
|
|
+ StaticsManager.GetInstance().TutoComplete("EndFashionShowTutorial");
|
|
|
+
|
|
|
+ ResourceManager.SetActive(CanvasLabel.P_Tutorial, false);
|
|
|
+ ResourceManager.SetActive(CanvasLabel.P_CreateTipBK, false);
|
|
|
+
|
|
|
+ Tutorial.HightDisable();
|
|
|
+
|
|
|
+ FashionShowTutorial = false;
|
|
|
+ fashionShowTutorial = false;
|
|
|
+
|
|
|
+ ResourceManager.SetActive(CanvasLabel.N_Tutorial, false);
|
|
|
+
|
|
|
+ PayExemptAmt = 0;
|
|
|
+ ConnectExemptAmt = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void BeginFashionShowTutorial()
|
|
|
+ {
|
|
|
+ FashionShowTutorial = true;
|
|
|
+
|
|
|
+ ResourceManager.SetText(CanvasLabel.Pi_HomePageTip, Language.GetStr(LanguageLabel.Tutorial__ShowButtonDesc));
|
|
|
+ ResourceManager.SetText(CanvasLabel.Pi_LeaveTip, Language.GetStr(LanguageLabel.Tutorial__ShareButtonDesc));
|
|
|
+ ResourceManager.SetText(CanvasLabel.P_CloseTip, Language.GetStr(LanguageLabel.Tutorial__CloseDesc));
|
|
|
+ ResourceManager.SetText(CanvasLabel.P_CreateTip, Language.GetStr(LanguageLabel.Tutorial__CreateButtonDesc));
|
|
|
+
|
|
|
+ UIManager.BlockOfflinePanel();
|
|
|
+
|
|
|
+ TweenRoot tweenRoot = ResourceManager.Get(CanvasLabel.F_Manage0).GetTweenVec();
|
|
|
+
|
|
|
+ if (tweenRoot.InDestination)
|
|
|
+ {
|
|
|
+ TweenRoot tween = ResourceManager.Get(CanvasLabel.Fe_Info).TweenBacCG();
|
|
|
+
|
|
|
+ tween.AddEventOnetime
|
|
|
+ (
|
|
|
+ EventType.BackwardFinish,
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ ResourceManager.Get(CanvasLabel.F_Manage).TweenBacGra();
|
|
|
+
|
|
|
+ tween = ResourceManager.Get(CanvasLabel.F_Manage0).GetTweenVec();
|
|
|
+
|
|
|
+ tween.AddEventOnetime
|
|
|
+ (
|
|
|
+ EventType.BackwardFinish,
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ ClickFashionShowBtn();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ClickFashionShowBtn();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void ClickFashionShowBtn()
|
|
|
+ {
|
|
|
+ ResourceManager.Get(CanvasLabel.C_Main).TweenReForCG();
|
|
|
+ ResourceManager.Get(CanvasLabel.C_Group).TweenReForCG();
|
|
|
+ ResourceManager.Get(CanvasLabel.C_Group0).TweenReForCG();
|
|
|
+
|
|
|
+ TweenRoot tween = ResourceManager.Get(CanvasLabel.C_Group).GetTweenCG();
|
|
|
+
|
|
|
+ tween.AddEventOnetime
|
|
|
+ (
|
|
|
+ EventType.ForwardFinish,
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ ResourceManager.SetActive(CanvasLabel.N_Tutorial, true);
|
|
|
+
|
|
|
+ tween = ResourceManager.Get(CanvasLabel.N_Mask).TweenForGra();
|
|
|
+
|
|
|
+ tween.AddEventOnetime
|
|
|
+ (
|
|
|
+ EventType.ForwardFinish,
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ ResourceManager.SetActive(CanvasLabel.C_FashionShowButton, true);
|
|
|
+ ResourceManager.Get<HorizontalLayoutGroup>(CanvasLabel.C_Group4).CalculateLayoutInputHorizontal();
|
|
|
+ ResourceManager.Get<HorizontalLayoutGroup>(CanvasLabel.C_Group4).SetLayoutHorizontal();
|
|
|
+ Tutorial.HightScreen(ResourceManager.Get(CanvasLabel.C_FashionShowArrow), ResourceManager.Get(CanvasLabel.C_FashionShowButton));
|
|
|
+
|
|
|
+ ResourceManager.AddButtonEventOnetime
|
|
|
+ (
|
|
|
+ CanvasLabel.C_FashionShowButton,
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ EndClickFashionShowBtn();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void ShowHomePageDesc()
|
|
|
+ {
|
|
|
+ ResourceManager.SetActive(CanvasLabel.Pi_Tutorial, true);
|
|
|
+ ResourceManager.SetActive(CanvasLabel.Pi_HomePageTipBK, true);
|
|
|
+ LayoutRebuilder.ForceRebuildLayoutImmediate(ResourceManager.Get<RectTransform>(CanvasLabel.Pi_HomePageTipBK));
|
|
|
+
|
|
|
+ TweenRoot tween = ResourceManager.Get(CanvasLabel.Pi_FashionShowHomePanel).GetTweenVec();
|
|
|
+ tween.AddEventOnetime
|
|
|
+ (EventType.ForwardFinish, () =>
|
|
|
+ {
|
|
|
+ ResourceManager.SetActive(CanvasLabel.N_Tutorial, true);
|
|
|
+ Tutorial.HightScreen(ResourceManager.Get(CanvasLabel.Pi_HomePageArrow1),
|
|
|
+ ResourceManager.Get(CanvasLabel.Pi_HomePageArrow0), ResourceManager.Get(CanvasLabel.Pi_ShareBg));
|
|
|
+ ResourceManager.Get(CanvasLabel.N_Mask).GetTweenGra().Pause();
|
|
|
+ ResourceManager.Get(CanvasLabel.N_Mask).GetTweenGra().InOrigin = true;
|
|
|
+
|
|
|
+ ResourceManager.AddButtonEventOnetime(CanvasLabel.Pi_TutorialBg, EndHomePageDesc);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void ClickMineTabButton()
|
|
|
+ {
|
|
|
+ ResourceManager.SetActive(CanvasLabel.N_Tutorial, true);
|
|
|
+
|
|
|
+ ResourceManager.Get(CanvasLabel.N_Mask).GetTweenGra().InDestination = true;
|
|
|
+
|
|
|
+ Tutorial.HightScreen(ResourceManager.Get(CanvasLabel.Pi_MineTabButtonArrow), ResourceManager.Get(CanvasLabel.Pi_MineTabButton));
|
|
|
+
|
|
|
+ ResourceManager.PushButtonEventOnetime
|
|
|
+ (
|
|
|
+ CanvasLabel.Pi_MineTabButton,
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ EndClickMineTabButton();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void ShowLeaveDesc()
|
|
|
+ {
|
|
|
+ ResourceManager.SetActive(CanvasLabel.Pi_Tutorial, true);
|
|
|
+ ResourceManager.SetActive(CanvasLabel.Pi_LeaveTipBK, true);
|
|
|
+ LayoutRebuilder.ForceRebuildLayoutImmediate(ResourceManager.Get<RectTransform>(CanvasLabel.Pi_LeaveTipBK));
|
|
|
+ //Tutorial.HightScreen(ResourceManager.Get(CanvasLabel.P_Close), ResourceManager.Get(CanvasLabel.Pi_ShareBg));
|
|
|
+
|
|
|
+ ResourceManager.SetActive(CanvasLabel.N_Tutorial, true);
|
|
|
+ Tutorial.HightScreen(ResourceManager.Get(CanvasLabel.Pi_ShareArrow), ResourceManager.Get(CanvasLabel.Pi_ShareBg));
|
|
|
+ ResourceManager.Get(CanvasLabel.N_Mask).GetTweenGra().Pause();
|
|
|
+ ResourceManager.Get(CanvasLabel.N_Mask).GetTweenGra().InOrigin = true;
|
|
|
+
|
|
|
+ ResourceManager.AddButtonEventOnetime(CanvasLabel.Pi_Share, EndLeaveDesc);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void ShowCloseDesc()
|
|
|
+ {
|
|
|
+ ResourceManager.SetActive(CanvasLabel.P_Tutorial, true);
|
|
|
+ ResourceManager.SetActive(CanvasLabel.P_CloseTipBK, true);
|
|
|
+
|
|
|
+ DelayCall.Call
|
|
|
+ (
|
|
|
+ 0.5f,
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ LayoutRebuilder.ForceRebuildLayoutImmediate(ResourceManager.Get<RectTransform>(CanvasLabel.P_CloseTipBK));
|
|
|
+
|
|
|
+ ResourceManager.SetActive(CanvasLabel.N_Tutorial, true);
|
|
|
+ Tutorial.HightScreen(ResourceManager.Get(CanvasLabel.P_CloseArrow0), ResourceManager.Get(CanvasLabel.P_CloseArrow1), ResourceManager.Get(CanvasLabel.Pi_ShareBg));
|
|
|
+ ResourceManager.Get(CanvasLabel.N_Mask).GetTweenGra().Pause();
|
|
|
+ ResourceManager.Get(CanvasLabel.N_Mask).GetTweenGra().InOrigin = true;
|
|
|
+ }
|
|
|
+ );
|
|
|
+
|
|
|
+ ResourceManager.AddButtonEventOnetime(CanvasLabel.P_TutorialBg, EndCloseDesc);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static void ClickShareButton()
|
|
|
+ {
|
|
|
+ ResourceManager.SetActive(CanvasLabel.P_Tutorial, true);
|
|
|
+ ResourceManager.SetActive(CanvasLabel.P_CreateTipBK, true);
|
|
|
+ DelayCall.Call(0.5f, () => LayoutRebuilder.ForceRebuildLayoutImmediate(ResourceManager.Get<RectTransform>(CanvasLabel.P_CreateTipBK)));
|
|
|
+
|
|
|
+ ResourceManager.SetActive(CanvasLabel.N_Tutorial, true);
|
|
|
+
|
|
|
+ Tutorial.HightScreen(ResourceManager.Get(CanvasLabel.Pi_LeaveTipBK), ResourceManager.Get(CanvasLabel.P_FashionShowButton));
|
|
|
+
|
|
|
+ ResourceManager.Get(CanvasLabel.N_Mask).GetTweenGra().Pause();
|
|
|
+ ResourceManager.Get(CanvasLabel.N_Mask).GetTweenGra().InOrigin = true;
|
|
|
+
|
|
|
+ ResourceManager.AddButtonEventOnetime
|
|
|
+ (
|
|
|
+ CanvasLabel.P_FashionShowButton,
|
|
|
+ () =>
|
|
|
+ {
|
|
|
+ EndFashionShowTutorial();
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|