-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.cs
45 lines (38 loc) · 1.47 KB
/
Config.cs
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
using CounterStrikeSharp.API.Core;
using System.Text.Json.Serialization;
namespace WallText
{
public class PluginConfig : BasePluginConfig
{
[JsonPropertyName("WallText")]
public Dictionary<int, List<string>> WallText { get; set; } = new Dictionary<int, List<string>>()
{
{ 1, new List<string>
{
"{White}First line of text from Group 1.",
"{White}Second line of text from Group 1.",
"{White}Third line of text from Group 1."
}
},
{ 2, new List<string>
{
"{White}First line of text from Group 2.",
"{White}Second line of text from Group 2.",
"{White}Third line of text from Group 2."
}
}
};
[JsonPropertyName("TextAlignment")]
public string TextAlignment { get; set; } = "left";
[JsonPropertyName("FontSize")]
public int FontSize { get; set; } = 24;
[JsonPropertyName("TextScale")]
public float TextScale { get; set; } = 0.45f;
[JsonPropertyName("RemoveCommand")]
public string RemoveCommand { get; set; } = "removetext";
[JsonPropertyName("CommandPermission")]
public string CommandPermission { get; set; } = "@css/root";
[JsonPropertyName("ConfigVersion")]
public override int Version { get; set; } = 2;
}
}