mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 12:57:45 +00:00
XIVAPI was kind of unnecessary here, and on top of that it's barely working nowadays. We can grab the image URL directly from the Lodestone, cutting out the middleman.
148 lines
No EOL
4.3 KiB
QML
148 lines
No EOL
4.3 KiB
QML
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
|
|
import org.kde.kirigami as Kirigami
|
|
import org.kde.kirigamiaddons.formcard as FormCard
|
|
|
|
import zone.xiv.astra
|
|
|
|
import "../Components"
|
|
|
|
FormCard.FormCardPage {
|
|
id: page
|
|
|
|
title: i18nc("@title:window", "Developer Settings")
|
|
|
|
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 download patch data, if found.")
|
|
checked: LauncherCore.settings.keepPatches
|
|
onCheckedChanged: LauncherCore.settings.keepPatches = checked
|
|
}
|
|
}
|
|
|
|
FormCard.FormHeader {
|
|
title: i18n("Launching")
|
|
}
|
|
|
|
FormCard.FormCard {
|
|
Layout.fillWidth: true
|
|
|
|
FormCard.FormButtonDelegate {
|
|
id: launchGameDelegate
|
|
|
|
text: i18n("Launch Game Now")
|
|
description: i18n("This is meant for testing if we can get to the title screen and will fail at doing anything else.")
|
|
|
|
onClicked: LauncherCore.immediatelyLaunch(LauncherCore.currentProfile)
|
|
}
|
|
|
|
FormCard.FormDelegateSeparator {
|
|
above: launchGameDelegate
|
|
below: encryptArgDelegate
|
|
}
|
|
|
|
FormCard.FormCheckDelegate {
|
|
id: encryptArgDelegate
|
|
|
|
text: i18n("Encrypt Game Arguments")
|
|
description: i18n("Disable encryption if you want to inspect the raw arguments passed to the game.")
|
|
checked: LauncherCore.settings.argumentsEncrypted
|
|
onCheckedChanged: LauncherCore.settings.argumentsEncrypted = checked
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
FormCard.FormHeader {
|
|
title: i18n("Servers")
|
|
}
|
|
|
|
FormCard.FormCard {
|
|
Layout.fillWidth: true
|
|
|
|
FormCard.FormTextFieldDelegate {
|
|
id: preferredProtocolDelegate
|
|
|
|
label: i18n("Preferred Protocol")
|
|
text: LauncherCore.settings.preferredProtocol
|
|
onTextChanged: LauncherCore.settings.preferredProtocol = text
|
|
}
|
|
|
|
FormCard.FormDelegateSeparator {
|
|
above: preferredProtocolDelegate
|
|
below: dalamudServerDelegate
|
|
}
|
|
|
|
FormCard.FormTextFieldDelegate {
|
|
id: dalamudServerDelegate
|
|
|
|
label: i18n("Dalamud Distribution Server")
|
|
text: LauncherCore.settings.dalamudDistribServer
|
|
onTextChanged: LauncherCore.settings.dalamudDistribServer = text
|
|
}
|
|
|
|
FormCard.FormDelegateSeparator {
|
|
above: dalamudServerDelegate
|
|
below: mainServerDelegate
|
|
}
|
|
|
|
FormCard.FormTextFieldDelegate {
|
|
id: mainServerDelegate
|
|
|
|
label: i18n("SE Main Server (ffxiv.com)")
|
|
text: LauncherCore.settings.squareEnixServer
|
|
onTextChanged: LauncherCore.settings.squareEnixServer = text
|
|
}
|
|
|
|
FormCard.FormDelegateSeparator {
|
|
above: mainServerDelegate
|
|
below: loginServerDelegate
|
|
}
|
|
|
|
FormCard.FormTextFieldDelegate {
|
|
id: loginServerDelegate
|
|
|
|
label: i18n("SE Login Server (square-enix.com)")
|
|
text: LauncherCore.settings.squareEnixLoginServer
|
|
onTextChanged: LauncherCore.settings.squareEnixLoginServer = text
|
|
}
|
|
|
|
FormCard.FormDelegateSeparator {
|
|
above: loginServerDelegate
|
|
below: mainServerDelegate
|
|
}
|
|
|
|
FormCard.FormTextFieldDelegate {
|
|
id: mainServerDelegate
|
|
|
|
label: i18n("Main Server (finalfantasyxiv.com)")
|
|
text: LauncherCore.settings.mainServer
|
|
onTextChanged: LauncherCore.settings.mainServer = text
|
|
}
|
|
}
|
|
} |