@@ -12,12 +12,15 @@ namespace Ichni.Editor
|
||||
public class DynamicUIHintText : DynamicUIElement
|
||||
{
|
||||
public TMP_Text text;
|
||||
|
||||
public override void Initialize(IBaseElement baseElement, string title, string parameterName)
|
||||
{
|
||||
base.Initialize(baseElement, title, parameterName);
|
||||
}
|
||||
public void SetContent(string content)
|
||||
{
|
||||
text.text = content;
|
||||
}
|
||||
|
||||
|
||||
public void SetUpdatingContent(Func<string> content)
|
||||
{
|
||||
Observable.EveryUpdate().Subscribe(_ => text.text = content()).AddTo(gameObject);
|
||||
|
||||
Reference in New Issue
Block a user