Browse Source

恭喜获得界面适配修改,摘星界面增加特效,星星放大1.2.倍

huangxiaoyue 2 years ago
parent
commit
3174c542bf

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/LuckyBox/UI_LuckyBoxStarUI.cs

@@ -11,6 +11,7 @@ namespace UI.LuckyBox
         public Controller m_ctrlRewardsType;
         public GLoader m_bg;
         public GGraph m_holder_star;
+        public GGraph m_holder_star_sky;
         public GGraph m_holder_bg;
         public GGraph m_holder_cloud;
         public GButton m_btnBack;
@@ -102,6 +103,7 @@ namespace UI.LuckyBox
             m_ctrlRewardsType = comp.GetController("ctrlRewardsType");
             m_bg = (GLoader)comp.GetChild("bg");
             m_holder_star = (GGraph)comp.GetChild("holder_star");
+            m_holder_star_sky = (GGraph)comp.GetChild("holder_star_sky");
             m_holder_bg = (GGraph)comp.GetChild("holder_bg");
             m_holder_cloud = (GGraph)comp.GetChild("holder_cloud");
             m_btnBack = (GButton)comp.GetChild("btnBack");
@@ -149,6 +151,7 @@ namespace UI.LuckyBox
             m_ctrlRewardsType = null;
             m_bg = null;
             m_holder_star = null;
+            m_holder_star_sky = null;
             m_holder_bg = null;
             m_holder_cloud = null;
             m_btnBack = null;

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

@@ -26,6 +26,7 @@ namespace GFGGame
         private EffectUI _effectUI1;
         private EffectUI _effectUI2;
         private EffectUI _effectUI3;
+        private EffectUI _effectUI4;
         private GObject curComStar;//当前选中的星星
         private Vector2 lastPos;//鼠标的上一个位置,每颗星星初始时默认为Vector2.right;
 
@@ -44,6 +45,8 @@ namespace GFGGame
             _effectUI2 = null;
             EffectUIPool.Recycle(_effectUI3);
             _effectUI3 = null;
+            EffectUIPool.Recycle(_effectUI4);
+            _effectUI4 = null;
             if (_ui != null)
             {
                 _ui.Dispose();
@@ -103,6 +106,7 @@ namespace GFGGame
             _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holder_star, "ui_LuckyBox", "bg_liuxing");
             _effectUI2 = EffectUIPool.CreateEffectUI(_ui.m_holder_bg, "ui_LuckyBox", "bg_thing");
             _effectUI3 = EffectUIPool.CreateEffectUI(_ui.m_holder_cloud, "ui_LuckyBox", "bg_cloud");
+            _effectUI4 = EffectUIPool.CreateEffectUI(_ui.m_holder_star_sky, "ui_LuckyBox", "Bg_Sky_lizi");
         }
         protected override void OnShown()
         {
@@ -178,7 +182,7 @@ namespace GFGGame
             else
             {
                 gcom = UIPackage.CreateObject("LuckyBox", "ComHolder").asCom;
-                EffectUI _effectUI = EffectUIPool.CreateEffectUI(gcom.GetChild("holder").asGraph, "ui_LuckyBox", name);
+                EffectUI _effectUI = EffectUIPool.CreateEffectUI(gcom.GetChild("holder").asGraph, "ui_LuckyBox", name,120);
                 dicEffect.Add(_effectUI);
             }
             return gcom;
@@ -219,7 +223,7 @@ namespace GFGGame
                     comStar.target.GetChildAt(2).asCom.visible = true;
                     // comStar.target.GetChildAt(1).asCom.visible = false;
                     string resPath = _isLuckyBox ? "LINE_Bule" : "LINE";
-                    EffectUI _effectUI = EffectUIPool.CreateEffectUI(comStar.m_comLine.m_holder, "ui_LuckyBox", resPath);
+                    EffectUI _effectUI = EffectUIPool.CreateEffectUI(comStar.m_comLine.m_holder, "ui_LuckyBox", resPath,120);
                     effObj.Add(_effectUI);
                     UI_ComStar.ProxyEnd();
 

BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes


BIN
GameClient/Assets/ResIn/UI/LuckyBox/LuckyBox_fui.bytes