diff --git a/src/client/assets/css/index.css b/src/client/assets/css/index.css index 7620e7b..b4d3d83 100644 --- a/src/client/assets/css/index.css +++ b/src/client/assets/css/index.css @@ -159,7 +159,7 @@ h3 { cursor: pointer; } -#settings { +#settings, #credits { position: relative; top: 50%; left: 50%; @@ -170,6 +170,12 @@ h3 { background-repeat: no-repeat; background-size: 100%; padding: 10px 65px; + max-height: 80vh; +} + +#credits > .content { + overflow: auto; + max-height: inherit; } #settings > h2 { diff --git a/src/client/assets/js/index.js b/src/client/assets/js/index.js index 4574a11..54e9acd 100644 --- a/src/client/assets/js/index.js +++ b/src/client/assets/js/index.js @@ -11,6 +11,8 @@ app = vue.createApp({ invalidateButtonText: "Supprimer et retélécharger les bibliothèques", invalidateButtonDisabled: false, displayFullscreen: "none", + displaySettings: "none", + displayCredits: "none", nick: "Chargement", launchBtnText: "Selectionnez un chapitre", launchBtnDisable: true, @@ -73,20 +75,27 @@ app = vue.createApp({ ipcRenderer.send('disconnect') }, options () { - if(!this.gameLaunching) + if(!this.gameLaunching) { this.displayFullscreen = "block" + this.displaySettings = "block" + this.displayCredits = "none" + } }, discord() { - shell.openExternal("https://discord.gg/b923tMhmRE") } - , + shell.openExternal("https://discord.gg/b923tMhmRE") + }, web() { shell.openExternal("https://altarik.fr") }, closeFullscreen () { this.displayFullscreen = "none" + this.displaySettings = "none" + this.displayCredits = "none" }, credits() { - ipcRenderer.send("credits") + this.displayFullscreen = "block" + this.displaySettings = "none" + this.displayCredits = "block" }, updateModsInformations(content) { this.modsInformations = content diff --git a/src/client/index.html b/src/client/index.html index e3003bb..3807469 100644 --- a/src/client/index.html +++ b/src/client/index.html @@ -23,7 +23,7 @@
close
-
+

Paramètres

Se déconnecter

Allocation mémoire

@@ -35,6 +35,39 @@
Voir crédits
+
+
+

BSD 3-Clause License

+ +

Copyright (c) 2021, Altarik
+All rights reserved.

+ +

Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met:

+ +
    +
  1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer.
  2. +
  3. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution.
  4. +
  5. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission.
  6. +
+ +

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+
+