BS 0.2.0 Visual

This commit is contained in:
2025-07-21 15:58:52 +08:00
parent f6750189d0
commit d0e5420f95
142 changed files with 11176 additions and 11 deletions

View File

@@ -0,0 +1,32 @@
using TMPro;
using UnityEngine;
namespace Convention.WindowsUI
{
public partial class Text : WindowUIModule, IText, ITitle
{
[Resources, HopeNotNull] public TextMeshProUGUI source;
public virtual string text
{
get => source.text;
set => source.text = value;
}
public virtual string title
{
get => source.text;
set => source.text = value;
}
private void Start()
{
if (source == null)
source = this.GetComponent<TextMeshProUGUI>();
}
private void Reset()
{
if (source == null)
source = this.GetComponent<TextMeshProUGUI>();
}
}
}