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

Improved marks

This commit is contained in:
Harley White 2021-06-03 00:01:31 -04:00
parent 10e3c429a8
commit 22e12c06b5
3 changed files with 9 additions and 4 deletions

View file

@ -3,17 +3,22 @@
### v2.5.12 - 6/2/21
- Fixed issues with NaN checking. Saves should never break now unless something really unusual happens.
- Fixed demo.html
- Fixed branches not working on the right tab.
- Fixed background color not working on the left tab.
- Fixed branches not updating when tree tab is not shown.
- You can now use "this" in tabFormat!
- Added onComplete for milestones.
- Added addBuyables.
- The prestige/sec display now shows decimals.
- resetsNothing now works immediately on a reset that enables it.
- Made the star on maxed challenges larger.
- Fixed challenges with no currencyDisplayName using "points" instead of the mod's pointsName.
- inChallenge no longer can return undefined.
- Fixed certain things skipping negative rows (now they are treated like non-numeric rows, and don't appear in the tree still).
- Things are 0.2% more optimized.
- Fixed problems in the documentation.
- Added more customization to the "mark" component (but not an easy way to access it)
### v2.5.11.1 - 5/27/21
- Fixed issues caused when the tree tab is disabled.

View file

@ -148,7 +148,7 @@ function loadVue() {
Reward: <span v-html="tmp[layer].challenges[data].rewardDescription"></span><br>
<span v-if="layers[layer].challenges[data].rewardDisplay!==undefined">Currently: <span v-html="(tmp[layer].challenges[data].rewardDisplay) ? (run(layers[layer].challenges[data].rewardDisplay, layers[layer].challenges[data])) : format(tmp[layer].challenges[data].rewardEffect)"></span></span>
</span>
<node-mark :layer='layer' :data='tmp[layer].challenges[data].marked' :offset="10"></node-mark></span>
<node-mark :layer='layer' :data='tmp[layer].challenges[data].marked' :offset="20" :scale="1.5"></node-mark></span>
</div>
`

View file

@ -187,10 +187,10 @@ var systemComponents = {
},
'node-mark': {
props: ['layer', 'data'],
props: ['layer', 'data', 'offset', 'scale'],
template: `<div v-if='data'>
<div v-if='data === true' class='star' style='position: absolute; left: -10px; top: -10px;'></div>
<img v-else class='mark' style='position: absolute; left: -25px; top: -10px;' v-bind:src="data"></div>
<div v-if='data === true' class='star' v-bind:style='{position: "absolute", left: (offset-10) + "px", top: (offset-10) + "px", transform: "scale( " + scale + ", " + scale + ")"}'></div>
<img v-else class='mark' v-bind:style='{position: "absolute", left: (offset-10) + "px", top: (offset-10) + "px", transform: "scale( " + scale + ", " + scale + ")"}' v-bind:src="data"></div>
</div>
`
},