mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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",
|
||||
"chara",
|
||||
"flowey",
|
||||
"ghost",
|
||||
"napstablook",
|
||||
"papyrus",
|
||||
"sans",
|
||||
"temmie",
|
||||
|
||||
@@ -82,11 +82,22 @@ module.exports = class UndertaleCommand extends Command {
|
||||
const canvas = createCanvas(base.width, base.height);
|
||||
const ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(base, 0, 0);
|
||||
let font;
|
||||
let font = 'DeterminationMono';
|
||||
switch (character) {
|
||||
case 'sans': font = 'UndertaleSans'; break;
|
||||
case 'papyrus': font = 'UndertalePapyrus'; break;
|
||||
default: font = 'DeterminationMono'; break;
|
||||
case 'sans':
|
||||
font = 'UndertaleSans';
|
||||
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.fillStyle = 'white';
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "116.27.0",
|
||||
"version": "116.27.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user