mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-19 16:33:04 +03:00
Add main settings div for Discord RPC
This commit is contained in:
parent
18cae57418
commit
10b5edb657
16 changed files with 26 additions and 28 deletions
|
@ -25,6 +25,7 @@
|
|||
<div class="menu-item" anchor="dxvks" i18id="DXVK">DXVK</div>
|
||||
<div class="menu-item" anchor="shaders" i18id="Shaders">Shaders</div>
|
||||
<div class="menu-item" anchor="environment" i18id="Environment">Environment</div>
|
||||
<div class="menu-item" id="discord-rpc-conf-btn" anchor="discord-rpc-conf" i18id="DRPConf" style="display: none;">Discord RPC</div>
|
||||
</div>
|
||||
|
||||
<div class="settings">
|
||||
|
@ -310,6 +311,9 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="settings-item" id="discord-rpc-conf" style="display: none;">
|
||||
<h2 i18id="DRPConf">Discord RPC</h2>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company} Telemetrieserver sind nicht deaktiviert!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Zurücksetzen zum Standard-Prefix",
|
||||
"ChangePrefix": "Prefix ändern"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company}'s telemetry servers don't disabled!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Reset to Default",
|
||||
"ChangePrefix": "Change Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company}'s telemetry servers don't disabled!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Reset to Default",
|
||||
"ChangePrefix": "Change Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company}'s telemetry servers don't disabled!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Reset to Default",
|
||||
"ChangePrefix": "Change Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company}'s telemetry servers don't disabled!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Reset to Default",
|
||||
"ChangePrefix": "Change Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "Peladen telemetri {placeholders.uppercase.company} tidak dimatikan!",
|
||||
"PatchRepoUnavailableTitle": "Repositori patch tidak tersedia",
|
||||
"PatchRepoUnavailableBody": "Sepertinya notabug sedang dalam serangan dan tidak merespon",
|
||||
"DefPrefix": "Setel ulang ke bawaan",
|
||||
"ChangePrefix": "Ganti Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company}のテレメトリサーバは無効になっていません!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "デフォルトへのリセット",
|
||||
"ChangePrefix": "プレフィックスを変更"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company} 의 원격 측정 서버가 비활성화되지 않음!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Reset to Default",
|
||||
"ChangePrefix": "Change Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company}'s telemetry servers don't disabled!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Reset to Default",
|
||||
"ChangePrefix": "Change Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "Серверы сбора телеметрии {placeholders.uppercase.company} не отключены!",
|
||||
"PatchRepoUnavailableTitle": "Репозиторий патча недоступен",
|
||||
"PatchRepoUnavailableBody": "Скорее всего notabug находится под атакой и не отвечает",
|
||||
"DefPrefix": "Сбросить до умолчания",
|
||||
"ChangePrefix": "Изменить префикс"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company}'s telemetry servers don't disabled!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Reset to Default",
|
||||
"ChangePrefix": "Change Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company}'s telemetry servers don't disabled!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Reset to Default",
|
||||
"ChangePrefix": "Change Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company}'s telemetry servers don't disabled!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Reset to Default",
|
||||
"ChangePrefix": "Change Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -62,6 +62,5 @@
|
|||
"TelemetryNotDisabled": "{placeholders.uppercase.company}'s telemetry servers don't disabled!",
|
||||
"PatchRepoUnavailableTitle": "Patch's repository is not available",
|
||||
"PatchRepoUnavailableBody": "Most likely notabug is under attack and is not responding",
|
||||
"DefPrefix": "Reset to Default",
|
||||
"ChangePrefix": "Change Prefix"
|
||||
"DRPConf": "Discord RPC"
|
||||
}
|
|
@ -208,8 +208,16 @@ $(() => {
|
|||
if (LauncherLib.getConfig('rpc'))
|
||||
$('#discord-rpc').addClass('checkbox-active');
|
||||
|
||||
// Unhides the settings for discord rpc
|
||||
$('#discord-rpc-conf').toggle();
|
||||
$('#discord-rpc-conf-btn').toggle();
|
||||
|
||||
$('#discord-rpc').on('classChange', () => {
|
||||
LauncherLib.updateConfig('rpc', $('#discord-rpc').hasClass('checkbox-active'));
|
||||
|
||||
// Toggles the RPC Settings (hide/show)
|
||||
$('#discord-rpc-conf').toggle();
|
||||
$('#discord-rpc-conf-btn').toggle();
|
||||
|
||||
ipcRenderer.send('rpc-toggle');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue