mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Fix
This commit is contained in:
@@ -138,14 +138,14 @@ module.exports = class WhosThatPokemonCommand extends Command {
|
|||||||
const width = pkmn.width * ratio;
|
const width = pkmn.width * ratio;
|
||||||
if (hide) {
|
if (hide) {
|
||||||
ctx.globalAlpha = 0.5;
|
ctx.globalAlpha = 0.5;
|
||||||
ctx.drawImage(silhouetteCanvas, 25, 44, width, 200);
|
ctx.drawImage(silhouetteCanvas, 25 + (200 - width), 44, width, 200);
|
||||||
ctx.globalAlpha = 1;
|
ctx.globalAlpha = 1;
|
||||||
ctx.drawImage(silhouetteCanvas, 30, 39, width, 200);
|
ctx.drawImage(silhouetteCanvas, 30 + (200 - width), 39, width, 200);
|
||||||
} else {
|
} else {
|
||||||
ctx.globalAlpha = 0.5;
|
ctx.globalAlpha = 0.5;
|
||||||
ctx.drawImage(silhouetteCanvas, 25, 44, width, 200);
|
ctx.drawImage(silhouetteCanvas, 25 + (200 - width), 44, width, 200);
|
||||||
ctx.globalAlpha = 1;
|
ctx.globalAlpha = 1;
|
||||||
ctx.drawImage(pkmn, 30, 39, width, 200);
|
ctx.drawImage(pkmn, 30 + (200 - width), 39, width, 200);
|
||||||
ctx.font = this.client.fonts.get('Pokemon Solid.ttf').toCanvasString(60);
|
ctx.font = this.client.fonts.get('Pokemon Solid.ttf').toCanvasString(60);
|
||||||
ctx.textAlign = 'center';
|
ctx.textAlign = 'center';
|
||||||
ctx.textBaseline = 'bottom';
|
ctx.textBaseline = 'bottom';
|
||||||
|
|||||||
Reference in New Issue
Block a user