| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | 
							- using System.Collections.Generic;
 
- using Fort23.Core;
 
- namespace Fort23.Mono
 
- {
 
- 	[UIBinding(prefab = "SentimentPanel"  )]
 
- 	public partial class SentimentPanel : UIPanel
 
- 	{
 
- 		private void Init()
 
- 		{
 
- 			isAddStack = true;
 
- 			// IsShowAppBar = false;
 
- 		}
 
- 		public async override CTask GetFocus()
 
- 		{
 
- 			TitlePanel.OpenPanel(new List<int>(){1001,1002});
 
- 			await AppBarPanel.OpenPanel(this);
 
- 			base.GetFocus();
 
- 		}
 
- 		protected override void AddEvent()
 
- 		{
 
- 		}
 
- 		protected override void DelEvent()
 
- 		{
 
- 		}
 
- 		public override void AddButtonEvent()
 
- 		{
 
- 			Btn_Close.onClick.AddListener(() =>
 
- 			{
 
- 				UIManager.Instance.HideUIUIPanel(this);
 
- 			});
 
- 		}
 
- 		public async override CTask<bool> AsyncInit(object[] uiData)
 
- 		{
 
- 			for (var i = 0; i < SentimentWidgetGams.Count; i++)
 
- 			{
 
- 				SentimentWidget sentimentWidget =  await UIManager.Instance.CreateGComponentForObject<SentimentWidget>(SentimentWidgetGams[i], null);
 
- 				sentimentWidget.CustomInit(i+1);
 
- 				sentimentWidget.OnClick = OnClick;
 
- 			}
 
- 			return await base.AsyncInit(uiData);
 
- 		}
 
- 		private void OnClick(ItemWidgetBasic obj)
 
- 		{
 
- 			SentimentWidget sentimentWidget = obj as SentimentWidget;
 
- 			if(sentimentWidget.sentimentData == null)
 
- 				return;
 
- 			SentimentInfoPanel.OpenPanel(sentimentWidget.sentimentData);
 
- 		}
 
- 		public async static CTask OpenPanel()
 
- 		{
 
- 			await UIManager.Instance.LoadAndOpenPanel<SentimentPanel>(null);
 
- 		}
 
- 	}
 
- }
 
 
  |