hch
2025-10-26 cfe2a2d5bc6fe9a85488542597d4f73dddbfeee8
Main/System/Main/FuncsBaseWin.cs
@@ -9,7 +9,7 @@
public abstract class FunctionsBaseWin : UIBase
{
    // 标签按钮组
    public Button[] tabButtons;
    public GroupButtonEx[] tabButtons;
    // 当前打开的子界面
    protected UIBase currentSubUI;
@@ -19,8 +19,6 @@
    /// </summary>
    protected override void InitComponent()
    {
        base.InitComponent();
        // 初始化UI组件事件
        InitButtonEvents();
    }
@@ -55,12 +53,16 @@
    }
    protected void SetBtnLockState(int index, bool _isLock)
    {
        tabButtons[index].isLock = _isLock;
    }
    /// <summary>
    /// 选择标签
    /// </summary>
    protected void SelectBottomTab(int index)
    protected virtual void SelectBottomTab(int index)
    {
        // 如果点击当前已选中的标签,不做处理
        if (functionOrder == index && currentSubUI != null)
@@ -70,9 +72,6 @@
        // 更新当前选中的标签索引
        functionOrder = index;
        // 更新按钮状态
        UpdateButtonsState();
        // 关闭当前打开的子界面
        CloseCurrentSubUI();
@@ -96,10 +95,7 @@
    }
    /// <summary>
    /// 更新按钮状态
    /// </summary>
    protected abstract void UpdateButtonsState();
    /// <summary>
    /// 根据标签索引打开对应的子界面