Add main settings div for Discord RPC

This commit is contained in:
Maroxy 2021-12-11 12:12:43 +01:00
parent 18cae57418
commit 10b5edb657
No known key found for this signature in database
GPG key ID: F4B27EADB21E3021
16 changed files with 26 additions and 28 deletions

View file

@ -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>

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -62,6 +62,5 @@
"TelemetryNotDisabled": "Серверы сбора телеметрии {placeholders.uppercase.company} не отключены!",
"PatchRepoUnavailableTitle": "Репозиторий патча недоступен",
"PatchRepoUnavailableBody": "Скорее всего notabug находится под атакой и не отвечает",
"DefPrefix": "Сбросить до умолчания",
"ChangePrefix": "Изменить префикс"
"DRPConf": "Discord RPC"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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"
}

View file

@ -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');
});