zhangyuqian před 1 rokem
rodič
revize
2c1bf9d9dc

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Arena/UI_ArenaLoadingUI.cs

@@ -11,6 +11,7 @@ namespace UI.Arena
         public GProgressBar m_progressBar1;
         public GGraph m_holder;
         public GImage m_imgAni;
+        public GTextField m_txtDescLeft;
         public const string URL = "ui://4lc5fhlbrv0954";
         public const string PACKAGE_NAME = "Arena";
         public const string RES_NAME = "ArenaLoadingUI";
@@ -62,6 +63,7 @@ namespace UI.Arena
             m_progressBar1 = (GProgressBar)comp.GetChild("progressBar1");
             m_holder = (GGraph)comp.GetChild("holder");
             m_imgAni = (GImage)comp.GetChild("imgAni");
+            m_txtDescLeft = (GTextField)comp.GetChild("txtDescLeft");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -69,6 +71,7 @@ namespace UI.Arena
             m_progressBar1 = null;
             m_holder = null;
             m_imgAni = null;
+            m_txtDescLeft = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Loading/UI_LoadingView.cs

@@ -11,6 +11,7 @@ namespace UI.Loading
         public GProgressBar m_progressBar1;
         public GGraph m_holder;
         public GImage m_imgAni;
+        public GTextField m_txtDescTop;
         public GTextField m_txtDescLeft;
         public Transition m_t0;
         public const string URL = "ui://dw2lsl19hibu2";
@@ -64,6 +65,7 @@ namespace UI.Loading
             m_progressBar1 = (GProgressBar)comp.GetChild("progressBar1");
             m_holder = (GGraph)comp.GetChild("holder");
             m_imgAni = (GImage)comp.GetChild("imgAni");
+            m_txtDescTop = (GTextField)comp.GetChild("txtDescTop");
             m_txtDescLeft = (GTextField)comp.GetChild("txtDescLeft");
             m_t0 = comp.GetTransition("t0");
         }
@@ -73,6 +75,7 @@ namespace UI.Loading
             m_progressBar1 = null;
             m_holder = null;
             m_imgAni = null;
+            m_txtDescTop = null;
             m_txtDescLeft = null;
             m_t0 = null;
             if(disposeTarget && target != null)

+ 5 - 0
GameClient/Assets/Game/HotUpdate/Views/Arena/ArenaLoadingView.cs

@@ -1,6 +1,7 @@
 using FairyGUI;
 using UI.Arena;
 using UnityEngine;
+using System;
 
 namespace GFGGame
 {
@@ -46,6 +47,10 @@ namespace GFGGame
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath(res);
 
             _ui.m_progressBar1.TweenValue(100, 1).OnComplete(Hide);
+
+            TipsDescCfg[] tipsArray = TipsDescCfgArray.Instance.dataArray;
+            System.Random rand = new System.Random();
+            _ui.m_txtDescLeft.text = tipsArray[rand.Next(0, tipsArray.Length)].text;
         }
 
         protected override void OnHide()

+ 3 - 0
GameClient/Assets/Game/HotUpdate/Views/Loading/LoadingView.cs

@@ -70,6 +70,9 @@ namespace GFGGame
             int index = Random.Range(0, resNames.Length);
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath(resNames[index]);
 
+            TipsDescCfg[] tipsArray = TipsDescCfgArray.Instance.dataArray;
+            System.Random rand = new System.Random();
+            _ui.m_txtDescTop.text = tipsArray[rand.Next(0, tipsArray.Length)].text;
         }
 
         protected override void OnHide()

binární
GameClient/Assets/ResIn/UI/Arena/Arena_atlas0!a.png


binární
GameClient/Assets/ResIn/UI/Arena/Arena_atlas0.png


binární
GameClient/Assets/ResIn/UI/Arena/Arena_atlas0_1!a.png


binární
GameClient/Assets/ResIn/UI/Arena/Arena_atlas0_1.png


binární
GameClient/Assets/ResIn/UI/Arena/Arena_atlas0_2!a.png


binární
GameClient/Assets/ResIn/UI/Arena/Arena_atlas0_2.png


binární
GameClient/Assets/ResIn/UI/Arena/Arena_fui.bytes


binární
GameClient/Assets/ResIn/UI/Loading/Loading_atlas0!a.png


binární
GameClient/Assets/ResIn/UI/Loading/Loading_atlas0.png


binární
GameClient/Assets/ResIn/UI/Loading/Loading_fui.bytes