mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
Improvenents to popups
This commit is contained in:
parent
0f59bd7be6
commit
6bcf352fe1
6 changed files with 9 additions and 11 deletions
|
@ -1,8 +1,9 @@
|
||||||
# The Modding Tree changelog:
|
# The Modding Tree changelog:
|
||||||
|
|
||||||
## v2.3.6 -
|
## v2.π: Incrementally Updated
|
||||||
- Performance improvements.
|
- Performance improvements.
|
||||||
- Fixed tooltips overlapping with the top display.
|
- Fixed tooltips overlapping with the top display.
|
||||||
|
- Clicking a popup dismisses it immediately.
|
||||||
- Added support for bulk challenge completions.
|
- Added support for bulk challenge completions.
|
||||||
- "Best" is updated automatically.
|
- "Best" is updated automatically.
|
||||||
- Fixed keeping Decimal values on reset.
|
- Fixed keeping Decimal values on reset.
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
<div class="popup-container">
|
<div class="popup-container">
|
||||||
<transition-group name="fade">
|
<transition-group name="fade">
|
||||||
<div v-for="popup,index in activePopups" class="popup" v-bind:class="popup.type"
|
<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>
|
<h3>{{popup.title}}</h3><br>
|
||||||
<h2 v-html="popup.message"></h2>
|
<h2 v-html="popup.message"></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
<div class="popup-container">
|
<div class="popup-container">
|
||||||
<transition-group name="fade">
|
<transition-group name="fade">
|
||||||
<div v-for="popup,index in activePopups" class="popup" v-bind:class="popup.type"
|
<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>
|
<h3>{{popup.title}}</h3><br>
|
||||||
<h2 v-html="popup.message"></h2>
|
<h2 v-html="popup.message"></h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,8 +11,8 @@ let modInfo = {
|
||||||
|
|
||||||
// Set your version in num and name
|
// Set your version in num and name
|
||||||
let VERSION = {
|
let VERSION = {
|
||||||
num: "2.3.5",
|
num: "2.π",
|
||||||
name: "Cooler and Newer Edition",
|
name: "Incrementally Updated",
|
||||||
}
|
}
|
||||||
|
|
||||||
let changelog = `<h1>Changelog:</h1><br>
|
let changelog = `<h1>Changelog:</h1><br>
|
||||||
|
|
|
@ -5,8 +5,8 @@ var scrolled = false;
|
||||||
|
|
||||||
// Don't change this
|
// Don't change this
|
||||||
const TMT_VERSION = {
|
const TMT_VERSION = {
|
||||||
tmtNum: "2.3.5",
|
tmtNum: "2.π",
|
||||||
tmtName: "Cooler and Newer Edition"
|
tmtName: "Incrementally Updated"
|
||||||
}
|
}
|
||||||
|
|
||||||
function getResetGain(layer, useType = null) {
|
function getResetGain(layer, useType = null) {
|
||||||
|
@ -412,7 +412,7 @@ var interval = setInterval(function() {
|
||||||
updateTemp();
|
updateTemp();
|
||||||
gameLoop(diff)
|
gameLoop(diff)
|
||||||
fixNaNs()
|
fixNaNs()
|
||||||
adjustPopupTime(diff)
|
adjustPopupTime(0.05)
|
||||||
ticking = false
|
ticking = false
|
||||||
}, 50)
|
}, 50)
|
||||||
|
|
||||||
|
|
|
@ -96,9 +96,6 @@ var systemComponents = {
|
||||||
<span v-if="player.offTime !== undefined" class="overlayThing">
|
<span v-if="player.offTime !== undefined" class="overlayThing">
|
||||||
<br>Offline Time: {{formatTime(player.offTime.remain)}}<br>
|
<br>Offline Time: {{formatTime(player.offTime.remain)}}<br>
|
||||||
</span>
|
</span>
|
||||||
<span v-if="false && !player.keepGoing" class="overlayThing">
|
|
||||||
<br>Reach {{formatWhole(ENDGAME)}} to beat the game!<br>
|
|
||||||
</span>
|
|
||||||
<br>
|
<br>
|
||||||
<span v-if="player.points.lt('1e1000')" class="overlayThing">You have </span>
|
<span v-if="player.points.lt('1e1000')" class="overlayThing">You have </span>
|
||||||
<h2 class="overlayThing" id="points">{{format(player.points)}}</h2>
|
<h2 class="overlayThing" id="points">{{format(player.points)}}</h2>
|
||||||
|
|
Loading…
Reference in a new issue