diff --git a/README.md b/README.md index 45589f1..ffcb28b 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ field in your `config.yaml` file (settings -> launcher folder). If your system u | Game version | Launcher version | Patch version | | :---: | :---: | :---: | -| 2.5.0 | 2.1.5 | 2.5.0 stable ✅ | +| 2.5.0 | 2.2.0 | 2.5.0 stable ✅ | We have our own [An Anime Game](https://discord.gg/ck37X6UWBp) discord server where you can ask any questions @@ -169,8 +169,8 @@ This is our current roadmap goals. You can find older ones [here](repository/pag * ToS Violation Window *(2.1.0)* * Add `latest.log` file generation *(2.1.2)* * Add an option to show terminal with the wine's log of the game *(7375c743, released in 2.1.3)* -* Add analytics window *(e0a09323)* -* Add Chinese game's version support (due to changes in the Krock's patch) *(75f2ad66)* +* Add analytics window *(e0a09323, released in 2.2.0)* +* Add Chinese game's version support (due to changes in the Krock's patch) *(75f2ad66, released in 2.2.0)* * Implement manual config flushing functionality from the Empathize's API * Game statistics window * Dark progress bar design diff --git a/src/index.svelte b/src/index.svelte index 0dfe840..cc66b65 100644 --- a/src/index.svelte +++ b/src/index.svelte @@ -11,7 +11,6 @@ import Launcher from './ts/Launcher'; import constants from './ts/Constants'; import Game from './ts/Game'; - import Background from './ts/launcher/Background'; import GearIcon from './assets/images/gear.png'; import GearActiveIcon from './assets/images/gear-active.png'; @@ -117,9 +116,7 @@
- {#await Background.get() then uri} - - {/await} +
@@ -134,9 +131,7 @@
- {#await launcher.getSocial() then uri} - - {/await} +
diff --git a/src/sass/index.sass b/src/sass/index.sass index c1b9e5f..8885ad6 100644 --- a/src/sass/index.sass +++ b/src/sass/index.sass @@ -1,6 +1,6 @@ @import "basic" -img.background +#background position: absolute width: 100% diff --git a/src/ts/launcher/State.ts b/src/ts/launcher/State.ts index ed0f523..6e850c0 100644 --- a/src/ts/launcher/State.ts +++ b/src/ts/launcher/State.ts @@ -17,6 +17,7 @@ import DXVK from '../core/DXVK'; import Locales from './Locales'; import Git from '../core/Git'; import constants from '../Constants'; +import Background from './Background'; declare const Neutralino; @@ -24,6 +25,9 @@ export default class State { public launcher: Launcher; + public backgroundImage: HTMLElement; + public socialsIframe: HTMLElement; + public launchButton: HTMLElement; public pauseButton: HTMLElement; public predownloadButton: HTMLElement; @@ -53,11 +57,21 @@ export default class State { this.launcher = launcher; + this.backgroundImage = document.getElementById('background'); + this.socialsIframe = document.getElementById('social-iframe'); + this.launchButton = document.getElementById('launch'); this.pauseButton = document.getElementById('pause'); this.predownloadButton = document.getElementById('predownload'); this.settingsButton = document.getElementById('settings'); + Background.get().then((uri) => { + if (uri) + this.backgroundImage.setAttribute('src', uri); + }); + + launcher.getSocial().then((uri) => this.socialsIframe.setAttribute('src', uri)); + this.launchButton.onclick = () => { if (this.events[this._state]) {