Signed-off-by: TRAfoer <lhf190@outlook.com>

This commit is contained in:
2026-02-11 01:26:10 +08:00
parent a76f650998
commit c21dc74576
17 changed files with 18014 additions and 17002 deletions

View File

@@ -12,7 +12,11 @@ namespace Ichni.Editor
{
public Button button;
public TMP_Text buttonText;
public override void Initialize(IBaseElement baseElement, string title, string parameterName)
{
base.Initialize(baseElement, title, parameterName);
}
public void SetText(string buttonText)
{
this.buttonText.text = buttonText;
@@ -26,10 +30,11 @@ namespace Ichni.Editor
button.onClick.AddListener(connectedBaseElement.Refresh);
}
}
public override DynamicUIElement AddListenerFunction(UnityAction action)
{
throw new System.NotImplementedException();
button.onClick.AddListener(action);
return this;
}
}
}