|  | @@ -3,6 +3,7 @@ using UI.Main;
 | 
	
		
			
				|  |  |  using UnityEngine;
 | 
	
		
			
				|  |  |  using System.Collections.Generic;
 | 
	
		
			
				|  |  |  using ET;
 | 
	
		
			
				|  |  | +using System;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  namespace GFGGame
 | 
	
		
			
				|  |  |  {
 | 
	
	
		
			
				|  | @@ -12,7 +13,9 @@ namespace GFGGame
 | 
	
		
			
				|  |  |          private GameObject _scenePrefab;
 | 
	
		
			
				|  |  |          private GameObject _sceneObject;
 | 
	
		
			
				|  |  |          private ValueBarController _valueBarController;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +        private SwipeGesture swipeGesture;
 | 
	
		
			
				|  |  | +        private const int swipeDistance = 100;
 | 
	
		
			
				|  |  | +        private float _listHeight = 0;
 | 
	
		
			
				|  |  |          private float effectTime = 0.7f;
 | 
	
		
			
				|  |  |          private bool isOpen = false;
 | 
	
		
			
				|  |  |          private GButton _btnGongGao;
 | 
	
	
		
			
				|  | @@ -52,7 +55,7 @@ namespace GFGGame
 | 
	
		
			
				|  |  |                  _valueBarController = null;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            for (int i = 0; i < _btns.Length; i++)
 | 
	
		
			
				|  |  | +            for (int i = 0; i < _effects.Count; i++)
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  SceneController.DestroyObjectFromView(_effects[i], _wrappers[i]);
 | 
	
		
			
				|  |  |                  SceneController.DestroyObjectFromView(_effects1[i], _wrappers1[i]);
 | 
	
	
		
			
				|  | @@ -101,8 +104,8 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              _btnTianGong = _ui.m_list.GetChild("btnTianGong").asButton;
 | 
	
		
			
				|  |  |              _btnTuJian = _ui.m_list.GetChild("btnTuJian").asButton;
 | 
	
		
			
				|  |  |              _btnJInShu = _ui.m_list.GetChild("btnJInShu").asButton;
 | 
	
		
			
				|  |  | -            _btnStudio = _ui.m_list.GetChild("btnStudio").asButton;
 | 
	
		
			
				|  |  | -            _btnField = _ui.m_list.GetChild("btnField").asButton;
 | 
	
		
			
				|  |  | +            // _btnStudio = _ui.m_list.GetChild("btnStudio").asButton;
 | 
	
		
			
				|  |  | +            // _btnField = _ui.m_list.GetChild("btnField").asButton;
 | 
	
		
			
				|  |  |              _btnBag = _ui.m_list.GetChild("btnBag").asButton;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              // _btnGongGao.visible = false;
 | 
	
	
		
			
				|  | @@ -113,14 +116,14 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              _btnTianGong.visible = false;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              _btns = new UI_ButtonModle1[] { _ui.m_btnHuanZhuang, _ui.m_btnZhaiXing, _ui.m_btnXiuFang, _ui.m_btnCiPai, _ui.m_btnStudio, _ui.m_btnField };
 | 
	
		
			
				|  |  | -            _ui.m_btnMain.target.onTouchBegin.Add(OnClickBtnMain);
 | 
	
		
			
				|  |  | -            _ui.m_btnHuanZhuang.target.onTouchBegin.Add(OnClickBtnHuanZhuang);
 | 
	
		
			
				|  |  | -            _ui.m_btnZhaiXing.target.onTouchBegin.Add(OnClickBtnZhaiXing);
 | 
	
		
			
				|  |  | -            _ui.m_btnDailyLogin.target.onTouchBegin.Add(OnClickBtnDailyLogin);
 | 
	
		
			
				|  |  | -            _ui.m_btnXiuFang.target.onTouchBegin.Add(OnClickBtnXiuFang);
 | 
	
		
			
				|  |  | -            _ui.m_btnCiPai.target.onTouchBegin.Add(OnClickBtnCiPai);
 | 
	
		
			
				|  |  | -            _ui.m_btnStudio.target.onTouchBegin.Add(OnClickBtnStudio);
 | 
	
		
			
				|  |  | -            _ui.m_btnField.target.onTouchBegin.Add(OnClickBtnField);
 | 
	
		
			
				|  |  | +            _ui.m_btnMain.target.onClick.Add(OnClickBtnMain);
 | 
	
		
			
				|  |  | +            _ui.m_btnHuanZhuang.target.onClick.Add(OnClickBtnHuanZhuang);
 | 
	
		
			
				|  |  | +            _ui.m_btnZhaiXing.target.onClick.Add(OnClickBtnZhaiXing);
 | 
	
		
			
				|  |  | +            _ui.m_btnDailyLogin.target.onClick.Add(OnClickBtnDailyLogin);
 | 
	
		
			
				|  |  | +            _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);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              _btnStore.onClick.Add(OnClickBtnStore);
 | 
	
	
		
			
				|  | @@ -129,14 +132,19 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              _btnHaoYou.onClick.Add(OnClickBtnHaoYou);
 | 
	
		
			
				|  |  |              _btnGongGao.onClick.Add(OnClickBtnGongGao);
 | 
	
		
			
				|  |  |              _btnRenWu.onClick.Add(OnClickBtnRenWu);
 | 
	
		
			
				|  |  | -            _btnStudio.onClick.Add(OnClickBtnStudio);
 | 
	
		
			
				|  |  | -            _btnField.onClick.Add(OnClickBtnField);
 | 
	
		
			
				|  |  | +            // _btnStudio.onClick.Add(OnClickBtnStudio);
 | 
	
		
			
				|  |  | +            // _btnField.onClick.Add(OnClickBtnField);
 | 
	
		
			
				|  |  |              _btnBag.onClick.Add(OnClickBtnBag);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            AddEffect();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            // StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_GUIDE + 4, 0).Coroutine();
 | 
	
		
			
				|  |  | +            _ui.m_btnChange.target.onClick.Add(OnBtnChangClick);
 | 
	
		
			
				|  |  | +            // AddEffect();
 | 
	
		
			
				|  |  | +            swipeGesture = new SwipeGesture(_ui.target);
 | 
	
		
			
				|  |  | +            swipeGesture.onAction.Add(OnSwipe);
 | 
	
		
			
				|  |  | +            swipeGesture.actionDistance = swipeDistance;
 | 
	
		
			
				|  |  | +            // StorageSProxy.ReqSetClientValue(ConstStorageId.STORAGE_GUIDE + 12, 0).Coroutine();
 | 
	
		
			
				|  |  | +            _ui.m_list.ResizeToFit();
 | 
	
		
			
				|  |  | +            _ui.m_btnChange.m_c1.selectedIndex = 1;
 | 
	
		
			
				|  |  | +            _ui.m_btnChange.target.selected = true;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          protected override void AddEventListener()
 | 
	
		
			
				|  |  |          {
 | 
	
	
		
			
				|  | @@ -148,7 +156,7 @@ namespace GFGGame
 | 
	
		
			
				|  |  |          protected override void OnShown()
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              base.OnShown();
 | 
	
		
			
				|  |  | -            _ui.m_btnChange.selected = true;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              _ui.m_headBar.m_txtName.text = RoleDataManager.roleName;
 | 
	
		
			
				|  |  |              if (_sceneObject == null)
 | 
	
		
			
				|  |  |              {
 | 
	
	
		
			
				|  | @@ -161,13 +169,14 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              UpdateRoleLvl();
 | 
	
		
			
				|  |  |              _valueBarController.OnShown();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              long lastTime = GameGlobal.lastLoginTime;// GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
 | 
	
		
			
				|  |  |              if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()) && ActivityDataManager.Instance.dailyLoginBonusStatus == ConstBonusStatus.CAN_GET && GuideDataManager.currentGuideId <= 0)
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  ViewManager.Show<DailyLoginView>();
 | 
	
		
			
				|  |  |                  GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +            SetPos();
 | 
	
		
			
				|  |  |              Timers.inst.AddUpdate(CheckGuide);
 | 
	
		
			
				|  |  |              Timers.inst.AddUpdate(Update);
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -218,7 +227,101 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              SceneController.AddObjectToView(_effectObj5, _wrapper5, _ui.m_headBar.m_holder, resPath2, out _effectObj5, out _wrapper5);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        private void SetPos()
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            if (MainDataManager.Instance.ViewType == 0)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                _ui.m_t1.Stop();
 | 
	
		
			
				|  |  | +                _sceneObject.transform.position = Vector2.zero;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            else if (MainDataManager.Instance.ViewType == 1)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                _ui.m_t2.Stop();
 | 
	
		
			
				|  |  | +                _sceneObject.transform.position = new Vector2(-GRoot.inst.actualWidth / 100f, 0);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        private void OnSwipe(EventContext context)
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            if (!MainDataManager.Instance.CanSwipe) return;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            SwipeGesture swipeture = (SwipeGesture)context.sender;
 | 
	
		
			
				|  |  | +            if (MainDataManager.Instance.ViewType == 0 && swipeture.position.x < 0 && swipeture.position.y > -swipeDistance && swipeture.position.y < swipeDistance)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                MoveLeft();
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            else if (MainDataManager.Instance.ViewType == 1 && swipeture.position.x > 0 && swipeture.position.y > -swipeDistance && swipeture.position.y < swipeDistance)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                MoveRight();
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        private void MoveLeft()
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            _ui.target.touchable = false;
 | 
	
		
			
				|  |  | +            TryCompleteGuide();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            GTween.To(0, -GRoot.inst.actualWidth / 100f, 1f)
 | 
	
		
			
				|  |  | +            .SetTarget(_sceneObject)
 | 
	
		
			
				|  |  | +            .OnUpdate((GTweener t) =>
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                _sceneObject.transform.position = new Vector2(t.value.x, 0);
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +            .SetEase(EaseType.CircInOut);
 | 
	
		
			
				|  |  | +            _ui.m_t1.Play(() =>
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                _ui.target.touchable = true;
 | 
	
		
			
				|  |  | +                MainDataManager.Instance.ViewType = 1;
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        private void MoveRight()
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            _ui.target.touchable = false;
 | 
	
		
			
				|  |  | +            GTween.To(-GRoot.inst.actualWidth / 100f, 0f, 1f)
 | 
	
		
			
				|  |  | +           .SetTarget(_sceneObject)
 | 
	
		
			
				|  |  | +           .OnUpdate((GTweener t) =>
 | 
	
		
			
				|  |  | +           {
 | 
	
		
			
				|  |  | +               _sceneObject.transform.position = new Vector2(t.value.x, 0);
 | 
	
		
			
				|  |  | +           })
 | 
	
		
			
				|  |  | +           .SetEase(EaseType.CircInOut);
 | 
	
		
			
				|  |  | +            _ui.m_t2.Play(() =>
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                _ui.target.touchable = true;
 | 
	
		
			
				|  |  | +                MainDataManager.Instance.ViewType = 0;
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        private void OnBtnChangClick()
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            int count = 0;
 | 
	
		
			
				|  |  | +            for (int i = 0; i < _ui.m_list.numItems; i++)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                if (_ui.m_list.GetChildAt(i).visible == true) count++;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            float height = count * (97 + 20);
 | 
	
		
			
				|  |  | +            if (_ui.m_btnChange.target.selected == true)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                _ui.m_btnChange.m_c1.selectedIndex = 1;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                GTween.To(0, height, 0.4f).SetTarget(_ui.m_list)
 | 
	
		
			
				|  |  | +                .OnUpdate((GTweener t) =>
 | 
	
		
			
				|  |  | +                {
 | 
	
		
			
				|  |  | +                    _ui.m_list.height = t.value.x;
 | 
	
		
			
				|  |  | +                }).SetEase(EaseType.QuintInOut);
 | 
	
		
			
				|  |  | +                // _ui.m_list.ResizeToFit();
 | 
	
		
			
				|  |  | +                // _ui.m_btnChange.m_c1.selectedIndex = 1;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            else
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                _ui.m_btnChange.m_c1.selectedIndex = 0;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +                GTween.To(height, 0, 0.4f).SetTarget(_ui.m_list)
 | 
	
		
			
				|  |  | +                .OnUpdate((GTweener t) =>
 | 
	
		
			
				|  |  | +                {
 | 
	
		
			
				|  |  | +                    _ui.m_list.height = t.value.x;
 | 
	
		
			
				|  |  | +                }).SetEase(EaseType.QuintInOut);
 | 
	
		
			
				|  |  | +                // _ui.m_list.height = 0;
 | 
	
		
			
				|  |  | +                // _ui.m_btnChange.m_c1.selectedIndex = 0;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          private void OnClickBtnMain()
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              LogServerHelper.SendNodeLog((int)PlayParticipationEnum.CHUN_ZHONG_LOU, 1);
 | 
	
	
		
			
				|  | @@ -411,13 +514,13 @@ namespace GFGGame
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              _ui.m_btnXiuFang.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(XiuFangView).Name, false);
 | 
	
		
			
				|  |  |              _ui.m_btnMain.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StoryChapterListView).Name, false);
 | 
	
		
			
				|  |  | -            // _ui.m_btnStudio.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioView).Name, false);
 | 
	
		
			
				|  |  | +            _ui.m_btnStudio.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioView).Name, false);
 | 
	
		
			
				|  |  |              _ui.m_btnHuanZhuang.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(DressUpView).Name, false);
 | 
	
		
			
				|  |  |              _ui.m_btnZhaiXing.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(LuckyBoxView).Name, false);
 | 
	
		
			
				|  |  |              _ui.m_btnCiPai.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
 | 
	
		
			
				|  |  |              _ui.m_btnDailyLogin.target.visible = !(!FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(DailyLoginView).Name, false)
 | 
	
		
			
				|  |  |              || (ActivityDataManager.Instance.dailyLoginId >= 7 && ActivityDataManager.Instance.dailyLoginBonusStatus == ConstBonusStatus.GOT));
 | 
	
		
			
				|  |  | -            // _ui.m_btnField.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(FieldView).Name, false);
 | 
	
		
			
				|  |  | +            _ui.m_btnField.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(FieldView).Name, false);
 | 
	
		
			
				|  |  |              _ui.m_btnHuanZhuang.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(DressUpView).Name, false);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              _btnGongGao.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(NoticeView).Name, false);
 | 
	
	
		
			
				|  | @@ -425,8 +528,8 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              _btnYouJian.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(MailView).Name, false);
 | 
	
		
			
				|  |  |              _btnStore.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(RechargeStoreView).Name, false);
 | 
	
		
			
				|  |  |              _btnTuJian.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(FieldGuideView).Name, false);
 | 
	
		
			
				|  |  | -            _btnStudio.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioView).Name, false);
 | 
	
		
			
				|  |  | -            _btnField.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(FieldView).Name, false);
 | 
	
		
			
				|  |  | +            // _btnStudio.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioView).Name, false);
 | 
	
		
			
				|  |  | +            // _btnField.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(FieldView).Name, false);
 | 
	
		
			
				|  |  |              // _btnTianGong.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
 | 
	
		
			
				|  |  |              // _btnPengYouQuan.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
 | 
	
		
			
				|  |  |              // _btnJInShu.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
 | 
	
	
		
			
				|  | @@ -442,8 +545,8 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              RedDotController.Instance.SetComRedDot(_btnTuJian, RedDotDataManager.Instance.GetFieldGuideRed());
 | 
	
		
			
				|  |  |              RedDotController.Instance.SetComRedDot(_btnHaoYou, RedDotDataManager.Instance.GetFriendRed());
 | 
	
		
			
				|  |  |              RedDotController.Instance.SetComRedDot(_btnStore, RedDotDataManager.Instance.GetRechargeGiftFreeRed());
 | 
	
		
			
				|  |  | -            RedDotController.Instance.SetComRedDot(_btnField, RedDotDataManager.Instance.GetFieldRed());
 | 
	
		
			
				|  |  | -            RedDotController.Instance.SetComRedDot(_btnStudio, RedDotDataManager.Instance.GetStudioFilingRed());
 | 
	
		
			
				|  |  | +            RedDotController.Instance.SetComRedDot(_ui.m_btnField.target, RedDotDataManager.Instance.GetFieldRed());
 | 
	
		
			
				|  |  | +            RedDotController.Instance.SetComRedDot(_ui.m_btnStudio.target, RedDotDataManager.Instance.GetStudioFilingRed());
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          private void CheckGuide(object param)
 | 
	
	
		
			
				|  | @@ -479,12 +582,23 @@ namespace GFGGame
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              GuideController.TryGuide(_ui.m_btnCiPai.target, ConstGuideId.UP_CARD_LV, 2, "获得了一张“词牌”,点击查看。", -1, false, 0, 0, 0, true, true);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            GuideController.TryGuide(_btnStudio, ConstGuideId.STUDIO_OPEN, 1, "工作室开门啦,进去看看。");
 | 
	
		
			
				|  |  | +            bool isGuide = GuideController.TryGuide(_ui.target, ConstGuideId.STUDIO_OPEN, 1, "滑动界面看看。", -1, false, (int)(this.viewCom.height - 600), 0, 0, false);
 | 
	
		
			
				|  |  | +            if (isGuide)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                MainDataManager.Instance.CanSwipe = true;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            if (MainDataManager.Instance.ViewType == 1) GuideController.TryGuide(_ui.m_btnStudio.target, ConstGuideId.STUDIO_OPEN, 2, "工作室开门啦,进去看看。");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              GuideController.TryGuide(_ui.m_btnXiuFang.target, ConstGuideId.SUIT_LIST_VIEW, 1, "获得“天衣”服饰后,可进行养护和焕新,到绣坊看看。");
 | 
	
		
			
				|  |  | -            GuideController.TryCompleteGuide(ConstGuideId.STUDIO_OPEN, 2);
 | 
	
		
			
				|  |  | +            GuideController.TryCompleteGuide(ConstGuideId.STUDIO_OPEN, 3);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        protected override void TryCompleteGuide()
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            GuideCfg cfg = GuideCfgArray.Instance.GetCfg(ConstGuideId.STUDIO_OPEN);
 | 
	
		
			
				|  |  | +            GuideController.TryCompleteGuideIndex(cfg.id, 1);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |