TemporaryEquipBagPanelView.cs 974 B

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