From 62d0753d5067a2923c517ca5c51e4ffd730d2b51 Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Thu, 1 Oct 2020 01:38:59 -0400 Subject: [PATCH] More format fixes on docs --- docs/custom-tab-layouts.md | 12 ++++++------ docs/milestones.md | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/custom-tab-layouts.md b/docs/custom-tab-layouts.md index 09e0c47..1498b71 100644 --- a/docs/custom-tab-layouts.md +++ b/docs/custom-tab-layouts.md @@ -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: `` tabFormat: ["main-display", - ["prestige-button", function(){return "Melt your points into "}], - ["raw-html", function() {return ""}], - ["display-text", + ["prestige-button", function(){return "Melt your points into "}], + ["raw-html", function() {return ""}], + ["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"] `` + "blank", + ["toggle", ["c", "beep"]], + "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, which applies its style to the component. diff --git a/docs/milestones.md b/docs/milestones.md index 4c128e6..3b7e1de 100644 --- a/docs/milestones.md +++ b/docs/milestones.md @@ -4,7 +4,7 @@ Milestones should be formatted like this: ``milestones: { 0: { - requirementDesc: "123 waffles", + requirementDesc: "123 waffles", } etc }``