1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00
astra/launcher/ui/Settings/DeveloperSettings.qml

106 lines
2.7 KiB
QML
Raw Normal View History

2023-07-31 19:00:59 -04:00
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
2023-09-16 18:15:11 -04:00
import QtQuick
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
import org.kde.kirigamiaddons.formcard as FormCard
import zone.xiv.astra
2023-07-31 19:00:59 -04:00
import "../Components"
2023-08-19 10:49:00 -04:00
FormCard.FormCardPage {
2023-07-31 19:00:59 -04:00
id: page
2023-09-20 15:30:50 -04:00
title: i18nc("@title:window", "Developer Settings")
2023-07-31 19:00:59 -04:00
2023-08-19 10:49:00 -04:00
FormCard.FormHeader {
title: i18n("Patching")
}
FormCard.FormCard {
Layout.fillWidth: true
FormCard.FormCheckDelegate {
id: keepPatchesDelegate
text: i18n("Keep Patches")
description: i18n("Do not delete patches after they're used. Astra will not redownload patch data, if found.")
checked: LauncherCore.keepPatches
onCheckedChanged: LauncherCore.keepPatches = checked
}
2023-08-19 10:49:00 -04:00
}
FormCard.FormHeader {
title: i18n("Launching")
}
FormCard.FormCard {
Layout.fillWidth: true
FormCard.FormCheckDelegate {
id: encryptArgDelegate
text: i18n("Encrypt Game Arguments")
checked: LauncherCore.argumentsEncrypted
onCheckedChanged: LauncherCore.argumentsEncrypted = checked
}
}
2023-08-19 10:49:00 -04:00
FormCard.FormHeader {
title: i18n("Servers")
}
FormCard.FormCard {
Layout.fillWidth: true
FormCard.FormTextFieldDelegate {
id: preferredProtocolDelegate
label: i18n("Preferred Protocol")
text: LauncherCore.preferredProtocol
onTextChanged: LauncherCore.preferredProtocol = text
}
FormCard.FormDelegateSeparator {
above: preferredProtocolDelegate
below: dalamudServerDelegate
}
FormCard.FormTextFieldDelegate {
id: dalamudServerDelegate
label: i18n("Dalamud Distribution Server")
text: LauncherCore.dalamudDistribServer
onTextChanged: LauncherCore.dalamudDistribServer = text
}
FormCard.FormDelegateSeparator {
above: dalamudServerDelegate
below: mainServerDelegate
}
FormCard.FormTextFieldDelegate {
id: mainServerDelegate
label: i18n("SE Main Server")
text: LauncherCore.squareEnixServer
onTextChanged: LauncherCore.squareEnixServer = text
}
FormCard.FormDelegateSeparator {
above: mainServerDelegate
below: loginServerDelegate
}
FormCard.FormTextFieldDelegate {
id: loginServerDelegate
label: i18n("SE Login Server")
text: LauncherCore.squareEnixLoginServer
onTextChanged: LauncherCore.squareEnixLoginServer = text
2023-07-31 19:00:59 -04:00
}
}
}