创建开始菜单面板和设置面板

- 添加 MenuForm 与 SettingForm
- 为带左右按钮的水平选择界面添加HorizonSelectGroup预制件。
- 添加游戏核心可配置项
This commit is contained in:
SepComet
2026-02-10 15:10:31 +08:00
parent 7ac832f74b
commit 13583354f9
111 changed files with 11247 additions and 755 deletions
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f8a21bc21c2e2c9499f273702a5ee70d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2fb9e4e2d5a6060459c5cc2eccd01021
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 73d2bbb90d12eb640a9c31f53f797f63
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,25 @@
using GameFramework;
using GameFramework.Event;
namespace Event
{
public class MenuContinueEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(MenuContinueEventArgs).GetHashCode();
public override int Id => EventId;
public MenuContinueEventArgs()
{
}
public static MenuContinueEventArgs Create()
{
return ReferencePool.Acquire<MenuContinueEventArgs>();
}
public override void Clear()
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a104dcc8130e0c448ae99e6e3b54f289
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,25 @@
using GameFramework;
using GameFramework.Event;
namespace Event
{
public class MenuExitEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(MenuExitEventArgs).GetHashCode();
public override int Id => EventId;
public MenuExitEventArgs()
{
}
public static MenuExitEventArgs Create()
{
return ReferencePool.Acquire<MenuExitEventArgs>();
}
public override void Clear()
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b795b7493e19a03488a29937318df5e7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,25 @@
using GameFramework;
using GameFramework.Event;
namespace Event
{
public class MenuSettingEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(MenuSettingEventArgs).GetHashCode();
public override int Id => EventId;
public MenuSettingEventArgs()
{
}
public static MenuSettingEventArgs Create()
{
return ReferencePool.Acquire<MenuSettingEventArgs>();
}
public override void Clear()
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 04ec642391ce9de45bea3806a121fd76
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,25 @@
using GameFramework;
using GameFramework.Event;
namespace Event
{
public class MenuStartEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(MenuStartEventArgs).GetHashCode();
public override int Id => EventId;
public MenuStartEventArgs()
{
}
public static MenuStartEventArgs Create()
{
return ReferencePool.Acquire<MenuStartEventArgs>();
}
public override void Clear()
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: de3b954ecd2a5b649944ca31f0c80b94
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,32 @@
using Definition.DataStruct;
using GameFramework;
using GameFramework.Event;
namespace Event
{
public class SettingSaveEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(SettingSaveEventArgs).GetHashCode();
public override int Id => EventId;
public GameSetting? GameSettings;
public SettingSaveEventArgs()
{
}
public static SettingSaveEventArgs Create(GameSetting gameSetting)
{
var args = ReferencePool.Acquire<SettingSaveEventArgs>();
args.GameSettings = gameSetting;
return args;
}
public override void Clear()
{
GameSettings = null;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3f6cbbeb839bda744b56d83cd6ccde75
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: