()
| 248 | } |
| 249 | |
| 250 | insertSubviews () { |
| 251 | let needle |
| 252 | this.insertSubView(this.tome = new TomeView({ levelID: this.levelID, session: this.session, otherSession: this.otherSession, thangs: this.world.thangs, supermodel: this.supermodel, spectateView: true, level: this.level, god: this.god })) |
| 253 | this.insertSubView(new PlaybackView({ session: this.session, level: this.level })) |
| 254 | |
| 255 | const goldInDuelStatsView = (needle = this.level.get('slug'), ['wakka-maul', 'cross-bones'].includes(needle)) |
| 256 | if (!goldInDuelStatsView) { this.insertSubView(new GoldView({})) } |
| 257 | this.insertSubView(new HUDView({ level: this.level })) |
| 258 | if (this.level.isLadder()) { this.insertSubView(new DuelStatsView({ level: this.level, session: this.session, otherSession: this.otherSession, supermodel: this.supermodel, thangs: this.world.thangs, showsGold: goldInDuelStatsView })) } |
| 259 | return this.insertSubView(this.controlBar = new ControlBarView({ worldName: utils.i18n(this.level.attributes, 'name'), session: this.session, level: this.level, supermodel: this.supermodel, spectateGame: true })) |
| 260 | } |
| 261 | |
| 262 | // callbacks |
| 263 |
no test coverage detected