2023-07-30 08:49:34 -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
2023-10-08 20:01:17 -04:00
import org . kde . kirigamiaddons . formcard as FormCard
2023-09-16 18:15:11 -04:00
import zone . xiv . astra
2023-07-30 08:49:34 -04:00
2023-10-08 20:01:17 -04:00
FormCard . FormCardPage {
2023-07-30 08:49:34 -04:00
id: page
property var profile
title: i18n ( "Download Game" )
2023-10-08 20:01:17 -04:00
FormCard . FormCard {
Layout.topMargin: Kirigami . Units . largeSpacing
Layout.fillWidth: true
FormCard . FormTextDelegate {
id: helpTextDelegate
text: i18n ( "Press the button below to download and setup the game." )
description: i18n ( "This only installs the base files required for the initial update. Astra can only download patches with a legitimate Square Enix account." )
}
FormCard . FormDelegateSeparator {
above: helpTextDelegate
below: buttonDelegate
}
FormCard . FormButtonDelegate {
id: buttonDelegate
text: i18n ( "Begin installation" )
icon.name: "cloud-download"
2023-12-19 20:43:09 -05:00
onClicked: page . Window . window . pageStack . layers . push ( Qt . createComponent ( "zone.xiv.astra" , "InstallProgress" ) , {
2023-10-08 20:01:17 -04:00
gameInstaller: LauncherCore . createInstaller ( page . profile )
} )
2023-07-30 08:49:34 -04:00
}
}
}