From 27fcdab4830ef0791105be6529a1dfac36b85982 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 24 六月 2025 21:52:31 +0800
Subject: [PATCH] 0312 适配注释供后续根据实际情况用

---
 Main/System/Launch/LaunchWin.cs |   39 +++++++++++++++++++++------------------
 1 files changed, 21 insertions(+), 18 deletions(-)

diff --git a/Main/System/Launch/LaunchWin.cs b/Main/System/Launch/LaunchWin.cs
index ab70f09..d677c70 100644
--- a/Main/System/Launch/LaunchWin.cs
+++ b/Main/System/Launch/LaunchWin.cs
@@ -13,7 +13,7 @@
 
     public class LaunchWin : UIBase
     {
-        [SerializeField] UIAlphaTween m_AlphaTween;
+        // [SerializeField] UIAlphaTween m_AlphaTween;
         [SerializeField] Image m_BackGround;
         [SerializeField] RectTransform m_AndroidProgressContainer;
         [SerializeField] RectTransform m_NetworkContainer;
@@ -24,7 +24,6 @@
         [SerializeField] Text m_IosProgressTip;
         [SerializeField] Text m_BuildTime;
         [SerializeField] Text m_Version;
-        [SerializeField] Button m_UserHelp;
 
         bool assetBuildTimeShowed = false;
 
@@ -42,6 +41,7 @@
         float TempCheck = 0;
         protected override void InitComponent()
         {
+            base.InitComponent();
             m_BackGround.preserveAspect = true;
             if (Application.isEditor)
             {
@@ -63,15 +63,11 @@
             }
 
 
-            // AddListener
-            if (m_UserHelp)
-            {
-                m_UserHelp.SetListener(OpenUserHelp);
-            }
         }
 
         protected override void OnPreOpen()
         {
+            base.OnPreOpen();
             backGroundTimer = 0f;
             backGroundIndex = 0;
             if (m_TotalProgressSlider != null)
@@ -79,17 +75,10 @@
                 m_TotalProgressSlider.ResetValue(0f);
             }
 
-            m_AlphaTween.SetStartState();
+            // m_AlphaTween.SetStartState();
 
             m_BuildTime.text = VersionConfig.Get().debugVersion ? VersionConfig.Get().buildTime : "";
 
-            if (m_UserHelp)
-            {
-                var appId = VersionConfig.Get().appId;
-                var branch = VersionConfig.Get().branch;
-                //m_UserHelp.SetActive(ContactConfig.GetConfig(appId, branch) != null);
-                m_UserHelp.SetActive(false);
-            }
             if (m_NetworkContainer != null)
             {
                 m_NetworkContainer.SetActive(false);
@@ -117,7 +106,8 @@
             {
                 m_AndroidProgressContainer.SetActive(true);
                 m_IosProgressContainer.SetActive(false);
-                m_Version.text = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex, Language.Id);
+                //鎵撳寘鐗堟湰 + 鍔熻兘鐗堟湰 + 璇█ID
+                m_Version.text = LoginManager.Instance.GetVersionStr();
             }
 
             if (m_StageDescription != null)
@@ -135,20 +125,23 @@
 
         protected override void OnOpen()
         {
+            base.OnOpen();
         }
 
         protected override void OnPreClose()
         {
+            base.OnPreClose();
         }
 
         protected override void OnClose()
         {
-
+            base.OnClose();
         }
 
         public void FadeOut()
         {
-            m_AlphaTween.Play();
+            // m_AlphaTween.Play();
+            CloseWindow();
         }
 
         string GetLaunchStageDescription(LaunchStage _stage, int step)
@@ -285,6 +278,16 @@
             }
         }
 
+        public LaunchWinData GetData()
+        {
+            return new LaunchWinData(){
+                backGroundTimer = backGroundTimer,
+                backGroundIndex = backGroundIndex,
+                sprite = m_BackGround.overrideSprite,
+                sprites = backGrounds,
+            };
+        }
+
     }
 
 

--
Gitblit v1.8.0