2021-09-26 17:56:40 +02:00
|
|
|
import QtQuick
|
2021-09-10 12:45:15 +02:00
|
|
|
import QtQuick.Controls
|
2022-01-16 12:23:27 +01:00
|
|
|
import QtQuick.Layouts
|
2021-09-10 12:45:15 +02:00
|
|
|
import QtQuick.Controls.Material
|
2021-07-15 12:07:39 +02:00
|
|
|
import Qt5Compat.GraphicalEffects
|
2022-05-05 13:02:54 +02:00
|
|
|
import ScreenPlayWorkshop
|
|
|
|
import ScreenPlayUtil
|
2020-08-20 17:21:09 +02:00
|
|
|
|
|
|
|
Popup {
|
2022-07-01 17:41:45 +02:00
|
|
|
id: root
|
2021-05-16 19:37:55 +02:00
|
|
|
|
2020-08-20 17:21:09 +02:00
|
|
|
width: 1100
|
|
|
|
height: 600
|
|
|
|
modal: true
|
|
|
|
closePolicy: Popup.NoAutoClose
|
|
|
|
anchors.centerIn: Overlay.overlay
|
|
|
|
dim: true
|
|
|
|
|
2022-01-16 12:23:27 +01:00
|
|
|
background: Rectangle {
|
|
|
|
color: Material.theme === Material.Light ? "white" : Material.background
|
|
|
|
}
|
|
|
|
required property ScreenPlayWorkshop workshop
|
|
|
|
required property SteamWorkshop steam
|
2022-07-01 17:41:45 +02:00
|
|
|
//required property Item modalSource
|
2022-04-23 19:26:55 +02:00
|
|
|
Overlay.modal: ModalBackgroundBlur {
|
|
|
|
sourceItem: root.modalSource
|
|
|
|
}
|
2020-08-20 17:21:09 +02:00
|
|
|
|
2022-01-16 12:23:27 +01:00
|
|
|
ColumnLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.margins: 40
|
|
|
|
spacing: 20
|
|
|
|
Item {
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
2020-08-20 17:21:09 +02:00
|
|
|
}
|
2021-05-16 19:37:55 +02:00
|
|
|
|
2022-01-16 12:23:27 +01:00
|
|
|
Image {
|
2022-05-01 20:20:57 +02:00
|
|
|
source: "qrc:/qml/ScreenPlayWorkshop/assets/images/steam_offline.png"
|
2022-01-16 12:23:27 +01:00
|
|
|
Layout.alignment: Qt.AlignHCenter
|
2021-05-16 19:37:55 +02:00
|
|
|
}
|
|
|
|
|
2022-01-16 12:23:27 +01:00
|
|
|
Text {
|
|
|
|
font.pointSize: 16
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
color: Material.primaryTextColor
|
2022-07-01 17:41:45 +02:00
|
|
|
text: qsTr("You need to run Steam to access the Steam Workshop")
|
2022-01-16 12:23:27 +01:00
|
|
|
}
|
|
|
|
Text {
|
|
|
|
font.pointSize: 12
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
color: Material.secondaryTextColor
|
2023-02-02 15:25:26 +01:00
|
|
|
text: qsTr("Steam Error Restart: %1\nSteam Error API Init: %2").arg(steam.steamErrorRestart).arg(root.steam.steamErrorAPIInit)
|
2022-01-16 12:23:27 +01:00
|
|
|
}
|
2021-05-16 19:37:55 +02:00
|
|
|
|
2022-01-16 12:23:27 +01:00
|
|
|
Button {
|
|
|
|
highlighted: true
|
|
|
|
text: qsTr("Back")
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
onClicked: {
|
2023-02-02 15:25:26 +01:00
|
|
|
root.close();
|
|
|
|
App.util.setNavigation("Installed");
|
2022-01-16 12:23:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
Item {
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
2021-05-16 19:37:55 +02:00
|
|
|
}
|
2020-08-20 17:21:09 +02:00
|
|
|
}
|