ソースを参照

商城和雅集加特效

huangxiaoyue 1 年間 前
コミット
db0db728d6

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_LeagueUI.cs

@@ -27,6 +27,7 @@ namespace UI.League
         public UI_ButtonModle4 m_btnAnswer;
         public UI_ButtonModle5 m_btnParty;
         public UI_ButtonModle7 m_btnShop;
+        public GGraph m_holderfBgEff;
         public const string URL = "ui://tw70qm9du2u32";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "LeagueUI";
@@ -94,6 +95,7 @@ namespace UI.League
             m_btnAnswer = (UI_ButtonModle4)UI_ButtonModle4.Create(comp.GetChild("btnAnswer"));
             m_btnParty = (UI_ButtonModle5)UI_ButtonModle5.Create(comp.GetChild("btnParty"));
             m_btnShop = (UI_ButtonModle7)UI_ButtonModle7.Create(comp.GetChild("btnShop"));
+            m_holderfBgEff = (GGraph)comp.GetChild("holderfBgEff");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -127,6 +129,7 @@ namespace UI.League
             m_btnParty = null;
             m_btnShop.Dispose();
             m_btnShop = null;
+            m_holderfBgEff = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreBrocadeWeavUI.cs

@@ -18,6 +18,8 @@ namespace UI.Store
         public GButton m_btnGetAll;
         public UI_BrocadeWeavReward m_SpecialReward;
         public GButton m_btnShow;
+        public GGraph m_holderfTitleEff;
+        public GGraph m_holderfButtonEff;
         public const string URL = "ui://p9mtgheoot07tcq";
         public const string PACKAGE_NAME = "Store";
         public const string RES_NAME = "StoreBrocadeWeavUI";
@@ -76,6 +78,8 @@ namespace UI.Store
             m_btnGetAll = (GButton)comp.GetChild("btnGetAll");
             m_SpecialReward = (UI_BrocadeWeavReward)UI_BrocadeWeavReward.Create(comp.GetChild("SpecialReward"));
             m_btnShow = (GButton)comp.GetChild("btnShow");
+            m_holderfTitleEff = (GGraph)comp.GetChild("holderfTitleEff");
+            m_holderfButtonEff = (GGraph)comp.GetChild("holderfButtonEff");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -92,6 +96,8 @@ namespace UI.Store
             m_SpecialReward.Dispose();
             m_SpecialReward = null;
             m_btnShow = null;
+            m_holderfTitleEff = null;
+            m_holderfButtonEff = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Store/UI_StoreMonthUI.cs

@@ -24,6 +24,7 @@ namespace UI.Store
         public GTextField m_txtGiftBag;
         public GList m_list;
         public GButton m_btnBlackReward;
+        public GGraph m_holderfEff;
         public const string URL = "ui://p9mtgheoqik1tc0";
         public const string PACKAGE_NAME = "Store";
         public const string RES_NAME = "StoreMonthUI";
@@ -88,6 +89,7 @@ namespace UI.Store
             m_txtGiftBag = (GTextField)comp.GetChild("txtGiftBag");
             m_list = (GList)comp.GetChild("list");
             m_btnBlackReward = (GButton)comp.GetChild("btnBlackReward");
+            m_holderfEff = (GGraph)comp.GetChild("holderfEff");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -109,6 +111,7 @@ namespace UI.Store
             m_txtGiftBag = null;
             m_list = null;
             m_btnBlackReward = null;
+            m_holderfEff = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/League/LeagueView.cs

@@ -10,9 +10,13 @@ namespace GFGGame
     public class LeagueView : BaseWindow
     {
         private UI_LeagueUI _ui;
+        private EffectUI _effectUI1;
 
         public override void Dispose()
         {
+            EffectUIPool.Recycle(_effectUI1);
+            _effectUI1 = null;
+
             if (_ui != null)
             {
                 _ui.Dispose();
@@ -46,7 +50,10 @@ namespace GFGGame
             _ui.m_comHead.onClick.Add(OnShowOhterInfo);
             _ui.m_btnRule.onClick.Add(RuleController.ShowRuleView);
             _ui.m_btnRule.data = 300015;
+
+            _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holderfBgEff, "ui_Small_parts", "YaJi_Ui");
         }
+
         protected override void AddEventListener()
         {
             base.AddEventListener();

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/Store/StoreMonthView.cs

@@ -13,9 +13,13 @@ namespace GFGGame
         private ValueBarController _valueBarController;
         private List<ShopCfg> _shopCfgs;
         private int menu2;
+        private EffectUI _effectUI1;
 
         public override void Dispose()
         {
+            EffectUIPool.Recycle(_effectUI1);
+            _effectUI1 = null;
+
             if (_valueBarController != null)
             {
                 _valueBarController.Dispose();
@@ -45,6 +49,7 @@ namespace GFGGame
             _ui.m_btnBuy.target.onClick.Add(OnBtnBuyCardClick);
             _ui.m_btnGet.onClick.Add(OnBtnGetClick);
             _ui.m_btnBlackReward.onClick.Add(OnBtnBlackRewardClick);
+            AddEffect();
         }
         protected override void AddEventListener()
         {
@@ -60,6 +65,7 @@ namespace GFGGame
             _valueBarController.OnShown();
             UpdateView();
             UpdateRedDot();
+
         }
 
 
@@ -209,5 +215,10 @@ namespace GFGGame
 
 
         }
+
+        private void AddEffect()
+        {
+            _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holderfEff, "ui_Small_parts", "store_monthlycard");
+        }
     }
 }

BIN
GameClient/Assets/ResIn/UI/League/League_fui.bytes


BIN
GameClient/Assets/ResIn/UI/Store/Store_fui.bytes