| 102 | } |
| 103 | |
| 104 | afterRender () { |
| 105 | super.afterRender() |
| 106 | for (const SubmenuView of Array.from(submenuViews)) { this.insertSubView(new SubmenuView(this.options)) } |
| 107 | let firstView = this.subviews.my_code_view |
| 108 | if (utils.showOzaria()) { |
| 109 | // ozaria still uses options_view |
| 110 | firstView = this.subviews.options_view |
| 111 | } |
| 112 | if (firstView) { |
| 113 | firstView.$el.addClass('active') |
| 114 | if (typeof firstView.onShown === 'function') { |
| 115 | firstView.onShown() |
| 116 | } |
| 117 | } |
| 118 | this.playSound('game-menu-open') |
| 119 | return this.$el.find('.nano:visible').nanoScroller() |
| 120 | } |
| 121 | |
| 122 | onTabShown (e) { |
| 123 | this.playSound('game-menu-tab-switch') |