2020-08-19 02:50:24 +00:00
var app ;
function loadVue ( ) {
2020-09-11 02:15:05 +00:00
Vue . component ( 'layer-node' , {
props : [ 'layer' , 'abb' ] ,
template : `
< button v - if = "nodeShown(layer)"
v - bind : id = "layer"
v - on : click = " function ( ) {
showTab ( layer )
} "
v - bind : tooltip = "
layerUnl ( layer ) ? formatWhole ( player [ layer ] . points ) + ' ' + LAYER _RES [ layer ]
: 'Reach ' + formatWhole ( tmp . layerReqs [ layer ] ) + ' ' + LAYER _AMT _NAMES [ layer ] + ' to unlock (You have ' + formatWhole ( tmp . layerAmt [ layer ] ) + ' ' + LAYER _AMT _NAMES [ layer ] + ')'
"
v - bind : class = " {
treeNode : true ,
[ layer ] : true ,
hidden : ! layerShown ( layer ) ,
locked : ! layerUnl ( layer ) ,
can : layerUnl ( layer )
} " >
{ { abb } }
< / b u t t o n >
`
} )
2020-08-19 02:50:24 +00:00
app = new Vue ( {
2020-09-11 02:15:05 +00:00
el : "#app" ,
data : {
player ,
tmp ,
offTime ,
Decimal ,
format ,
formatWhole ,
formatTime ,
focused ,
2020-09-14 19:26:10 +00:00
getThemeName ,
2020-09-11 02:15:05 +00:00
layerUnl ,
getLayerEffDesc ,
doReset ,
buyUpg ,
getEnhancerCost ,
getExtCapsuleCost ,
getSpace ,
getSpaceBuildingsUnl ,
getSpaceBuildingCost ,
getSpaceBuildingEffDesc ,
buyBuilding ,
getQuirkLayerCost ,
buyQuirkLayer ,
2020-09-14 02:41:42 +00:00
startChall ,
2020-09-11 02:15:05 +00:00
milestoneShown ,
destroyBuilding ,
getSpellDesc ,
activateSpell ,
spellActive ,
updateToCast ,
keepGoing ,
2020-09-14 19:26:10 +00:00
VERSION ,
ENDGAME ,
2020-09-11 02:15:05 +00:00
LAYERS ,
LAYER _RES ,
LAYER _TYPE ,
LAYER _UPGS ,
LAYER _EFFS ,
LAYER _AMT _NAMES ,
LAYER _RES _CEIL ,
2020-09-14 02:41:42 +00:00
LAYER _CHALLS ,
SPACE _BUILDINGS ,
2020-09-11 02:15:05 +00:00
SPELL _NAMES ,
2020-09-13 02:38:32 +00:00
LIFE _BOOSTERS ,
2020-09-14 02:41:42 +00:00
HYPERSPACE ,
IMPERIUM
2020-09-11 02:15:05 +00:00
} ,
2020-08-19 02:50:24 +00:00
} )
}