mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-03-17 21:50:11 +03:00
1.3.2
Added dark theme for progress bar
This commit is contained in:
parent
2f9fffc32c
commit
c2e364a952
5 changed files with 48 additions and 35 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
| Game version | Launcher version | Patch version |
|
||||
| :---: | :---: | :---: |
|
||||
| 2.2.0 | 1.3.1 | 2.2.0 stable ✅ |
|
||||
| 2.2.0 | 1.3.2 | 2.2.0 stable ✅ |
|
||||
|
||||
Download from [Releases](https://notabug.org/nobody/an-anime-game-launcher/releases)
|
||||
|
||||
|
@ -82,8 +82,8 @@ npm start
|
|||
* <s>Add outdated files deletion when new game's update releases</s> *(1.1.0)*
|
||||
* <s>Add installed packages deletion</s> *(1.2.0)*
|
||||
* <s>Add voice packs support</s> (Thank @Maroxy for the developments in the previous versions) *(1.3.0)*
|
||||
* Color variants for progress bar's downloading text dependent on the background picture primary color *(partially made in 1.3.2)*
|
||||
* Screenshots explorer
|
||||
* Color variants for progress bar's downloading text dependent on the background picture primary color
|
||||
* Set default wine version to download so the wine install requirement is no longer needed.
|
||||
* Add Patch category in settings menu with
|
||||
- Always participate in patches testing
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "an-anime-game-linux-launcher",
|
||||
"version": "1.3.1",
|
||||
"version": "1.3.2",
|
||||
"description": "An Anime Game Linux Launcher",
|
||||
"author": "Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>",
|
||||
"contributors": [
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<div id="downloader-panel" style="display: none">
|
||||
<div id="downloader-panel" class="dark" style="display: none">
|
||||
<div id="downloader-label">
|
||||
<span id="downloaded">Downloading...</span>
|
||||
<span id="speed"></span>
|
||||
|
|
|
@ -87,35 +87,44 @@
|
|||
height: 100%
|
||||
|
||||
background-color: rgba(255, 255, 255, .7)
|
||||
border-radius: 8px
|
||||
border-radius: 6px
|
||||
|
||||
#downloader-panel
|
||||
user-select: none
|
||||
|
||||
#downloader
|
||||
position: absolute
|
||||
#downloader
|
||||
position: absolute
|
||||
|
||||
left: 48px
|
||||
bottom: 68px
|
||||
left: 48px
|
||||
bottom: 68px
|
||||
|
||||
width: 720px
|
||||
height: 36px
|
||||
width: 720px
|
||||
height: 36px
|
||||
|
||||
#downloader-label
|
||||
position: absolute
|
||||
#downloader-label
|
||||
position: absolute
|
||||
|
||||
left: 48px
|
||||
bottom: 116px
|
||||
left: 48px
|
||||
bottom: 116px
|
||||
|
||||
color: white
|
||||
font-size: 18px
|
||||
color: white
|
||||
font-size: 18px
|
||||
|
||||
#downloaded
|
||||
max-width: 720px
|
||||
display: inline-block
|
||||
word-break: break-all
|
||||
#downloaded
|
||||
max-width: 720px
|
||||
display: inline-block
|
||||
word-break: break-all
|
||||
|
||||
#speed, #eta
|
||||
margin-left: 8px
|
||||
color: #cccccc
|
||||
font-weight: 100
|
||||
#speed, #eta
|
||||
margin-left: 8px
|
||||
color: #cccccc
|
||||
font-weight: 100
|
||||
|
||||
#downloader-panel.dark
|
||||
#downloader-label
|
||||
#downloaded, #speed, #eta
|
||||
color: rgba(0, 0, 0, .7)
|
||||
|
||||
#downloader
|
||||
background-color: rgba(0,0,0,.3)
|
||||
border: 1px solid rgba(0,0,0,.4)
|
||||
|
|
|
@ -205,6 +205,8 @@ $(() => {
|
|||
// Voice pack update
|
||||
else if (LauncherUI.launcherState == 'game-voice-update-required')
|
||||
{
|
||||
console.log(`%c> Updating game voice data...`, 'font-size: 16px');
|
||||
|
||||
// Hide settings button to prevent some unexpected changes
|
||||
$('#settings').css('display', 'none');
|
||||
|
||||
|
@ -229,20 +231,22 @@ $(() => {
|
|||
break;
|
||||
}
|
||||
|
||||
let installedpackName = installedPack.name.replace(`_${data.game.latest.version}.zip`, '');
|
||||
if (installedPack !== undefined)
|
||||
{
|
||||
let installedpackName = installedPack.name.replace(`_${data.game.latest.version}.zip`, '');
|
||||
|
||||
console.log(`%c> Deleting installed voice pack (${installedpackName})...`, 'font-size: 16px');
|
||||
console.log(`%c> Deleting installed voice pack (${installedpackName})...`, 'font-size: 16px');
|
||||
|
||||
// Check if the directory and file exists to prevent errors
|
||||
if (fs.existsSync(path.join(constants.gameDir, installedpackName + '_pkg_version')))
|
||||
fs.rmSync(path.join(constants.gameDir, installedpackName + '_pkg_version'));
|
||||
|
||||
if (fs.existsSync(path.join(constants.voiceDir, installedpackName.replace('Audio_', ''))))
|
||||
fs.rmSync(path.join(constants.voiceDir, installedpackName.replace('Audio_', '')), { recursive: true });
|
||||
// Check if the directory and file exists to prevent errors
|
||||
if (fs.existsSync(path.join(constants.gameDir, installedpackName + '_pkg_version')))
|
||||
fs.rmSync(path.join(constants.gameDir, installedpackName + '_pkg_version'));
|
||||
|
||||
if (fs.existsSync(path.join(constants.voiceDir, installedpackName.replace('Audio_', ''))))
|
||||
fs.rmSync(path.join(constants.voiceDir, installedpackName.replace('Audio_', '')), { recursive: true });
|
||||
}
|
||||
|
||||
console.log(`%c> Downloading voice data...`, 'font-size: 16px');
|
||||
|
||||
// For some reason this keeps breaking and locking up most of the time.
|
||||
Tools.downloadFile(voicePack.path, path.join(constants.launcherDir, voicePack.name), (current: number, total: number, difference: number) => {
|
||||
LauncherUI.updateProgressBar(LauncherUI.i18n.translate('Downloading'), current, total, difference);
|
||||
}).then(() => {
|
||||
|
@ -261,7 +265,7 @@ $(() => {
|
|||
$('#settings').css('display', 'block');
|
||||
|
||||
LauncherUI.updateLauncherState();
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue