瀏覽代碼

雅集界面添加特效

zhangyuqian 1 年之前
父節點
當前提交
d37509ba63

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ButtonModle2.cs

@@ -9,8 +9,10 @@ namespace UI.League
         public GButton target;
         public GGraph m_holder;
         public GGraph m_holder1;
+        public GGraph m_Effect;
         public GLoader m_icon1;
         public GLoader m_loaLockIcon;
+        public Transition m_t0;
         public const string URL = "ui://tw70qm9du2u3u";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "ButtonModle2";
@@ -60,15 +62,19 @@ namespace UI.League
         {
             m_holder = (GGraph)comp.GetChild("holder");
             m_holder1 = (GGraph)comp.GetChild("holder1");
+            m_Effect = (GGraph)comp.GetChild("Effect");
             m_icon1 = (GLoader)comp.GetChild("icon1");
             m_loaLockIcon = (GLoader)comp.GetChild("loaLockIcon");
+            m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_holder = null;
             m_holder1 = null;
+            m_Effect = null;
             m_icon1 = null;
             m_loaLockIcon = null;
+            m_t0 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ButtonModle3.cs

@@ -9,8 +9,10 @@ namespace UI.League
         public GButton target;
         public GGraph m_holder;
         public GGraph m_holder1;
+        public GGraph m_Effect;
         public GLoader m_icon1;
         public GLoader m_loaLockIcon;
+        public Transition m_t0;
         public const string URL = "ui://tw70qm9du2u3y";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "ButtonModle3";
@@ -60,15 +62,19 @@ namespace UI.League
         {
             m_holder = (GGraph)comp.GetChild("holder");
             m_holder1 = (GGraph)comp.GetChild("holder1");
+            m_Effect = (GGraph)comp.GetChild("Effect");
             m_icon1 = (GLoader)comp.GetChild("icon1");
             m_loaLockIcon = (GLoader)comp.GetChild("loaLockIcon");
+            m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_holder = null;
             m_holder1 = null;
+            m_Effect = null;
             m_icon1 = null;
             m_loaLockIcon = null;
+            m_t0 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ButtonModle4.cs

@@ -9,9 +9,11 @@ namespace UI.League
         public GButton target;
         public GGraph m_holder;
         public GGraph m_holder1;
+        public GGraph m_Effect;
         public GLoader m_icon1;
         public GLoader m_loaLockIcon;
         public GTextField m_txtTime;
+        public Transition m_t0;
         public const string URL = "ui://tw70qm9du2u310";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "ButtonModle4";
@@ -61,17 +63,21 @@ namespace UI.League
         {
             m_holder = (GGraph)comp.GetChild("holder");
             m_holder1 = (GGraph)comp.GetChild("holder1");
+            m_Effect = (GGraph)comp.GetChild("Effect");
             m_icon1 = (GLoader)comp.GetChild("icon1");
             m_loaLockIcon = (GLoader)comp.GetChild("loaLockIcon");
             m_txtTime = (GTextField)comp.GetChild("txtTime");
+            m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_holder = null;
             m_holder1 = null;
+            m_Effect = null;
             m_icon1 = null;
             m_loaLockIcon = null;
             m_txtTime = null;
+            m_t0 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ButtonModle5.cs

@@ -10,9 +10,11 @@ namespace UI.League
         public Controller m_showText;
         public GGraph m_holder;
         public GGraph m_holder1;
+        public GGraph m_Effect;
         public GLoader m_icon1;
         public GLoader m_loaLockIcon;
         public GTextField m_txtTime;
+        public Transition m_t0;
         public const string URL = "ui://tw70qm9du2u312";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "ButtonModle5";
@@ -63,18 +65,22 @@ namespace UI.League
             m_showText = comp.GetController("showText");
             m_holder = (GGraph)comp.GetChild("holder");
             m_holder1 = (GGraph)comp.GetChild("holder1");
+            m_Effect = (GGraph)comp.GetChild("Effect");
             m_icon1 = (GLoader)comp.GetChild("icon1");
             m_loaLockIcon = (GLoader)comp.GetChild("loaLockIcon");
             m_txtTime = (GTextField)comp.GetChild("txtTime");
+            m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_showText = null;
             m_holder = null;
             m_holder1 = null;
+            m_Effect = null;
             m_icon1 = null;
             m_loaLockIcon = null;
             m_txtTime = null;
+            m_t0 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ButtonModle6.cs

@@ -9,8 +9,10 @@ namespace UI.League
         public GButton target;
         public GGraph m_holder;
         public GGraph m_holder1;
+        public GGraph m_effect;
         public GLoader m_icon1;
         public GLoader m_loaLockIcon;
+        public Transition m_t0;
         public const string URL = "ui://tw70qm9du2u314";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "ButtonModle6";
@@ -60,15 +62,19 @@ namespace UI.League
         {
             m_holder = (GGraph)comp.GetChild("holder");
             m_holder1 = (GGraph)comp.GetChild("holder1");
+            m_effect = (GGraph)comp.GetChild("effect");
             m_icon1 = (GLoader)comp.GetChild("icon1");
             m_loaLockIcon = (GLoader)comp.GetChild("loaLockIcon");
+            m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_holder = null;
             m_holder1 = null;
+            m_effect = null;
             m_icon1 = null;
             m_loaLockIcon = null;
+            m_t0 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 6 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/League/UI_ButtonModle7.cs

@@ -9,8 +9,10 @@ namespace UI.League
         public GButton target;
         public GGraph m_holder;
         public GGraph m_holder1;
+        public GGraph m_Effect;
         public GLoader m_icon1;
         public GLoader m_loaLockIcon;
+        public Transition m_t0;
         public const string URL = "ui://tw70qm9du2u316";
         public const string PACKAGE_NAME = "League";
         public const string RES_NAME = "ButtonModle7";
@@ -60,15 +62,19 @@ namespace UI.League
         {
             m_holder = (GGraph)comp.GetChild("holder");
             m_holder1 = (GGraph)comp.GetChild("holder1");
+            m_Effect = (GGraph)comp.GetChild("Effect");
             m_icon1 = (GLoader)comp.GetChild("icon1");
             m_loaLockIcon = (GLoader)comp.GetChild("loaLockIcon");
+            m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_holder = null;
             m_holder1 = null;
+            m_Effect = null;
             m_icon1 = null;
             m_loaLockIcon = null;
+            m_t0 = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 47 - 2
GameClient/Assets/Game/HotUpdate/Views/League/LeagueView.cs

@@ -11,12 +11,28 @@ namespace GFGGame
     {
         private UI_LeagueUI _ui;
         private EffectUI _effectUI1;
-
+        private EffectUI _effectUI2;
+        private EffectUI _effectUI3;
+        private EffectUI _effectUI4;
+        private EffectUI _effectUI5;
+        private EffectUI _effectUI6;
+        private EffectUI _effectUI7;
         public override void Dispose()
         {
             EffectUIPool.Recycle(_effectUI1);
             _effectUI1 = null;
-
+            EffectUIPool.Recycle(_effectUI2);
+            _effectUI2 = null;
+            EffectUIPool.Recycle(_effectUI3);
+            _effectUI3 = null;
+            EffectUIPool.Recycle(_effectUI4);
+            _effectUI4 = null;
+            EffectUIPool.Recycle(_effectUI5);
+            _effectUI5 = null;
+            EffectUIPool.Recycle(_effectUI6);
+            _effectUI6 = null;
+            EffectUIPool.Recycle(_effectUI7);
+            _effectUI7 = null;
             if (_ui != null)
             {
                 _ui.Dispose();
@@ -52,6 +68,12 @@ namespace GFGGame
             _ui.m_btnRule.data = 300015;
 
             _effectUI1 = EffectUIPool.CreateEffectUI(_ui.m_holderfBgEff, "ui_Small_parts", "YaJi_Ui");
+            _effectUI2 = EffectUIPool.CreateEffectUI(_ui.m_btnPray.m_effect, "ui_Small_parts", "YaJi_TuBiao");
+            _effectUI3 = EffectUIPool.CreateEffectUI(_ui.m_btnSkill.m_Effect, "ui_Small_parts", "YaJi_TuBiao");
+            _effectUI4 = EffectUIPool.CreateEffectUI(_ui.m_btnAnswer.m_Effect, "ui_Small_parts", "YaJi_TuBiao");
+            _effectUI5 = EffectUIPool.CreateEffectUI(_ui.m_btnParty.m_Effect, "ui_Small_parts", "YaJi_TuBiao");
+            _effectUI6 = EffectUIPool.CreateEffectUI(_ui.m_btnGift.m_Effect, "ui_Small_parts", "YaJi_TuBiao");
+            _effectUI7 = EffectUIPool.CreateEffectUI(_ui.m_btnShop.m_Effect, "ui_Small_parts", "YaJi_TuBiao");
         }
 
         protected override void AddEventListener()
@@ -149,6 +171,7 @@ namespace GFGGame
             UpdateValue();
             UpdateButton();
             UpdateRedDot();
+            UpdateEffect();
         }
         private void UpdateInfo()
         {
@@ -227,6 +250,28 @@ namespace GFGGame
             RedDotController.Instance.SetComRedDot(_ui.m_btnParty.target, RedDotDataManager.Instance.GetLeagueTeaPartyRed(), "", -440, 60);
         }
 
+        private void UpdateEffect()
+        {
+            _ui.m_btnPray.m_effect.scale = new Vector2(0.8f, 0.8f);
+            _ui.m_btnGift.m_Effect.scale = new Vector2(0.8f, 0.8f);
+            _ui.m_btnParty.m_Effect.scale = new Vector2(0.8f, 0.8f);
+            _ui.m_btnAnswer.m_Effect.scale = new Vector2(0.8f, 0.8f);
+            _ui.m_btnSkill.m_Effect.scale = new Vector2(0.8f, 0.8f);
+            _ui.m_btnShop.m_Effect.scale = new Vector2(0.8f, 0.8f);
+            _ui.m_btnPray.m_t0.Play();
+            _ui.m_btnGift.m_t0.Play();
+            _ui.m_btnParty.m_t0.Play();
+            _ui.m_btnAnswer.m_t0.Play();
+            _ui.m_btnSkill.m_t0.Play();
+            _ui.m_btnShop.m_t0.Play();
+            _ui.m_btnPray.m_icon1.visible = false;
+            _ui.m_btnGift.m_icon1.visible = false;
+            _ui.m_btnParty.m_icon1.visible = false;
+            _ui.m_btnAnswer.m_icon1.visible = false;
+            _ui.m_btnSkill.m_icon1.visible = false;
+            _ui.m_btnShop.m_icon1.visible = false;
+        }
+
         private async void GetTeapartyMatchingInfos()
         {
             bool result = await LeagueSproxy.GetTeapartyMatchingInfos(RoleDataManager.roleId);

二進制
GameClient/Assets/ResIn/UI/League/League_fui.bytes