Эх сурвалжийг харах

弹窗mask修改透明度

zhaoyang 3 жил өмнө
parent
commit
3f7e51e729

+ 2 - 0
GameClient/Assets/Game/HotUpdate/HotUpdateEntry.cs

@@ -40,6 +40,8 @@ namespace GFGGame.HotUpdate
             //开始游戏
             GameController.Start().Coroutine();
             Debug.Log("HotUpdateEntry Start completed");
+            ViewManager.SetMaskAlpha(0.6f);
+
         }
 
     }

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/DailyLogin/DailyLoginView.cs

@@ -35,6 +35,7 @@ namespace GFGGame
         protected override void OnShown()
         {
             base.OnShown();
+            ViewManager.SetMaskAlpha(0.8f);
 
             _cfgs = DailyLoginCfgArray.Instance.GetCfgs("1");
             _ui.m_list.numItems = _cfgs.Count;
@@ -45,6 +46,7 @@ namespace GFGGame
         protected override void OnHide()
         {
             base.OnHide();
+            ViewManager.SetMaskAlpha(0.6f);
         }
         private void ListItemRender(int index, GObject obj)
         {

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

@@ -23,7 +23,6 @@ namespace GFGGame
             if (levelCfg.fightID.Length > 0)
             {
                 ViewManager.Show(ViewName.STORY_LEVEL_INFO_VIEW, levelCfgId);
-                ViewManager.SetMaskAlpha(0.8f);
             }
             else if (!string.IsNullOrEmpty(levelCfg.storyStartID))
             {

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

@@ -40,6 +40,8 @@ namespace GFGGame
         protected override void OnShown()
         {
             base.OnShown();
+            ViewManager.SetMaskAlpha(0.8f);
+
             _levelID = (int)viewData;
             StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(_levelID);
             _type = levelCfg.type;
@@ -55,7 +57,7 @@ namespace GFGGame
         protected override void OnHide()
         {
             base.OnHide();
-
+            ViewManager.SetMaskAlpha(0.6f);
             EventAgent.RemoveEventListener(ConstMessage.NUMERIC_CHANGE, UpdateBtnFightTimes);
         }
 

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

@@ -242,7 +242,6 @@ namespace GFGGame
             // {
             //     _ui.m_btnDailyLogin.m_holder.visible = false;
             ViewManager.Show<DailyLoginView>(null, new object[] { ViewName.MAINUI_VIEW, this.viewData });
-            ViewManager.SetMaskAlpha(0.8f);
             //     isOpen = false;
             // });
         }

+ 2 - 2
GameClient/Assets/ThirdParty/FairyGUI/Scripts/UI/Window.cs

@@ -190,7 +190,7 @@ namespace FairyGUI
         {
             GRoot.inst.ShowWindow(this);
             GRoot.inst.modalLayer.color = Color.black;
-            GRoot.inst.modalLayer.alpha = 0.6f;
+            // GRoot.inst.modalLayer.alpha = 0.6f;
         }
 
         /// <summary>
@@ -207,7 +207,7 @@ namespace FairyGUI
         /// </summary>
         public void Hide()
         {
-            GRoot.inst.modalLayer.alpha = 0.6f;
+
             if (this.isShowing)
                 DoHideAnimation();
         }