-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.cs
More file actions
119 lines (100 loc) · 2.97 KB
/
Copy pathConfig.cs
File metadata and controls
119 lines (100 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
using System.ComponentModel;
namespace HUDInfo;
/// <summary>
/// HUDInfo 插件配置
/// </summary>
public class HUDInfoConfig
{
[Description("是否启用 SCP-914 激活提示")]
public bool Enable914Hint { get; set; } = true;
[Description("是否启用电梯召唤提示")]
public bool EnableElevatorHint { get; set; } = true;
[Description("是否启用阵营剩余人数显示")]
public bool EnableFactionCount { get; set; } = true;
[Description("是否启用重生倒计时显示")]
public bool EnableRespawnTimer { get; set; } = true;
[Description("阵营人数和重生倒计时的刷新间隔(秒),越小越实时但服务器开销略高")]
public float UpdateInterval { get; set; } = 1f;
[Description("SCP-914 激活提示配置")]
public HintDisplayConfig Scp914 { get; set; } = new()
{
X = 0,
Y = 50,
FontSize = 25,
Duration = 15f
};
[Description("电梯召唤提示配置")]
public ElevatorHintConfig Elevator { get; set; } = new()
{
X = 0,
Y = 850,
FontSize = 22,
Duration = 7f,
Range = 10f
};
[Description("阵营剩余人数显示配置")]
public HintDisplayConfig FactionCount { get; set; } = new()
{
X = 750,
Y = 950,
FontSize = 26
};
[Description("重生倒计时显示配置")]
public RespawnTimerConfig RespawnTimer { get; set; } = new();
}
/// <summary>
/// Hint 显示基础配置
/// </summary>
public class HintDisplayConfig
{
[Description("X 轴坐标(0为正中,负为左,正为右)")]
public float X { get; set; }
[Description("Y 轴坐标(屏幕上端约100,下端约1000)")]
public float Y { get; set; }
[Description("字体大小")]
public int FontSize { get; set; }
[Description("提示持续时间(秒)")]
public float Duration { get; set; }
}
/// <summary>
/// 电梯提示配置(继承基础配置并添加可见范围)
/// </summary>
public class ElevatorHintConfig : HintDisplayConfig
{
[Description("提示可见范围半径(以操作者为中心,游戏单位)")]
public float Range { get; set; }
}
/// <summary>
/// 重生倒计时配置
/// </summary>
public class RespawnTimerConfig
{
[Description("九尾大波刷新显示配置")]
public HintDisplayConfig NtfPrimary { get; set; } = new()
{
X = -420,
Y = 100,
FontSize = 26
};
[Description("九尾小波刷新显示配置")]
public HintDisplayConfig NtfMini { get; set; } = new()
{
X = -420,
Y = 135,
FontSize = 26
};
[Description("混沌大波刷新显示配置")]
public HintDisplayConfig ChaosPrimary { get; set; } = new()
{
X = 420,
Y = 100,
FontSize = 26
};
[Description("混沌小波刷新显示配置")]
public HintDisplayConfig ChaosMini { get; set; } = new()
{
X = 420,
Y = 135,
FontSize = 26
};
}