mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 21:40:49 +02:00
Correct casing and such in undertale
This commit is contained in:
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -3,7 +3,7 @@
|
|||||||
"asgore",
|
"asgore",
|
||||||
"chara",
|
"chara",
|
||||||
"flowey",
|
"flowey",
|
||||||
"ghost",
|
"napstablook",
|
||||||
"papyrus",
|
"papyrus",
|
||||||
"sans",
|
"sans",
|
||||||
"temmie",
|
"temmie",
|
||||||
|
|||||||
@@ -82,11 +82,22 @@ module.exports = class UndertaleCommand extends Command {
|
|||||||
const canvas = createCanvas(base.width, base.height);
|
const canvas = createCanvas(base.width, base.height);
|
||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
let font;
|
let font = 'DeterminationMono';
|
||||||
switch (character) {
|
switch (character) {
|
||||||
case 'sans': font = 'UndertaleSans'; break;
|
case 'sans':
|
||||||
case 'papyrus': font = 'UndertalePapyrus'; break;
|
font = 'UndertaleSans';
|
||||||
default: font = 'DeterminationMono'; break;
|
text = text.toLowerCase();
|
||||||
|
break;
|
||||||
|
case 'papyrus':
|
||||||
|
font = 'UndertalePapyrus';
|
||||||
|
text = text.toUpperCase();
|
||||||
|
break;
|
||||||
|
case 'napstablook':
|
||||||
|
text = text.toLowerCase();
|
||||||
|
break;
|
||||||
|
case 'temmie':
|
||||||
|
text = this.client.registry.commands.get('temmie').temmize(text);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
ctx.font = `31px ${font}`;
|
ctx.font = `31px ${font}`;
|
||||||
ctx.fillStyle = 'white';
|
ctx.fillStyle = 'white';
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "116.27.0",
|
"version": "116.27.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user