mirror of
https://github.com/chev2/terraria-mods.git
synced 2025-12-25 09:22:54 +00:00
26 lines
934 B
C#
26 lines
934 B
C#
using System.ComponentModel;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ModLoader.Config;
|
|
|
|
namespace LifeSourcesLight
|
|
{
|
|
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)]
|
|
public bool EnableHeartCrystalLight { get; set; }
|
|
|
|
[LabelKey("$Mods.LifeSourcesLight.Configs.Common.EnableLifeFruitLight.Label")]
|
|
[TooltipKey("$Mods.LifeSourcesLight.Configs.Common.EnableLifeFruitLight.Tooltip")]
|
|
[DefaultValue(true)]
|
|
public bool EnableLifeFruitLight { get; set; }
|
|
|
|
public override void OnChanged()
|
|
{
|
|
ModContent.GetInstance<LifeSourcesLightModSystem>()?.ApplySettings();
|
|
}
|
|
}
|
|
}
|