ui/richtext/RichTextLastsUntilHitDoesntStack.cs

A UI rich text style definition for a tag labeled "(lasts until hit and doesn't stack)". It defines a panel by subclassing RichTextBase and sets the text to be italic, with a font size of 11 and a semi-transparent white color.

[RichTextPanel( @"\(lasts until hit and doesn't stack\)" )]
public class RichTextLastsUntilHitDoesntStack : RichTextBase
{
	public override bool Italic => true;

	public override float? FontSize => 11f;
	public override Color Color => new Color( 1f ).WithAlpha(0.4f);
}