2020-10-28 02:35:07 +00:00
|
|
|
// treeLayout will override the default tree's layout if used
|
2020-10-30 00:33:39 +00:00
|
|
|
var layoutInfo = {
|
2020-10-30 23:40:48 +00:00
|
|
|
startTab: "c",
|
2020-10-30 00:33:39 +00:00
|
|
|
showTree: true,
|
2020-10-28 02:35:07 +00:00
|
|
|
|
2020-10-30 01:49:34 +00:00
|
|
|
//treeLayout: ""
|
2020-10-30 00:33:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
}
|
2020-10-28 02:35:07 +00:00
|
|
|
|
|
|
|
// A "ghost" layer which offsets f in the tree
|
|
|
|
addNode("spook", {
|
|
|
|
row: 1,
|
|
|
|
layerShown: "ghost",
|
|
|
|
},
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// A "ghost" layer which offsets f in the tree
|
|
|
|
addNode("g", {
|
|
|
|
symbol: "TH",
|
|
|
|
branches: ["c"],
|
|
|
|
color: '#6d3678',
|
|
|
|
layerShown: true,
|
|
|
|
canClick() {return player.points.gte(10)},
|
|
|
|
tooltip: "Thanos your points",
|
|
|
|
tooltipLocked: "Thanos your points",
|
2020-12-13 02:43:22 +00:00
|
|
|
onClick() {player.points = player.points.div(2)
|
|
|
|
console.log(this.layer)}
|
2020-10-28 02:35:07 +00:00
|
|
|
|
|
|
|
},
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// A "ghost" layer which offsets f in the tree
|
|
|
|
addNode("h", {
|
|
|
|
branches: ["g"],
|
|
|
|
layerShown: true,
|
2021-04-27 03:16:34 +00:00
|
|
|
tooltip() {return "Restore your points to " + player.c.otherThingy},
|
|
|
|
tooltipLocked() {return "Restore your points to " + player.c.otherThingy},
|
2020-11-25 07:14:59 +00:00
|
|
|
row: "side",
|
2021-04-27 03:16:34 +00:00
|
|
|
canClick() {return player.points.lt(player.c.otherThingy)},
|
|
|
|
onClick() {player.points = new Decimal(player.c.otherThingy)}
|
2020-10-28 02:35:07 +00:00
|
|
|
},
|
|
|
|
)
|
2020-10-30 01:49:34 +00:00
|
|
|
|
|
|
|
addLayer("tree-tab", {
|
2021-05-26 05:44:12 +00:00
|
|
|
tabFormat: [["tree", function() {return (layoutInfo.treeLayout ? layoutInfo.treeLayout : TREE_LAYERS)}]],
|
|
|
|
previousTab: "",
|
|
|
|
leftTab: true,
|
|
|
|
|
2020-10-30 01:49:34 +00:00
|
|
|
})
|