Browse Source

连接中特效

zhaoyang 3 years ago
parent
commit
418e6869e9

+ 2 - 3
FGUIProject/assets/Common/ModalStatusUI.xml

@@ -7,8 +7,7 @@
     <graph id="n1_d4iw" name="n1" xy="390,20" size="300,40" alpha="0.5" type="rect" lineSize="0" fillColor="#ff000000">
       <relation target="" sidePair="center-center,middle-middle"/>
     </graph>
-    <text id="n2_d4iw" name="txtMessage" xy="290,19" size="500,42" fontSize="30" color="#ffffff" align="center" autoSize="none" autoClearText="true" text="这是一个提示">
-      <relation target="n1_d4iw" sidePair="center-center,middle-middle%"/>
-    </text>
+    <text id="n2_d4iw" name="txtMessage" xy="290,976" size="500,42" fontSize="30" color="#ad987d" align="center" autoSize="none" autoClearText="true" text="这是一个提示"/>
+    <graph id="n4_t6aj" name="holder" xy="539,959" size="1,1"/>
   </displayList>
 </component>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Common/UI_ModalStatusUI.cs

@@ -8,6 +8,7 @@ namespace UI.Common
     {
         public GComponent target;
         public GTextField m_txtMessage;
+        public GGraph m_holder;
         public const string URL = "ui://mk0fwx0xd4iw4m";
         public const string PACKAGE_NAME = "Common";
         public const string RES_NAME = "ModalStatusUI";
@@ -56,10 +57,12 @@ namespace UI.Common
         private void Init(GComponent comp)
         {
             m_txtMessage = (GTextField)comp.GetChild("txtMessage");
+            m_holder = (GGraph)comp.GetChild("holder");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_txtMessage = null;
+            m_holder = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 7 - 1
GameClient/Assets/Game/HotUpdate/Views/Common/ModalStatusView.cs

@@ -1,10 +1,13 @@
+using FairyGUI;
 using UI.Common;
+using UnityEngine;
 
 namespace GFGGame
 {
     public class ModalStatusView : BaseView
     {
         private UI_ModalStatusUI _ui;
+        private GameObject _gameObject0;
 
         protected override void OnInit()
         {
@@ -19,11 +22,14 @@ namespace GFGGame
         {
             base.OnShown();
             string message = "请稍后...";
-            if(viewData != null)
+            if (viewData != null)
             {
                 message = (string)viewData;
             }
             _ui.m_txtMessage.text = message;
+            string resPath0 = ResPathUtil.GetViewEffectPath("ui_cxlj", "ui_cxlj_gq");
+            SceneController.AddObjectToView(null, null, _ui.m_holder, resPath0, out _gameObject0, out GoWrapper _wrapper0);
+
         }
 
         protected override void OnHide()

BIN
GameClient/Assets/ResIn/UI/Common/Common_fui.bytes