Repository navigation
Expand file tree
/
Copy pathConfig.cs
More file actions
282 lines (222 loc) · 9.32 KB
/
Copy pathConfig.cs
File metadata and controls
282 lines (222 loc) · 9.32 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
namespace TrueTooltips
{
using Microsoft.Xna.Framework;
using System.ComponentModel;
using Terraria.ModLoader.Config;
class Config : ModConfig
{
public override ConfigScope Mode => ConfigScope.ClientSide;
[Header("[c/ffff00:Custom Tooltip Lines]")]
[Label("Ammo Line"),
Tooltip("Shows the item's ammo's name, amount and rarity, shows the mod that adds the ammo if \"Mod name next to item name\" is on and shows the ammo the item needs if the item has no ammo. \nWorks with fishing poles and tile wands."),
DefaultValue(true)]
public bool ammoLine;
[Label("Velocity Line"),
Tooltip("Shows the item's velocity. May not always be accurate due to items shooting multiple different projectiles, projectiles changing velocity mid flight, etc.."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color velocityLine;
[Label("Better Price Line"),
Tooltip("Correct sell price for items with custom price, always visible, better color coding, cleaner. Replaces vanilla price line."),
DefaultValue(true)]
public bool priceLine;
[Label("Better Speed Line"),
Tooltip("Shows attacks per second. Replaces vanilla speed line."),
DefaultValue(true)]
public bool speedLine;
[Label("Better Knockback Line"),
Tooltip("Shows knockback as a number. Replaces vanilla knockback line."),
DefaultValue(true)]
public bool knockbackLine;
[Label("Combine weapon and ammo damage"), DefaultValue(true)]
public bool wpnPlusAmmoDmg;
[Label("Combine weapon and ammo knockback"),
Tooltip("Requires Better Knockback Line to be on."),
DefaultValue(true)]
public bool wpnPlusAmmoKb;
[Label("Combine weapon and ammo velocity"), DefaultValue(true)]
public bool wpnPlusAmmoVelocity;
[Label("Mod name next to item name"),
Tooltip("Shows the mod that adds the item next to the item's name."),
DefaultValue(true)]
public bool modName;
[Header("[c/ffff00:Background]")]
[Label("Color"), DefaultValue(typeof(Color), "63,81,151,255")]
public Color bgColor;
[Label("Right Padding"),
Range(0, 999),
DefaultValue(10)]
public int paddingRight;
[Label("Left Padding"),
Range(0, 999),
DefaultValue(10)]
public int paddingLeft;
[Label("Top Padding"),
Range(0, 999),
DefaultValue(10)]
public int paddingTop;
[Label("Bottom Padding"),
Range(0, 999),
DefaultValue(10)]
public int paddingBottom;
[Header("[c/ffff00:Offset]")]
[Label("X"),
Tooltip("X position of the tooltip."),
Range(0, 999),
DefaultValue(16)]
public int x;
[Label("Y"),
Tooltip("Y position of the tooltip."),
Range(0, 999),
DefaultValue(16)]
public int y;
[Label("Spacing"),
Tooltip("Add extra space between lines."),
Range(0, 999),
DefaultValue(0)]
public int spacing;
[Header("[c/ffff00:Miscellaneous]")]
[Label("Sprite"),
Tooltip("Display the item's sprite in the tooltip."),
DefaultValue(true)]
public bool sprite;
[Label("Text Pulse"), DefaultValue(false)]
public bool textPulse;
[Label("Crit chance line for ammo"),
Tooltip("Off by default because ammo crit chance doesn't affect crit chance."),
DefaultValue(false)]
public bool ammoCrit;
[Header("[c/ffff00:Vanilla Tooltip Lines]")]
[Label("+- X range"),
Tooltip("How much more/less range the tool has, in tiles."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color tileBoost;
[Label("Ammo"),
Tooltip("The item is ammo."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color ammo;
[Label("Bad Modifier"), DefaultValue(typeof(Color), "190,120,120,255")]
public Color badMod;
[Label("Can be placed"),
Tooltip("The item can be placed."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color placeable;
[Label("Consumable"),
Tooltip("The item is consumable."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color consumable;
[Label("Consumes X"),
Tooltip("What item a tile wand consumes."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color wandConsumes;
[Label("Damage"),
Tooltip("The item's damage and class."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color dmg;
[Label("Equipable"),
Tooltip("The item is equipable."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color equipable;
[Label("Equipped in social slot"),
Tooltip("The item is in a social slot."),
DefaultValue(typeof(Color), "255,255,255,0")]
public Color social;
[Label("Etherian Mana Warning"),
Tooltip("\"Cannot be used without Etherian Mana until the Eternia Crystal has been defended\""),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color etherianMana;
[Label("Expert"),
Tooltip("The item is from Expert Mode."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color expert;
[Label("Favorite Description"),
Tooltip("\"Quick trash, stacking, and selling will be blocked\""),
DefaultValue(typeof(Color), "255,255,255,0")]
public Color favDescr;
[Label("Good Modifier"), DefaultValue(typeof(Color), "120,190,120,255")]
public Color goodMod;
[Label("Increases life regeneration"),
Tooltip("In Expert Mode, shows that the food increases life regeneration."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color wellFedExpert;
[Label("Knockback"),
Tooltip("The item's knockback."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color knockback;
[Label("Marked as favorite"),
Tooltip("The item is marked as favorite."),
DefaultValue(typeof(Color), "255,255,255,0")]
public Color fav;
[Label("Material"),
Tooltip("The item can be used to craft something."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color material;
[Label("Quest Item"),
Tooltip("The item is a quest item."),
DefaultValue(typeof(Color), "255,255,255,0")]
public Color quest;
[Label("Requires bait to catch fish"),
Tooltip("The fishing pole requires bait to catch fish."),
DefaultValue(typeof(Color), "255,255,255,0")]
public Color needsBait;
[Label("Restores X life"),
Tooltip("How much life the player restores when using the item."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color healLife;
[Label("Restores X mana"),
Tooltip("How much mana the player restores when using the item."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color healMana;
[Label("Set Bonus"),
Tooltip("The armor's set bonus description."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color setBonus;
[Label("Social Description"),
Tooltip("\"No stats will be gained\""),
DefaultValue(typeof(Color), "255,255,255,0")]
public Color socialDescr;
[Label("Speed"),
Tooltip("The item's attack speed."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color speed;
[Label("Uses X mana"),
Tooltip("How much mana the item consumes when used."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color useMana;
[Label("Vanity Item"),
Tooltip("The item is vanity."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color vanity;
[Label("X defense"),
Tooltip("The item's defense."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color defense;
[Label("X minute duration"),
Tooltip("The item's buff duration."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color buffTime;
[Label("X% axe power"),
Tooltip("The item's axe power."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color axePow;
[Label("X% bait power"),
Tooltip("The bait's bait power."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color baitPow;
[Label("X% critical strike chance"),
Tooltip("The item's crit chance."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color critChance;
[Label("X% fishing power"),
Tooltip("The fishing pole's fishing power."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color fishingPow;
[Label("X% hammer power"),
Tooltip("The item's hammer power."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color hammerPow;
[Label("X% pickaxe power"),
Tooltip("The item's pickaxe power."),
DefaultValue(typeof(Color), "255,255,255,255")]
public Color pickPow;
}
}