(options)
| 178 | } |
| 179 | |
| 180 | buildSpriteSheet (options) { |
| 181 | this.options = this.fillOptions(options) |
| 182 | const key = this.spriteSheetKey(this.options) |
| 183 | const ss = this.spriteSheets[key] |
| 184 | if (!this.isFullyLoaded() || !this.get('raw')) { return false } |
| 185 | if (ss) { return ss } |
| 186 | if (this.building[key]) { |
| 187 | this.options = null |
| 188 | return key |
| 189 | } |
| 190 | this.t0 = new Date().getTime() |
| 191 | this.initBuild(options) |
| 192 | if (!this.options.portraitOnly) { this.addGeneralFrames() } |
| 193 | this.addPortrait() |
| 194 | this.building[key] = true |
| 195 | const result = this.finishBuild() |
| 196 | return result |
| 197 | } |
| 198 | |
| 199 | initBuild (options) { |
| 200 | if (!this.actions) { this.buildActions() } |
no test coverage detected