mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-01 05:10:50 +01:00
29 lines
560 B
C#
29 lines
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
|
||
|
|
||
|
}
|
||
|
}
|