Signed-off-by: TRAfoer <lhf190@outlook.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user