mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-05-04 23:31:09 +00:00
Added "this" to tabFormat
This commit is contained in:
parent
b5a850bbee
commit
6273181bf8
6 changed files with 14 additions and 11 deletions
js/Demo
|
@ -304,7 +304,7 @@ addLayer("c", {
|
|||
["display-text", "Name your points!"],
|
||||
["text-input", "thingy"],
|
||||
["display-text",
|
||||
function() {return 'I have ' + format(player.points) + ' ' + player.c.thingy + ' points!'},
|
||||
function() {return 'I have ' + format(player.points) + ' ' + player[this.layer].thingy + ' points!'},
|
||||
{"color": "red", "font-size": "32px", "font-family": "Comic Sans MS"}],
|
||||
"h-line", "milestones", "blank", "upgrades", "challenges"],
|
||||
glowColor: "blue",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue