mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
More format fixes on docs
This commit is contained in:
parent
6d7e424fae
commit
62d0753d50
2 changed files with 7 additions and 7 deletions
|
@ -3,14 +3,14 @@
|
||||||
Custom tab layouts can be used to do basically anything in a tab window, especially combined with the "style" layer feature. The tabFormat feature is an array of things, like this:
|
Custom tab layouts can be used to do basically anything in a tab window, especially combined with the "style" layer feature. The tabFormat feature is an array of things, like this:
|
||||||
|
|
||||||
`` tabFormat: ["main-display",
|
`` tabFormat: ["main-display",
|
||||||
["prestige-button", function(){return "Melt your points into "}],
|
["prestige-button", function(){return "Melt your points into "}],
|
||||||
["raw-html", function() {return "<button onclick='console.log(`yeet`)'>'HI'</button>"}],
|
["raw-html", function() {return "<button onclick='console.log(`yeet`)'>'HI'</button>"}],
|
||||||
["display-text",
|
["display-text",
|
||||||
function() {return 'I have ' + format(player.points) + ' pointy points!'},
|
function() {return 'I have ' + format(player.points) + ' pointy points!'},
|
||||||
{"color": "red", "font-size": "32px", "font-family": "Comic Sans MS"}],
|
{"color": "red", "font-size": "32px", "font-family": "Comic Sans MS"}],
|
||||||
"blank",
|
"blank",
|
||||||
["toggle", ["c", "beep"]],
|
["toggle", ["c", "beep"]],
|
||||||
"milestones", "blank", "blank", "upgrades"] ``
|
"milestones", "blank", "blank", "upgrades"] ``
|
||||||
|
|
||||||
It is a list of components, which can be either just a name, or an array with arguments. If it's an array, the first item is the name of the component, the second is the data passed into it, and the third (optional) is a CSS object,
|
It is a list of components, which can be either just a name, or an array with arguments. If it's an array, the first item is the name of the component, the second is the data passed into it, and the third (optional) is a CSS object,
|
||||||
which applies its style to the component.
|
which applies its style to the component.
|
||||||
|
|
|
@ -4,7 +4,7 @@ Milestones should be formatted like this:
|
||||||
|
|
||||||
``milestones: {
|
``milestones: {
|
||||||
0: {
|
0: {
|
||||||
requirementDesc: "123 waffles",
|
requirementDesc: "123 waffles",
|
||||||
}
|
}
|
||||||
etc
|
etc
|
||||||
}``
|
}``
|
||||||
|
|
Loading…
Reference in a new issue