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

Improvenents to popups

This commit is contained in:
Harley White 2021-02-05 15:43:11 -05:00
parent 0f59bd7be6
commit 6bcf352fe1
6 changed files with 9 additions and 11 deletions

View file

@ -1,8 +1,9 @@
# The Modding Tree changelog:
## v2.3.6 -
## v2.π: Incrementally Updated
- Performance improvements.
- Fixed tooltips overlapping with the top display.
- Clicking a popup dismisses it immediately.
- Added support for bulk challenge completions.
- "Best" is updated automatically.
- Fixed keeping Decimal values on reset.

View file

@ -98,7 +98,7 @@
<div class="popup-container">
<transition-group name="fade">
<div v-for="popup,index in activePopups" class="popup" v-bind:class="popup.type"
v-bind:key="'p' + popup.id" v-bind:style="popup.color ? {'background-color': popup.color} : {}">
v-bind:key="'p' + popup.id" v-on:click="() => {activePopups.splice(index, 1)}" v-bind:style="popup.color ? {'background-color': popup.color} : {}">
<h3>{{popup.title}}</h3><br>
<h2 v-html="popup.message"></h2>
</div>

View file

@ -98,7 +98,7 @@
<div class="popup-container">
<transition-group name="fade">
<div v-for="popup,index in activePopups" class="popup" v-bind:class="popup.type"
v-bind:key="'p' + popup.id" v-bind:style="popup.color ? {'background-color': popup.color} : {}">
v-bind:key="'p' + popup.id" v-on:click="() => {activePopups.splice(index, 1)}" v-bind:style="popup.color ? {'background-color': popup.color} : {}">
<h3>{{popup.title}}</h3><br>
<h2 v-html="popup.message"></h2>
</div>

View file

@ -11,8 +11,8 @@ let modInfo = {
// Set your version in num and name
let VERSION = {
num: "2.3.5",
name: "Cooler and Newer Edition",
num: "2.π",
name: "Incrementally Updated",
}
let changelog = `<h1>Changelog:</h1><br>

View file

@ -5,8 +5,8 @@ var scrolled = false;
// Don't change this
const TMT_VERSION = {
tmtNum: "2.3.5",
tmtName: "Cooler and Newer Edition"
tmtNum: "2.π",
tmtName: "Incrementally Updated"
}
function getResetGain(layer, useType = null) {
@ -412,7 +412,7 @@ var interval = setInterval(function() {
updateTemp();
gameLoop(diff)
fixNaNs()
adjustPopupTime(diff)
adjustPopupTime(0.05)
ticking = false
}, 50)

View file

@ -96,9 +96,6 @@ var systemComponents = {
<span v-if="player.offTime !== undefined" class="overlayThing">
<br>Offline Time: {{formatTime(player.offTime.remain)}}<br>
</span>
<span v-if="false && !player.keepGoing" class="overlayThing">
<br>Reach {{formatWhole(ENDGAME)}} to beat the game!<br>
</span>
<br>
<span v-if="player.points.lt('1e1000')" class="overlayThing">You have </span>
<h2 class="overlayThing" id="points">{{format(player.points)}}</h2>