From 49071b8ac6f1169c63135365cfe9339aa5512d78 Mon Sep 17 00:00:00 2001 From: zxl Date: Fri, 1 Nov 2024 15:06:32 +0800 Subject: [PATCH] =?UTF-8?q?add=20=EF=BC=9A=E6=B7=BB=E5=8A=A0=E4=B8=80?= =?UTF-8?q?=E9=83=A8=E5=88=86UI=E9=A2=84=E5=88=B6=E4=BD=93=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Hotfix/UI/Logic/AnalysisReportUI.cs | 43 +++++++++++++++++++ .../Hotfix/UI/Logic/AnalysisReportUI.cs.meta | 3 ++ .../GameScript/Hotfix/UI/Logic/IntroduceUI.cs | 40 +++++++++++++++++ .../Hotfix/UI/Logic/IntroduceUI.cs.meta | 3 ++ .../GameScript/Hotfix/UI/Logic/MinTipsUI.cs | 39 +++++++++++++++++ .../Hotfix/UI/Logic/MinTipsUI.cs.meta | 3 ++ .../DemoGame/GameScript/Hotfix/UI/UIType.cs | 3 ++ 7 files changed, 134 insertions(+) create mode 100644 Assets/DemoGame/GameScript/Hotfix/UI/Logic/AnalysisReportUI.cs create mode 100644 Assets/DemoGame/GameScript/Hotfix/UI/Logic/AnalysisReportUI.cs.meta create mode 100644 Assets/DemoGame/GameScript/Hotfix/UI/Logic/IntroduceUI.cs create mode 100644 Assets/DemoGame/GameScript/Hotfix/UI/Logic/IntroduceUI.cs.meta create mode 100644 Assets/DemoGame/GameScript/Hotfix/UI/Logic/MinTipsUI.cs create mode 100644 Assets/DemoGame/GameScript/Hotfix/UI/Logic/MinTipsUI.cs.meta diff --git a/Assets/DemoGame/GameScript/Hotfix/UI/Logic/AnalysisReportUI.cs b/Assets/DemoGame/GameScript/Hotfix/UI/Logic/AnalysisReportUI.cs new file mode 100644 index 0000000..92b2f79 --- /dev/null +++ b/Assets/DemoGame/GameScript/Hotfix/UI/Logic/AnalysisReportUI.cs @@ -0,0 +1,43 @@ +using System; +using TMPro; +using UnityEngine; +using UnityEngine.UI; + +namespace ZC +{ + [UIType(UIType.AnalysisReportUI)] + public class AnalysisReportUI : UIBase + { + private TMP_Text txt_Title; + private TMP_Text txt_Content; + private Image img_Pic; + private Button btn_Close; + private Action closeAction; + + public override void Init() + { + base.Init(); + this.txt_Title = self.transform.FindChildDeep("txt_Title"); + this.txt_Content = self.transform.FindChildDeep("txt_Content"); + this.img_Pic = self.transform.FindChildDeep("img_Pic"); + this.btn_Close = self.transform.FindChildDeep