| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | 
							- using System.Linq;
 
- using Core.Language;
 
- using Excel2Json;
 
- using Fort23.UTool;
 
- namespace Fort23.Mono
 
- {
 
-     [UIBinding(prefab = "SentimentWidget")]
 
-     public partial class SentimentWidget : ItemWidgetBasic
 
-     {
 
-         public AccountFileInfo.SentimentData sentimentData;
 
-         private void Init()
 
-         {
 
-         }
 
-         public override void AddEvent()
 
-         {
 
-         }
 
-         public override void DelEvent()
 
-         {
 
-         }
 
-         public override void AddButtonEvent()
 
-         {
 
-             base.AddButtonEvent();
 
-         }
 
-         public void CustomInit(int id)
 
-         {
 
-             sentimentData = AccountFileInfo.Instance.playerData.SentimentDatas.FirstOrDefault(sd => sd.id == id);
 
-             SentimentConfig sentimentConfig = ConfigComponent.Instance.Get<SentimentConfig>(id);
 
-             Text_Name.text = LanguageManager.Instance.Text(sentimentConfig.name);
 
-             if (sentimentData == null)
 
-             {
 
-                 transform.Gray();
 
-             }
 
-             else
 
-             {
 
-                 transform.RecoverColor();
 
-             }
 
-         }
 
-     }
 
- }
 
 
  |