feat: 914和电梯使用提示

This commit is contained in:
3cxc
2026-02-13 01:13:10 +08:00
parent 69bb0e948e
commit ec92dcab22
7 changed files with 199 additions and 0 deletions

31
Configs/HUDInfoConfig.cs Normal file
View File

@@ -0,0 +1,31 @@
using System.ComponentModel;
namespace EasyTools.Configs
{
public class HUDInfoConfig
{
[Description("是否显示SCP914提示信息")]
public bool info_914 { get; set; } = true;
[Description("是否显示电梯提示信息")]
public bool info_elevator { get; set; } = true;
/// /////////////////////////////////////////////////
[Description("914显示,X轴坐标(0为正中,-为左,+为右):")]
public float _914_x { get; set; } = 0;
[Description("914显示,Y轴坐标(屏幕最上端大概100,最下端大概1000):")]
public float _914_y { get; set; } = 80;
[Description("914显示,字体大小:")]
public int _914_font { get; set; } = 20;
/// /////////////////////////////////////////////////
[Description("电梯显示,X轴坐标(0为正中,-为左,+为右):")]
public float _elev_x { get; set; } = 0;
[Description("电梯显示,Y轴坐标(屏幕最上端大概100,最下端大概1000):")]
public float _elev_y { get; set; } = 800;
[Description("电梯显示,字体大小:")]
public int _elev_font { get; set; } = 20;
[Description("电梯提示显示可见范围(操作者为中心):")]
public float elev_range { get; set; } = 10f;
}
}

View File

@@ -1,5 +1,6 @@
using EasyTools.Utils;
using PlayerRoles;
using Scp914;
using System.Collections.Generic;
using System.ComponentModel;
@@ -73,5 +74,21 @@ namespace EasyTools.Configs
{Team.ChaosInsurgency , "混沌阵营" },
{Team.FoundationForces , "九尾狐阵营" },
};
/// <summary>
///
/// </summary>
[Description("电梯显示模板(HEX color写死, {p_operator}表示操作人, 没有的话自动为未知):")]
public string elev_template { get; set; } = "[Elevator] 电梯使用者: <color=#B952FA>{p_operator}</color>";
[Description("SCP914显示模板(HEX color写死, {mode}表示操作模式, {p_operator}表示操作人, 没有的话自动为未知):")]
public string scp914_template { get; set; } = "[Scp914] 已启动! 模式: <color=#F7C73E>{mode}</color>, 操作人: <color=#0080FF>{p_operator}</color>";
[Description("SCP914, Rough模式翻译:")]
public Dictionary<Scp914KnobSetting, string> scp914_trans { get; set; } = new Dictionary<Scp914KnobSetting, string>()
{
{ Scp914KnobSetting.Rough, "粗加" },
{ Scp914KnobSetting.Coarse, "半粗" },
{ Scp914KnobSetting.OneToOne, "1:1" },
{ Scp914KnobSetting.Fine, "精加" },
{ Scp914KnobSetting.VeryFine, "超精加工" }
};
}
}