Update config localization to use newer tModLoader standards

This commit is contained in:
Chev 2025-05-22 01:47:49 -07:00
parent 8a2078c641
commit 4429598658
Signed by: chev2
GPG key ID: 0B212D6AED495EC9
2 changed files with 13 additions and 14 deletions

View file

@ -4,19 +4,18 @@ using Terraria.ModLoader.Config;
namespace LifeSourcesLight
{
[Label("Config")]
public class LifeSourcesLightConfig : ModConfig
{
public override ConfigScope Mode => ConfigScope.ClientSide;
[LabelKey("$Mods.LifeSourcesLight.Configs.Common.EnableHeartCrystalLight.Label")]
[TooltipKey("$Mods.LifeSourcesLight.Configs.Common.EnableHeartCrystalLight.Tooltip")]
[DefaultValue(true)]
[Label("Enable Lighting for Heart Crystal")]
[Tooltip("Whether or not to enable lighting for the Heart Crystal.")]
public bool EnableHeartCrystalLight { get; set; }
[LabelKey("$Mods.LifeSourcesLight.Configs.Common.EnableLifeFruitLight.Label")]
[TooltipKey("$Mods.LifeSourcesLight.Configs.Common.EnableLifeFruitLight.Tooltip")]
[DefaultValue(true)]
[Label("Enable Lighting for Life Fruit")]
[Tooltip("Whether or not to enable lighting for the Life Fruit.")]
public bool EnableLifeFruitLight { get; set; }
public override void OnChanged()

View file

@ -1,15 +1,15 @@
Configs: {
LifeSourcesLightConfig: {
DisplayName: Config
Common: {
EnableLifeFruitLight: {
Tooltip: Whether or not to enable lighting for the Life Fruit.
Label: Enable Lighting for Life Fruit
}
EnableHeartCrystalLight: {
Label: Enable Lighting for Heart Crystal
Tooltip: Whether or not to enable lighting for the Heart Crystal.
}
EnableLifeFruitLight: {
Label: Enable Lighting for Life Fruit
Tooltip: Whether or not to enable lighting for the Life Fruit.
Label: Enable Lighting for Heart Crystal
}
}
}
LifeSourcesLightConfig.DisplayName: Config
}