From eb27e5fd31f73b998a4bbd85511a31e40b8c61b7 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 21 十一月 2025 17:03:47 +0800
Subject: [PATCH] 0312 关闭游戏内日志

---
 Main/Component/UI/Common/GroupButtonEx.cs |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/Main/Component/UI/Common/GroupButtonEx.cs b/Main/Component/UI/Common/GroupButtonEx.cs
index f56f99a..5f233f4 100644
--- a/Main/Component/UI/Common/GroupButtonEx.cs
+++ b/Main/Component/UI/Common/GroupButtonEx.cs
@@ -10,6 +10,7 @@
 
 //鍏宠仈鎸夐挳锛屽叾涓竴涓寒璧凤紝鍏朵粬鎸変笅锛屾枃瀛楅鑹插搴斿彉鏇�
 //鏁版嵁鏇存柊閫氳繃SelectBtn鏇存柊 鎴栬�� GroupButtonExManager.SelectButton
+//浣跨敤姝ラ 1.搴忓垪鍖朑roupButtonEx绫诲瀷鐨勬寜閽紝2锛氬垵濮嬮渶璁剧疆SelectBtn()閫変腑鍝釜鎸夐挳锛屽叾浠栧拰鎸夐挳浣跨敤鏂规硶涓�鑷�
 public class GroupButtonEx : ButtonEx
 {
     [SerializeField] GroupButtonExManager m_Manager; // 鎸夐挳缁勭鐞嗗櫒寮曠敤
@@ -77,6 +78,9 @@
         set { m_SelectEffect = value; }
     }
 
+    [SerializeField] public RedpointBehaviour redpoint;   //澶栭儴鑷繁鐢�
+
+    public bool isLock = false;
 
     protected override void Awake()
     {
@@ -99,6 +103,8 @@
 
     public override void OnPointerClick(PointerEventData eventData)
     {
+        if (isLock)
+            return;
         base.OnPointerClick(eventData);
         SelectBtn();
     }
@@ -120,12 +126,19 @@
     // 鏇存柊鎸夐挳鐘舵��
     public void UpdateButtonState()
     {
-        // 鏇存柊鍥炬爣鏄剧ず
-        if (m_SelectIcon != null)
-            m_SelectIcon.SetActive(m_State == TitleBtnState.Click);
+        if (m_SelectIcon != null && m_UnSelectIcon != null && m_SelectIcon.sprite == m_UnSelectIcon.sprite)
+        {
+            m_SelectIcon.SetActive(true);
+        }
+        else
+        {
+            // 鏇存柊鍥炬爣鏄剧ず
+            if (m_SelectIcon != null)
+                m_SelectIcon.SetActive(m_State == TitleBtnState.Click);
 
-        if (m_UnSelectIcon != null)
-            m_UnSelectIcon.SetActive(m_State != TitleBtnState.Click);
+            if (m_UnSelectIcon != null)
+                m_UnSelectIcon.SetActive(m_State != TitleBtnState.Click);
+        }
 
         // 鏇存柊鏂囧瓧棰滆壊
         if (m_Title != null && m_Manager != null)

--
Gitblit v1.8.0