1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-21 08:51:00 +00:00

Added slider component

This commit is contained in:
Harley White 2021-04-26 23:16:34 -04:00
parent 5e324fe59b
commit fedf644330
5 changed files with 20 additions and 7 deletions

View file

@ -36,11 +36,11 @@ addNode("g", {
addNode("h", {
branches: ["g"],
layerShown: true,
tooltip: "Restore your points to 10",
tooltipLocked: "Restore your points to 10",
tooltip() {return "Restore your points to " + player.c.otherThingy},
tooltipLocked() {return "Restore your points to " + player.c.otherThingy},
row: "side",
canClick() {return player.points.lt(10)},
onClick() {player.points = new Decimal(10)}
canClick() {return player.points.lt(player.c.otherThingy)},
onClick() {player.points = new Decimal(player.c.otherThingy)}
},
)