blob: 16108073f479df70a08f2494f0328a36bf4164e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#pragma once
// 4J: Simple string wrapper that includes basic formatting information
class HtmlString
{
public:
wstring text; // Text content of string
eMinecraftColour color; // Hex color
bool italics; // Show text in italics
bool indent; // Indent text
HtmlString(wstring text, eMinecraftColour color = eMinecraftColour_NOT_SET, bool italics = false, bool indent = false);
wstring ToString();
static wstring Compose(vector<HtmlString> *strings);
};
|