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")
|
|
|
|
}
|
|
|
|
|
2023-08-19 10:30:52 -04:00
|
|
|
FormCard.FormCard {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
FormCard.FormCheckDelegate {
|
|
|
|
id: keepPatchesDelegate
|
|
|
|
|
|
|
|
text: i18n("Keep Patches")
|
2023-10-08 13:22:34 -04:00
|
|
|
description: i18n("Do not delete patches after they're used. Astra will not download patch data, if found.")
|
2023-10-11 13:25:24 -04:00
|
|
|
checked: LauncherCore.settings.keepPatches
|
|
|
|
onCheckedChanged: LauncherCore.settings.keepPatches = checked
|
2023-08-19 10:30:52 -04:00
|
|
|
}
|
2023-08-19 10:49:00 -04:00
|
|
|
}
|
2023-08-19 10:30:52 -04:00
|
|
|
|
2023-10-08 13:18:05 -04:00
|
|
|
FormCard.FormHeader {
|
|
|
|
title: i18n("Launching")
|
|
|
|
}
|
|
|
|
|
|
|
|
FormCard.FormCard {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
|
|
|
FormCard.FormCheckDelegate {
|
|
|
|
id: encryptArgDelegate
|
|
|
|
|
|
|
|
text: i18n("Encrypt Game Arguments")
|
2024-04-19 20:37:51 -04:00
|
|
|
description: i18n("Disable encryption if you want to inspect the raw arguments passed to the game.")
|
2023-10-11 13:25:24 -04:00
|
|
|
checked: LauncherCore.settings.argumentsEncrypted
|
|
|
|
onCheckedChanged: LauncherCore.settings.argumentsEncrypted = checked
|
2023-10-08 13:18:05 -04:00
|
|
|
}
|
2024-04-19 20:37:51 -04:00
|
|
|
|
|
|
|
FormCard.FormDelegateSeparator {
|
|
|
|
above: encryptArgDelegate
|
|
|
|
below: renderDocCaptureDelegate
|
|
|
|
}
|
|
|
|
|
|
|
|
FormCard.FormCheckDelegate {
|
|
|
|
id: renderDocCaptureDelegate
|
|
|
|
|
|
|
|
text: i18n("Allow RenderDoc Capture")
|
|
|
|
description: i18n("Inject the RenderDoc capture layer.")
|
|
|
|
checked: LauncherCore.settings.enableRenderDocCapture
|
|
|
|
onCheckedChanged: LauncherCore.settings.enableRenderDocCapture = checked
|
|
|
|
}
|
2023-10-08 13:18:05 -04:00
|
|
|
}
|
|
|
|
|
2023-08-19 10:49:00 -04:00
|
|
|
FormCard.FormHeader {
|
|
|
|
title: i18n("Servers")
|
|
|
|
}
|
|
|
|
|
|
|
|
FormCard.FormCard {
|
|
|
|
Layout.fillWidth: true
|
2023-08-19 10:30:52 -04:00
|
|
|
|
|
|
|
FormCard.FormTextFieldDelegate {
|
2023-10-06 18:14:32 -04:00
|
|
|
id: preferredProtocolDelegate
|
|
|
|
|
|
|
|
label: i18n("Preferred Protocol")
|
2023-10-11 13:25:24 -04:00
|
|
|
text: LauncherCore.settings.preferredProtocol
|
|
|
|
onTextChanged: LauncherCore.settings.preferredProtocol = text
|
2023-10-06 18:14:32 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
FormCard.FormDelegateSeparator {
|
|
|
|
above: preferredProtocolDelegate
|
|
|
|
below: dalamudServerDelegate
|
|
|
|
}
|
|
|
|
|
|
|
|
FormCard.FormTextFieldDelegate {
|
2023-08-19 10:30:52 -04:00
|
|
|
id: dalamudServerDelegate
|
|
|
|
|
|
|
|
label: i18n("Dalamud Distribution Server")
|
2023-10-11 13:25:24 -04:00
|
|
|
text: LauncherCore.settings.dalamudDistribServer
|
|
|
|
onTextChanged: LauncherCore.settings.dalamudDistribServer = text
|
2023-08-19 10:30:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
FormCard.FormDelegateSeparator {
|
|
|
|
above: dalamudServerDelegate
|
|
|
|
below: mainServerDelegate
|
|
|
|
}
|
|
|
|
|
|
|
|
FormCard.FormTextFieldDelegate {
|
|
|
|
id: mainServerDelegate
|
|
|
|
|
|
|
|
label: i18n("SE Main Server")
|
2023-10-11 13:25:24 -04:00
|
|
|
text: LauncherCore.settings.squareEnixServer
|
|
|
|
onTextChanged: LauncherCore.settings.squareEnixServer = text
|
2023-08-19 10:30:52 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
FormCard.FormDelegateSeparator {
|
|
|
|
above: mainServerDelegate
|
|
|
|
below: loginServerDelegate
|
|
|
|
}
|
|
|
|
|
|
|
|
FormCard.FormTextFieldDelegate {
|
|
|
|
id: loginServerDelegate
|
|
|
|
|
|
|
|
label: i18n("SE Login Server")
|
2023-10-11 13:25:24 -04:00
|
|
|
text: LauncherCore.settings.squareEnixLoginServer
|
|
|
|
onTextChanged: LauncherCore.settings.squareEnixLoginServer = text
|
2023-07-31 19:00:59 -04:00
|
|
|
}
|
2023-10-08 13:22:34 -04:00
|
|
|
|
|
|
|
FormCard.FormDelegateSeparator {
|
|
|
|
above: loginServerDelegate
|
|
|
|
below: xivApiServerDelegate
|
|
|
|
}
|
|
|
|
|
|
|
|
FormCard.FormTextFieldDelegate {
|
|
|
|
id: xivApiServerDelegate
|
|
|
|
|
|
|
|
label: i18n("XIV Api Server")
|
2023-10-11 13:25:24 -04:00
|
|
|
text: LauncherCore.settings.xivApiServer
|
|
|
|
onTextChanged: LauncherCore.settings.xivApiServer = text
|
2023-10-08 13:22:34 -04:00
|
|
|
}
|
2023-07-31 19:00:59 -04:00
|
|
|
}
|
|
|
|
}
|