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