MCPcopy Create free account
hub / github.com/codecombat/codecombat / getRenderData

Method getRenderData

app/views/play/menu/GameMenuModal.js:73–90  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

71 }
72
73 getRenderData (context) {
74 if (context == null) { context = {} }
75 context = super.getRenderData(context)
76 const submenus = ['my-code', 'options']
77 context.showTab = this.options.showTab != null ? this.options.showTab : submenus[0]
78 context.iconMap = {
79 'my-code': 'list-alt',
80 options: 'cog',
81 'save-load': 'floppy-disk',
82 }
83 if (!this.options.inOzariaMap && !this.showsChooseHero()) {
84 submenus.push('change-language')
85 context.iconMap['change-language'] = 'globe'
86 }
87 context.submenus = submenus
88 context.isCodeCombat = !utils.showOzaria()
89 return context
90 }
91
92 showsCourseVideos () {
93 return me.isStudent() && this.options.courseID === utils.courseIDs.INTRODUCTION_TO_COMPUTER_SCIENCE

Callers

nothing calls this directly

Calls 1

showsChooseHeroMethod · 0.95

Tested by

no test coverage detected