mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-28 11:01:43 +00:00
Better formatting style in layer files
This commit is contained in:
parent
d2476ebde6
commit
b20e35919e
2 changed files with 18 additions and 4 deletions
10
js/layers.js
10
js/layers.js
|
@ -99,7 +99,15 @@ var layers = {
|
||||||
incr_order: [], // Array of layer names to have their order increased when this one is first unlocked
|
incr_order: [], // Array of layer names to have their order increased when this one is first unlocked
|
||||||
|
|
||||||
// Optional, lets you format the tab yourself by listing components. You can create your own components in v.js.
|
// Optional, lets you format the tab yourself by listing components. You can create your own components in v.js.
|
||||||
tabFormat: ["main-display", ["prestige-button", function(){return "Melt your points into "}], ["raw-html", function() {return "<button onclick='console.log(`yeet`)'>'HI'</button>"}], ["display-text", function() {return 'I have ' + format(player.points) + ' pointy points!'}, {"color": "red", "font-size": "32px", "font-family": "Comic Sans MS"}], "blank", ["toggle", ["c", "beep"]], "milestones", "blank", "blank", "upgrades"]
|
tabFormat: ["main-display",
|
||||||
|
["prestige-button", function(){return "Melt your points into "}],
|
||||||
|
["raw-html", function() {return "<button onclick='console.log(`yeet`)'>'HI'</button>"}],
|
||||||
|
["display-text",
|
||||||
|
function() {return 'I have ' + format(player.points) + ' pointy points!'},
|
||||||
|
{"color": "red", "font-size": "32px", "font-family": "Comic Sans MS"}],
|
||||||
|
"blank",
|
||||||
|
["toggle", ["c", "beep"]],
|
||||||
|
"milestones", "blank", "blank", "upgrades"]
|
||||||
},
|
},
|
||||||
|
|
||||||
f: {
|
f: {
|
||||||
|
|
|
@ -125,8 +125,15 @@ var layers = {
|
||||||
branches: [], // Each pair corresponds to a line added to the tree when this node is unlocked. The letter is the other end of the line, and the number affects the color, 1 is default
|
branches: [], // Each pair corresponds to a line added to the tree when this node is unlocked. The letter is the other end of the line, and the number affects the color, 1 is default
|
||||||
|
|
||||||
// Optional, lets you format the tab yourself by listing components. You can create more in v.js.
|
// Optional, lets you format the tab yourself by listing components. You can create more in v.js.
|
||||||
tabFormat: [["colored-text", function() {return 'I have ' + format(player.points) + ' pointy points!'}, "red"], "blank", ["toggle", ["c", "beep"]], "milestones", "blank", "blank", "upgrades"]
|
tabFormat: ["main-display",
|
||||||
},
|
["prestige-button", function(){return "Melt your points into "}],
|
||||||
|
["raw-html", function() {return "<button onclick='console.log(`yeet`)'>'HI'</button>"}],
|
||||||
|
["display-text",
|
||||||
|
function() {return 'I have ' + format(player.points) + ' pointy points!'},
|
||||||
|
{"color": "red", "font-size": "32px", "font-family": "Comic Sans MS"}],
|
||||||
|
"blank",
|
||||||
|
["toggle", ["c", "beep"]],
|
||||||
|
"milestones", "blank", "blank", "upgrades"] },
|
||||||
f: { // This layer contains a more minimal set of things, besides a branch and "boop"
|
f: { // This layer contains a more minimal set of things, besides a branch and "boop"
|
||||||
startData() { return {
|
startData() { return {
|
||||||
unl: false,
|
unl: false,
|
||||||
|
@ -140,7 +147,6 @@ var layers = {
|
||||||
baseAmount() {return player.points},
|
baseAmount() {return player.points},
|
||||||
type: "normal",
|
type: "normal",
|
||||||
exponent: 0.5,
|
exponent: 0.5,
|
||||||
resCeil: false,
|
|
||||||
gainMult() {
|
gainMult() {
|
||||||
return new Decimal(1)
|
return new Decimal(1)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue