()
| 2 | |
| 3 | class SpeechBubbleCommand extends MediaCommand { |
| 4 | paramsFunc() { |
| 5 | const parsedScale = this.getOptionNumber("scale"); |
| 6 | const alpha = this.getOptionBoolean("alpha"); |
| 7 | const bottom = this.getOptionBoolean("bottom"); |
| 8 | return { |
| 9 | water: alpha ? "assets/images/speech.png" : "assets/images/speechbubble.png", |
| 10 | gravity: bottom ? 8 : 2, |
| 11 | resize: true, |
| 12 | yscale: parsedScale != null && !Number.isNaN(parsedScale) ? parsedScale : 0.2, |
| 13 | alpha: !!alpha, |
| 14 | flipX: !!this.getOptionBoolean("flip"), |
| 15 | flipY: !!bottom, |
| 16 | }; |
| 17 | } |
| 18 | |
| 19 | static init() { |
| 20 | super.init(); |
nothing calls this directly
no test coverage detected