/// #pkgName FGUI包名 /// #panelName UIPanel名字 /// #UIName = $"{#pkgName}{#panelName}" UIKey名字 /// 该脚本由模板创建 /// created by cb 2024 using XGame.Framework.UI; namespace FL.FGUI { public static partial class UIKeys { private static UIKey _PlayerAwakePanel; public static UIKey PlayerAwakePanel => _PlayerAwakePanel ?? (_PlayerAwakePanel = new UIKey("Player", "AwakePanel", typeof(PlayerAwakePanelView))); } public partial class PlayerAwakePanelView : UIView { public static UILayer Layer => UILayer.Middle; protected override void AddController(IUIControllerGroup group) { group.Add(new PlayerAwakePanelCtrl()); } protected override IUIViewModel CreateViewModel() { return new PlayerAwakePanelVM(); } protected override void OnDispose() { } } }