var app; function loadVue() { Vue.component('layer-node', { props: ['layer', 'abb'], template: ` ` }) Vue.component('challs', { props: ['layer'], template: `

{{layers[layer].challs[row*10+col].name}}





{{layers[layer].challs[row*10+col].desc}}
Goal: {{format(layers[layer].challs[row*10+col].goal)}} {{layers[layer].challs[row*10+col].currencyDisplayName ? layers[layer].challs[row*10+col].currencyDisplayName : "points"}}
Reward: {{layers[layer].challs[row*10+col].reward}}
Currently: {{(layers[layer].challs[row*10+col].effDisp) ? (layers[layer].challs[row*10+col].effDisp(layers[layer].challs[row*10+col].effect())) : format(layers[layer].challs[row*10+col].effect())}}
` }) Vue.component('upgrades', { props: ['layer'], template: `

` }) Vue.component('milestones', { props: ['layer'], template: `

{{layers[layer].milestones[id].requirementDesc}}


{{layers[layer].milestones[id].effectDesc}}
 

` }) Vue.component('toggle', { props: ['layer', 'data'], template: ` ` }) // data = function to return the text describing the reset before the amount gained (optional) Vue.component('prestige-button', { props: ['layer', 'data'], template: ` ` }) // Displays the main resource for the layer Vue.component('main-display', { props: ['layer'], template: `
You have

{{formatWhole(player[layer].points)}}

{{layers[layer].resource}}, {{layers[layer].effectDescription()}}

` }) // data = button size, in px Vue.component('buyables', { props: ['layer', 'data'], template: `


` }) // data = id of buyable Vue.component('buyable', { props: ['layer', 'data', 'size'], template: `
` }) // data = a function returning the content Vue.component('display-text', { props: ['layer', 'data'], template: ` {{data()}} ` }) // data = a function returning html content, with some limited functionality Vue.component('raw-html', { props: ['layer', 'data'], template: ` ` }) // Blank lines Vue.component('blank', { props: ['layer', 'data'], template: `
` }) app = new Vue({ el: "#app", data: { player, tmp, layers, Decimal, format, formatWhole, formatTime, focused, getThemeName, layerUnl, doReset, buyUpg, startChall, milestoneShown, keepGoing, VERSION, ENDGAME, LAYERS, hotkeys }, }) }