|
@@ -161,18 +161,18 @@ namespace GFGGame
|
|
_ui.m_btnGiftBag2.target.onClick.Add(OnClickBtnGiftBag1);
|
|
_ui.m_btnGiftBag2.target.onClick.Add(OnClickBtnGiftBag1);
|
|
|
|
|
|
_ui.m_loaRight.target.onClick.Add(MoveLeft);
|
|
_ui.m_loaRight.target.onClick.Add(MoveLeft);
|
|
- _ui.m_loaLeft.target.onClick.Add(MoveRight);
|
|
|
|
|
|
+ _ui.m_loaLeft.onClick.Add(MoveRight);
|
|
|
|
|
|
_ui.m_comListAd.m_listAd.itemRenderer = RenderListAdItem;
|
|
_ui.m_comListAd.m_listAd.itemRenderer = RenderListAdItem;
|
|
_ui.m_comListAd.m_listAd.SetVirtualAndLoop();
|
|
_ui.m_comListAd.m_listAd.SetVirtualAndLoop();
|
|
_ui.m_comListAd.m_listAd.scrollPane.onScrollEnd.Add(OnListAdScrollEnd);
|
|
_ui.m_comListAd.m_listAd.scrollPane.onScrollEnd.Add(OnListAdScrollEnd);
|
|
_ui.m_comListAd.m_listAd.scrollPane.decelerationRate = 0.8f;
|
|
_ui.m_comListAd.m_listAd.scrollPane.decelerationRate = 0.8f;
|
|
|
|
|
|
- swipeGesture = new SwipeGesture(_ui.target);
|
|
|
|
- swipeGesture.onAction.Add(OnSwipe);
|
|
|
|
- swipeGesture.onBegin.Add(OnSwipeBegin);
|
|
|
|
- swipeGesture.onEnd.Add(OnSwipeEnd);
|
|
|
|
- swipeGesture.actionDistance = swipeDistance;
|
|
|
|
|
|
+ // swipeGesture = new SwipeGesture(_ui.target);
|
|
|
|
+ // swipeGesture.onAction.Add(OnSwipe);
|
|
|
|
+ // swipeGesture.onBegin.Add(OnSwipeBegin);
|
|
|
|
+ // swipeGesture.onEnd.Add(OnSwipeEnd);
|
|
|
|
+ // swipeGesture.actionDistance = swipeDistance;
|
|
_ui.m_list.ResizeToFit();
|
|
_ui.m_list.ResizeToFit();
|
|
_ui.m_btnChange.target.onClick.Add(OnBtnChangClick);
|
|
_ui.m_btnChange.target.onClick.Add(OnBtnChangClick);
|
|
_ui.m_btnChange.m_c1.selectedIndex = 1;
|
|
_ui.m_btnChange.m_c1.selectedIndex = 1;
|
|
@@ -281,16 +281,12 @@ namespace GFGGame
|
|
|
|
|
|
string resPath1 = ResPathUtil.GetViewEffectPath("ui_zjm", "ui_zjm_zzl_d");
|
|
string resPath1 = ResPathUtil.GetViewEffectPath("ui_zjm", "ui_zjm_zzl_d");
|
|
string resPath3 = ResPathUtil.GetViewEffectPath("ui_zjm", "ui_zjm_zzl");
|
|
string resPath3 = ResPathUtil.GetViewEffectPath("ui_zjm", "ui_zjm_zzl");
|
|
- SceneController.AddObjectToView(_effectObj4, _wrapper4, _ui.m_btnMain.m_holder, resPath1, out _effectObj4,
|
|
|
|
- out _wrapper4);
|
|
|
|
- SceneController.AddObjectToView(_effectObj4_1, _wrapper4_1, _ui.m_btnMain.m_holder1, resPath3,
|
|
|
|
- out _effectObj4_1, out _wrapper4_1);
|
|
|
|
|
|
+ SceneController.AddObjectToView(_effectObj4, _wrapper4, _ui.m_btnMain.m_holder, resPath1, out _effectObj4, out _wrapper4);
|
|
|
|
+ SceneController.AddObjectToView(_effectObj4_1, _wrapper4_1, _ui.m_btnMain.m_holder1, resPath3, out _effectObj4_1, out _wrapper4_1);
|
|
|
|
|
|
string resPath4 = ResPathUtil.GetViewEffectPath("ui_zjm", "ui_zjm_jt");
|
|
string resPath4 = ResPathUtil.GetViewEffectPath("ui_zjm", "ui_zjm_jt");
|
|
- SceneController.AddObjectToView(_effectObj6, _wrapper6, _ui.m_loaLeft.m_holder, resPath4, out _effectObj6,
|
|
|
|
- out _wrapper6);
|
|
|
|
- SceneController.AddObjectToView(_effectObj7, _wrapper7, _ui.m_loaRight.m_holder, resPath4, out _effectObj7,
|
|
|
|
- out _wrapper7);
|
|
|
|
|
|
+ // SceneController.AddObjectToView(_effectObj6, _wrapper6, _ui.m_loaLeft.m_holder, resPath4, out _effectObj6,out _wrapper6);
|
|
|
|
+ SceneController.AddObjectToView(_effectObj7, _wrapper7, _ui.m_loaRight.m_holder, resPath4, out _effectObj7, out _wrapper7);
|
|
|
|
|
|
|
|
|
|
// string resPath2 = ResPathUtil.GetViewEffectPath("ui_zjm", "ui_zjm_tx");
|
|
// string resPath2 = ResPathUtil.GetViewEffectPath("ui_zjm", "ui_zjm_tx");
|
|
@@ -1094,24 +1090,24 @@ namespace GFGGame
|
|
GuideController.TryGuide(_ui.m_loaRight.target, ConstGuideId.ARENA_OPEN, 2, "新玩法-飞花令开启了哦", -1, false);
|
|
GuideController.TryGuide(_ui.m_loaRight.target, ConstGuideId.ARENA_OPEN, 2, "新玩法-飞花令开启了哦", -1, false);
|
|
|
|
|
|
|
|
|
|
- bool isStudioMetalGuide = GuideController.TryGuide(null, ConstGuideId.STUDIO_PORCELAIN, 2, "向左滑动界面。", -1,
|
|
|
|
|
|
+ bool isStudioMetalGuide = GuideController.TryGuide(_ui.m_loaRight.target, ConstGuideId.STUDIO_PORCELAIN, 2, "进入副本", -1,
|
|
false, _ui.target.height - 700);
|
|
false, _ui.target.height - 700);
|
|
- bool isStudioFilingGuide = GuideController.TryGuide(null, ConstGuideId.STUDIO_FILING, 2, "向左滑动界面。", -1,
|
|
|
|
|
|
+ bool isStudioFilingGuide = GuideController.TryGuide(_ui.m_loaRight.target, ConstGuideId.STUDIO_FILING, 2, "进入副本", -1,
|
|
false, _ui.target.height - 700);
|
|
false, _ui.target.height - 700);
|
|
- bool isFieldGuide = GuideController.TryGuide(null, ConstGuideId.FIELD, 1, "向左滑动界面。", -1, false, _ui.target.height - 700);
|
|
|
|
|
|
+ bool isFieldGuide = GuideController.TryGuide(_ui.m_loaRight.target, ConstGuideId.FIELD, 1, "进入副本", -1, false, _ui.target.height - 700);
|
|
|
|
|
|
- bool isStudioPropertyGuide = GuideController.TryGuide(null, ConstGuideId.STUDIO_PROPERTY, 1, "向左滑动界面。", -1, false, _ui.target.height - 700);
|
|
|
|
|
|
+ bool isStudioPropertyGuide = GuideController.TryGuide(_ui.m_loaRight.target, ConstGuideId.STUDIO_PROPERTY, 1, "进入副本", -1, false, _ui.target.height - 700);
|
|
|
|
|
|
-
|
|
|
|
- if (isStudioMetalGuide || isStudioFilingGuide || isFieldGuide || isStudioPropertyGuide)
|
|
|
|
- {
|
|
|
|
- _ui.m_loaGuidestudio.visible = true;
|
|
|
|
- MainDataManager.Instance.CanSwipe = true;
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- _ui.m_loaGuidestudio.visible = 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;
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
if (MainDataManager.Instance.ViewType == 1)
|
|
if (MainDataManager.Instance.ViewType == 1)
|
|
{
|
|
{
|
|
@@ -1121,7 +1117,7 @@ namespace GFGGame
|
|
GuideController.TryGuide(_ui.m_btnField.target, ConstGuideId.FIELD, 2, "外出进行历史考察,会有意想不到的收获哦。");
|
|
GuideController.TryGuide(_ui.m_btnField.target, ConstGuideId.FIELD, 2, "外出进行历史考察,会有意想不到的收获哦。");
|
|
GuideController.TryGuide(_ui.m_btnStudio.target, ConstGuideId.STUDIO_PROPERTY, 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_btnArena.target, ConstGuideId.ARENA_OPEN, 3, "在这里可以与其他小伙伴比拼搭配哦~");
|
|
- GuideController.TryGuide(_ui.m_loaLeft.target, ConstGuideId.ENTER_CHAPTER_5, 1, "", -1, false);
|
|
|
|
|
|
+ GuideController.TryGuide(_ui.m_loaLeft, ConstGuideId.ENTER_CHAPTER_5, 1, "", -1, false);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|