mirror of
https://github.com/chev2/terraria-mods.git
synced 2026-04-22 10:41:39 +00:00
Update config localization to use newer tModLoader standards
This commit is contained in:
parent
8a2078c641
commit
4429598658
2 changed files with 13 additions and 14 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue