瀏覽代碼

修改跳转窗口跳转方式

huangxiaoyue 2 年之前
父節點
當前提交
6cc7a9fb60
共有 38 個文件被更改,包括 96 次插入96 次删除
  1. 2 2
      GameClient/Assets/Game/HotUpdate/Controller/GMController.cs
  2. 8 4
      GameClient/Assets/Game/HotUpdate/Controller/GameController.cs
  3. 1 1
      GameClient/Assets/Game/HotUpdate/Controller/GuideController.cs
  4. 1 2
      GameClient/Assets/Game/HotUpdate/Controller/LogController.cs
  5. 1 1
      GameClient/Assets/Game/HotUpdate/ServerProxy/InstanceZonesSProxy.cs
  6. 1 1
      GameClient/Assets/Game/HotUpdate/Utils/ItemUtil.cs
  7. 3 2
      GameClient/Assets/Game/HotUpdate/Utils/SuitUtil.cs
  8. 7 6
      GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaDressInfoView.cs
  9. 2 3
      GameClient/Assets/Game/HotUpdate/Views/Card/CardDetailView.cs
  10. 4 4
      GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs
  11. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Card/CardSkillView.cs
  12. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Card/CardStoryView.cs
  13. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Card/CardView.cs
  14. 1 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterView.cs
  15. 1 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingView.cs
  16. 1 1
      GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/SuitSyntheticView.cs
  17. 2 2
      GameClient/Assets/Game/HotUpdate/Views/Common/Controller/GetSuitItemController.cs
  18. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Common/Controller/GoodsItemTipsController.cs
  19. 7 8
      GameClient/Assets/Game/HotUpdate/Views/CommonGame/ApproachView.cs
  20. 5 6
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs
  21. 1 1
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs
  22. 1 1
      GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographView.cs
  23. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Field/FieldFightInfoView.cs
  24. 1 1
      GameClient/Assets/Game/HotUpdate/Views/Field/FieldView.cs
  25. 2 2
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/FieldGuideView.cs
  26. 2 2
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitGuideView.cs
  27. 1 1
      GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitPartsDetailView.cs
  28. 1 1
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxActivityView.cs
  29. 1 2
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs
  30. 3 4
      GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs
  31. 3 3
      GameClient/Assets/Game/HotUpdate/Views/MainStory/InstanceZonesController.cs
  32. 4 4
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs
  33. 9 9
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryController.cs
  34. 2 2
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs
  35. 1 1
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightSingleView.cs
  36. 3 3
      GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryLevelInfoView.cs
  37. 7 8
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs
  38. 2 1
      GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Controller/GMController.cs

@@ -80,11 +80,11 @@ namespace GFGGame
             if (ViewManager.isViewOpen(typeof(PhotographView).FullName)) return;
             if (ViewManager.isViewOpen(typeof(PhotographView).FullName)) return;
             if (GameConfig.showGM >= 1)
             if (GameConfig.showGM >= 1)
             {
             {
-                ViewManager.Show(ViewName.GM_PANEL_VIEW);
+                ViewManager.Show<GMPanelView>();
             }
             }
             else
             else
             {
             {
-                ViewManager.Show(ViewName.LOG_VIEW);
+                ViewManager.Show<LogView>();
             }
             }
         }
         }
     }
     }

+ 8 - 4
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -91,7 +91,7 @@ namespace GFGGame
 
 
         public static void ShowCreateRole()
         public static void ShowCreateRole()
         {
         {
-            ViewManager.Show(ViewName.CREATE_ROLE_VIEW);
+            ViewManager.Show<CreateRoleView>();
         }
         }
 
 
         public static async ETTask PreEnterGameAsync()
         public static async ETTask PreEnterGameAsync()
@@ -159,7 +159,7 @@ namespace GFGGame
                 GameGlobal.isEnterGame = true;
                 GameGlobal.isEnterGame = true;
                 if (MainStoryDataManager.CheckOpenMainUI() || GameGlobal.skipGuide)
                 if (MainStoryDataManager.CheckOpenMainUI() || GameGlobal.skipGuide)
                 {
                 {
-                    ViewManager.Show(ViewName.MAINUI_VIEW);
+                    ViewManager.Show<MainUIView>();
                 }
                 }
                 else
                 else
                 {
                 {
@@ -173,7 +173,11 @@ namespace GFGGame
                     }
                     }
                     else
                     else
                     {
                     {
-                        ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, MainStoryDataManager.currentChapterCfgId, new object[] { ViewName.STORY_CHAPTER_LIST_VIEW });
+                        ViewManager.Show<StoryChapterView>(MainStoryDataManager.currentChapterCfgId, new object[] { ViewName.STORY_CHAPTER_LIST_VIEW });
+
+                        //ViewManager.Show<StoryChapterView>(StudioDataManager.Instance.luckyBoxFilingChapterId, new object[] { typeof(ActivityThemeLuckyBoxView).FullName, this.viewData });
+
+                        ViewManager.Show<StoryChapterView>(MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(typeof(StoryChapterListView).FullName), true);
                     }
                     }
                 }
                 }
                 Timers.inst.Add(1f, 1, AfterEnterGame);
                 Timers.inst.Add(1f, 1, AfterEnterGame);
@@ -292,7 +296,7 @@ namespace GFGGame
         public static void GoBackToMainView()
         public static void GoBackToMainView()
         {
         {
             MainDataManager.Instance.ViewType = 0;
             MainDataManager.Instance.ViewType = 0;
-            ViewManager.Show(ViewName.MAINUI_VIEW, null, null, true);
+            ViewManager.Show<MainUIView>(null, null, true);
         }
         }
 
 
     }
     }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Controller/GuideController.cs

@@ -160,7 +160,7 @@ namespace GFGGame
                 return;
                 return;
             }
             }
             LogServerHelper.SendNodeLog(GuideDataManager.currentGuideId * 100 + 1);
             LogServerHelper.SendNodeLog(GuideDataManager.currentGuideId * 100 + 1);
-            ViewManager.Show(ViewName.GUIDE_VIEW, new List<object> { target, guideKey, guideStr, guideId, index, yTxt, justHint, noTips });
+            ViewManager.Show<GuideView>(new List<object> { target, guideKey, guideStr, guideId, index, yTxt, justHint, noTips });
         }
         }
         public static bool TryCompleteGuideIndex(string guideKey, int index)
         public static bool TryCompleteGuideIndex(string guideKey, int index)
         {
         {

+ 1 - 2
GameClient/Assets/Game/HotUpdate/Controller/LogController.cs

@@ -61,9 +61,8 @@ namespace GFGGame
 
 
                     msgDic[_all].Add(msg);
                     msgDic[_all].Add(msg);
                     msgDic[_error].Add(msg);
                     msgDic[_error].Add(msg);
-
 #if !UNITY_EDITOR
 #if !UNITY_EDITOR
-                    ViewManager.Show(ViewName.LOG_VIEW);
+                    ViewManager.Show<LogView>();
 #endif
 #endif
                     break;
                     break;
                 default:
                 default:

+ 1 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/InstanceZonesSProxy.cs

@@ -95,7 +95,7 @@ namespace GFGGame
                         isFirstFinish = true;
                         isFirstFinish = true;
                     }
                     }
                     InstanceZonesDataManager.TrySetLevelPass(response.LevelCfgId);
                     InstanceZonesDataManager.TrySetLevelPass(response.LevelCfgId);
-                    ViewManager.Show(ViewName.STORY_FIGHT_RESULT_VIEW, new StoryFightResultData
+                    ViewManager.Show<StroyFightResultView>(new StoryFightResultData
                     {
                     {
                         Result = true,
                         Result = true,
                         Score = response.Score,
                         Score = response.Score,

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Utils/ItemUtil.cs

@@ -67,7 +67,7 @@ namespace GFGGame
 
 
         public static void AddDiamondPurple()
         public static void AddDiamondPurple()
         {
         {
-            //  ViewManager.Show(ViewName.RECHARGE_STORE_VIEW);
+            //ViewManager.Show<RechargeStoreView>();
             ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_CHARGE, ConstStoreSubId.STORE_CHARGE });
             ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_CHARGE, ConstStoreSubId.STORE_CHARGE });
         }
         }
 
 

+ 3 - 2
GameClient/Assets/Game/HotUpdate/Utils/SuitUtil.cs

@@ -317,7 +317,7 @@ namespace GFGGame
             {
             {
                 SuitSProxy.GetSuitGuideBoxBonus(suitId).Coroutine();
                 SuitSProxy.GetSuitGuideBoxBonus(suitId).Coroutine();
             }
             }
-            ViewManager.Show(ViewName.BONUS_BOX_DETAIL_VIEW, new object[] { itemDatas, new GetBoxBonusStatusCall(GetStatus), new GetBoxBonusCall(GetBonus) });
+            ViewManager.Show<BonusBoxDetailView>(new object[] { itemDatas, new GetBoxBonusStatusCall(GetStatus), new GetBoxBonusCall(GetBonus) });
         }
         }
 
 
         public static void ShowSuitSyntheticBonus(int suitId)
         public static void ShowSuitSyntheticBonus(int suitId)
@@ -332,7 +332,8 @@ namespace GFGGame
             {
             {
                 SuitSProxy.GetSuitSyntheticBoxBonus(suitId).Coroutine();
                 SuitSProxy.GetSuitSyntheticBoxBonus(suitId).Coroutine();
             }
             }
-            ViewManager.Show(ViewName.BONUS_BOX_DETAIL_VIEW, new object[] { itemDatas, new GetBoxBonusStatusCall(GetStatus), new GetBoxBonusCall(GetBonus) });
+
+            ViewManager.Show<BonusBoxDetailView>(new object[] { itemDatas, new GetBoxBonusStatusCall(GetStatus), new GetBoxBonusCall(GetBonus) });
         }
         }
 
 
         public static string GetSuitName(int suitId)
         public static string GetSuitName(int suitId)

+ 7 - 6
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaDressInfoView.cs

@@ -16,7 +16,7 @@ namespace GFGGame
         private List<LongPressGesture> _listLongPress = new List<LongPressGesture>();
         private List<LongPressGesture> _listLongPress = new List<LongPressGesture>();
         private List<FightData> _roleDatas; //可能是自己的搭配,也可能是对方玩家的搭配
         private List<FightData> _roleDatas; //可能是自己的搭配,也可能是对方玩家的搭配
         private int _themeIndex = 0;
         private int _themeIndex = 0;
-        private string _openViewName = "";
+        private object[] _openViewName = new object[]{};
         private List<int> _itemList = new List<int>();
         private List<int> _itemList = new List<int>();
         private string[] _tags;
         private string[] _tags;
         private int _roleType = 0; //FightRoleType
         private int _roleType = 0; //FightRoleType
@@ -75,7 +75,7 @@ namespace GFGGame
             _roleType = (int)(this.viewData as object[])[0];
             _roleType = (int)(this.viewData as object[])[0];
             _themeIndex = (int)(this.viewData as object[])[1];
             _themeIndex = (int)(this.viewData as object[])[1];
             _roleDatas = (this.viewData as object[])[2] as List<FightData>;
             _roleDatas = (this.viewData as object[])[2] as List<FightData>;
-            _openViewName = (this.viewData as object[])[3].ToString();
+            _openViewName = (this.viewData as object[]);//[3];//.ToString();
 
 
             _ui.m_grhCloseComFightScore.visible = false;
             _ui.m_grhCloseComFightScore.visible = false;
             _ui.m_c1.selectedIndex = _roleType;
             _ui.m_c1.selectedIndex = _roleType;
@@ -112,10 +112,11 @@ namespace GFGGame
         private void OnClickBtnBack()
         private void OnClickBtnBack()
         {
         {
             ViewManager.GoBackFrom(typeof(ArenaDressInfoView).FullName); //返回竞技场主界面
             ViewManager.GoBackFrom(typeof(ArenaDressInfoView).FullName); //返回竞技场主界面
-            if (!string.IsNullOrEmpty(_openViewName))
-            {
-                ViewManager.Show(_openViewName); //打开来源界面:如历史记录、排行榜
-            }
+            //if (!string.IsNullOrEmpty(_openViewName))
+            //{
+                ViewManager.Show<CreateRoleView>();
+                //ViewManager.Show(_openViewName); //打开来源界面:如历史记录、排行榜
+           // }
         }
         }
 
 
         private void OnThemeChange()
         private void OnThemeChange()

+ 2 - 3
GameClient/Assets/Game/HotUpdate/Views/Card/CardDetailView.cs

@@ -116,8 +116,7 @@ namespace GFGGame
         }
         }
         private void OnClickListCardItem(EventContext context)
         private void OnClickListCardItem(EventContext context)
         {
         {
-
-            ViewManager.Show(ViewName.CARD_FOSTER_VIEW, (context.data as GObject).data, new object[] { ViewName.CARD_DETAIL_VIEW, _ui.m_listRole.selectedIndex });
+            ViewManager.Show<CardFosterView>((context.data as GObject).data, new object[] { ViewName.CARD_DETAIL_VIEW, _ui.m_listRole.selectedIndex });
             // this.Clear();
             // this.Clear();
 
 
         }
         }
@@ -137,7 +136,7 @@ namespace GFGGame
         /*******************************************************监听函数**************************************************/
         /*******************************************************监听函数**************************************************/
         private void OnclickBtnFilter()
         private void OnclickBtnFilter()
         {
         {
-            ViewManager.Show(ViewName.CARD_FILTER_VIEW, null, new object[] { ViewName.CARD_DETAIL_VIEW, _ui.m_listRole.selectedIndex });
+            ViewManager.Show<CardFilterView>(null, new object[] { ViewName.CARD_DETAIL_VIEW, _ui.m_listRole.selectedIndex });
         }
         }
         private void OnClickBtnBack()
         private void OnClickBtnBack()
         {
         {

+ 4 - 4
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -547,7 +547,7 @@ namespace GFGGame
                     if (_showLv - lv >= 1)
                     if (_showLv - lv >= 1)
                     {
                     {
                         // this._selectTab = _comFosterBottom.m_ctrlTab.selectedIndex;
                         // this._selectTab = _comFosterBottom.m_ctrlTab.selectedIndex;
-                        ViewManager.Show(ViewName.CARD_UP_VIEW, new object[] { _cardData.scores, "lv", lv, _showLv }, new object[] { ViewName.CARD_FOSTER_VIEW, _cardData });
+                        ViewManager.Show<CardUpView>(new object[] { _cardData.scores, "lv", lv, _showLv }, new object[] { ViewName.CARD_FOSTER_VIEW, _cardData });
                     }
                     }
                     this.UpdateCommon();
                     this.UpdateCommon();
                     this.UpdateUpLvView();
                     this.UpdateUpLvView();
@@ -702,7 +702,7 @@ namespace GFGGame
         {
         {
             int itemId = int.Parse(UI_ComStarConsume.Proxy(_comFosterBottom.m_listStarConsume.GetChildAt(index)).target.data.ToString());
             int itemId = int.Parse(UI_ComStarConsume.Proxy(_comFosterBottom.m_listStarConsume.GetChildAt(index)).target.data.ToString());
 
 
-            // ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemId, new object[] { ViewName.CARD_FOSTER_VIEW, _cardData } });
+            //ViewManager.Show<ApproachOfItemView>(new object[] { itemId, new object[] { ViewName.CARD_FOSTER_VIEW, _cardData } });
             object[] sourceDatas = new object[] { itemId, new object[] { ViewName.CARD_FOSTER_VIEW, _cardData } };
             object[] sourceDatas = new object[] { itemId, new object[] { ViewName.CARD_FOSTER_VIEW, _cardData } };
             GoodsItemTipsController.ShowItemTips(itemId, sourceDatas);
             GoodsItemTipsController.ShowItemTips(itemId, sourceDatas);
         }
         }
@@ -747,7 +747,7 @@ namespace GFGGame
                 UpdateUpStarView();
                 UpdateUpStarView();
                 UpdateCardRes();
                 UpdateCardRes();
                 // this._selectTab = _comFosterBottom.m_ctrlTab.selectedIndex;
                 // this._selectTab = _comFosterBottom.m_ctrlTab.selectedIndex;
-                ViewManager.Show(ViewName.CARD_UP_VIEW, new object[] { _cardData.scores, "star", _cardData.star - 1, _cardData.star }, new object[] { ViewName.CARD_FOSTER_VIEW, _cardData });
+                ViewManager.Show<CardUpView>(new object[] { _cardData.scores, "star", _cardData.star - 1, _cardData.star }, new object[] { ViewName.CARD_FOSTER_VIEW, _cardData });
                 LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.CI_PAI, 2);
                 LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.CI_PAI, 2);
                 UpdateRedDot();
                 UpdateRedDot();
             }
             }
@@ -876,7 +876,7 @@ namespace GFGGame
         }
         }
         private void OnClickBtnStroy()
         private void OnClickBtnStroy()
         {
         {
-            ViewManager.Show(ViewName.CARD_STORY_VIEW, _cardData);
+            ViewManager.Show<CardStoryView>(_cardData);
         }
         }
 
 
         private void OnChangeCtrlTab()
         private void OnChangeCtrlTab()

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Card/CardSkillView.cs

@@ -122,7 +122,7 @@ namespace GFGGame
             int itemId = int.Parse(comStarConsume.target.data.ToString());
             int itemId = int.Parse(comStarConsume.target.data.ToString());
             UI_ComStarConsume.ProxyEnd();
             UI_ComStarConsume.ProxyEnd();
             CardData cardData = CardDataManager.GetCardDataById(_cardId);
             CardData cardData = CardDataManager.GetCardDataById(_cardId);
-            // ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemId, new object[] { ViewName.CARD_FOSTER_VIEW, cardData } });
+            //ViewManager.Show<ApproachOfItemView>(new object[] { itemId, new object[] { ViewName.CARD_FOSTER_VIEW, cardData } });
             object[] sourceDatas = new object[] { itemId, new object[] { ViewName.CARD_FOSTER_VIEW, cardData } };
             object[] sourceDatas = new object[] { itemId, new object[] { ViewName.CARD_FOSTER_VIEW, cardData } };
             GoodsItemTipsController.ShowItemTips(itemId, sourceDatas);
             GoodsItemTipsController.ShowItemTips(itemId, sourceDatas);
         }
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Card/CardStoryView.cs

@@ -78,7 +78,7 @@ namespace GFGGame
                 PromptController.Instance.ShowFloatTextPrompt(string.Format("词牌星级达到{0}级解锁", _viewData.itemCfg.cardMoodStar));
                 PromptController.Instance.ShowFloatTextPrompt(string.Format("词牌星级达到{0}级解锁", _viewData.itemCfg.cardMoodStar));
                 return;
                 return;
             }
             }
-            ViewManager.Show(ViewName.CARD_Mood_VIEW, _viewData, new object[] { typeof(CardStoryView).FullName, _viewData });
+            ViewManager.Show<CardMoodView>(_viewData, new object[] { typeof(CardStoryView).FullName, _viewData });
         }
         }
         protected override void OnHide()
         protected override void OnHide()
         {
         {

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Card/CardView.cs

@@ -63,7 +63,7 @@ namespace GFGGame
             });
             });
             _ui.m_t0.SetHook("open", () =>
             _ui.m_t0.SetHook("open", () =>
             {
             {
-                ViewManager.Show(ViewName.CARD_DETAIL_VIEW, null, new object[] { ViewName.CARD_VIEW, this.viewData });
+                ViewManager.Show<CardDetailView>(null, new object[] { ViewName.CARD_VIEW, this.viewData });
             });
             });
         }
         }
         protected override void OnHide()
         protected override void OnHide()

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterView.cs

@@ -107,7 +107,7 @@ namespace GFGGame
         private void OnListMaterialsItem(EventContext context)
         private void OnListMaterialsItem(EventContext context)
         {
         {
             int[] itemData = (int[])(context.data as GComponent).data;
             int[] itemData = (int[])(context.data as GComponent).data;
-            // ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemData[0], new object[] { typeof(ClothingView).FullName, (this.viewData as object[])[4] }, itemData[1] });
+            //ViewManager.Show<ApproachOfItemView>(new object[] { itemData[0], new object[] { typeof(ClothingView).FullName, (this.viewData as object[])[4] }, itemData[1] });
             object[] sourceDatas = new object[] { itemData[0], new object[] { typeof(ClothingView).FullName, (this.viewData as object[])[3] }, itemData[1] };
             object[] sourceDatas = new object[] { itemData[0], new object[] { typeof(ClothingView).FullName, (this.viewData as object[])[3] }, itemData[1] };
             GoodsItemTipsController.ShowItemTips(itemData[0], sourceDatas);
             GoodsItemTipsController.ShowItemTips(itemData[0], sourceDatas);
         }
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingView.cs

@@ -369,7 +369,7 @@ namespace GFGGame
         {
         {
             int[] itemData = (int[])(context.data as GComponent).data;
             int[] itemData = (int[])(context.data as GComponent).data;
             // GoodsItemTipsController.ShowItemTips(itemId);
             // GoodsItemTipsController.ShowItemTips(itemId);
-            // ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemData[0], new object[] { typeof(ClothingView).FullName, this.viewData }, itemData[1] });
+            //ViewManager.Show<ApproachOfItemView>(new object[] { itemData[0], new object[] { typeof(ClothingView).FullName, this.viewData }, itemData[1] });
             object[] sourceDatas = new object[] { itemData[0], new object[] { typeof(ClothingView).FullName, this.viewData }, itemData[1] };
             object[] sourceDatas = new object[] { itemData[0], new object[] { typeof(ClothingView).FullName, this.viewData }, itemData[1] };
             GoodsItemTipsController.ShowItemTips(itemData[0], sourceDatas);
             GoodsItemTipsController.ShowItemTips(itemData[0], sourceDatas);
         }
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/SuitSyntheticView.cs

@@ -168,7 +168,7 @@ namespace GFGGame
             {
             {
                 if (!isLock)
                 if (!isLock)
                 {
                 {
-                    ViewManager.Show(ViewName.CLOTHING_SYNTHETIC_VIEW, new object[] { suitId }, new object[] { ViewName.SUIT_SYNTHETIC_LIST_VIEW, suitId });
+                    ViewManager.Show<ClothingSyntheticView>(new object[] { suitId }, new object[] { ViewName.SUIT_SYNTHETIC_LIST_VIEW, suitId });
                 }
                 }
             });
             });
             RedDotController.Instance.SetComRedDot(listItem.target, RedDotDataManager.Instance.GetClothingSyntheticRed(suitId), "", 0, 0);
             RedDotController.Instance.SetComRedDot(listItem.target, RedDotDataManager.Instance.GetClothingSyntheticRed(suitId), "", 0, 0);

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Common/Controller/GetSuitItemController.cs

@@ -37,14 +37,14 @@ namespace GFGGame
                 if (index >= 0)
                 if (index >= 0)
                 {
                 {
                     _waitingToShowSuit.RemoveAt(index);
                     _waitingToShowSuit.RemoveAt(index);
-                    ViewManager.Show(ViewName.GET_SUIT_ITEM_VIEW, suitId);
+                    ViewManager.Show<GetSuitItemVIew>(suitId);
                 }
                 }
             }
             }
             else if (_waitingToShowSuit.Count > 0)
             else if (_waitingToShowSuit.Count > 0)
             {
             {
                 suitId = _waitingToShowSuit[0];
                 suitId = _waitingToShowSuit[0];
                 _waitingToShowSuit.RemoveAt(0);
                 _waitingToShowSuit.RemoveAt(0);
-                ViewManager.Show(ViewName.GET_SUIT_ITEM_VIEW, suitId);
+                ViewManager.Show<GetSuitItemVIew>(suitId);
             }
             }
             return suitId;
             return suitId;
         }
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Common/Controller/GoodsItemTipsController.cs

@@ -11,7 +11,7 @@ namespace GFGGame
             }
             }
             // else if (ItemUtilCS.IsDressUpItem(id))
             // else if (ItemUtilCS.IsDressUpItem(id))
             // {
             // {
-            //     ViewManager.Show(ViewName.DRESS_UP_ITEM_TIPS_VIEW, id);
+                //ViewManager.Show<DressUpItemTipsView>(id);
             // }
             // }
             else
             else
             {
             {

+ 7 - 8
GameClient/Assets/Game/HotUpdate/Views/CommonGame/ApproachView.cs

@@ -166,7 +166,7 @@ namespace GFGGame
                     //     isJump = false;
                     //     isJump = false;
                     //     break;
                     //     break;
                     // }
                     // }
-                    isJump = ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, new object[] { shopId, null, _itemId, needCount }, _fromeViewDatas, true, true);
+                    isJump = ViewManager.Show<ClothingShopView>(new object[] { shopId, null, _itemId, needCount }, _fromeViewDatas, true, true);
                     break;
                     break;
                 case ConstFunctionId.FU_ZHUANG_DECOMPOSE:
                 case ConstFunctionId.FU_ZHUANG_DECOMPOSE:
                     // this.Hide();
                     // this.Hide();
@@ -268,7 +268,7 @@ namespace GFGGame
                             //从战斗换装必需品来源跳转到剧情界面,在剧情界面点返回后直接返回章节界面,无需返回换装界面
                             //从战斗换装必需品来源跳转到剧情界面,在剧情界面点返回后直接返回章节界面,无需返回换装界面
                             _fromeViewDatas = null;
                             _fromeViewDatas = null;
                         }
                         }
-                        isJump = ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, levelCfg.chapterId, _fromeViewDatas, true);
+                        isJump = ViewManager.Show<StoryChapterView>(levelCfg.chapterId, _fromeViewDatas, true);
                         StoryController.ShowLevelView(levelCfgId, _itemId, _needCount);
                         StoryController.ShowLevelView(levelCfgId, _itemId, _needCount);
                         break;
                         break;
                     }
                     }
@@ -282,18 +282,17 @@ namespace GFGGame
                         bool isPass = InstanceZonesDataManager.CheckLevelPass(suitCfg.syntheticStoryLevelId);
                         bool isPass = InstanceZonesDataManager.CheckLevelPass(suitCfg.syntheticStoryLevelId);
                         if (suitCfg.syntheticStoryLevelId > 0 && !isPass)
                         if (suitCfg.syntheticStoryLevelId > 0 && !isPass)
                         {
                         {
-                            isJump = ViewManager.Show(ViewName.SUIT_SYNTHETIC_LIST_VIEW, suitId, _fromeViewDatas);
+                            isJump = ViewManager.Show<SuitSyntheticView>(suitId, _fromeViewDatas); 
                         }
                         }
                         else
                         else
                         {
                         {
-                            isJump = ViewManager.Show(ViewName.CLOTHING_SYNTHETIC_VIEW, new object[] { suitId, _itemId }, _fromeViewDatas);
+                            isJump = ViewManager.Show<ClothingSyntheticView>(new object[] { suitId, _itemId }, _fromeViewDatas);
                         }
                         }
-
                     }
                     }
                     break;
                     break;
                 case ConstFunctionId.ZHAI_XING:
                 case ConstFunctionId.ZHAI_XING:
                     // this.Hide();
                     // this.Hide();
-                    isJump = ViewManager.Show(ViewName.LUCKY_BOX_VIEW, null, _fromeViewDatas, true);
+                    isJump = ViewManager.Show<LuckyBoxView>(null, _fromeViewDatas, true);
                     break;
                     break;
                 case ConstFunctionId.TAO_ZHUANG_TU_JIAN:
                 case ConstFunctionId.TAO_ZHUANG_TU_JIAN:
                     isJump = false;
                     isJump = false;
@@ -301,11 +300,11 @@ namespace GFGGame
                     {
                     {
                         return;
                         return;
                     }
                     }
-                    isJump = ViewManager.Show(ViewName.SUIT_GUIDE_VIEW, null, _fromeViewDatas);
+                    isJump = ViewManager.Show<SuitGuideView>(null, _fromeViewDatas); 
 
 
                     break;
                     break;
                 case ConstFunctionId.TAO_ZHUANG_HE_CHENG:
                 case ConstFunctionId.TAO_ZHUANG_HE_CHENG:
-                    isJump = ViewManager.Show(ViewName.SUIT_SYNTHETIC_LIST_VIEW);
+                    isJump = ViewManager.Show<SuitSyntheticView>();
                     break;
                     break;
                 case ConstFunctionId.SUIT_FOSTER:
                 case ConstFunctionId.SUIT_FOSTER:
                     isJump = ViewManager.Show<ClothingListView>(null, _fromeViewDatas);
                     isJump = ViewManager.Show<ClothingListView>(null, _fromeViewDatas);

+ 5 - 6
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -269,14 +269,14 @@ namespace GFGGame
                 else
                 else
                 {
                 {
                     // ViewManager.GoBackFrom(ViewName.STORY_CHAPTER_VIEW);
                     // ViewManager.GoBackFrom(ViewName.STORY_CHAPTER_VIEW);
-                    ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, _levelCfg.chapterId);//, new object[] { ViewName.STORY_CHAPTER_LIST_VIEW }
+                    ViewManager.Show<StoryChapterView>(_levelCfg.chapterId);//, new object[] { ViewName.STORY_CHAPTER_LIST_VIEW }
                 }
                 }
                 //MyDressUpHelper.dressUpObj.TakeOffAll();
                 //MyDressUpHelper.dressUpObj.TakeOffAll();
 
 
                 this.Hide();
                 this.Hide();
             });
             });
 
 
-            // ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, StoryDataManager.currentChapter);
+            //ViewManager.Show<StoryChapterView>(StoryDataManager.currentChapter);
 
 
         }
         }
 
 
@@ -293,8 +293,7 @@ namespace GFGGame
 
 
         private void OnClickBtnClothingShop()
         private void OnClickBtnClothingShop()
         {
         {
-
-            ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, new object[] { null, _fightCfg.scoreType }, null, false, true);
+            ViewManager.Show<ClothingShopView>(new object[] { null, _fightCfg.scoreType }, null, false, true);
         }
         }
 
 
         private void OnClickListType1Item(EventContext context)
         private void OnClickListType1Item(EventContext context)
@@ -589,11 +588,11 @@ namespace GFGGame
 
 
             if (hasFightTarget)
             if (hasFightTarget)
             {
             {
-                ViewManager.Show(ViewName.STORY_FIGHT_TARGET_VIEW);
+                ViewManager.Show<StoryFightTargetView>();
             }
             }
             else
             else
             {
             {
-                ViewManager.Show(ViewName.STORY_FIGHT_SINGLE_VIEW);
+                ViewManager.Show<StoryFightSingleView>();
             }
             }
             this.Hide();
             this.Hide();
 
 

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -198,7 +198,7 @@ namespace GFGGame
         {
         {
             Reset();
             Reset();
             // this.Hide();
             // this.Hide();
-            // ViewManager.Show(ViewName.MAINUI_VIEW);
+            //ViewManager.Show<MainUIView>();
             ViewManager.GoBackFrom(typeof(DressUpView).FullName);
             ViewManager.GoBackFrom(typeof(DressUpView).FullName);
         }
         }
 
 

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographView.cs

@@ -579,7 +579,7 @@ namespace GFGGame
         private void OnClickBtnBack()
         private void OnClickBtnBack()
         {
         {
             this.Hide();
             this.Hide();
-            // ViewManager.Show(ViewName.DRESS_UP_VIEW);
+            //ViewManager.Show<DressUpView>();
             EventAgent.DispatchEvent(ConstMessage.CLOSE_PHOTOGRAPHVIEW);
             EventAgent.DispatchEvent(ConstMessage.CLOSE_PHOTOGRAPHVIEW);
         }
         }
         protected override void OnHide()
         protected override void OnHide()

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Field/FieldFightInfoView.cs

@@ -74,7 +74,7 @@ namespace GFGGame
                 InstanceZonesDataManager.currentLevelCfgId = FieldFightDataManager.Instance.currentLevelCfgId;
                 InstanceZonesDataManager.currentLevelCfgId = FieldFightDataManager.Instance.currentLevelCfgId;
 
 
                 ViewManager.Hide<FieldView>();
                 ViewManager.Hide<FieldView>();
-                ViewManager.Show(ViewName.STORY_FIGHT_TARGET_VIEW);
+                ViewManager.Show<StoryFightTargetView>();
             }
             }
             _ui.m_txtTime.text = string.Format("{0}秒后自动进入下一轮", _time);
             _ui.m_txtTime.text = string.Format("{0}秒后自动进入下一轮", _time);
         }
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Field/FieldView.cs

@@ -186,7 +186,7 @@ namespace GFGGame
         {
         {
             LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 2);
             LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TIAN_YE_DIAO_CHA, 2);
             int curLevelId = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(_curCfg.type, 0, _curCfg.id)[0].id;
             int curLevelId = StoryLevelCfgArray.Instance.GetCfgsBytypeAndsubTypeAndchapterId(_curCfg.type, 0, _curCfg.id)[0].id;
-            ViewManager.Show(ViewName.DRESS_UP_FIGHT_VIEW, curLevelId, new object[] { typeof(FieldView).FullName, this.viewData }, true);
+            ViewManager.Show<DressUpFightView>(curLevelId, new object[] { typeof(FieldView).FullName, this.viewData }, true);
             InstanceZonesDataManager.currentLevelCfgId = curLevelId;
             InstanceZonesDataManager.currentLevelCfgId = curLevelId;
         }
         }
         private void OnBtnTaskClick()
         private void OnBtnTaskClick()

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/FieldGuideView.cs

@@ -96,7 +96,7 @@ namespace GFGGame
             switch (id)
             switch (id)
             {
             {
                 case ConstBannerId.ZHAI_XING:
                 case ConstBannerId.ZHAI_XING:
-                    ViewManager.Show(ViewName.LUCKY_BOX_VIEW, null, new object[] { ViewName.FIELD_GUIDE_VIEW, this.viewData });
+                    ViewManager.Show<LuckyBoxView>(null, new object[] { ViewName.FIELD_GUIDE_VIEW, this.viewData });
                     this.Hide();
                     this.Hide();
                     break;
                     break;
             }
             }
@@ -126,7 +126,7 @@ namespace GFGGame
             switch (id)
             switch (id)
             {
             {
                 case ConstFieldGuideId.SUIT_GUIDE:
                 case ConstFieldGuideId.SUIT_GUIDE:
-                    ViewManager.Show(ViewName.SUIT_GUIDE_VIEW, null, new object[] { ViewName.FIELD_GUIDE_VIEW, this.viewData });
+                    ViewManager.Show<SuitGuideView>(null, new object[] { ViewName.FIELD_GUIDE_VIEW, this.viewData });
                     break;
                     break;
                 case ConstFieldGuideId.CHAPTER_ITEM:
                 case ConstFieldGuideId.CHAPTER_ITEM:
                     ViewManager.Show<ChapterItemGuideView>(null, new object[] { ViewName.FIELD_GUIDE_VIEW, this.viewData });
                     ViewManager.Show<ChapterItemGuideView>(null, new object[] { ViewName.FIELD_GUIDE_VIEW, this.viewData });

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitGuideView.cs

@@ -237,11 +237,11 @@ namespace GFGGame
             {
             {
                 if (haveSuit)
                 if (haveSuit)
                 {
                 {
-                    ViewManager.Show(ViewName.SUIT_SHOW_VIEW, new object[] { _suitTypeId, suitId, _suitIds }, new object[] { ViewName.SUIT_GUIDE_VIEW, this.viewData });
+                    ViewManager.Show<SuitShowView>(new object[] { _suitTypeId, suitId, _suitIds }, new object[] { ViewName.SUIT_GUIDE_VIEW, this.viewData });
                 }
                 }
                 else
                 else
                 {
                 {
-                    ViewManager.Show(ViewName.SUIT_PARTS_DETAIL_VIEW, suitId, new object[] { ViewName.SUIT_GUIDE_VIEW, this.viewData });
+                    ViewManager.Show<SuitPartsDetailView>(suitId, new object[] { ViewName.SUIT_GUIDE_VIEW, this.viewData });
                 }
                 }
             });
             });
         }
         }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/FieldGuide/SuitPartsDetailView.cs

@@ -95,7 +95,7 @@ namespace GFGGame
             else
             else
             {
             {
                 // this.Hide();
                 // this.Hide();
-                // ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemId, new object[] { ViewName.SUIT_GUIDE_VIEW, this.viewData } });
+                //ViewManager.Show<ApproachOfItemView>(new object[] { itemId, new object[] { ViewName.SUIT_GUIDE_VIEW, this.viewData } });
                 object[] goBackDatas = ViewManager.GetGoBackDatas(typeof(SuitPartsDetailView).Name);
                 object[] goBackDatas = ViewManager.GetGoBackDatas(typeof(SuitPartsDetailView).Name);
                 object[] sourceDatas = new object[] { itemId, goBackDatas, 1 };
                 object[] sourceDatas = new object[] { itemId, goBackDatas, 1 };
                 GoodsItemTipsController.ShowItemTips(itemId, sourceDatas);
                 GoodsItemTipsController.ShowItemTips(itemId, sourceDatas);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxActivityView.cs

@@ -202,7 +202,7 @@ namespace GFGGame
         {
         {
             GObject obj = context.sender as GObject;
             GObject obj = context.sender as GObject;
             int boxId = (int)obj.data;
             int boxId = (int)obj.data;
-            ViewManager.Show(ViewName.LUCKY_BOX_PRE_SHOW_VIEW, boxId);
+            ViewManager.Show<LuckyBoxPreShowView>(boxId);
         }
         }
 
 
         private void OnClickBtnBuyOne(EventContext context)
         private void OnClickBtnBuyOne(EventContext context)

+ 1 - 2
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxStarView.cs

@@ -374,8 +374,7 @@ namespace GFGGame
         {
         {
             this.Hide();
             this.Hide();
             RemoveListener();
             RemoveListener();
-
-            ViewManager.Show(ViewName.LUCKY_BOX_VIEW);
+            ViewManager.Show<LuckyBoxView>();
         }
         }
         private void CheckGuide(object param)
         private void CheckGuide(object param)
         {
         {

+ 3 - 4
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -291,7 +291,7 @@ namespace GFGGame
         {
         {
             GObject obj = context.sender as GObject;
             GObject obj = context.sender as GObject;
             int boxId = (int)obj.data;
             int boxId = (int)obj.data;
-            ViewManager.Show(ViewName.LUCKY_BOX_PRE_SHOW_VIEW, boxId);
+            ViewManager.Show<LuckyBoxPreShowView>(boxId);
         }
         }
         private void OnClickBtnBuyOne(EventContext context)
         private void OnClickBtnBuyOne(EventContext context)
         {
         {
@@ -309,7 +309,7 @@ namespace GFGGame
                  bool result = await LuckyBoxSProxy.ReqGetBonus(boxId, LuckyBoxDataManager.ONCE_TIME);
                  bool result = await LuckyBoxSProxy.ReqGetBonus(boxId, LuckyBoxDataManager.ONCE_TIME);
                  if (result)
                  if (result)
                  {
                  {
-                     ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, null, new object[] { ViewName.LUCKY_BOX_VIEW, boxId });
+                     ViewManager.Show<LuckyBoxStarView>(null, new object[] { ViewName.LUCKY_BOX_VIEW, boxId });
                      LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.ZAI_XING, 2);
                      LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.ZAI_XING, 2);
                  }
                  }
              });
              });
@@ -339,8 +339,7 @@ namespace GFGGame
                 bool result = await LuckyBoxSProxy.ReqGetBonus(boxId, LuckyBoxDataManager.TEN_TIME);
                 bool result = await LuckyBoxSProxy.ReqGetBonus(boxId, LuckyBoxDataManager.TEN_TIME);
                 if (result)
                 if (result)
                 {
                 {
-
-                    ViewManager.Show(ViewName.LUCKY_BOX_STAR_VIEW, null, new object[] { ViewName.LUCKY_BOX_VIEW, boxId });
+                    ViewManager.Show<LuckyBoxStarView>(null, new object[] { ViewName.LUCKY_BOX_VIEW, boxId });
                     LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.ZAI_XING, 2);
                     LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.ZAI_XING, 2);
 
 
                 }
                 }

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

@@ -28,7 +28,7 @@ namespace GFGGame
                     Debug.LogError(string.Format("战斗id:{0}  无配置", levelCfg.fightID));
                     Debug.LogError(string.Format("战斗id:{0}  无配置", levelCfg.fightID));
                     return;
                     return;
                 }
                 }
-                ViewManager.Show(ViewName.STORY_LEVEL_INFO_VIEW, new object[] { levelCfgId, needitemId, needItemCount });
+                ViewManager.Show<StoryLevelInfoView>(new object[] { levelCfgId, needitemId, needItemCount });
             }
             }
             else if (!string.IsNullOrEmpty(levelCfg.storyStartID))
             else if (!string.IsNullOrEmpty(levelCfg.storyStartID))
             {
             {
@@ -50,7 +50,7 @@ namespace GFGGame
                 }
                 }
                 //, new object[] { typeof(StoryChapterView).FullName, MainStoryDataManager.currentChapterCfgId }
                 //, new object[] { typeof(StoryChapterView).FullName, MainStoryDataManager.currentChapterCfgId }
                 bool skipable = MainStoryDataManager.CheckCurrentLevelPass();
                 bool skipable = MainStoryDataManager.CheckCurrentLevelPass();
-                ViewManager.Show(ViewName.STORY_DIALOG_VIEW, new object[] { levelCfg.storyStartID, skipable, new OnCompleteStoryDialogCall(OnCompleteChapterStoryDialog) }, gobackparams, true);
+                ViewManager.Show<StoryDialogView>(new object[] { levelCfg.storyStartID, skipable, new OnCompleteStoryDialogCall(OnCompleteChapterStoryDialog) }, gobackparams, true);
             }
             }
         }
         }
 
 
@@ -75,7 +75,7 @@ namespace GFGGame
             }
             }
             else
             else
             {
             {
-                ViewManager.Show(ViewName.STORY_FIGHT_RESULT_VIEW, new StoryFightResultData
+                ViewManager.Show<StroyFightResultView>(new StoryFightResultData
                 {
                 {
                     Result = false,
                     Result = false,
                     Score = score,
                     Score = score,

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

@@ -72,9 +72,9 @@ namespace GFGGame
 
 
         private void OnClickBtnBack()
         private void OnClickBtnBack()
         {
         {
-            // this.Hide();
-            // ViewManager.Show(ViewName.MAINUI_VIEW);
-            ViewManager.GoBackFrom(ViewName.STORY_CHAPTER_LIST_VIEW);
+            //this.Hide();
+            //ViewManager.Show<MainUIView>();
+            ViewManager.Show<StoryChapterListView>();
         }
         }
 
 
         private void OnClickBtnHome()
         private void OnClickBtnHome()
@@ -98,7 +98,7 @@ namespace GFGGame
             StoryChapterCfg chapterCfg = StoryChapterCfgArray.Instance.GetCfg(chapterID);
             StoryChapterCfg chapterCfg = StoryChapterCfgArray.Instance.GetCfg(chapterID);
             if (MainStoryDataManager.CheckChapterUnlock(chapterID))
             if (MainStoryDataManager.CheckChapterUnlock(chapterID))
             {
             {
-                ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, chapterID, new object[] { ViewName.STORY_CHAPTER_LIST_VIEW, new object[] { _ui.m_listType.selectedIndex } });
+                ViewManager.Show<StoryChapterView>(chapterID, new object[] { ViewName.STORY_CHAPTER_LIST_VIEW, new object[] { _ui.m_listType.selectedIndex } });
                 this.Hide();
                 this.Hide();
             }
             }
             else
             else

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

@@ -37,17 +37,17 @@ namespace GFGGame
                     {
                     {
                         index = 1;
                         index = 1;
                     }
                     }
-                    ViewManager.Show(ViewName.STORY_CHAPTER_LIST_VIEW, new object[] { index }, null, true);
+                    ViewManager.Show<StoryChapterListView>(new object[] { index }, null, true);
                 }
                 }
                 else
                 else
                 {
                 {
-                    ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(ViewName.STORY_CHAPTER_VIEW), true);
+                    ViewManager.Show<StoryChapterView>(MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(ViewName.STORY_CHAPTER_VIEW), true);
                 }
                 }
             }
             }
             else
             else
             {
             {
                 //异常返回到关卡列表界面
                 //异常返回到关卡列表界面
-                ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(ViewName.STORY_CHAPTER_VIEW), true);
+                ViewManager.Show<StoryChapterView>(MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(ViewName.STORY_CHAPTER_VIEW), true);
             }
             }
         }
         }
 
 
@@ -55,13 +55,13 @@ namespace GFGGame
 
 
         public static void ShowCardStoryDialog(CardStoryCfg cardStoryCfg, CardData cardData)
         public static void ShowCardStoryDialog(CardStoryCfg cardStoryCfg, CardData cardData)
         {
         {
-            ViewManager.Show(ViewName.STORY_DIALOG_VIEW, new object[] { cardStoryCfg.storyStartID, true, new OnCompleteStoryDialogCall(OnCompleteCardStoryDialog), cardData }, new object[] { typeof(CardFosterView).FullName, cardData }, true);
+            ViewManager.Show<StoryDialogView>(new object[] { cardStoryCfg.storyStartID, true, new OnCompleteStoryDialogCall(OnCompleteCardStoryDialog), cardData }, new object[] { typeof(CardFosterView).FullName, cardData }, true);
         }
         }
         private static void OnCompleteCardStoryDialog(bool isSkip, object param)
         private static void OnCompleteCardStoryDialog(bool isSkip, object param)
         {
         {
             CardData cardData = param as CardData;
             CardData cardData = param as CardData;
-            ViewManager.Show(ViewName.CARD_FOSTER_VIEW, cardData, new object[] { ViewName.CARD_DETAIL_VIEW }, true);
-            ViewManager.Show(ViewName.CARD_STORY_VIEW, cardData);
+            ViewManager.Show<CardFosterView>(cardData, new object[] { ViewName.CARD_DETAIL_VIEW }, true);
+            ViewManager.Show<CardStoryView>(cardData);
         }
         }
 
 
 
 
@@ -70,12 +70,12 @@ namespace GFGGame
             InstanceZonesDataManager.currentLevelCfgId = 100001001;
             InstanceZonesDataManager.currentLevelCfgId = 100001001;
             string stroyStartID = "1";
             string stroyStartID = "1";
             // string stroyStartID = MainStoryDataManager.priorId;
             // string stroyStartID = MainStoryDataManager.priorId;
-            ViewManager.Show(ViewName.STORY_DIALOG_VIEW, new object[] { stroyStartID, false, new OnCompleteStoryDialogCall(OnCompletePriorStoryDialog) }, null, true);
+            ViewManager.Show<StoryDialogView>(new object[] { stroyStartID, false, new OnCompleteStoryDialogCall(OnCompletePriorStoryDialog) }, null, true);
         }
         }
 
 
         private static void OnCompletePriorStoryDialog(bool isSkip, object param)
         private static void OnCompletePriorStoryDialog(bool isSkip, object param)
         {
         {
-            ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(ViewName.STORY_CHAPTER_VIEW), true);
+            ViewManager.Show<StoryChapterView>(MainStoryDataManager.currentChapterCfgId, ViewManager.GetGoBackDatas(ViewName.STORY_CHAPTER_VIEW), true);
         }
         }
 
 
 
 
@@ -84,7 +84,7 @@ namespace GFGGame
 
 
             InstanceZonesDataManager.currentLevelCfgId = storyLevelCfg.id;
             InstanceZonesDataManager.currentLevelCfgId = storyLevelCfg.id;
 
 
-            ViewManager.Show(ViewName.STORY_DIALOG_VIEW, new object[] { storyLevelCfg.storyStartID, false, new OnCompleteStoryDialogCall(OnCompleteFilingStoryDialog) }, null, true);
+            ViewManager.Show<StoryDialogView>(new object[] { storyLevelCfg.storyStartID, false, new OnCompleteStoryDialogCall(OnCompleteFilingStoryDialog) }, null, true);
 
 
         }
         }
 
 

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -192,11 +192,11 @@ namespace GFGGame
         {
         {
             if (_ui.m_btnSkip.enabled)
             if (_ui.m_btnSkip.enabled)
             {
             {
-                ViewManager.Show(ViewName.STORY_LOOK_BACK_VIEW, _stroyStartID);
+                ViewManager.Show<StoryLookBackView>(_stroyStartID);
             }
             }
             else
             else
             {
             {
-                ViewManager.Show(ViewName.STORY_LOOK_BACK_VIEW, _dialogListLookBack);
+                ViewManager.Show<StoryLookBackView>(_dialogListLookBack);
             }
             }
         }
         }
 
 

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

@@ -58,7 +58,7 @@ namespace GFGGame
             Timers.inst.Add(0.9f, 1, (object param) =>
             Timers.inst.Add(0.9f, 1, (object param) =>
             {
             {
                 this.Hide();
                 this.Hide();
-                ViewManager.Show(ViewName.STORY_FIGHT_SINGLE_SCORE_VIEW);
+                ViewManager.Show<StoryFightSingleScoreView>();
             });
             });
         }
         }
 
 

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

@@ -90,7 +90,7 @@ namespace GFGGame
             InstanceZonesDataManager.GetCanFightTime(_type, _storyType, _levelID, out int times, out string title);
             InstanceZonesDataManager.GetCanFightTime(_type, _storyType, _levelID, out int times, out string title);
             if (times > 0)
             if (times > 0)
             {
             {
-                ViewManager.Show(ViewName.DRESS_UP_FIGHT_VIEW, _levelID, null, true);
+                ViewManager.Show<DressUpFightView>(_levelID, null, true);
             }
             }
             else
             else
             {
             {
@@ -130,7 +130,7 @@ namespace GFGGame
             InstanceZonesDataManager.GetCanFightTime(_type, _storyType, _levelID, out int times, out string title);
             InstanceZonesDataManager.GetCanFightTime(_type, _storyType, _levelID, out int times, out string title);
             if (times > 0)
             if (times > 0)
             {
             {
-                ViewManager.Show(ViewName.STORY_FIGHT_QUICKLY_VIEW, new object[] { 1, _needItemId, _needItemCount }, new object[] { typeof(StoryLevelInfoView).FullName, this.viewData });
+                ViewManager.Show<StoryFightQuicklyView>(new object[] { 1, _needItemId, _needItemCount }, new object[] { typeof(StoryLevelInfoView).FullName, this.viewData });
                 this.Hide();
                 this.Hide();
             }
             }
             else
             else
@@ -158,7 +158,7 @@ namespace GFGGame
         {
         {
             //只要按钮显示说明一定可以速刷多次
             //只要按钮显示说明一定可以速刷多次
             InstanceZonesDataManager.GetCanFightTime(_type, _storyType, _levelID, out int times, out string title);
             InstanceZonesDataManager.GetCanFightTime(_type, _storyType, _levelID, out int times, out string title);
-            ViewManager.Show(ViewName.STORY_FIGHT_QUICKLY_VIEW, new object[] { times, _needItemId, _needItemCount }, new object[] { typeof(StoryLevelInfoView).FullName, this.viewData });
+            ViewManager.Show<StoryFightQuicklyView>(new object[] { times, _needItemId, _needItemCount }, new object[] { typeof(StoryLevelInfoView).FullName, this.viewData });
             this.Hide();
             this.Hide();
 
 
         }
         }

+ 7 - 8
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -418,7 +418,7 @@ namespace GFGGame
             // {
             // {
             // _ui.m_btnMain.m_holder1.visible = false;
             // _ui.m_btnMain.m_holder1.visible = false;
             // this.Hide();
             // this.Hide();
-            ViewManager.Show(ViewName.STORY_CHAPTER_LIST_VIEW, null,
+            ViewManager.Show<StoryChapterListView>( null,
                 new object[] { ViewName.MAINUI_VIEW, this.viewData });
                 new object[] { ViewName.MAINUI_VIEW, this.viewData });
             isOpen = false;
             isOpen = false;
             ;
             ;
@@ -437,7 +437,7 @@ namespace GFGGame
             // {
             // {
             _ui.m_btnHuanZhuang.m_holder1.visible = false;
             _ui.m_btnHuanZhuang.m_holder1.visible = false;
             this.Hide();
             this.Hide();
-            ViewManager.Show(ViewName.DRESS_UP_VIEW, null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
+            ViewManager.Show<DressUpView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
             isOpen = false;
             isOpen = false;
 
 
 
 
@@ -455,7 +455,7 @@ namespace GFGGame
             // Timers.inst.Add(effectTime, 1, (param) =>
             // Timers.inst.Add(effectTime, 1, (param) =>
             // {
             // {
             _ui.m_btnZhaiXing.m_holder1.visible = false;
             _ui.m_btnZhaiXing.m_holder1.visible = false;
-            ViewManager.Show(ViewName.LUCKY_BOX_VIEW, null, null, false, true);
+            ViewManager.Show<LuckyBoxView>(null, null, false, true);
             isOpen = false;
             isOpen = false;
 
 
 
 
@@ -470,7 +470,7 @@ namespace GFGGame
             // Timers.inst.Add(effectTime, 1, (param) =>
             // Timers.inst.Add(effectTime, 1, (param) =>
             // {
             // {
             _ui.m_btnXiuFang.m_holder1.visible = false;
             _ui.m_btnXiuFang.m_holder1.visible = false;
-            ViewManager.Show(ViewName.XIU_FANG_VIEW, null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
+            ViewManager.Show<XiuFangView>( null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
             isOpen = false;
             isOpen = false;
 
 
 
 
@@ -533,7 +533,7 @@ namespace GFGGame
             _ui.m_btnCiPai.m_holder1.visible = false;
             _ui.m_btnCiPai.m_holder1.visible = false;
 
 
             CardDataManager.isFilter = false;
             CardDataManager.isFilter = false;
-            ViewManager.Show(ViewName.CARD_DETAIL_VIEW, null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
+            ViewManager.Show<CardDetailView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
             isOpen = false;
             isOpen = false;
 
 
             // });
             // });
@@ -617,8 +617,7 @@ namespace GFGGame
         private void OnClickBtnTuJian()
         private void OnClickBtnTuJian()
         {
         {
             LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TU_JIAN, 1);
             LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.TU_JIAN, 1);
-
-            ViewManager.Show(ViewName.FIELD_GUIDE_VIEW, null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
+            ViewManager.Show<FieldGuideView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
         }
         }
 
 
         private void OnClickBtnYouJian()
         private void OnClickBtnYouJian()
@@ -657,7 +656,7 @@ namespace GFGGame
 
 
         private void OnClickHeadBar()
         private void OnClickHeadBar()
         {
         {
-            ViewManager.Show(ViewName.ROLE_INFO_VIEW);
+            ViewManager.Show<RoleInfoView>();
         }
         }
 
 
         //列表
         //列表

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

@@ -294,7 +294,8 @@ namespace GFGGame
             else
             else
             {
             {
                 MainDataManager.Instance.ViewType = 0;
                 MainDataManager.Instance.ViewType = 0;
-                ViewManager.Show(ViewName.MAINUI_VIEW, null, null, hideOther);
+
+                ViewManager.Show<MainUIView>(null, null, hideOther);
             }
             }
         }
         }