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:
parent
5e324fe59b
commit
fedf644330
5 changed files with 20 additions and 7 deletions
js/Demo
|
@ -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)}
|
||||
},
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue