Repository navigation
Expand file tree
/
Copy pathModConfig.cs
More file actions
106 lines (84 loc) · 2.6 KB
/
Copy pathModConfig.cs
File metadata and controls
106 lines (84 loc) · 2.6 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
using Microsoft.Xna.Framework;
using StardewModdingAPI;
using StardewModdingAPI.Utilities;
namespace AnimalObserver
{
internal class ModConfig
{
public bool PetToo { get; set; } = true;
public bool ShowIsHarvestable { get; set; } = true;
public bool ShowTruffle { get; set; } = true;
public byte ShowIsHarvestableTime { get; set; } = 5;
public KeySetting Keys { get; set; } = new KeySetting();
public EntitiesSetting Entities { get; set; } = new EntitiesSetting();
public OffsetSetting Offsets { get; set; } = new OffsetSetting();
}
internal class EntitiesSetting
{
public EntitiesConfig Bubble { get; set; } = new EntitiesConfig()
{
X = 141,
Y = 465,
Width = 20,
Height = 24,
Scale = 2f,
Color = Color.White * 0.65f
};
public EntitiesConfig Heart { get; set; } = new EntitiesConfig()
{
X = 172,
Y = 514,
Width = 9,
Height = 10,
Scale = 3f,
Offset = new Vector2(7f, 7f)
};
public EntitiesConfig CowMilk { get; set; } = new EntitiesConfig()
{
X = 256,
Y = 112,
Width = 16,
Height = 16,
Scale = 2f,
Offset = new Vector2(4f, 4f)
};
public EntitiesConfig GoatMilk { get; set; } = new EntitiesConfig()
{
X = 64,
Y = 288,
Width = 16,
Height = 16,
Scale = 2f,
Offset = new Vector2(4f, 4f)
};
public EntitiesConfig Truffle { get; set; } = new EntitiesConfig()
{
X = 352,
Y = 272,
Width = 16,
Height = 16,
Scale = 2f,
Offset = new Vector2(4f, 4f)
};
public EntitiesConfig Wool { get; set; } = new EntitiesConfig()
{
X = 128,
Y = 288,
Width = 16,
Height = 16,
Scale = 2f,
Offset = new Vector2(4f, 4f)
};
}
internal class OffsetSetting
{
public Vector2 BarnAnimal { get; set; } = new Vector2(32f, -64f);
public Vector2 CoopAnimal { get; set; } = new Vector2(0f, -64f);
public Vector2 Pet { get; set; } = new Vector2(32f, -64f);
}
internal class KeySetting
{
public KeybindList Reload { get; set; } = new KeybindList(SButton.F9);
public KeybindList Toggle { get; set; } = new KeybindList(SButton.F10);
}
}