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

- 添加 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
@@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
namespace StarForce
namespace Definition.DataStruct
{
public class BuildInfo
{
@@ -0,0 +1,69 @@
using Definition.Enum;
namespace Definition.DataStruct
{
public struct GameSetting
{
#region SoundConfig
/// <summary>
/// 音乐音量
/// </summary>
public float BGMVolume { get; set; }
/// <summary>
/// 音效音量
/// </summary>
public float SEVolume { get; set; }
#endregion
#region GameConfig
/// <summary>
/// 允许画面震动
/// </summary>
public bool AllowShake { get; set; }
/// <summary>
/// 允许画面闪光
/// </summary>
public bool AllowBlink { get; set; }
/// <summary>
/// 对话窗口透明度
/// </summary>
public DialogWindowAlpha DialogWindowAlpha { get; set; }
/// <summary>
/// 对话播放速度
/// </summary>
public DialogPlayingSpeed PlayingSpeed { get; set; }
#endregion
#region ScreenConfig
/// <summary>
/// 屏幕分辨率
/// </summary>
public ScreenSolutionType ScreenSolution { get; set; }
/// <summary>
/// 屏幕窗口模式
/// </summary>
public ScreenWindowType ScreenWindow { get; set; }
/// <summary>
/// 垂直同步
/// </summary>
public bool VSync { get; set; }
/// <summary>
/// 抗锯齿
/// </summary>
public bool AntiAliasing { get; set; }
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: fca4b405240141ae845bc6cbf5f7f9d2
timeCreated: 1770692998
@@ -5,7 +5,7 @@
// Feedback: mailto:ellan@gameframework.cn
//------------------------------------------------------------
namespace StarForce
namespace Definition.DataStruct
{
public class VersionInfo
{
@@ -0,0 +1,11 @@
namespace Definition.Enum
{
public enum SceneId : byte
{
Launch = 0,
Menu = 1,
Main = 2,
GameplayA = 3
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 20fc28f41ef04f8fa4fbfb9189b58d0d
timeCreated: 1768899171
@@ -0,0 +1,28 @@
namespace Definition.Enum
{
public enum DialogPlayingSpeed: byte
{
Slow,
Medium,
Fast,
}
public enum DialogWindowAlpha : byte
{
None,
Low,
Medium,
High
}
public enum ScreenSolutionType : byte
{
}
public enum ScreenWindowType : byte
{
NoneBoard,
Window,
FullScreen
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 2f0f253e843b439ea057d9c2fac08bee
timeCreated: 1770691231