19 lines
601 B
C#
19 lines
601 B
C#
using Godot;
|
|
using Nocturnis.DataStructures.ConfigurableParameters;
|
|
|
|
namespace Enigmos.Manual;
|
|
|
|
public abstract partial class ModuleParameterSetter : Control, IModuleParameterSetter
|
|
{
|
|
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();
|
|
}
|
|
} |