BattleMapBattleMapTestView.cs 917 B

12345678910111213141516171819202122232425262728293031323334
  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 _BattleMapBattleMapTest;
  12. public static UIKey BattleMapBattleMapTest => _BattleMapBattleMapTest ?? (_BattleMapBattleMapTest = new UIKey("BattleMap", "BattleMapTest", typeof(BattleMapBattleMapTestView)));
  13. }
  14. public partial class BattleMapBattleMapTestView : UIView
  15. {
  16. protected override void AddController(IUIControllerGroup group)
  17. {
  18. group.Add(new BattleMapBattleMapTestCtrl());
  19. }
  20. protected override IUIViewModel CreateViewModel()
  21. {
  22. return new BattleMapBattleMapTestVM();
  23. }
  24. protected override void OnDispose()
  25. {
  26. }
  27. }
  28. }