PlayerJobCareerPreviewPanelView.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /// #pkgName FGUI包名
  2. /// #panelName UIPanel名字
  3. /// #UIName = $"{#pkgName}{#panelName}" UIKey名字
  4. /// 该脚本由模板创建
  5. /// created by cb 2024
  6. using FL.FGUIP;
  7. using XGame.Framework.UI;
  8. namespace FL.FGUI
  9. {
  10. public static partial class UIKeys
  11. {
  12. private static UIKey _PlayerJobCareerPreviewPanel;
  13. public static UIKey PlayerJobCareerPreviewPanel => _PlayerJobCareerPreviewPanel ?? (_PlayerJobCareerPreviewPanel = new UIKey("Player", "JobCareerPreviewPanel", typeof(PlayerJobCareerPreviewPanelView)));
  14. }
  15. public partial class PlayerJobCareerPreviewPanelView : UIView
  16. {
  17. public static UILayer Layer => UILayer.Middle;
  18. protected override void AddController(IUIControllerGroup group)
  19. {
  20. group.Add(new PlayerJobCareerPreviewPanelCtrl());
  21. }
  22. protected override IUIViewModel CreateViewModel()
  23. {
  24. return new PlayerJobCareerPreviewPanelVM();
  25. }
  26. protected override void OnDispose()
  27. {
  28. }
  29. }
  30. }