| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 | 
							- using Core.Language;
 
- using Fort23.Core;
 
- using GameLogic.Combat.CombatTool;
 
- namespace Fort23.Mono
 
- {
 
-     [UIBinding(prefab = "TipsPanle")]
 
-     public partial class TipsPanle : UIPanel
 
-     {
 
-         private CTask<bool> _cTask;
 
-         private void Init()
 
-         {
 
-         }
 
-         protected override void AddEvent()
 
-         {
 
-         }
 
-         protected override void DelEvent()
 
-         {
 
-         }
 
-         public override void AddButtonEvent()
 
-         {
 
-             Btn_Cancel.onClick.AddListener(() =>
 
-             {
 
-                 _cTask?.SetResult(false);
 
-                 UIManager.Instance.HideUIUIPanel(this);
 
-             });
 
-             Btn_Comfire.onClick.AddListener(() =>
 
-             {
 
-                 _cTask?.SetResult(true);
 
-                 UIManager.Instance.HideUIUIPanel(this);
 
-             });
 
-         }
 
-         public async override CTask Close()
 
-         {
 
-             _cTask = null;
 
-             await base.Close();
 
-         }
 
-         public void CustomInit(string title,string tips, CTask<bool> cTask,int showButCount)
 
-         {
 
-             Text_Title.text = title;
 
-             Text_Tips.text = tips;
 
-             _cTask = cTask;
 
-             if (showButCount == 1)
 
-             {
 
-                 Btn_Cancel.gameObject.SetActive(false);
 
-                 Btn_Comfire.gameObject.SetActive(true);
 
-             }
 
-             else
 
-             {
 
-                 Btn_Cancel.gameObject.SetActive(true);
 
-                 Btn_Comfire.gameObject.SetActive(true);
 
-             }
 
-         }
 
-         public async static CTask<bool> OpenPnael(string title, string tips,int showButCount = 2)
 
-         {
 
-             CTask<bool> cTask = CTask<bool>.Create();
 
-             TipsPanle tipsPanle = await UIManager.Instance.LoadAndOpenPanel<TipsPanle>(null,UILayer.Top,isShowBG:true);
 
-             tipsPanle.CustomInit(title,tips, cTask,showButCount);
 
-             return await cTask;
 
-         }
 
-         
 
-         public async static CTask<bool> OpenPnael(int tips,int showButCount = 2)
 
-         {
 
-             CTask<bool> cTask = CTask<bool>.Create();
 
-             TipsPanle tipsPanle = await UIManager.Instance.LoadAndOpenPanel<TipsPanle>(null,UILayer.Top,isShowBG:true);
 
-             tipsPanle.CustomInit("",LanguageManager.Instance.Text(tips), cTask,showButCount);
 
-             return await cTask;
 
-         }
 
-     }
 
- }
 
 
  |