MailMailPanelVM.Gen.cs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// #PropertyDefineArea 属性定义区域
  5. /// #PropertyAssignArea 属性赋值区域
  6. /// #ComponentType 组件类型
  7. /// #PropertyName 属性名字
  8. /// 该脚本由模板创建,不可编辑
  9. /// created by cb 2024
  10. using FairyGUI;
  11. using XGame.Framework.FGUI;
  12. using XGame.Framework.UI;
  13. namespace FL.FGUI
  14. {
  15. /// <summary>
  16. /// 该脚本由模板创建,不可修改,不可编辑
  17. /// </summary>
  18. public partial class MailMailPanelVM : FguiViewModel
  19. {
  20. public CommonBackGroundNestedView Background { get; private set; }
  21. public GList MailList { get; private set; }
  22. public GTextField MailCountLabel { get; private set; }
  23. public GTextField EmptyLabel { get; private set; }
  24. public GButton AllReadBtn { get; private set; }
  25. public GButton DeleteReadBtn { get; private set; }
  26. public GButton AllGetBtn { get; private set; }
  27. public GImage OffImg { get; private set; }
  28. public GImage OnImg { get; private set; }
  29. public GTextField TitleLabel { get; private set; }
  30. public GTextField TimeLabel { get; private set; }
  31. public GTextField ContentLabel { get; private set; }
  32. public GList ItemList { get; private set; }
  33. public GGroup ItemGrp { get; private set; }
  34. public GButton BackMainBtn { get; private set; }
  35. public GButton ReadBtn { get; private set; }
  36. public GButton GetBtn { get; private set; }
  37. public GButton DeleteBtn { get; private set; }
  38. public GGroup MailDetailsGrp { get; private set; }
  39. protected override void BindComponents(GComponent panel, IUIViewAdapter adapter)
  40. {
  41. Background = adapter.CreateNested<CommonBackGroundNestedView>(new FguiNested(panel.GetChild("Background").asCom), true);
  42. AddChild(Background);
  43. MailList = panel.GetChild("MailList") as GList;
  44. MailList.Init(typeof(MailMailPanelItemView), adapter.CreateListItem);
  45. MailCountLabel = panel.GetChild("MailCountLabel") as GTextField;
  46. EmptyLabel = panel.GetChild("EmptyLabel") as GTextField;
  47. AllReadBtn = panel.GetChild("AllReadBtn") as GButton;
  48. DeleteReadBtn = panel.GetChild("DeleteReadBtn") as GButton;
  49. AllGetBtn = panel.GetChild("AllGetBtn") as GButton;
  50. OffImg = panel.GetChild("OffImg") as GImage;
  51. OnImg = panel.GetChild("OnImg") as GImage;
  52. TitleLabel = panel.GetChild("TitleLabel") as GTextField;
  53. TimeLabel = panel.GetChild("TimeLabel") as GTextField;
  54. ContentLabel = panel.GetChild("ContentLabel") as GTextField;
  55. ItemList = panel.GetChild("ItemList") as GList;
  56. ItemList.Init(typeof(CommonItemBaseView), adapter.CreateListItem);
  57. ItemGrp = panel.GetChild("ItemGrp") as GGroup;
  58. BackMainBtn = panel.GetChild("BackMainBtn") as GButton;
  59. ReadBtn = panel.GetChild("ReadBtn") as GButton;
  60. GetBtn = panel.GetChild("GetBtn") as GButton;
  61. DeleteBtn = panel.GetChild("DeleteBtn") as GButton;
  62. MailDetailsGrp = panel.GetChild("MailDetailsGrp") as GGroup;
  63. }
  64. }
  65. }