mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-12-03 13:21:34 +00:00
Fixed challenge glow + prestige button docs
This commit is contained in:
parent
a1d11ccf2b
commit
92f531273a
3 changed files with 4 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
|||
# v2.6.4 - 6/17/21
|
||||
- The game now autosaves before closing, if autosave is on. (Thank you to thepaperpilot for this!)
|
||||
- More Anti-NaN safety.
|
||||
- Fixed challenges glowing from countsAs.
|
||||
- canReset now works properly for non-custom layers.
|
||||
- Fixed baseAmount being set to 0 even when a layer resets nothing.
|
||||
- Fixed centering on tooltips.
|
||||
|
|
|
@ -7,7 +7,7 @@ Custom tab layouts can be used to do basically anything in a tab window, especia
|
|||
```js
|
||||
tabFormat: [
|
||||
"main-display",
|
||||
["prestige-button", function() { return "Melt your points into " }],
|
||||
["prestige-button"],
|
||||
"blank",
|
||||
["display-text",
|
||||
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).
|
||||
|
||||
- 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]
|
||||
(Works with strings, numbers, and Decimals!)
|
||||
|
|
|
@ -138,7 +138,7 @@ function loadVue() {
|
|||
props: ['layer', 'data'],
|
||||
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]))"
|
||||
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>
|
||||
<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>
|
||||
|
@ -221,7 +221,6 @@ function loadVue() {
|
|||
`
|
||||
})
|
||||
|
||||
// data = function to return the text describing the reset before the amount gained (optional)
|
||||
Vue.component('prestige-button', {
|
||||
props: ['layer', 'data'],
|
||||
template: `
|
||||
|
|
Loading…
Reference in a new issue