| | |
| | | |
| | | public struct DisplayData |
| | | { |
| | | public int Index; |
| | | public string IconKey; |
| | | public string NameText; |
| | | public int RedpointId; |
| | | public int OpenState;//0 FuncID 1 活动 |
| | | public int FuncId; |
| | |
| | | txtLockInfo.SetActive(!isOpen); |
| | | |
| | | // 设置图标和名称 |
| | | string spriteAndLangKey = StringUtility.Concat("ChallengeTab", data.Index.ToString()); |
| | | imgIcon.SetSprite(spriteAndLangKey); |
| | | txtName.text = Language.Get(spriteAndLangKey); |
| | | imgIcon.SetSprite(data.IconKey); |
| | | txtName.text = data.NameText; |
| | | |
| | | // 设置TIPS文本 |
| | | txtCount.text = data.CountInfo; |
| | |
| | | // 存储点击回调 |
| | | this._onClickAction = data.OnClickAction; |
| | | } |
| | | } |
| | | } |