mirror of
https://github.com/chev2/terraria-mods.git
synced 2025-12-12 19:13:00 +00:00
- 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
27 lines
850 B
C#
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();
|
|
}
|
|
}
|
|
}
|