From a5a5f4b69f0781d001c3313de178e59920b50397 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 18 Oct 2020 21:23:44 -0500 Subject: [PATCH] Improved handling of multiple discord links - Made mod-specific discord appear in end screen, if available - Made discord button show list of discords --- index.html | 12 ++++++++++-- js/game.js | 2 +- style.css | 19 ++++++++++++++++--- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 416116b..9bd4988 100644 --- a/index.html +++ b/index.html @@ -25,12 +25,13 @@

{{modInfo.name}} {{VERSION.withoutName}}



Congratulations! You have reached the end and beaten this game, but for now...


-

Please check the Discord to see there are new content updates!



+

Please check the Discord to see if there are new content updates!



It took you {{formatTime(player.timePlayed)}} to beat the game.
Make sure that you record the time in your stream or else your speedrun won't count!

    


+ {{modInfo.discordName}}
The Modding Tree Discord
Main Prestige Tree Discord


@@ -94,7 +95,14 @@
{{VERSION.withoutName}}

i
- +
+ + +

Dev Speed: {{format(player.devSpeed)}}x
diff --git a/js/game.js b/js/game.js index d61e42d..7675b9a 100644 --- a/js/game.js +++ b/js/game.js @@ -301,7 +301,7 @@ function gameLoop(diff) { player.autosave = false; NaNalert = true; - alert("We have detected a corruption in your save. Please visit https://discord.gg/wwQfgPa for help.") + alert("We have detected a corruption in your save. Please visit one of the discords in the info panel for help.") } } diff --git a/style.css b/style.css index 3264d6b..db0ab20 100644 --- a/style.css +++ b/style.css @@ -300,11 +300,24 @@ h1, h2, h3, b, input { left: 4px; width: 40px; height: 40px; - cursor: pointer } -#discord:hover { - transform: scale(1.2, 1.2); +#discord img { + width: 100%; + height: 100%; +} + +#discord-links { + position: absolute; + top: 0; + padding-top: 44px; + left: -244px; + width: 200px; + transition: left .3s ease; +} + +#discord:hover #discord-links { + left: -4px; } #version {