Files
Enigmos/Manual/ModuleParameterSetter.cs
2024-06-29 06:35:23 +08:00

19 lines
577 B
C#

using Godot;
using Nocturnis.DataStructures.ConfigurableParameters;
namespace Enigmos.Manual;
public abstract partial class ModuleParameterSetter : Control
{
protected bool InitFlag { get; set; }
public IConfigurableParameter UnderlyingParameter { get; set; }
protected Label Description { get; set; }
public override void _Ready()
{
if (!InitFlag)
throw new Exception("TODO - NEED INIT");
Description = GetNode<Label>("Description");
Description.Text = UnderlyingParameter.ParameterName;
base._Ready();
}
}