diff --git a/changelog.md b/changelog.md index ffb3b60..5c0c2dc 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,10 @@ # The Modding Tree changelog: -### v2.2.3 - +### v2.2.3 - +- Layers will be highlighted if you can finish a challenge. +- The "can complete challenge" color now overrides the "already completed" color. - Button nodes now work as side "layers". +- Setting a tooltip to "" hides it entirely. ### v2.2.2 - 11/22/20 - Fixed right half of the screen being unclickable in some circumstances. diff --git a/docs/achievements.md b/docs/achievements.md index 79db200..7f03a5e 100644 --- a/docs/achievements.md +++ b/docs/achievements.md @@ -31,7 +31,7 @@ Individual achievement can have these features: - done(): A function returning a boolean to determine if the achievement should be awarded. -- tooltip: Default tooltip for the achievement, appears when it is hovered over. Should convey the goal and any reward for completing the achievement. It can also be a function that returns updating text. Can use basic HTML. +- tooltip: Default tooltip for the achievement, appears when it is hovered over. Should convey the goal and any reward for completing the achievement. It can also be a function that returns updating text. Can use basic HTML. Setting this to "" disables the tooltip. - effect(): **optional**. A function that calculates and returns the current values of any bonuses from the achievement. Can return a value or an object containing multiple values. diff --git a/docs/custom-tab-layouts.md b/docs/custom-tab-layouts.md index 0bda628..20860a1 100644 --- a/docs/custom-tab-layouts.md +++ b/docs/custom-tab-layouts.md @@ -23,7 +23,7 @@ tabFormat: [ 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) applies a CSS style to it with a "CSS object", where the keys are CSS attributes. -These are the existing components, but you can create more in [v.js](/js/v.js): +These are the existing components, but you can create more in [components.js](/js/components.js): - display-text: Displays some text (can use basic HTML). The argument is the text to display. It can also be a function that returns updating text. diff --git a/docs/layer-features.md b/docs/layer-features.md index 88034ad..7e840e5 100644 --- a/docs/layer-features.md +++ b/docs/layer-features.md @@ -121,6 +121,7 @@ You can make almost any value dynamic by using a function in its place, includin - nodeStyle: **optional**. A CSS object, where the keys are CSS attributes, which styles this layer's node on the tree. - tooltip() / tooltipLocked(): **optional**. Functions that return text, which is the tooltip for the node when the layer is unlocked or locked, respectively. By default the tooltips behave the same as in the original Prestige Tree. + If the value is "", the tooltip will be disabled. ## Other features diff --git a/js/Demo/demoLayers.js b/js/Demo/demoLayers.js index eb6e408..a340bcc 100644 --- a/js/Demo/demoLayers.js +++ b/js/Demo/demoLayers.js @@ -492,6 +492,7 @@ addLayer("a", { 11: { name: "Get me!", done() {return true}, // This one is a freebie + tooltip: "", goalTooltip: "How did this happen?", // Shows when achievement is not completed doneTooltip: "You did it!", // Showed when the achievement is completed }, diff --git a/js/components.js b/js/components.js index 760d612..3f7db55 100644 --- a/js/components.js +++ b/js/components.js @@ -119,7 +119,7 @@ function loadVue() { Vue.component('challenge', { props: ['layer', 'data'], template: ` -
+






@@ -357,7 +357,7 @@ function loadVue() { template: `