Merge branch 'components-resource-pack-fix' of https://github.com/cadenmiller/PrismLauncher into components-resource-pack-fix
This commit is contained in:
commit
07645984b5
@ -272,7 +272,6 @@ struct TextFormatter {
|
||||
bool processComponent(const QJsonValue& value, QString& result, const TextFormatter* parentFormat)
|
||||
{
|
||||
TextFormatter formatter;
|
||||
|
||||
if (parentFormat)
|
||||
formatter = *parentFormat;
|
||||
|
||||
|
@ -1,4 +1,8 @@
|
||||
{
|
||||
"description": [{"text": "Hello, Component!"}],
|
||||
"expected_output": "Hello, Component!"
|
||||
"description": [
|
||||
{
|
||||
"text": "Hello, Component!"
|
||||
}
|
||||
],
|
||||
"expected_output": "Hello, Component!"
|
||||
}
|
||||
|
@ -1,18 +1,18 @@
|
||||
{
|
||||
"description": [
|
||||
{
|
||||
"text": "Hello, ",
|
||||
"color": "red",
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"extra": [
|
||||
"description": [
|
||||
{
|
||||
"extra": "Component!",
|
||||
"bold": false,
|
||||
"italic": false
|
||||
"text": "Hello, ",
|
||||
"color": "red",
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"extra": [
|
||||
{
|
||||
"extra": "Component!",
|
||||
"bold": false,
|
||||
"italic": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"expected_output": "<font color=\"red\"><b><i>Hello, </i></b></font><font color=\"red\">Component!</font>"
|
||||
],
|
||||
"expected_output": "<font color=\"red\"><b><i>Hello, </i></b></font><font color=\"red\">Component!</font>"
|
||||
}
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"description": [
|
||||
{
|
||||
"text": "Hello, Component!",
|
||||
"color": "blue",
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"underlined": true,
|
||||
"strikethrough": true
|
||||
}
|
||||
],
|
||||
"expected_output": "<font color=\"blue\"><b><i><u><s>Hello, Component!</s></u></i></b></font>"
|
||||
"description": [
|
||||
{
|
||||
"text": "Hello, Component!",
|
||||
"color": "blue",
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"underlined": true,
|
||||
"strikethrough": true
|
||||
}
|
||||
],
|
||||
"expected_output": "<font color=\"blue\"><b><i><u><s>Hello, Component!</s></u></i></b></font>"
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"description": [
|
||||
{
|
||||
"text": "Hello, Component!",
|
||||
"clickEvent": {
|
||||
"open_url": true,
|
||||
"value": "https://google.com"
|
||||
}
|
||||
}
|
||||
],
|
||||
"expected_output": "<a href=\"https://google.com\">Hello, Component!</a>"
|
||||
"description": [
|
||||
{
|
||||
"text": "Hello, Component!",
|
||||
"clickEvent": {
|
||||
"open_url": true,
|
||||
"value": "https://google.com"
|
||||
}
|
||||
}
|
||||
],
|
||||
"expected_output": "<a href=\"https://google.com\">Hello, Component!</a>"
|
||||
}
|
||||
|
@ -1,40 +1,41 @@
|
||||
{
|
||||
"description": [
|
||||
{
|
||||
"text": "The quick ",
|
||||
"color": "blue",
|
||||
"italic": true
|
||||
},
|
||||
{
|
||||
"text": "brown fox ",
|
||||
"color": "#873600",
|
||||
"bold": true,
|
||||
"underlined": true,
|
||||
"extra": {
|
||||
"text": "jumped over ",
|
||||
"color": "blue",
|
||||
"bold": false,
|
||||
"underlined": false,
|
||||
"italic": true,
|
||||
"strikethrough": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "the lazy dog's back. ",
|
||||
"color": "green",
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"underlined": true,
|
||||
"strikethrough": true,
|
||||
"extra": [
|
||||
"description": [
|
||||
{
|
||||
"text": "1234567890 ",
|
||||
"color": "black",
|
||||
"strikethrough": false,
|
||||
"extra": "How vexingly quick daft zebras jump!"
|
||||
"text": "The quick ",
|
||||
"color": "blue",
|
||||
"italic": true
|
||||
},
|
||||
{
|
||||
"text": "brown fox ",
|
||||
"color": "#873600",
|
||||
"bold": true,
|
||||
"underlined": true,
|
||||
"extra": {
|
||||
"text": "jumped over ",
|
||||
"color": "blue",
|
||||
"bold": false,
|
||||
"underlined": false,
|
||||
"italic": true,
|
||||
"strikethrough": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "the lazy dog's back. ",
|
||||
"color": "green",
|
||||
"bold": true,
|
||||
"italic": true,
|
||||
"underlined": true,
|
||||
"strikethrough": true,
|
||||
"extra": [
|
||||
{
|
||||
"text": "1234567890 ",
|
||||
"color": "black",
|
||||
"strikethrough": false,
|
||||
"extra": "How vexingly quick daft zebras jump!"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"expected_output": "<font color=\"blue\"><i>The quick </i></font><font color=\"#873600\"><b><u>brown fox </u></b></font><font color=\"blue\"><i><s>jumped over </s></i></font><font color=\"green\"><b><i><u><s>the lazy dog's back. </s></u></i></b></font><font color=\"black\"><b><i><u>1234567890 </u></i></b></font><font color=\"black\"><b><i><u>How vexingly quick daft zebras jump!</u></i></b></font>"
|
||||
],
|
||||
"expected_output":
|
||||
"<font color=\"blue\"><i>The quick </i></font><font color=\"#873600\"><b><u>brown fox </u></b></font><font color=\"blue\"><i><s>jumped over </s></i></font><font color=\"green\"><b><i><u><s>the lazy dog's back. </s></u></i></b></font><font color=\"black\"><b><i><u>1234567890 </u></i></b></font><font color=\"black\"><b><i><u>How vexingly quick daft zebras jump!</u></i></b></font>"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user