var app; function loadVue() { Vue.component('layer-node', { props: ['layer', 'abb'], template: ` ` }) // data = a function returning the content Vue.component('display-text', { props: ['layer', 'data'], template: ` {{readData(data)}} ` }) // data = a function returning html content, with some limited functionality Vue.component('raw-html', { props: ['layer', 'data'], template: ` ` }) // Blank lines, data = optional height in px or pair with width and height in px Vue.component('blank', { props: ['layer', 'data'], template: `

` }) // data = an array of Components to be displayed in a row Vue.component('row', { props: ['layer', 'data'], template: `
` }) // data = an array of Components to be displayed in a column Vue.component('column', { props: ['layer', 'data'], template: `
` }) Vue.component('challs', { props: ['layer'], template: `

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





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

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

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


{{tmp.milestones[layer][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}}, {{tmp.effectDescription[layer]}}

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


` }) // data = id of buyable Vue.component('buyable', { props: ['layer', 'data', 'size'], template: `
` }) app = new Vue({ el: "#app", data: { player, tmp, Decimal, format, formatWhole, formatTime, focused, getThemeName, layerUnl, doReset, buyUpg, startChall, milestoneShown, keepGoing, VERSION, ENDGAME, LAYERS, hotkeys }, }) }