mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Fix
This commit is contained in:
@@ -137,12 +137,12 @@ module.exports = class WhosThatPokemonCommand extends Command {
|
|||||||
const { x, y, width, height } = centerImagePart(pkmn, 200, 200, 30, 39);
|
const { x, y, width, height } = centerImagePart(pkmn, 200, 200, 30, 39);
|
||||||
if (hide) {
|
if (hide) {
|
||||||
ctx.globalAlpha = 0.5;
|
ctx.globalAlpha = 0.5;
|
||||||
ctx.drawImage(silhouetteCanvas, x - 5, x + 5, width, height);
|
ctx.drawImage(silhouetteCanvas, x - 5, y + 5, width, height);
|
||||||
ctx.globalAlpha = 1;
|
ctx.globalAlpha = 1;
|
||||||
ctx.drawImage(silhouetteCanvas, x, y, width, height);
|
ctx.drawImage(silhouetteCanvas, x, y, width, height);
|
||||||
} else {
|
} else {
|
||||||
ctx.globalAlpha = 0.5;
|
ctx.globalAlpha = 0.5;
|
||||||
ctx.drawImage(silhouetteCanvas, x - 5, x + 5, width, height);
|
ctx.drawImage(silhouetteCanvas, x - 5, y + 5, width, height);
|
||||||
ctx.globalAlpha = 1;
|
ctx.globalAlpha = 1;
|
||||||
ctx.drawImage(pkmn, x, y, width, height);
|
ctx.drawImage(pkmn, x, y, width, height);
|
||||||
ctx.font = this.client.fonts.get('Pokemon Solid.ttf').toCanvasString(60);
|
ctx.font = this.client.fonts.get('Pokemon Solid.ttf').toCanvasString(60);
|
||||||
|
|||||||
Reference in New Issue
Block a user