namespace GFramework.Godot.Text.Effects;
///
/// 为文本应用红色语义高亮。
///
[GlobalClass]
[Tool]
public partial class RichTextRedEffect : RichTextEffectBase
{
private static readonly Color RedColor = new(0.96f, 0.35f, 0.35f, 1.0f);
///
/// 获取标签名。
///
protected override string TagName => "red";
///
/// 应用红色颜色效果。
///
/// 当前字符上下文。
/// 始终返回 。
public override bool _ProcessCustomFX(CharFXTransform charFx)
{
charFx.Color = RedColor;
return true;
}
}