Ver Fonte

Merge branch 'master' of http://10.108.64.190:3000/gfg/client

guodong há 1 ano atrás
pai
commit
ce4b5c9010
29 ficheiros alterados com 322 adições e 91 exclusões
  1. 0 12
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DailyWelfare/UI_ListShowItem.cs
  2. 4 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DailyWelfare/UI_NewLimitChargeUI.cs
  3. 18 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ComAllPerfect.cs
  4. 11 65
      GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/NewLimitChargeView.cs
  5. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs
  6. 3 3
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs
  7. 9 3
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs
  8. 72 1
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs
  9. 11 6
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs
  10. 1 0
      GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs
  11. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0!a.png
  12. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0.png
  13. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_1!a.png
  14. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_1.png
  15. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_2!a.png
  16. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_2.png
  17. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_5!a.png
  18. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_5.png
  19. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_6!a.png
  20. 96 0
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_6!a.png.meta
  21. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_6.png
  22. 96 0
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_6.png.meta
  23. BIN
      GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_fui.bytes
  24. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png
  25. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0.png
  26. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png
  27. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png
  28. BIN
      GameClient/Assets/ResIn/UI/Main/Main_atlas0_4.png
  29. BIN
      GameClient/Assets/ResIn/UI/Main/Main_fui.bytes

+ 0 - 12
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DailyWelfare/UI_ListShowItem.cs

@@ -10,10 +10,6 @@ namespace UI.DailyWelfare
         public GGraph m_holder;
         public GButton m_btnShow;
         public GTextField m_txtName0;
-        public GTextField m_txtName1;
-        public GTextField m_txtName2;
-        public GTextField m_txtName3;
-        public GTextField m_txtName4;
         public GList m_listGiftBag;
         public GButton m_btnGetGiftBag;
         public GTextField m_txtGiftBag;
@@ -69,10 +65,6 @@ namespace UI.DailyWelfare
             m_holder = (GGraph)comp.GetChild("holder");
             m_btnShow = (GButton)comp.GetChild("btnShow");
             m_txtName0 = (GTextField)comp.GetChild("txtName0");
-            m_txtName1 = (GTextField)comp.GetChild("txtName1");
-            m_txtName2 = (GTextField)comp.GetChild("txtName2");
-            m_txtName3 = (GTextField)comp.GetChild("txtName3");
-            m_txtName4 = (GTextField)comp.GetChild("txtName4");
             m_listGiftBag = (GList)comp.GetChild("listGiftBag");
             m_btnGetGiftBag = (GButton)comp.GetChild("btnGetGiftBag");
             m_txtGiftBag = (GTextField)comp.GetChild("txtGiftBag");
@@ -84,10 +76,6 @@ namespace UI.DailyWelfare
             m_holder = null;
             m_btnShow = null;
             m_txtName0 = null;
-            m_txtName1 = null;
-            m_txtName2 = null;
-            m_txtName3 = null;
-            m_txtName4 = null;
             m_listGiftBag = null;
             m_btnGetGiftBag = null;
             m_txtGiftBag = null;

+ 4 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DailyWelfare/UI_NewLimitChargeUI.cs

@@ -9,6 +9,7 @@ namespace UI.DailyWelfare
         public GComponent target;
         public GLoader m_loaBg;
         public GList m_list;
+        public UI_ListShowItem m_showItem;
         public GButton m_btnBack;
         public GLoader m_name;
         public GTextField m_packageName;
@@ -66,6 +67,7 @@ namespace UI.DailyWelfare
         {
             m_loaBg = (GLoader)comp.GetChild("loaBg");
             m_list = (GList)comp.GetChild("list");
+            m_showItem = (UI_ListShowItem)UI_ListShowItem.Create(comp.GetChild("showItem"));
             m_btnBack = (GButton)comp.GetChild("btnBack");
             m_name = (GLoader)comp.GetChild("name");
             m_packageName = (GTextField)comp.GetChild("packageName");
@@ -79,6 +81,8 @@ namespace UI.DailyWelfare
         {
             m_loaBg = null;
             m_list = null;
+            m_showItem.Dispose();
+            m_showItem = null;
             m_btnBack = null;
             m_name = null;
             m_packageName = null;

+ 18 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Main/UI_ComAllPerfect.cs

@@ -13,6 +13,12 @@ namespace UI.Main
         public GGraph m_holder;
         public GGraph m_holderSmokeOut;
         public GTextField m_txtCount;
+        public GLoader m_num0;
+        public GLoader m_num1;
+        public GLoader m_num2;
+        public GLoader m_num3;
+        public GLoader m_num4;
+        public GGroup m_numGrade;
         public GImage m_img3Second;
         public Transition m_t0;
         public Transition m_t1;
@@ -70,6 +76,12 @@ namespace UI.Main
             m_holder = (GGraph)comp.GetChild("holder");
             m_holderSmokeOut = (GGraph)comp.GetChild("holderSmokeOut");
             m_txtCount = (GTextField)comp.GetChild("txtCount");
+            m_num0 = (GLoader)comp.GetChild("num0");
+            m_num1 = (GLoader)comp.GetChild("num1");
+            m_num2 = (GLoader)comp.GetChild("num2");
+            m_num3 = (GLoader)comp.GetChild("num3");
+            m_num4 = (GLoader)comp.GetChild("num4");
+            m_numGrade = (GGroup)comp.GetChild("numGrade");
             m_img3Second = (GImage)comp.GetChild("img3Second");
             m_t0 = comp.GetTransition("t0");
             m_t1 = comp.GetTransition("t1");
@@ -83,6 +95,12 @@ namespace UI.Main
             m_holder = null;
             m_holderSmokeOut = null;
             m_txtCount = null;
+            m_num0 = null;
+            m_num1 = null;
+            m_num2 = null;
+            m_num3 = null;
+            m_num4 = null;
+            m_numGrade = null;
             m_img3Second = null;
             m_t0 = null;
             m_t1 = null;

+ 11 - 65
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/NewLimitChargeView.cs

@@ -58,11 +58,6 @@ namespace GFGGame
 
             _dressUpObjUI = new DressUpObjUI("SceneSuitFoster");
 
-            _ui.m_list.itemRenderer = ListItemRenderer;
-            _ui.m_list.SetVirtual();
-            //_ui.m_list.scrollPane.onScrollEnd.Add(UpdateSuitView);
-            _ui.m_list.scrollPane.decelerationRate = 0.8f;
-
             _ui.m_btnLeft.onClick.Add(OnBtnLeftClick);
             _ui.m_btnRight.onClick.Add(OnBtnRightClick);
             _ui.m_btnBack.onClick.Add(OnBtnBackClick);
@@ -80,10 +75,6 @@ namespace GFGGame
 
 
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("bg_fhl");
-            //_curSelectIndex = Math.Max(0, RoleDataManager.vipLv - 1);
-            //_ui.m_list.selectedIndex = _curSelectIndex;
-            //_ui.m_list.ScrollToView(_curSelectIndex);
-            //_activityId = 501;
             _activityId = (int)(this.viewData as object[])[0];
             _rechargeCfgs = ActivityRechargeCfgArray.Instance.GetCfgsByactivityId(_activityId);
             _activityInfo = ActivityGlobalDataManager.Instance.GetActivityInfo(_activityId);
@@ -95,18 +86,18 @@ namespace GFGGame
             _ui.m_packageName.text = name;
 
             _ui.m_btnLeft.visible = _curSelectIndex == 0 ? false : true;
-            _ui.m_btnRight.visible = _curSelectIndex < _ui.m_list.numItems - 1 ? true : false;
+            _ui.m_btnRight.visible = _curSelectIndex < _rechargeCfgs.Count - 1 ? true : false;
 
-            _ui.m_list.ScrollToView(_curSelectIndex);
             _ui.m_packageName.text = SuitCfgArray.Instance.GetCfg(_rechargeCfgs[_curSelectIndex].suitId).name;
 
+            ItemRenderer(_curSelectIndex);
+
             Timers.inst.Add(1, 0, UpdateTime);
         }
 
         protected override void OnHide()
         {
             base.OnHide();
-            if (_ui.m_list.numItems > 0) _ui.m_list.ScrollToView(0);
             Timers.inst.Remove(UpdateTime);
         }
         protected override void RemoveEventListener()
@@ -118,23 +109,17 @@ namespace GFGGame
 
         private void RefreshList()
         {
-            _ui.m_list.numItems = _rechargeCfgs.Count;
+            ItemRenderer(_curSelectIndex);
         }
-        private void ListItemRenderer(int index, GObject obj)
+        private void ItemRenderer(int index)
         {
 
             ActivityRechargeCfg lastVipCfg = _rechargeCfgs[index]; 
-            ActivityRechargeCfg vipCfg = _rechargeCfgs[index]; 
-
+            ActivityRechargeCfg vipCfg = _rechargeCfgs[index];
 
-
-            UI_ListShowItem item = UI_ListShowItem.Proxy(obj);
+            UI_ListShowItem item = _ui.m_showItem; 
             string name = SuitCfgArray.Instance.GetCfg(vipCfg.suitId).name;
-            item.m_txtName0.text = name.Length > 0 ? name.Substring(0, 1) : "";
-            item.m_txtName1.text = name.Length > 1 ? name.Substring(1, 1) : "";
-            item.m_txtName2.text = name.Length > 2 ? name.Substring(2, 1) : "";
-            item.m_txtName3.text = name.Length > 3 ? name.Substring(3, 1) : "";
-            item.m_txtName4.text = name.Length > 4 ? name.Substring(4) : "";
+            item.m_txtName0.text = name;
             if (vipCfg.res != "")
             {
                 item.m_cardIcon.visible = true;
@@ -178,13 +163,7 @@ namespace GFGGame
             bool isGet = MathUtil.isBitSet(GameGlobal.myNumericComponent.GetAsInt(NumericType.VipGetStatus), vipCfg.id);
             long limitChargeExp = _activityInfo.CountValue;
             item.m_btnGetGiftBag.grayed = limitChargeExp < _rechargeCfgs[index].value;
-            //RedDotController.Instance.SetComRedDot(item.m_btnGetGiftBag, !isGet && RoleDataManager.vipLv >= vipCfg.id);
-            //bool canGet = GameGlobal.myNumericComponent.GetAsInt(NumericType.VipWeekGetStatus) == 0 && RoleDataManager.vipLv == vipCfg.id;
-
-            //long limitChargeExp = _activityInfo.CountValue;// GameGlobal.myNumericComponent.GetAsInt(NumericType.TotalRechargeScore);
             item.m_txtGiftBag.text = string.Format("活动期间累计获得{0}会员积分({1}/{2})", _rechargeCfgs[index].value, limitChargeExp, _rechargeCfgs[index].value);
-
-            UI_ListVipItem.ProxyEnd();
         }
 
         private void ListRewardItemRender(int index, GObject obj)
@@ -229,7 +208,6 @@ namespace GFGGame
 
             if (_curSelectIndex == 0) return;
             _curSelectIndex = _curSelectIndex - 1;
-            _ui.m_list.ScrollToView(_curSelectIndex);
             string name = SuitCfgArray.Instance.GetCfg(_rechargeCfgs[_curSelectIndex].suitId).name;
             _ui.m_packageName.text = name;
             UpdateSuitView();
@@ -237,9 +215,8 @@ namespace GFGGame
         }
         private void OnBtnRightClick()
         {
-            if (_curSelectIndex == _ui.m_list.numItems - 1) return;
+            if (_curSelectIndex == _rechargeCfgs.Count - 1) return;
             _curSelectIndex = _curSelectIndex + 1;
-            _ui.m_list.ScrollToView(_curSelectIndex);
             string name = SuitCfgArray.Instance.GetCfg(_rechargeCfgs[_curSelectIndex].suitId).name;
             _ui.m_packageName.text = name;
             UpdateSuitView();
@@ -252,10 +229,9 @@ namespace GFGGame
         }
         private void UpdateSuitView()
         {
-            _curSelectIndex = _ui.m_list.GetFirstChildInView();
-            _ui.m_list.selectedIndex = _curSelectIndex;
             _ui.m_btnLeft.visible = _curSelectIndex == 0 ? false : true;
-            _ui.m_btnRight.visible = _curSelectIndex < _ui.m_list.numItems - 1 ? true : false;
+            _ui.m_btnRight.visible = _curSelectIndex < _rechargeCfgs.Count - 1 ? true : false;
+            ItemRenderer(_curSelectIndex);
         }
 
         private void UpdateTime(object param)
@@ -265,36 +241,6 @@ namespace GFGGame
             _ui.m_txtTime.text = TimeUtil.FormattingTimeTo_DDHHmm(endTime - curTime);
         }
 
-        //private void UpdateRedDot()
-        //{
-
-        //    bool leftRed = false;
-        //    bool rightRed = false;
-        //    VipCfg[] vipCfgs = VipCfgArray.Instance.dataArray;
-        //    for (int i = 1; i < vipCfgs.Length; i++)
-        //    {
-        //        bool isGet = MathUtil.isBitSet(GameGlobal.myNumericComponent.GetAsInt(NumericType.VipGetStatus), vipCfgs[i].id);
-        //        bool red = !isGet && RoleDataManager.vipLv >= vipCfgs[i].id;
-
-        //        if (red && _curSelectIndex > i - 1)
-        //        {
-        //            leftRed = true;
-        //            break;
-        //        }
-        //        if (red && _curSelectIndex + 1 < i)
-        //        {
-        //            rightRed = true;
-        //            break;
-        //        }
-        //    }
-
-        //    if (GameGlobal.myNumericComponent.GetAsInt(NumericType.VipWeekGetStatus) == 0 && RoleDataManager.vipLv > 0 && _curSelectIndex > RoleDataManager.vipLv - 1) { leftRed = true; }
-        //    if (GameGlobal.myNumericComponent.GetAsInt(NumericType.VipWeekGetStatus) == 0 && RoleDataManager.vipLv > 0 && _curSelectIndex + 1 < RoleDataManager.vipLv) { rightRed = true; }
-        //    RedDotController.Instance.SetComRedDot(_ui.m_btnLeft, leftRed);
-        //    RedDotController.Instance.SetComRedDot(_ui.m_btnRight, rightRed);
-
-        //}
-
         private void OnListItemClick(EventContext context)
         {
             GComponent comItem = (context.data as GComponent);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -53,7 +53,7 @@ namespace GFGGame
             _ui.m_loaEventb.onClick.Add(() => { FullScreenTextController.Show("event:b"); });
             _ui.m_loaEventc.onClick.Add(() => { FullScreenTextController.Show("event:c"); });
             //_ui.m_btnAgree.onClick.Add(OnBtnAgreeCklick);
-
+            GameGlobal.isLogon = true;
         }
         protected override void AddEventListener()
         {

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs

@@ -81,8 +81,8 @@ namespace GFGGame
 
         private void OnClickBtnBack()
         {
-            GameController.GoBackToMainView();
-            //this.Hide();
+           // GameController.GoBackToMainView();
+            this.Hide();
             //ViewManager.Show<MainUIView>();
             //ViewManager.Show<StoryChapterListView>();
         }
@@ -118,7 +118,7 @@ namespace GFGGame
             {
                 if (MainStoryDataManager.CheckChapterUnlock(chapterID))
                 {
-                    ViewManager.Show<StoryChapterView>(new object[] { chapterID, _ui.m_listType.selectedIndex }, new object[] { typeof(StoryChapterListView).FullName, new object[] { _ui.m_listType.selectedIndex } });
+                    ViewManager.Show<StoryChapterView>(new object[] { chapterID, _ui.m_listType.selectedIndex });
                     this.Hide();
                 }
                 else

+ 9 - 3
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -57,7 +57,7 @@ namespace GFGGame
             _valueBarController = new ValueBarController(_ui.m_valueBar);
             _ui.m_btnBack.onClick.Add(OnClickBtnBack);
             _ui.m_btnHome.onClick.Add(OnClickBtnHome);
-            _ui.m_switchChapter.onClick.Add(OnClickBtnBack);
+            _ui.m_switchChapter.onClick.Add(OnClickSwitchBack);
             _ui.m_chapter.m_compChapterScroll.m_imgBegin.onClick.Add(OnClickNext);
             _ui.m_bonusBox1.target.onClick.Add(() =>
             {
@@ -135,7 +135,13 @@ namespace GFGGame
         }
         private void OnClickBtnBack()
         {
-            ViewManager.GoBackFrom(typeof(StoryChapterView).FullName);
+            //ViewManager.GoBackFrom(typeof(StoryChapterView).FullName);
+            GameController.GoBackToMainView();
+        }
+        
+        private void OnClickSwitchBack()
+        {
+            ViewManager.Show<StoryChapterListView>( null, new object[] { typeof(StoryChapterView).FullName, this.viewData });
         }
 
         private void OnClickBtnHome()
@@ -147,7 +153,7 @@ namespace GFGGame
         {
             if (MainStoryDataManager.CheckChapterUnlock(_chapterID+1))
             {
-                ViewManager.Show<StoryChapterView>(new object[] { _chapterID+1, currentDifficulty }, new object[] { typeof(StoryChapterListView).FullName, new object[] { currentDifficulty } });
+                ViewManager.Show<StoryChapterView>(new object[] { _chapterID+1, currentDifficulty });
             }
             else
             {

+ 72 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightTargetScoreView.cs

@@ -633,7 +633,8 @@ namespace GFGGame
             {
                 allCircleScore = ScoreSystemData.Instance.GetAllCircleAddScore(roleData);
             }
-            _ui.m_comClick.m_comAllPerfect.m_txtCount.text = allCircleScore.ToString();
+            //_ui.m_comClick.m_comAllPerfect.m_txtCount.text = allCircleScore.ToString();
+            CheckNumImage(allCircleScore.ToString());
             _ui.m_comClick.m_comResult.target.visible = false;
 
             _time = 0;
@@ -645,6 +646,76 @@ namespace GFGGame
                     CheckAllPerfectClickSkill();
                 });
         }
+
+        private void CheckNumImage(string Num)
+        {
+            string res = "ui://Main/zd_pf_sz";
+            List<GLoader> num = new List<GLoader>
+            {
+                _ui.m_comClick.m_comAllPerfect.m_num0,
+                _ui.m_comClick.m_comAllPerfect.m_num1,
+                _ui.m_comClick.m_comAllPerfect.m_num2,
+                _ui.m_comClick.m_comAllPerfect.m_num3,
+                _ui.m_comClick.m_comAllPerfect.m_num4,
+            };
+            ET.Log.Debug("y:  " +_ui.m_comClick.m_comAllPerfect.m_numGrade.y);
+            string numflog = "";
+            for (int i = 0 ; i < 5; i++)
+            { 
+                ET.Log.Debug("numflog" + numflog +"     i"+ i);
+                numflog = Num.Length > i ? Num.Substring(i, 1) : "";
+                ET.Log.Debug("numflog" + numflog);
+                switch (Num.Length)
+                {
+                    case 0:
+                        num[i].url = null;
+                        break;
+                    case 1:
+                        if(i == 2)
+                        {
+                            num[i].url = res + numflog;
+                        }
+                        else
+                        {
+                            num[i].url = null;
+                        }
+                        break;
+                    case 2:
+                        if (i >= 1 && i<=2)
+                        {
+                            num[i].url = res + numflog;
+                        }
+                        else
+                        {
+                            num[i].url = null;
+                        }
+                        break;
+                    case 3:
+                        if (i >= 1 && i <= 3)
+                        {
+                            num[i].url = res + numflog;
+                        }
+                        else
+                        {
+                            num[i].url = null;
+                        }
+                        break;
+                    case 4:
+                        if (i >= 0 && i <= 3)
+                        {
+                            num[i].url = res + numflog;
+                        }
+                        else
+                        {
+                            num[i].url = null;
+                        }
+                        break;
+                    case 5:
+                        num[i].url = res + numflog;
+                        break;
+                }
+            }
+        }
         private void OnBtnSpeedUp()
         {
             FightDataManager.Instance.fightSpeed = FightDataManager.Instance.fightSpeed == 1 ? FightDataManager.Instance.maxFightSpeed : 1;

+ 11 - 6
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -214,8 +214,11 @@ namespace GFGGame
             //long lastTime = GameGlobal.lastLoginTime; // GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
 
             //if (!TimeUtil.CheckIsSameTime(lastTime * 1000, TimeHelper.ClientNow()))
+            ET.Log.Debug("zyq"+ GameGlobal.isLogon);
             if (GameGlobal.isLogon)
             {
+                ET.Log.Debug("zyq" + GameGlobal.isLogon);
+                ET.Log.Debug("zyq" + ActivityDataManager.Instance.sevenDayLoginBonusStatusList.Count + ":::" + GuideDataManager.currentGuideId);
                 if (ActivityDataManager.Instance.CanGetSevenDayBonus() &&
                     GuideDataManager.currentGuideId <= 0)
                 {
@@ -419,22 +422,24 @@ namespace GFGGame
             // {
             // _ui.m_btnMain.m_holder1.visible = false;
             // this.Hide();
-            ViewManager.Show<StoryChapterListView>(null,
-                new object[] { typeof(MainUIView).FullName, this.viewData });
-            isOpen = false;
-            ;
+            //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++)
             {
                 StoryChapterCfg chapterCfg = _chapterCfgs[i];
                 if (i == _chapterCfgs.Count - 1)
                 {
-                    ViewManager.Show<StoryChapterView>(new object[] { chapterCfg.id, 0 }, new object[] { typeof(StoryChapterListView).FullName, new object[] { 0 } });
+                    ViewManager.Show<StoryChapterView>(new object[] { chapterCfg.id, 0 });
+                    isOpen = false;
                     return;
                 }
                 else if (!MainStoryDataManager.CheckChapterUnlock(chapterCfg.id))
                 {
-                    ViewManager.Show<StoryChapterView>(new object[] { chapterCfg.id - 1, 0 }, new object[] { typeof(StoryChapterListView).FullName, new object[] { 0 } });
+                    ViewManager.Show<StoryChapterView>(new object[] { chapterCfg.id - 1, 0 });
+                    isOpen = false;
                     return;
                 }
             }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

@@ -325,6 +325,7 @@ namespace GFGGame
                 KeyValuePair<string, IUIView> kv = _viewDic.ElementAt(index);
                 if (kv.Value.isShowing == true) continue;
                 // if (kv.Value.packageName == ResPathUtil.GetUIPackagePath("CommonGame") || kv.Value.packageName == ResPathUtil.GetUIPackagePath("Common") || kv.Value.packageName == ResPathUtil.GetUIPackagePath("Main")) return;//这几个包不释放
+                if(_viewDic.Keys.Count <= 10) return;  //打开界面小于10个就不销毁了
                 long currentTime = TimeHelper.ClientNowSeconds();
                 long closeTime = kv.Value.closeTime;
                 if (closeTime > 0 && currentTime - closeTime >= TimeUtil.SECOND_PER_MUNITE * 1)

BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0.png


BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_1!a.png


BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_2!a.png


BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_2.png


BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_5!a.png


BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_5.png


BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_6!a.png


+ 96 - 0
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_6!a.png.meta

@@ -0,0 +1,96 @@
+fileFormatVersion: 2
+guid: 186d8720358d4f24bb2ef965fe3742a6
+TextureImporter:
+  internalIDToNameTable: []
+  externalObjects: {}
+  serializedVersion: 11
+  mipmaps:
+    mipMapMode: 0
+    enableMipMap: 0
+    sRGBTexture: 1
+    linearTexture: 0
+    fadeOut: 0
+    borderMipMap: 0
+    mipMapsPreserveCoverage: 0
+    alphaTestReferenceValue: 0.5
+    mipMapFadeDistanceStart: 1
+    mipMapFadeDistanceEnd: 3
+  bumpmap:
+    convertToNormalMap: 0
+    externalNormalMap: 0
+    heightScale: 0.25
+    normalMapFilter: 0
+  isReadable: 0
+  streamingMipmaps: 0
+  streamingMipmapsPriority: 0
+  vTOnly: 0
+  grayScaleToAlpha: 0
+  generateCubemap: 6
+  cubemapConvolution: 0
+  seamlessCubemap: 0
+  textureFormat: 1
+  maxTextureSize: 2048
+  textureSettings:
+    serializedVersion: 2
+    filterMode: 1
+    aniso: 1
+    mipBias: 0
+    wrapU: 1
+    wrapV: 1
+    wrapW: 1
+  nPOTScale: 0
+  lightmap: 0
+  compressionQuality: 50
+  spriteMode: 1
+  spriteExtrude: 1
+  spriteMeshType: 1
+  alignment: 0
+  spritePivot: {x: 0.5, y: 0.5}
+  spritePixelsToUnits: 100
+  spriteBorder: {x: 0, y: 0, z: 0, w: 0}
+  spriteGenerateFallbackPhysicsShape: 1
+  alphaUsage: 1
+  alphaIsTransparency: 1
+  spriteTessellationDetail: -1
+  textureType: 8
+  textureShape: 1
+  singleChannelComponent: 0
+  flipbookRows: 1
+  flipbookColumns: 1
+  maxTextureSizeSet: 0
+  compressionQualitySet: 0
+  textureFormatSet: 0
+  ignorePngGamma: 0
+  applyGammaDecoding: 0
+  platformSettings:
+  - serializedVersion: 3
+    buildTarget: DefaultTexturePlatform
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    androidETC2FallbackOverride: 0
+    forceMaximumCompressionQuality_BC6H_BC7: 0
+  spriteSheet:
+    serializedVersion: 2
+    sprites: []
+    outline: []
+    physicsShape: []
+    bones: []
+    spriteID: 5e97eb03825dee720800000000000000
+    internalID: 0
+    vertices: []
+    indices: 
+    edges: []
+    weights: []
+    secondaryTextures: []
+  spritePackingTag: 
+  pSDRemoveMatte: 0
+  pSDShowRemoveMatteOption: 0
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_6.png


+ 96 - 0
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_atlas0_6.png.meta

@@ -0,0 +1,96 @@
+fileFormatVersion: 2
+guid: 831a8c05925e1734bae909b0e46f7497
+TextureImporter:
+  internalIDToNameTable: []
+  externalObjects: {}
+  serializedVersion: 11
+  mipmaps:
+    mipMapMode: 0
+    enableMipMap: 0
+    sRGBTexture: 1
+    linearTexture: 0
+    fadeOut: 0
+    borderMipMap: 0
+    mipMapsPreserveCoverage: 0
+    alphaTestReferenceValue: 0.5
+    mipMapFadeDistanceStart: 1
+    mipMapFadeDistanceEnd: 3
+  bumpmap:
+    convertToNormalMap: 0
+    externalNormalMap: 0
+    heightScale: 0.25
+    normalMapFilter: 0
+  isReadable: 0
+  streamingMipmaps: 0
+  streamingMipmapsPriority: 0
+  vTOnly: 0
+  grayScaleToAlpha: 0
+  generateCubemap: 6
+  cubemapConvolution: 0
+  seamlessCubemap: 0
+  textureFormat: 1
+  maxTextureSize: 2048
+  textureSettings:
+    serializedVersion: 2
+    filterMode: 1
+    aniso: 1
+    mipBias: 0
+    wrapU: 1
+    wrapV: 1
+    wrapW: 1
+  nPOTScale: 0
+  lightmap: 0
+  compressionQuality: 50
+  spriteMode: 1
+  spriteExtrude: 1
+  spriteMeshType: 1
+  alignment: 0
+  spritePivot: {x: 0.5, y: 0.5}
+  spritePixelsToUnits: 100
+  spriteBorder: {x: 0, y: 0, z: 0, w: 0}
+  spriteGenerateFallbackPhysicsShape: 1
+  alphaUsage: 1
+  alphaIsTransparency: 1
+  spriteTessellationDetail: -1
+  textureType: 8
+  textureShape: 1
+  singleChannelComponent: 0
+  flipbookRows: 1
+  flipbookColumns: 1
+  maxTextureSizeSet: 0
+  compressionQualitySet: 0
+  textureFormatSet: 0
+  ignorePngGamma: 0
+  applyGammaDecoding: 0
+  platformSettings:
+  - serializedVersion: 3
+    buildTarget: DefaultTexturePlatform
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    androidETC2FallbackOverride: 0
+    forceMaximumCompressionQuality_BC6H_BC7: 0
+  spriteSheet:
+    serializedVersion: 2
+    sprites: []
+    outline: []
+    physicsShape: []
+    bones: []
+    spriteID: 5e97eb03825dee720800000000000000
+    internalID: 0
+    vertices: []
+    indices: 
+    edges: []
+    weights: []
+    secondaryTextures: []
+  spritePackingTag: 
+  pSDRemoveMatte: 0
+  pSDShowRemoveMatteOption: 0
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
GameClient/Assets/ResIn/UI/DailyWelfare/DailyWelfare_fui.bytes


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1!a.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_atlas0_4.png


BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes