12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using Excel2Json;
- using Fort23.UTool;
- namespace Fort23.Mono
- {
- [UIBinding(prefab = "DaoYouLevelWidget" )]
- public partial class DaoYouLevelWidget : UIComponent
- {
- public DaoyouLevelupConfig _daoyouLevelupConfig;
- private void Init()
- {
- }
- public override void AddEvent()
- {
- }
- public override void DelEvent()
- {
- }
- public override void AddButtonEvent()
- {
- }
- public void CustomInit(AccountFileInfo.DaoYouData daoYouData ,int configId)
- {
- _daoyouLevelupConfig = ConfigComponent.Instance.Get<DaoyouLevelupConfig>(configId);
- Text_Level.text = configId.ToString();
- if ( daoYouData.awardLevels.Contains(configId))
- {
- Text_Tips.gameObject.SetActive(true);
- }
- else
- {
- Text_Tips.gameObject.SetActive(false);
- }
- }
- }
- }
|