mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-16 18:53:12 +01:00
29 lines
No EOL
560 B
C#
29 lines
No EOL
560 B
C#
using Microsoft.Xna.Framework;
|
|
|
|
namespace MLEM.Ui.Format {
|
|
public class FormattingCode {
|
|
|
|
public readonly Color Color;
|
|
public readonly TextStyle Style;
|
|
public readonly bool IsColorCode;
|
|
|
|
public FormattingCode(Color color) {
|
|
this.Color = color;
|
|
this.IsColorCode = true;
|
|
}
|
|
|
|
public FormattingCode(TextStyle style) {
|
|
this.Style = style;
|
|
this.IsColorCode = false;
|
|
}
|
|
|
|
}
|
|
|
|
public enum TextStyle {
|
|
|
|
Regular,
|
|
Bold,
|
|
Italic
|
|
|
|
}
|
|
} |