forked from yoshisman8/DBZGoatLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDBZConfig.cs
68 lines (55 loc) · 2.02 KB
/
DBZConfig.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using DBZGoatLib.Handlers;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Terraria;
using Terraria.ModLoader.Config;
namespace DBZGoatLib
{
public class DBZConfig : ModConfig
{
public override ConfigScope Mode => ConfigScope.ClientSide;
public static DBZConfig Instance;
[Header("$Mods.DBZGoatLib.Configs.Headers.Bar")]
[LabelKey("$Mods.DBZGoatLib.Configs.KiBarX.Label")]
[TooltipKey("$Mods.DBZGoatLib.Configs.KiBarX.Tooltip")]
[DefaultValue(515f)]
public float KiBarX { get; set; }
[LabelKey("$Mods.DBZGoatLib.Configs.KiBarY.Label")]
[TooltipKey("$Mods.DBZGoatLib.Configs.KiBarY.Tooltip")]
[DefaultValue(49f)]
public float KiBarY { get; set; }
[LabelKey("$Mods.DBZGoatLib.Configs.ShowKi.Label")]
[TooltipKey("$Mods.DBZGoatLib.Configs.ShowKi.Tooltip")]
[DefaultValue(false)]
public bool ShowKi;
[LabelKey("$Mods.DBZGoatLib.Configs.UseNewKiBar.Label")]
[TooltipKey("$Mods.DBZGoatLib.Configs.UseNewKiBar.Tooltip")]
[DefaultValue(true)]
public bool UseNewKiBar;
[Header("$Mods.DBZGoatLib.Configs.Headers.Menu")]
[LabelKey("$Mods.DBZGoatLib.Configs.TransMenuX.Label")]
[TooltipKey("$Mods.DBZGoatLib.Configs.TransMenuX.Tooltip")]
[DefaultValue(661f)]
public float TransMenuX { get; set; }
[LabelKey("$Mods.DBZGoatLib.Configs.TransMenuY.Label")]
[TooltipKey("$Mods.DBZGoatLib.Configs.TransMenuY.Tooltip")]
[DefaultValue(396f)]
public float TransMenuY { get; set; }
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message)
{
return true;
}
public override void OnChanged()
{
base.OnChanged();
UIHandler.Dirty = true;
}
}
}