Files
ichni_Creator_Studio/Assets/Scripts/DynamicUI/DynamicUIElements/Simple/DynamicUIHintText.cs

31 lines
753 B
C#
Raw Normal View History

using System;
2025-02-17 14:46:14 -05:00
using System.Collections;
using System.Collections.Generic;
using Ichni.RhythmGame;
using TMPro;
using UniRx;
2025-02-17 14:46:14 -05:00
using UnityEngine;
2025-03-20 02:42:10 -04:00
using UnityEngine.Events;
2025-02-17 14:46:14 -05:00
namespace Ichni.Editor
{
public class DynamicUIHintText : DynamicUIElement
{
public TMP_Text text;
public void SetContent(string content)
{
text.text = content;
}
public void SetUpdatingContent(Func<string> content)
{
Observable.EveryUpdate().Subscribe(_ => text.text = content()).AddTo(gameObject);
}
2025-03-20 02:42:10 -04:00
public override void AddListenerFunction(UnityAction action)
{
throw new System.NotImplementedException();
}
2025-02-17 14:46:14 -05:00
}
}