-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConfigOptions.cs
More file actions
118 lines (97 loc) · 4.73 KB
/
Copy pathConfigOptions.cs
File metadata and controls
118 lines (97 loc) · 4.73 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
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Terraria.Localization;
using Terraria.ModLoader.Config;
namespace RareDropNotification
{
public class ConfigOptions : ModConfig
{
public const float MaxPercent = 20f;
public override LocalizedText DisplayName => Language.GetText("Mods.RareDropNotification.ConfigName");
public override ConfigScope Mode => ConfigScope.ClientSide;
[Header("$Mods.RareDropNotification.Mechanics")]
[LabelKey("$Mods.RareDropNotification.BlacklistedItems")]
[TooltipKey("$Mods.RareDropNotification.BlacklistedItemsTip")]
public List<ItemDefinition> BlacklistedItems = [];
[Slider()]
[Range(0.5f, MaxPercent)]
[DefaultValue(5f)]
[LabelKey("$Mods.RareDropNotification.TriggerThreshold")]
[TooltipKey("$Mods.RareDropNotification.TriggerThresholdTip")]
public float TriggerThreshold { get; set; }
[LabelKey("$Mods.RareDropNotification.TextColor")]
[TooltipKey("$Mods.RareDropNotification.TextColorTip")]
[DefaultValue(typeof(Color), "84, 252, 252, 255"), ColorNoAlpha]
public Color TextColor { get; set; }
[LabelKey("$Mods.RareDropNotification.ShowResearch")]
[TooltipKey("$Mods.RareDropNotification.ShowResearchTip")]
[DefaultValue(true)]
public bool EnableNotShowingResearched { get; set; }
[LabelKey("$Mods.RareDropNotification.ShowAutoTrash")]
[TooltipKey("$Mods.RareDropNotification.ShowAutoTrashTip")]
[DefaultValue(true)]
public bool EnableNotShowingAutoTrashed { get; set; }
[LabelKey("$Mods.RareDropNotification.EnableSuperRare")]
[TooltipKey("$Mods.RareDropNotification.EnableSuperRareTip")]
[DefaultValue(true)]
public bool EnableSuperRare { get; set; }
[Slider()]
[Range(0.01f, 5f)]
[DefaultValue(0.5f)]
[LabelKey("$Mods.RareDropNotification.SuperTriggerThreshold")]
[TooltipKey("$Mods.RareDropNotification.SuperTriggerThresholdTip")]
public float SuperTriggerThreshold { get; set; }
[LabelKey("$Mods.RareDropNotification.SuperTextColor")]
[TooltipKey("$Mods.RareDropNotification.SuperTextColorTip")]
[DefaultValue(typeof(Color), "255, 125, 115, 255"), ColorNoAlpha]
public Color SuperTextColor { get; set; }
[LabelKey("$Mods.RareDropNotification.EnableAnnouncements")]
[TooltipKey("$Mods.RareDropNotification.EnableAnnouncementsTip")]
[DefaultValue(true)]
public bool EnableAnnouncements { get; set; }
[Header("$Mods.RareDropNotification.Sound")]
[Slider()]
[Range(0f, 1f)]
[DefaultValue(1f)]
[LabelKey("$Mods.RareDropNotification.SoundVolume")]
[TooltipKey("$Mods.RareDropNotification.SoundVolumeTip")]
public float SoundEffectVolume { get; set; }
[Slider()]
[Range(-1f, 1f)]
[DefaultValue(0)]
[LabelKey("$Mods.RareDropNotification.SoundPitch")]
[TooltipKey("$Mods.RareDropNotification.SoundPitchTip")]
public float SoundEffectPitch { get; set; }
[Slider()]
[Range(0, 2f)]
[DefaultValue(0.5f)]
[LabelKey("$Mods.RareDropNotification.SoundPitchVariation")]
[TooltipKey("$Mods.RareDropNotification.SoundPitchVariationTip")]
public float SoundEffectPitchVariation { get; set; }
[DefaultValue(SoundEffect.HypixelSkyblock)]
[LabelKey("$Mods.RareDropNotification.CurrentSound")]
[TooltipKey("$Mods.RareDropNotification.CurrentSoundTip")]
public SoundEffect CurrentSound { get; set; }
[DefaultValue(SoundEffect.PSO2)]
[LabelKey("$Mods.RareDropNotification.SuperCurrentSound")]
[TooltipKey("$Mods.RareDropNotification.SuperCurrentSoundTip")]
public SoundEffect SuperCurrentSound { get; set; }
[Header("$Mods.RareDropNotification.Experimental")]
[DefaultValue(false)]
[LabelKey("$Mods.RareDropNotification.EnableCustom")]
[TooltipKey("$Mods.RareDropNotification.EnableCustomTip")]
public bool EnableCustom { get; set; }
[LabelKey("$Mods.RareDropNotification.CustomSound")]
[TooltipKey("$Mods.RareDropNotification.CustomSoundTip")]
public string CustomSound { get; set; }
[DefaultValue(false)]
[LabelKey("$Mods.RareDropNotification.EnableSuperCustom")]
[TooltipKey("$Mods.RareDropNotification.EnableSuperCustomTip")]
public bool EnableSuperCustom { get; set; }
[LabelKey("$Mods.RareDropNotification.SuperCustomSound")]
[TooltipKey("$Mods.RareDropNotification.SuperCustomSoundTip")]
public string SuperCustomSound { get; set; }
}
}