Browse Source

功能开启特效

zhaoyang 3 years ago
parent
commit
a81a185ccd

+ 2 - 0
FGUIProject/assets/CommonGame/FunctionOpenUI.xml

@@ -7,6 +7,8 @@
   </displayList>
   <transition name="t0">
     <item time="0" type="Scale" target="n0_g3nf" tween="true" startValue="0,0" endValue="1,1" duration="6" ease="Bounce.Out"/>
+    <item time="0" type="Visible" target="n1_o139" value="true"/>
     <item time="25" type="Scale" target="n0_g3nf" tween="true" startValue="1,1" endValue="0,0" duration="2" ease="Linear"/>
+    <item time="25" type="Visible" target="n1_o139" value="false"/>
   </transition>
 </component>

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/CommonGame/FunctionOpenView.cs

@@ -52,8 +52,8 @@ namespace GFGGame
                 this.Hide();
                 return;
             }
-            // string resPath = ResPathUtil.GetDressUpAnimationPath("ui_xjs");
-            // SceneController.AddObjectToView(_effectObj, _wrapper, _ui.m_holder, resPath, out _effectObj, out _wrapper);
+            string resPath = ResPathUtil.GetViewEffectPath("ui_xjs", "ui_xjs");
+            SceneController.AddObjectToView(_effectObj, _wrapper, _ui.m_holder, resPath, out _effectObj, out _wrapper);
             FunctionOpenCfg cfg = FunctionOpenCfgArray.Instance.GetCfg(_funList[0]);
             _ui.m_ComFunctionOpen.m_txtName.text = cfg.name;
             _ui.m_ComFunctionOpen.m_logIcon.url = ResPathUtil.GetCommonGameResPath(cfg.res);

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

@@ -235,10 +235,10 @@ namespace GFGGame
                 isOpen = false;
 
             });
-            // List<string> list = new List<string>();
-            // list.Add("GFGGame.ClothingShopView");
-            // list.Add("GFGGame.LuckyBoxView");
-            // ViewManager.Show<FunctionOpenView>(list);
+            List<string> list = new List<string>();
+            list.Add("GFGGame.ClothingShopView");
+            list.Add("GFGGame.LuckyBoxView");
+            ViewManager.Show<FunctionOpenView>(list);
         }
 
 

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