1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-12-12 09:21:36 +00:00

Fixed challenge glow + prestige button docs

This commit is contained in:
Harley White 2021-06-17 11:56:51 -04:00
parent a1d11ccf2b
commit 92f531273a
3 changed files with 4 additions and 4 deletions

View file

@ -3,6 +3,7 @@
# v2.6.4 - 6/17/21 # v2.6.4 - 6/17/21
- The game now autosaves before closing, if autosave is on. (Thank you to thepaperpilot for this!) - The game now autosaves before closing, if autosave is on. (Thank you to thepaperpilot for this!)
- More Anti-NaN safety. - More Anti-NaN safety.
- Fixed challenges glowing from countsAs.
- canReset now works properly for non-custom layers. - canReset now works properly for non-custom layers.
- Fixed baseAmount being set to 0 even when a layer resets nothing. - Fixed baseAmount being set to 0 even when a layer resets nothing.
- Fixed centering on tooltips. - Fixed centering on tooltips.

View file

@ -7,7 +7,7 @@ Custom tab layouts can be used to do basically anything in a tab window, especia
```js ```js
tabFormat: [ tabFormat: [
"main-display", "main-display",
["prestige-button", function() { return "Melt your points into " }], ["prestige-button"],
"blank", "blank",
["display-text", ["display-text",
function() { return 'I have ' + format(player.points) + ' pointy points!' }, function() { return 'I have ' + format(player.points) + ' pointy points!' },
@ -39,7 +39,7 @@ These are the existing components, but you can create more in [components.js](/j
- resource-display: The text that displays the currency that this layer is based on, as well as the best and/or total values for this layer's prestige currency (if they are put in `startData` for this layer). - resource-display: The text that displays the currency that this layer is based on, as well as the best and/or total values for this layer's prestige currency (if they are put in `startData` for this layer).
- prestige-button: The argument is a string that the prestige button should say before the amount of currency you will gain. It can also be a function that returns updating text. - prestige-button: The button to reset for a currency in this layer.
- text-input: A text input box. The argument is the name of the variable in player[layer] that the input is for, player[layer][argument] - text-input: A text input box. The argument is the name of the variable in player[layer] that the input is for, player[layer][argument]
(Works with strings, numbers, and Decimals!) (Works with strings, numbers, and Decimals!)

View file

@ -138,7 +138,7 @@ function loadVue() {
props: ['layer', 'data'], props: ['layer', 'data'],
template: ` template: `
<div v-if="tmp[layer].challenges && tmp[layer].challenges[data]!== undefined && tmp[layer].challenges[data].unlocked && !(options.hideChallenges && maxedChallenge(layer, [data]) && !inChallenge(layer, [data]))" <div v-if="tmp[layer].challenges && tmp[layer].challenges[data]!== undefined && tmp[layer].challenges[data].unlocked && !(options.hideChallenges && maxedChallenge(layer, [data]) && !inChallenge(layer, [data]))"
v-bind:class="['challenge', challengeStyle(layer, data), inChallenge(layer, data) ? 'resetNotify' : '']" v-bind:style="tmp[layer].challenges[data].style"> v-bind:class="['challenge', challengeStyle(layer, data), player[layer].activeChallenge === data ? 'resetNotify' : '']" v-bind:style="tmp[layer].challenges[data].style">
<br><h3 v-html="tmp[layer].challenges[data].name"></h3><br><br> <br><h3 v-html="tmp[layer].challenges[data].name"></h3><br><br>
<button v-bind:class="{ longUpg: true, can: true, [layer]: true }" v-bind:style="{'background-color': tmp[layer].color}" v-on:click="startChallenge(layer, data)">{{challengeButtonText(layer, data)}}</button><br><br> <button v-bind:class="{ longUpg: true, can: true, [layer]: true }" v-bind:style="{'background-color': tmp[layer].color}" v-on:click="startChallenge(layer, data)">{{challengeButtonText(layer, data)}}</button><br><br>
<span v-if="layers[layer].challenges[data].fullDisplay" v-html="run(layers[layer].challenges[data].fullDisplay, layers[layer].challenges[data])"></span> <span v-if="layers[layer].challenges[data].fullDisplay" v-html="run(layers[layer].challenges[data].fullDisplay, layers[layer].challenges[data])"></span>
@ -221,7 +221,6 @@ function loadVue() {
` `
}) })
// data = function to return the text describing the reset before the amount gained (optional)
Vue.component('prestige-button', { Vue.component('prestige-button', {
props: ['layer', 'data'], props: ['layer', 'data'],
template: ` template: `