PartnerEpiBookDetailPanelCtrl.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// 该脚本由模板创建
  5. /// created by cb 2024
  6. using FairyGUI;
  7. using XGame.Framework.UI;
  8. namespace FL.FGUI
  9. {
  10. /// <summary>
  11. /// UI逻辑处理类
  12. /// </summary>
  13. /// <typeparam name=""></typeparam>
  14. public partial class PartnerEpiBookDetailPanelCtrl : UIController<PartnerEpiBookDetailPanelVM>
  15. {
  16. protected override void OnEnable(object intent)
  17. {
  18. AddUIListenres();
  19. }
  20. protected override void OnDisable()
  21. {
  22. RemoveUIListenres();
  23. }
  24. #region UI事件
  25. private void AddUIListenres()
  26. {
  27. VM.LeftBtn.onClick.Add(OnClickLeftBtn);
  28. VM.RightBtn.onClick.Add(OnClickRightBtn);
  29. VM.GetBtn.onClick.Add(OnClickGetBtn);
  30. }
  31. private void RemoveUIListenres()
  32. {
  33. VM.LeftBtn.onClick.Remove(OnClickLeftBtn);
  34. VM.RightBtn.onClick.Remove(OnClickRightBtn);
  35. VM.GetBtn.onClick.Remove(OnClickGetBtn);
  36. }
  37. private void OnClickLeftBtn(EventContext context)
  38. {
  39. }
  40. private void OnClickRightBtn(EventContext context)
  41. {
  42. }
  43. private void OnClickGetBtn(EventContext context)
  44. {
  45. }
  46. #endregion
  47. }
  48. }