Spaces:
Runtime error
Runtime error
Update lineupRenderer.js
Browse files- lineupRenderer.js +2 -2
lineupRenderer.js
CHANGED
|
@@ -168,7 +168,7 @@ async function renderLineupImage(lineup, formKey, formation, client) {
|
|
| 168 |
ctx.fillStyle = '#ffffff';
|
| 169 |
ctx.font = 'bold 20px Arial, sans-serif';
|
| 170 |
ctx.textAlign = 'center';
|
| 171 |
-
ctx.fillText('
|
| 172 |
|
| 173 |
ctx.strokeStyle = '#5865F2';
|
| 174 |
ctx.lineWidth = 2;
|
|
@@ -196,7 +196,7 @@ async function renderLineupImage(lineup, formKey, formation, client) {
|
|
| 196 |
ctx.fillStyle = '#ffffff';
|
| 197 |
ctx.font = 'bold 16px Arial, sans-serif';
|
| 198 |
ctx.textAlign = 'center';
|
| 199 |
-
ctx.fillText(`
|
| 200 |
ctx.restore();
|
| 201 |
|
| 202 |
// Extract subs and draw them
|
|
|
|
| 168 |
ctx.fillStyle = '#ffffff';
|
| 169 |
ctx.font = 'bold 20px Arial, sans-serif';
|
| 170 |
ctx.textAlign = 'center';
|
| 171 |
+
ctx.fillText('SUBSTITUTES', SIDEBAR_W / 2, 30);
|
| 172 |
|
| 173 |
ctx.strokeStyle = '#5865F2';
|
| 174 |
ctx.lineWidth = 2;
|
|
|
|
| 196 |
ctx.fillStyle = '#ffffff';
|
| 197 |
ctx.font = 'bold 16px Arial, sans-serif';
|
| 198 |
ctx.textAlign = 'center';
|
| 199 |
+
ctx.fillText(`LINEUP — ${formKey.toUpperCase()}`, PITCH_W / 2, 24);
|
| 200 |
ctx.restore();
|
| 201 |
|
| 202 |
// Extract subs and draw them
|