| | |
| | | // 初始化一次 DisplayData,之后只修改变化的字段 |
| | | displayData = new ChallengeTabButton.DisplayData |
| | | { |
| | | Index = GetIndex(), |
| | | IconKey = GetIconKey(), |
| | | NameText = GetNameText(), |
| | | RedpointId = GetRedpointId(), |
| | | OpenState = GetOpenState(), |
| | | FuncId = GetFuncId(), |
| | |
| | | } |
| | | |
| | | /// <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=活动) |
| | |
| | | /// 取消订阅此Tab特有的事件 |
| | | /// </summary> |
| | | protected abstract void UnsubscribeFromSpecificEvents(); |
| | | } |
| | | } |