mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-22 00:21:32 +00:00
Made subtabs unlockable
This commit is contained in:
parent
4f4ed19b87
commit
29d9cec1fb
2 changed files with 3 additions and 2 deletions
|
@ -93,7 +93,7 @@ addLayer("c", {
|
||||||
effectDisplay(fx) { return format(fx)+"x" }, // Add formatting to the effect
|
effectDisplay(fx) { return format(fx)+"x" }, // Add formatting to the effect
|
||||||
},
|
},
|
||||||
13: {
|
13: {
|
||||||
desc:() => "Make this layer act like you bought it first.",
|
desc:() => "Unlock a secret subtab and make this layer act if you unlocked it first.",
|
||||||
cost:() => new Decimal(69),
|
cost:() => new Decimal(69),
|
||||||
currencyDisplayName: "candies", // Use if using a nonstandard currency
|
currencyDisplayName: "candies", // Use if using a nonstandard currency
|
||||||
currencyInternalName: "points", // Use if using a nonstandard currency
|
currencyInternalName: "points", // Use if using a nonstandard currency
|
||||||
|
@ -220,6 +220,7 @@ addLayer("c", {
|
||||||
["display-image", "discord.png"],],
|
["display-image", "discord.png"],],
|
||||||
},
|
},
|
||||||
illuminati: {
|
illuminati: {
|
||||||
|
unl() {return (hasUpg("c", 13))},
|
||||||
content:[
|
content:[
|
||||||
["raw-html", function() {return "<h1> C O N F I R M E D </h1>"}],
|
["raw-html", function() {return "<h1> C O N F I R M E D </h1>"}],
|
||||||
["microtabs", "stuff", {'width': '600px', 'height': '350px', 'background-color': 'brown', 'border-style': 'solid'}]
|
["microtabs", "stuff", {'width': '600px', 'height': '350px', 'background-color': 'brown', 'border-style': 'solid'}]
|
||||||
|
|
2
js/v.js
2
js/v.js
|
@ -280,7 +280,7 @@ function loadVue() {
|
||||||
template: `
|
template: `
|
||||||
<div class="upgRow">
|
<div class="upgRow">
|
||||||
<div v-for="tab in Object.keys(data)">
|
<div v-for="tab in Object.keys(data)">
|
||||||
<button class="tabButton" v-bind:style="[{'border-color': tmp.layerColor[layer]}, readData(data[tab].buttonStyle)]" v-on:click="player[layer].subtab[name] = tab">{{tab}}</button>
|
<button v-if="!data[tab].unl || data[tab].unl()" class="tabButton" v-bind:style="[{'border-color': tmp.layerColor[layer]}, readData(data[tab].buttonStyle)]" v-on:click="player[layer].subtab[name] = tab">{{tab}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in a new issue