mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-29 15:58:33 +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
|
|
|
|
}
|
|
} |