فهرست منبع

登录logo不在临时版本显示

zhaoyang 3 سال پیش
والد
کامیت
83bd02f35a

+ 1 - 1
FGUIProject/assets/Login/LoginUI.xml

@@ -9,7 +9,7 @@
     </text>
     <component id="n3_ul4p" name="btnNotice" src="ul4p7" fileName="components/ButtonGG.xml" xy="959,420"/>
     <component id="n4_ul4p" name="btnLogout" src="ul4p8" fileName="components/ButtonZX.xml" xy="962,583"/>
-    <image id="n5_m1tb" name="n5" src="lqt1a" fileName="imagesExport/LOGO.png" pkg="mgs5yrnj" xy="39,80"/>
+    <image id="n5_m1tb" name="imgLogo" src="lqt1a" fileName="imagesExport/LOGO.png" pkg="mgs5yrnj" xy="39,80"/>
     <text id="n6_bx8o" name="txtVersion" xy="870,32" size="200,42" fontSize="30" color="#ffffff" align="right" autoSize="none" strokeColor="#333333" text="v 1.0.0">
       <relation target="" sidePair="top-top"/>
     </text>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Login/UI_LoginUI.cs

@@ -11,6 +11,7 @@ namespace UI.Login
         public GTextField m_txtBottom;
         public GButton m_btnNotice;
         public GButton m_btnLogout;
+        public GImage m_imgLogo;
         public GTextField m_txtVersion;
         public const string URL = "ui://myoktu7pl55o0";
         public const string PACKAGE_NAME = "Login";
@@ -63,6 +64,7 @@ namespace UI.Login
             m_txtBottom = (GTextField)comp.GetChild("txtBottom");
             m_btnNotice = (GButton)comp.GetChild("btnNotice");
             m_btnLogout = (GButton)comp.GetChild("btnLogout");
+            m_imgLogo = (GImage)comp.GetChild("imgLogo");
             m_txtVersion = (GTextField)comp.GetChild("txtVersion");
         }
         public void Dispose(bool disposeTarget = false)
@@ -71,6 +73,7 @@ namespace UI.Login
             m_txtBottom = null;
             m_btnNotice = null;
             m_btnLogout = null;
+            m_imgLogo = null;
             m_txtVersion = null;
             if(disposeTarget && target != null)
             {

+ 4 - 2
GameClient/Assets/Game/HotUpdate/Views/Login/LoginView.cs

@@ -13,7 +13,7 @@ namespace GFGGame
         public override void Dispose()
         {
             _ui = null;
-            if(_scenePrefab != null)
+            if (_scenePrefab != null)
             {
                 GameObject.Destroy(_scenePrefab);
                 _scenePrefab = null;
@@ -38,6 +38,8 @@ namespace GFGGame
             _ui.m_btnNotice.onClick.Add(OnClickBtnNotice);
             _ui.m_btnStart.onClick.Add(OnClickBtnStart);
             _ui.m_btnLogout.onClick.Add(OnClickBtnLogout);
+
+            _ui.m_imgLogo.visible = LauncherConfig.netType != LauncherConfig.EnumNetType.TEMP;
         }
 
         protected override void OnShown()
@@ -56,7 +58,7 @@ namespace GFGGame
             else
             {
                 _ui.m_btnLogout.visible = GameController.CheckLoginCache(false);
-                if(!_ui.m_btnLogout.visible)
+                if (!_ui.m_btnLogout.visible)
                 {
                     ViewManager.Show<LoginInputView>();
                 }

BIN
GameClient/Assets/ResIn/UI/Login/Login_fui.bytes