lcy
2026-06-23 fe2805709cbd8cee561b475eda53674fbf06ef9e
Main/System/ChallengeTab/BaseChallengeTabHandler.cs
@@ -17,7 +17,8 @@
        // 初始化一次 DisplayData,之后只修改变化的字段
        displayData = new ChallengeTabButton.DisplayData
        {
            Index = GetIndex(),
            IconKey = GetIconKey(),
            NameText = GetNameText(),
            RedpointId = GetRedpointId(),
            OpenState = GetOpenState(),
            FuncId = GetFuncId(),
@@ -67,9 +68,14 @@
    }
    /// <summary>
    /// 获取Tab的索引(用于Icon和Name)
    /// 获取Tab图标Key
    /// </summary>
    protected abstract int GetIndex();
    protected abstract string GetIconKey();
    /// <summary>
    /// 获取Tab显示名称
    /// </summary>
    protected abstract string GetNameText();
    /// <summary>
    /// 获取开启方式 (0=FuncID, 1=活动)
@@ -105,4 +111,4 @@
    /// 取消订阅此Tab特有的事件
    /// </summary>
    protected abstract void UnsubscribeFromSpecificEvents();
}
}