terraria-mods/LifeSourcesLight/LifeSourcesLightConfig.cs
Chev 5d838fb613 LifeSourcesLight v1.1.0
- Formatted code a bit
- Updated description to include changelog section
- Added basic config to allow users to turn off the lights for each of the two tile types individually
2022-08-26 18:25:47 -07:00

27 lines
850 B
C#

using System.ComponentModel;
using Terraria.ModLoader;
using Terraria.ModLoader.Config;
namespace LifeSourcesLight
{
[Label("Config")]
public class LifeSourcesLightConfig : ModConfig
{
public override ConfigScope Mode => ConfigScope.ClientSide;
[DefaultValue(true)]
[Label("Enable Lighting for Heart Crystal")]
[Tooltip("Whether or not to enable lighting for the Heart Crystal.")]
public bool EnableHeartCrystalLight { get; set; }
[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()
{
ModContent.GetInstance<LifeSourcesLightModSystem>()?.ApplySettings();
}
}
}