|
@@ -70,20 +70,15 @@ namespace GFGGame
|
|
|
base.Dispose();
|
|
|
}
|
|
|
|
|
|
- protected override void Init()
|
|
|
+ protected override void OnInit()
|
|
|
{
|
|
|
- base.Init();
|
|
|
+ base.OnInit();
|
|
|
+
|
|
|
packageName = UI_MainUI.PACKAGE_NAME;
|
|
|
_ui = UI_MainUI.Create();
|
|
|
viewCom = _ui.target;
|
|
|
isfullScreen = true;
|
|
|
isReturnView = true;
|
|
|
- }
|
|
|
-
|
|
|
- protected override void OnInit()
|
|
|
- {
|
|
|
- base.OnInit();
|
|
|
-
|
|
|
_valueBarController = new ValueBarController(_ui.m_valueBar);
|
|
|
|
|
|
_btnYouJian = _ui.m_btnYouJian;
|
|
@@ -109,12 +104,7 @@ namespace GFGGame
|
|
|
_ui.m_btnZhaiXing.target.onClick.Add(OnClickBtnZhaiXing);
|
|
|
_ui.m_btnXiuFang.target.onClick.Add(OnClickBtnXiuFang);
|
|
|
_ui.m_btnCiPai.target.onClick.Add(OnClickBtnCiPai);
|
|
|
- _ui.m_btnStudio.target.onClick.Add(OnClickBtnStudio);
|
|
|
- _ui.m_btnField.target.onClick.Add(OnClickBtnField);
|
|
|
_ui.m_headBar.target.onClick.Add(OnClickHeadBar);
|
|
|
- _ui.m_btnPoem.target.onClick.Add(OnClickBtnPoem);
|
|
|
- _ui.m_btnArena.target.onClick.Add(OnClickBtnArena);
|
|
|
- _ui.m_btnTravel.target.onClick.Add(OnClickBtnTravel);
|
|
|
_ui.m_btnDailyWelfare.target.onClick.Add(OnClickBtnDailyWelfare);
|
|
|
_ui.m_btnActivityLuckyBox.target.onClick.Add(OnClickBtnActivityLuckyBox);
|
|
|
_ui.m_btnWanShiLi.target.onClick.Add(OnClickBtnWanShiLi);
|
|
@@ -132,8 +122,7 @@ namespace GFGGame
|
|
|
_ui.m_btnGiftBag1.target.onClick.Add(OnClickBtnGiftBag2);
|
|
|
_ui.m_btnGiftBag2.target.onClick.Add(OnClickBtnGiftBag1);
|
|
|
|
|
|
- _ui.m_btnHaiZhiShi.target.onClick.Add(MoveLeft);
|
|
|
- _ui.m_loaLeft.onClick.Add(MoveRight);
|
|
|
+ _ui.m_btnHaiZhiShi.target.onClick.Add(OnClickBtnInstanceZones);
|
|
|
|
|
|
_ui.m_comListAd.m_listAd.itemRenderer = RenderListAdItem;
|
|
|
_ui.m_comListAd.m_listAd.SetVirtualAndLoop();
|
|
@@ -210,11 +199,8 @@ namespace GFGGame
|
|
|
ViewManager.Show<DailySignView>(new object[] { 1 });
|
|
|
}
|
|
|
}
|
|
|
- //long lastTime = GameGlobal.lastLoginTime; // GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
-
|
|
|
-
|
|
|
|
|
|
- SetPos();
|
|
|
+ ChangeMainBg();
|
|
|
GetAdIds();
|
|
|
_ui.m_comListAd.target.visible = _ui.m_comListAd.m_listAd.numItems > 0;
|
|
|
if (_ui.m_comListAd.target.visible)
|
|
@@ -233,7 +219,7 @@ namespace GFGGame
|
|
|
{
|
|
|
firstIn = false;
|
|
|
MainUIAnimFinished();
|
|
|
- Timers.inst.StartCoroutine(AddEffect());
|
|
|
+ AddEffect();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -255,9 +241,8 @@ namespace GFGGame
|
|
|
Timers.inst.Remove(UpdateAdListTime);
|
|
|
}
|
|
|
|
|
|
- private IEnumerator AddEffect()
|
|
|
+ private void AddEffect()
|
|
|
{
|
|
|
- yield return new WaitForSeconds(1f);
|
|
|
_effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_btnMain.m_holder, "ui_zjm", "ZJM_szl_down_3"));
|
|
|
_effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_btnMain.m_holder1, "ui_zjm", "ZJM_szl_top_1"));
|
|
|
_effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_btnHaiZhiShi.m_holder, "ui_zjm", "ZJM_hzs_down_3"));
|
|
@@ -265,102 +250,20 @@ namespace GFGGame
|
|
|
_effectUIList.Add(EffectUIPool.CreateEffectUI(_ui.m_BottomEffectHolder, "ui_zjm", "ZJM_DiBan"));
|
|
|
}
|
|
|
|
|
|
- private void SetPos()
|
|
|
+ private void ChangeMainBg()
|
|
|
{
|
|
|
GameObject Scene = _sceneObject.transform.Find("Scene").gameObject;
|
|
|
GameObject Bg = _sceneObject.transform.Find("Bg").gameObject;
|
|
|
GameObject Bg1 = _sceneObject.transform.Find("Bg1").gameObject;
|
|
|
- if (MainDataManager.Instance.ViewType == 0)
|
|
|
- {
|
|
|
- Scene.SetActive(true);
|
|
|
- Bg.SetActive(true);
|
|
|
- Bg1.SetActive(false);
|
|
|
- _ui.m_t3.Play();
|
|
|
- ;
|
|
|
- }
|
|
|
- else if (MainDataManager.Instance.ViewType == 1)
|
|
|
- {
|
|
|
- Scene.SetActive(false);
|
|
|
- Bg.SetActive(false);
|
|
|
- Bg1.SetActive(true);
|
|
|
- _ui.m_t4.Play();
|
|
|
- // _sceneObject.transform.position = new Vector2(-GRoot.inst.width / 100f, 0);
|
|
|
- }
|
|
|
+ Scene.SetActive(true);
|
|
|
+ Bg.SetActive(true);
|
|
|
+ Bg1.SetActive(false);
|
|
|
}
|
|
|
- private void OnSwipeBegin()
|
|
|
- {
|
|
|
- Vector2 pos = Input.mousePosition;
|
|
|
- pos.y = Screen.height - pos.y;
|
|
|
|
|
|
- _startPos = _ui.target.GlobalToLocal(pos);
|
|
|
- }
|
|
|
- private void OnSwipeEnd()
|
|
|
+ private void OnClickBtnInstanceZones()
|
|
|
{
|
|
|
- Vector2 pos = Input.mousePosition;
|
|
|
- pos.y = Screen.height - pos.y;
|
|
|
-
|
|
|
- _endPos = _ui.target.GlobalToLocal(pos);
|
|
|
- }
|
|
|
- private void OnSwipe(EventContext context)
|
|
|
- {
|
|
|
- if (!MainDataManager.Instance.CanSwipe) return;
|
|
|
- if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(ConstFunctionId.MAIN_SECOND_VIEW, false)) return;
|
|
|
-
|
|
|
- if (MainDataManager.Instance.ViewType == 0 && _ui.m_comListAd.m_listAd.numItems > 0//滚动广告区域不可切换页面
|
|
|
- && _startPos.x > _ui.m_comListAd.target.x && _startPos.x < (_ui.m_comListAd.target.x + _ui.m_comListAd.target.width)
|
|
|
- && _startPos.y > _ui.m_comListAd.target.y && _startPos.y < (_ui.m_comListAd.target.y + _ui.m_comListAd.target.height)) return;
|
|
|
- // || _endPos.x < (_ui.m_comListAd.target.x + _ui.m_comListAd.target.width)
|
|
|
- // && _endPos.y > _ui.m_comListAd.target.y && _endPos.y < (_ui.m_comListAd.target.y + _ui.m_comListAd.target.height))
|
|
|
-
|
|
|
- SwipeGesture swipeture = (SwipeGesture)context.sender;
|
|
|
- if (MainDataManager.Instance.ViewType == 0 && swipeture.position.x < 0 &&
|
|
|
- swipeture.position.y < -swipeture.position.x && swipeture.position.y > swipeture.position.x)
|
|
|
- {
|
|
|
- MoveLeft();
|
|
|
- }
|
|
|
- else if (MainDataManager.Instance.ViewType == 1 && swipeture.position.x > 0 &&
|
|
|
- swipeture.position.y > -swipeture.position.x && swipeture.position.y < swipeture.position.x)
|
|
|
- {
|
|
|
- MoveRight();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- private void MoveLeft()
|
|
|
- {
|
|
|
- _ui.target.touchable = false;
|
|
|
TryCompleteGuide();
|
|
|
-
|
|
|
- Timers.inst.Add(0.5f, 1, ChangeSceneBg);
|
|
|
- _ui.m_t1.Play(() =>
|
|
|
- {
|
|
|
- _ui.target.touchable = true;
|
|
|
- MainDataManager.Instance.ViewType = 1;
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- private void ChangeSceneBg(object param)
|
|
|
- {
|
|
|
- _sceneObject.transform.Find("Scene").gameObject.SetActive(false);
|
|
|
- _sceneObject.transform.Find("Bg").gameObject.SetActive(false);
|
|
|
- _sceneObject.transform.Find("Bg1").gameObject.SetActive(true);
|
|
|
- }
|
|
|
-
|
|
|
- private void MoveRight()
|
|
|
- {
|
|
|
- _ui.target.touchable = false;
|
|
|
- Timers.inst.Add(0.5f, 1, ChangeSceneBg1);
|
|
|
- _ui.m_t2.Play(() =>
|
|
|
- {
|
|
|
- _ui.target.touchable = true;
|
|
|
- MainDataManager.Instance.ViewType = 0;
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- private void ChangeSceneBg1(object param)
|
|
|
- {
|
|
|
- _sceneObject.transform.Find("Scene").gameObject.SetActive(true);
|
|
|
- _sceneObject.transform.Find("Bg").gameObject.SetActive(true);
|
|
|
- _sceneObject.transform.Find("Bg1").gameObject.SetActive(false);
|
|
|
+ ViewManager.Show<InstanceZonesUIView>();
|
|
|
}
|
|
|
|
|
|
private void OnBtnChangClick()
|
|
@@ -393,15 +296,6 @@ namespace GFGGame
|
|
|
LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.CHUN_ZHONG_LOU, 1);
|
|
|
if (isOpen) return;
|
|
|
isOpen = true;
|
|
|
- // _ui.m_btnMain.m_holder1.visible = true;
|
|
|
- // Timers.inst.Add(effectTime, 1, (param) =>
|
|
|
- // {
|
|
|
- // _ui.m_btnMain.m_holder1.visible = false;
|
|
|
- // this.Hide();
|
|
|
- //ViewManager.Show<StoryChapterListView>(null,
|
|
|
- // new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
- //isOpen = false;
|
|
|
- //;
|
|
|
List<StoryChapterCfg> _chapterCfgs = StoryChapterCfgArray.Instance.GetCfgsBysubType(0);
|
|
|
for (int i = 0; i < _chapterCfgs.Count; i++)
|
|
|
{
|
|
@@ -419,7 +313,6 @@ namespace GFGGame
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- // });
|
|
|
}
|
|
|
|
|
|
private void OnClickBtnHuanZhuang()
|
|
@@ -427,16 +320,10 @@ namespace GFGGame
|
|
|
if (isOpen) return;
|
|
|
isOpen = true;
|
|
|
_ui.m_btnHuanZhuang.m_holder1.visible = true;
|
|
|
-
|
|
|
- // Timers.inst.Add(effectTime, 1, (param) =>
|
|
|
- // {
|
|
|
_ui.m_btnHuanZhuang.m_holder1.visible = false;
|
|
|
this.Hide();
|
|
|
ViewManager.Show<DressUpView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
isOpen = false;
|
|
|
-
|
|
|
-
|
|
|
- // });
|
|
|
}
|
|
|
|
|
|
private void OnClickBtnZhaiXing()
|
|
@@ -445,16 +332,9 @@ namespace GFGGame
|
|
|
|
|
|
if (isOpen) return;
|
|
|
isOpen = true;
|
|
|
- _ui.m_btnZhaiXing.m_holder1.visible = true;
|
|
|
-
|
|
|
- // Timers.inst.Add(effectTime, 1, (param) =>
|
|
|
- // {
|
|
|
_ui.m_btnZhaiXing.m_holder1.visible = false;
|
|
|
ViewManager.Show<LuckyBoxView>(null, null, false, true);
|
|
|
isOpen = false;
|
|
|
-
|
|
|
-
|
|
|
- // });
|
|
|
}
|
|
|
|
|
|
private void OnClickBtnXiuFang()
|
|
@@ -504,51 +384,6 @@ namespace GFGGame
|
|
|
isOpen = false;
|
|
|
|
|
|
}
|
|
|
-
|
|
|
- private void OnClickBtnStudio()
|
|
|
- {
|
|
|
- ViewManager.Show<StudioView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
- }
|
|
|
-
|
|
|
- private void OnClickBtnField()
|
|
|
- {
|
|
|
- LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
|
-
|
|
|
- ViewManager.Show<FieldView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
- }
|
|
|
-
|
|
|
- private void OnClickBtnPoem()
|
|
|
- {
|
|
|
- // LogServerHelper.SendNodeLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
|
-
|
|
|
- ViewManager.Show<PoemView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
- }
|
|
|
-
|
|
|
- private void OnClickBtnArena()
|
|
|
- {
|
|
|
- // LogServerHelper.SendNodeLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
|
- if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(ArenaView).Name))
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
- if (!ArenaDataManager.Instance.IsSeasonOpen)
|
|
|
- {
|
|
|
- PromptController.Instance.ShowFloatTextPrompt("赛季未开始");
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- ViewManager.Show<ArenaView>(null, new object[] { typeof(MainUIView).FullName, this.viewData }, true);
|
|
|
- ViewManager.Show<ArenaLoadingView>();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- private void OnClickBtnTravel()
|
|
|
- {
|
|
|
- // LogServerHelper.SendNodeLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 1);
|
|
|
-
|
|
|
- ViewManager.Show<TravelView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
|
- }
|
|
|
-
|
|
|
private void OnClickBtnBag()
|
|
|
{
|
|
|
ViewManager.Show<BagView>(null, new object[] { typeof(MainUIView).FullName, this.viewData });
|
|
@@ -980,11 +815,6 @@ namespace GFGGame
|
|
|
_ui.m_btnCiPai.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
|
|
|
_ui.m_btnZhaiXing.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(LuckyBoxView).Name, false);
|
|
|
_ui.m_btnMain.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StoryChapterListView).Name, false);
|
|
|
- _ui.m_btnStudio.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioView).Name, false);
|
|
|
- _ui.m_btnField.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(FieldView).Name, false);
|
|
|
- _ui.m_btnPoem.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(PoemView).Name, false);
|
|
|
- _ui.m_btnTravel.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(TravelView).Name, false);
|
|
|
- _ui.m_btnArena.m_loaLockIcon.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(ArenaView).Name, false);
|
|
|
_ui.m_btnActivityLuckyBox.target.visible = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox) > 0;
|
|
|
List<int> actListChargeIds = ActivityGlobalDataManager.Instance.GetActivityInfoIdsByType(ConstLimitTimeActivityType.ActLimitChargeId);
|
|
|
int actLimitChargeId = actListChargeIds.Count > 0 ? actListChargeIds[0] : 0;
|
|
@@ -1018,11 +848,9 @@ namespace GFGGame
|
|
|
RedDotController.Instance.SetComRedDot(_btnTuJian, RedDotDataManager.Instance.GetFieldGuideRed() || RedDotDataManager.Instance.GetTravelGuideRed(), "", -8);
|
|
|
RedDotController.Instance.SetComRedDot(_btnHaoYou, RedDotDataManager.Instance.GetFriendRed(), "", -8);
|
|
|
RedDotController.Instance.SetComRedDot(_btnStore, RedDotDataManager.Instance.GetShopRed(), "", -8);
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnField.target, RedDotDataManager.Instance.GetFieldRed(), "", -36, 32);
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnStudio.target, RedDotDataManager.Instance.GetStudioFilingRed(), "", -36, 32);
|
|
|
+
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_headBar.m_comHead, RedDotDataManager.Instance.GetHeadRed() || RedDotDataManager.Instance.GetHeadBorderRed(), "", -26, 42);
|
|
|
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnTravel.target, RedDotDataManager.Instance.GetTravelRed(), "", -36, 32);
|
|
|
RedDotController.Instance.SetComRedDot(_btnLeague, RedDotDataManager.Instance.GetLeagueRed(), "", -8);
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnDailyWelfare.target, RedDotDataManager.Instance.GetDailyWelfareRed(), "", 9, -1);
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_btnActivityLuckyBox.target, RedDotDataManager.Instance.GetMeiRiTeHuiRed()
|
|
@@ -1087,61 +915,48 @@ namespace GFGGame
|
|
|
protected override void UpdateToCheckGuide(object param)
|
|
|
{
|
|
|
if (!ViewManager.CheckIsTopView(this.viewCom)) return;
|
|
|
- if (MainDataManager.Instance.ViewType == 0)
|
|
|
- {
|
|
|
- GuideController.TryGuide(_ui.m_btnHuanZhuang.target, ConstGuideId.FREEDOM_DRESS, 2, "在这里,自由搭配服饰和分享哦~", -1, false);
|
|
|
- GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER, 3, "海市蜃楼,镜花水月,是所有故事开始的地方。", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnHuanZhuang.target, ConstGuideId.FREEDOM_DRESS, 2, "在这里,自由搭配服饰和分享哦~", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER, 3, "海市蜃楼,镜花水月,是所有故事开始的地方。", -1, false);
|
|
|
|
|
|
- GuideController.TryGuide(_ui.m_btnXiuFang.target, ConstGuideId.CLOTHING_DECOMPOSE, 2, "绣坊里增添了新功能。", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnXiuFang.target, ConstGuideId.CLOTHING_DECOMPOSE, 2, "绣坊里增添了新功能。", -1, false);
|
|
|
|
|
|
- GuideController.TryGuide(_ui.m_btnXiuFang.target, ConstGuideId.CLOTHING_SYNTHETIC, 1, "进入绣坊界面。", -1, false);
|
|
|
- GuideController.TryCompleteGuide(ConstGuideId.CLOTHING_SYNTHETIC, 7);
|
|
|
+ GuideController.TryGuide(_ui.m_btnXiuFang.target, ConstGuideId.CLOTHING_SYNTHETIC, 1, "进入绣坊界面。", -1, false);
|
|
|
+ GuideController.TryCompleteGuide(ConstGuideId.CLOTHING_SYNTHETIC, 7);
|
|
|
|
|
|
- GuideController.TryGuide(_ui.m_btnCiPai.target, ConstGuideId.UP_CARD_LV, 2, "“词牌”可进行升级和管理。", -1, false);
|
|
|
- GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER_1, 2, "", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnCiPai.target, ConstGuideId.UP_CARD_LV, 2, "“词牌”可进行升级和管理。", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER_1, 2, "", -1, false);
|
|
|
|
|
|
- GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER_2, 2, "", -1, false);
|
|
|
- GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER_3, 1, "", -1, false);
|
|
|
- GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER_4, 2, "", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER_2, 2, "", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER_3, 1, "", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER_4, 2, "", -1, false);
|
|
|
|
|
|
- GuideController.TryGuide(_ui.m_btnCiPai.target, ConstGuideId.UP_CARD_STAR, 2, "“词牌”可进行升星。", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnCiPai.target, ConstGuideId.UP_CARD_STAR, 2, "“词牌”可进行升星。", -1, false);
|
|
|
|
|
|
- GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER_5, 2, "", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnMain.target, ConstGuideId.ENTER_CHAPTER_5, 2, "", -1, false);
|
|
|
|
|
|
- GuideController.TryGuide(_ui.m_btnXiuFang.target, ConstGuideId.SUIT_LIST_VIEW, 1,
|
|
|
- "获得“天衣”服饰后,可进行养护和焕新,到绣坊看看。", -1, false);
|
|
|
- GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.ARENA_OPEN, 2, "新玩法-飞花令开启了哦", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnXiuFang.target, ConstGuideId.SUIT_LIST_VIEW, 1,
|
|
|
+ "获得“天衣”服饰后,可进行养护和焕新,到绣坊看看。", -1, false);
|
|
|
+ GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.ARENA_OPEN, 2, "新玩法-飞花令开启了哦", -1, false);
|
|
|
|
|
|
|
|
|
- bool isStudioMetalGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.STUDIO_PORCELAIN, 2, "进入副本", -1,
|
|
|
- false, _ui.target.height - 700);
|
|
|
- bool isStudioFilingGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.STUDIO_FILING, 2, "进入副本", -1,
|
|
|
- false, _ui.target.height - 700);
|
|
|
- bool isFieldGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.FIELD, 1, "进入副本", -1, false, _ui.target.height - 700);
|
|
|
+ bool isStudioMetalGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.STUDIO_PORCELAIN, 2, "进入副本", -1,
|
|
|
+ false, _ui.target.height - 700);
|
|
|
+ bool isStudioFilingGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.STUDIO_FILING, 2, "进入副本", -1,
|
|
|
+ false, _ui.target.height - 700);
|
|
|
+ bool isFieldGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.FIELD, 1, "进入副本", -1, false, _ui.target.height - 700);
|
|
|
|
|
|
- bool isStudioPropertyGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.STUDIO_PROPERTY, 1, "进入副本", -1, false, _ui.target.height - 700);
|
|
|
+ bool isStudioPropertyGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.STUDIO_PROPERTY, 1, "进入副本", -1, false, _ui.target.height - 700);
|
|
|
|
|
|
- _ui.m_loaGuidestudio.visible = false;
|
|
|
- // if (isStudioMetalGuide || isStudioFilingGuide || isFieldGuide || isStudioPropertyGuide)
|
|
|
- // {
|
|
|
- // _ui.m_loaGuidestudio.visible = true;
|
|
|
- // MainDataManager.Instance.CanSwipe = true;
|
|
|
- // }
|
|
|
- // else
|
|
|
- // {
|
|
|
- // _ui.m_loaGuidestudio.visible = false;
|
|
|
- // }
|
|
|
- }
|
|
|
- if (MainDataManager.Instance.ViewType == 1)
|
|
|
- {
|
|
|
- _ui.m_loaGuidestudio.visible = false;
|
|
|
- GuideController.TryGuide(_ui.m_btnStudio.target, ConstGuideId.STUDIO_PORCELAIN, 3, "工作室开门啦,进去看看~");
|
|
|
- GuideController.TryGuide(_ui.m_btnStudio.target, ConstGuideId.STUDIO_FILING, 3, "工作室有新的任务啦。");
|
|
|
- GuideController.TryGuide(_ui.m_btnField.target, ConstGuideId.FIELD, 2, "外出进行历史考察,会有意想不到的收获哦。");
|
|
|
- GuideController.TryGuide(_ui.m_btnStudio.target, ConstGuideId.STUDIO_PROPERTY, 2, "");
|
|
|
- GuideController.TryGuide(_ui.m_btnArena.target, ConstGuideId.ARENA_OPEN, 3, "在这里可以与其他小伙伴比拼搭配哦~");
|
|
|
- GuideController.TryGuide(_ui.m_loaLeft, ConstGuideId.ENTER_CHAPTER_5, 1, "", -1, false);
|
|
|
- }
|
|
|
+ _ui.m_loaGuidestudio.visible = false;
|
|
|
+ // if (isStudioMetalGuide || isStudioFilingGuide || isFieldGuide || isStudioPropertyGuide)
|
|
|
+ // {
|
|
|
+ // _ui.m_loaGuidestudio.visible = true;
|
|
|
+ // MainDataManager.Instance.CanSwipe = true;
|
|
|
+ // }
|
|
|
+ // else
|
|
|
+ // {
|
|
|
+ // _ui.m_loaGuidestudio.visible = false;
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
private void MainUIAnimFinished()
|