Profile: Add stats bar to new rendering

This commit is contained in:
2023-06-12 14:38:40 +02:00
committed by Minz
parent 490db1c70f
commit 6d35019e3e

View File

@@ -112,12 +112,52 @@ module.exports = {
"height": 30, "height": 30,
"horizontalAlignment": "center" "horizontalAlignment": "center"
}, },
{
"type": "text",
"text": `CC: ${await Card.count({where: {userId: user.id}})}`,
"fontSize": 30,
"x": 550,
"y": 20,
"width": 150,
"height": 30,
"horizontalAlignment": "left"
},
{
"type": "text",
"text": `LVL: ${await user.level().currentLevel}`,
"fontSize": 30,
"x": 700,
"y": 20,
"width": 150,
"height": 30,
"horizontalAlignment": "left"
},
{
"type": "text",
"text": `${await user.primaryCurrency} ${CURRENCY_NAMES[1]}`,
"fontSize": 30,
"x": 850,
"y": 20,
"width": 150,
"height": 30,
"horizontalAlignment": "left"
},
{
"type": "text",
"text": `${await user.secondaryCurrency} ${CURRENCY_NAMES[2]}`,
"fontSize": 30,
"x": 1000,
"y": 20,
"width": 150,
"height": 30,
"horizontalAlignment": "left"
},
{ {
"type": "text", "type": "text",
"text": customStatus, "text": customStatus,
"fontSize": 30, "fontSize": 30,
"x": 550, "x": 550,
"y": 25, "y": 30,
"width": 600, "width": 600,
"height": 300, "height": 300,
"horizontalAlignment": "left" "horizontalAlignment": "left"