You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
561 B
C#
27 lines
561 B
C#
namespace SRF.UI
|
|
{
|
|
using System;
|
|
using Internal;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
/// <summary>
|
|
/// Adds a LayoutDirty callback to the default Text component.
|
|
/// </summary>
|
|
[AddComponentMenu(ComponentMenuPaths.SRText)]
|
|
public class SRText : Text
|
|
{
|
|
public event Action<SRText> LayoutDirty;
|
|
|
|
public override void SetLayoutDirty()
|
|
{
|
|
base.SetLayoutDirty();
|
|
|
|
if (LayoutDirty != null)
|
|
{
|
|
LayoutDirty(this);
|
|
}
|
|
}
|
|
}
|
|
}
|