diff --git a/changelog.md b/changelog.md index 987d2fa..c7b8ae7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # The Modding Tree changelog: +- Tooltips can now show over the top overlay again. +- Fixed text on two settings buttons not changing. + ### v2.5.9.2 - 5/19/21 - Fixed many issues with things not updating. diff --git a/demo.html b/demo.html index 56bb1a6..246dfff 100644 --- a/demo.html +++ b/demo.html @@ -64,7 +64,7 @@ col: (player.tab !== 'none' && player.navTab !== 'none'), left: (player.tab !== 'none' && player.navTab !== 'none')}" :style="{'margin-top': !readData(layoutInfo.showTree) && player.tab == 'info-tab' ? '50px' : ''}"> -
+
{{VERSION.withoutName}}
-
+




-
diff --git a/docs/!general-info.md b/docs/!general-info.md index b1b7eb0..762fe4a 100644 --- a/docs/!general-info.md +++ b/docs/!general-info.md @@ -8,7 +8,7 @@ You can test your mod by opening the [index.html][/index.html] file in your brow Most of the time, you won't need to dive deep into the code to create things, but you still can if you really want to, for example to add new Vue components in [components.js](/js/components.js). -The Modding Tree uses [break\_eternity.js](https://github.com/Patashu/break_eternity.js) to store large values. This means that many numbers are `Decimal` objects, and must be treated differently. For example, you have to use `new Decimal(x)` to create a `Decimal` value instead of a plain number, and perform operations on them by calling functions. e.g, instead of `x = x + y`, use `x = x.add(y)`. Keep in mind this also applies to comparison operators, which should be replaced with calling the `.gt`, `.gte`, `.lt`, `.lte`, `.eq`, and `.neq` functions. See the [break\_eternity.js](https://github.com/Patashu/break_eternity.js) docs for more details on working with `Decimal` values. +The Modding Tree uses [break\_eternity.js](https://github.com/Patashu/break_eternity.js) to store large values. This means that many numbers are `Decimal` objects, and must be treated differently. For example, you have to use `new Decimal(x)` to create a `Decimal` value instead of a plain number (x can be a number or a string for larger values). You perform operations on them by calling functions. e.g, instead of `x = x + y`, use `x = x.add(y)`. Keep in mind this also applies to comparison operators, which should be replaced with calling the `.gt`, `.gte`, `.lt`, `.lte`, `.eq`, and `.neq` functions. See the [break\_eternity.js](https://github.com/Patashu/break_eternity.js) docs for more details on working with `Decimal` values. Almost all values can be either a constant value, or a dynamic value. Dynamic values are defined by putting a function that returns what the value should be at any given time. diff --git a/docs/making-a-mod.md b/docs/making-a-mod.md new file mode 100644 index 0000000..8105a0a --- /dev/null +++ b/docs/making-a-mod.md @@ -0,0 +1,3 @@ +# Making a Mod + +This guide assumes you have already gone through the [getting started guide](getting-started.md). It will walk you through the basics of using TMT to create a mod. \ No newline at end of file diff --git a/index.html b/index.html index 772e26e..ad8f5ec 100644 --- a/index.html +++ b/index.html @@ -93,8 +93,8 @@
-



+ v-bind:class="{ fullWidth: (player.tab == 'none' || player.navTab == 'none'), col: (player.tab !== 'none' && player.navTab !== 'none'), left: (player.tab !== 'none' && player.navTab !== 'none'), 'front': !tmp.scrolled}"> +



diff --git a/js/Demo/demoLayers.js b/js/Demo/demoLayers.js index 6010860..0b36fd3 100644 --- a/js/Demo/demoLayers.js +++ b/js/Demo/demoLayers.js @@ -369,7 +369,7 @@ addLayer("c", { }, tooltip() { // Optional, tooltip displays when the layer is unlocked let tooltip = formatWhole(player[this.layer].points) + " " + this.resource - if (player[this.layer].buyables[11].gt(0)) tooltip += "
" + formatWhole(player[this.layer].buyables[11]) + " Exhancers" + if (player[this.layer].buyables[11].gt(0)) tooltip += "



" + formatWhole(player[this.layer].buyables[11]) + " Exhancers
" return tooltip }, shouldNotify() { // Optional, layer will be highlighted on the tree if true. diff --git a/js/components.js b/js/components.js index 3701d9a..7c83720 100644 --- a/js/components.js +++ b/js/components.js @@ -567,6 +567,7 @@ function loadVue() { layerunlocked, doReset, buyUpg, + buyUpgrade, startChallenge, milestoneShown, keepGoing, @@ -575,6 +576,8 @@ function loadVue() { hasAchievement, hasChallenge, maxedChallenge, + getBuyableAmount, + getClickableState, inChallenge, canAffordUpgrade, canBuyBuyable, diff --git a/js/game.js b/js/game.js index 744a40c..aeb7337 100644 --- a/js/game.js +++ b/js/game.js @@ -1,7 +1,6 @@ var player; var needCanvasUpdate = true; var gameEnded = false; -var scrolled = false; // Don't change this const TMT_VERSION = { diff --git a/js/utils/save.js b/js/utils/save.js index ce860b9..139719e 100644 --- a/js/utils/save.js +++ b/js/utils/save.js @@ -10,6 +10,8 @@ function startPlayerBase() { autosave: true, notify: {}, msDisplay: "always", + theme: null, + hqTree: false, offlineProd: true, versionType: modInfo.id, version: VERSION.num, diff --git a/js/utils/themes.js b/js/utils/themes.js index b72e50b..ab82456 100644 --- a/js/utils/themes.js +++ b/js/utils/themes.js @@ -18,12 +18,12 @@ function getThemeName() { return player.theme ? theme_names[player.theme] : "Default"; } function switchTheme() { - if (player.theme === undefined) + if (player.theme === null) player.theme = themes[1]; else { player.theme = themes[Object.keys(themes)[player.theme] + 1]; if (!player.theme) - delete player.theme; + player.theme = null; } changeTheme(); resizeCanvas(); diff --git a/style.css b/style.css index 19aa98e..e5fe40f 100644 --- a/style.css +++ b/style.css @@ -595,7 +595,7 @@ ul { transition: opacity 0.5s; position: absolute; - z-index: 99999999 !important; + z-index: 20000 ; background-color: var(--background_tooltip); color: var(--points); @@ -629,6 +629,10 @@ ul { overflow:hidden; } +.front { + z-index: 30000 +} + .overlayThing { z-index: 10000; pointer-events:auto;