2022-03-08 23:24:48 +00:00
|
|
|
import ImageCommand from "../../classes/imageCommand.js";
|
|
|
|
|
2022-03-09 19:30:18 +00:00
|
|
|
class SpeechBubbleCommand extends ImageCommand {
|
2022-06-07 21:27:47 +00:00
|
|
|
params() {
|
|
|
|
return {
|
2022-06-25 03:03:34 +00:00
|
|
|
water: this.options.alpha ? "assets/images/speech.png" : "assets/images/speechbubble.png",
|
2022-06-07 21:27:47 +00:00
|
|
|
gravity: "north",
|
|
|
|
resize: true,
|
|
|
|
yscale: 0.2,
|
2022-11-11 22:48:39 +00:00
|
|
|
alpha: this.options.alpha ? true : false,
|
|
|
|
flip: this.options.flip ? true : false
|
2022-06-07 21:27:47 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
static init() {
|
|
|
|
super.init();
|
|
|
|
this.flags.push({
|
|
|
|
name: "alpha",
|
|
|
|
description: "Make the top of the speech bubble transparent",
|
|
|
|
type: 5
|
2022-06-23 02:55:09 +00:00
|
|
|
}, {
|
|
|
|
name: "flip",
|
|
|
|
description: "Flips the speech bubble",
|
|
|
|
type: 5
|
2022-06-07 21:27:47 +00:00
|
|
|
});
|
|
|
|
return this;
|
|
|
|
}
|
2022-03-08 23:24:48 +00:00
|
|
|
|
2022-03-09 19:30:18 +00:00
|
|
|
static description = "Adds a speech bubble to an image";
|
2022-06-22 16:22:56 +00:00
|
|
|
static aliases = ["speech"];
|
2022-03-08 23:24:48 +00:00
|
|
|
|
2022-03-09 19:30:18 +00:00
|
|
|
static noImage = "You need to provide an image/GIF to add a speech bubble!";
|
|
|
|
static command = "watermark";
|
2022-03-08 23:24:48 +00:00
|
|
|
}
|
|
|
|
|
2022-03-09 19:30:18 +00:00
|
|
|
export default SpeechBubbleCommand;
|