mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 23:47:58 +00:00
17 lines
576 B
C++
17 lines
576 B
C++
#pragma once
|
|
|
|
// 4J: Simple std::string wrapper that includes basic formatting information
|
|
class HtmlString {
|
|
public:
|
|
std::wstring text; // Text content of std::string
|
|
eMinecraftColour color; // Hex color
|
|
bool italics; // Show text in italics
|
|
bool indent; // Indent text
|
|
|
|
HtmlString(std::wstring text,
|
|
eMinecraftColour color = eMinecraftColour_NOT_SET,
|
|
bool italics = false, bool indent = false);
|
|
std::wstring ToString();
|
|
|
|
static std::wstring Compose(std::vector<HtmlString>* strings);
|
|
}; |