({
sound,
callback
})
| 9 | |
| 10 | export class MuteButton extends Interface { |
| 11 | constructor({ |
| 12 | sound, |
| 13 | callback |
| 14 | }) { |
| 15 | super('.button'); |
| 16 | |
| 17 | this.sound = sound; |
| 18 | this.callback = callback; |
| 19 | |
| 20 | this.width = 24; |
| 21 | this.height = 16; |
| 22 | this.animatedIn = false; |
| 23 | this.needsUpdate = false; |
| 24 | |
| 25 | this.props = { |
| 26 | progress: 0, |
| 27 | yMultiplier: this.sound ? 1 : 0 |
| 28 | }; |
| 29 | |
| 30 | this.init(); |
| 31 | this.initCanvas(); |
| 32 | this.setSound(this.sound); |
| 33 | |
| 34 | this.addListeners(); |
| 35 | } |
| 36 | |
| 37 | init() { |
| 38 | this.css({ |
nothing calls this directly
no test coverage detected