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: `
`
})
Vue.component('prestige-button', {
props: ['layer'],
template: `
`
})
// data = content
Vue.component('display-text', {
props: ['layer', 'data'],
template: `
{{data()}}
`
})
// text, colorful and with the shadowy effect. You can probably do other custom text effects if you want.
Vue.component('colored-text', {
props: ['layer', 'data', 'data2'],
template: `
{{data()}}
`
})
// 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
},
})
}