1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 18:52:30 +01:00
ScreenPlay/ScreenPlayWorkshop/qml/upload/PopupSteamWorkshopAgreement.qml

68 lines
2.1 KiB
QML
Raw Normal View History

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Material
import QtQuick.Layouts
import ScreenPlayWorkshop as SP
2021-01-05 17:01:13 +01:00
2020-08-20 17:21:09 +02:00
Popup {
2021-01-05 17:01:13 +01:00
id: root
2021-05-16 19:37:55 +02:00
2020-08-20 17:21:09 +02:00
dim: true
2021-01-05 17:01:13 +01:00
width: 800
height: 400
2020-08-20 17:21:09 +02:00
closePolicy: Popup.NoAutoClose
anchors.centerIn: Overlay.overlay
2021-01-05 17:01:13 +01:00
ColumnLayout {
anchors {
fill: parent
margins: 20
}
2020-08-20 17:21:09 +02:00
Text {
2021-01-05 17:01:13 +01:00
text: qsTr("You Need to Agree To The Steam Subscriber Agreement First")
Layout.fillWidth: true
}
2020-08-20 17:21:09 +02:00
2021-01-05 17:01:13 +01:00
Text {
id: name
2021-05-16 19:37:55 +02:00
2021-01-05 17:01:13 +01:00
text: qsTr("REQUIRES INTERNET CONNECTION AND FREE STEAM ACCOUNT TO ACTIVATE. Notice: Product offered subject to your acceptance of the Steam Subscriber Agreement (SSA). You must activate this product via the Internet by registering for a Steam account and accepting the SSA. Please see https://store.steampowered.com/subscriber_agreement/ to view the SSA prior to purchase. If you do not agree with the provisions of the SSA, you should return this game unopened to your retailer in accordance with their return policy.")
color: Material.primaryTextColor
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
Layout.fillWidth: true
2020-08-20 17:21:09 +02:00
}
2021-01-05 17:01:13 +01:00
RowLayout {
Layout.fillWidth: true
2021-05-16 19:37:55 +02:00
2021-01-05 17:01:13 +01:00
Item {
Layout.fillWidth: true
}
2021-05-16 19:37:55 +02:00
2021-01-05 17:01:13 +01:00
Button {
id: btnAbort
2021-05-16 19:37:55 +02:00
2021-01-05 17:01:13 +01:00
text: qsTr("View The Steam Subscriber Agreement")
2021-05-16 19:37:55 +02:00
onClicked: Qt.openUrlExternally("https://store.steampowered.com/subscriber_agreement/")
2021-01-05 17:01:13 +01:00
}
2020-08-20 17:21:09 +02:00
2021-01-05 17:01:13 +01:00
Button {
id: btnAgree
2021-05-16 19:37:55 +02:00
2021-02-03 07:52:50 +01:00
text: qsTr("Accept Steam Workshop Agreement")
2021-10-07 17:43:32 +02:00
Material.accent: Material.color(Material.Orange)
2021-01-05 17:01:13 +01:00
highlighted: true
onClicked: {
2021-05-16 19:37:55 +02:00
Qt.openUrlExternally("https://steamcommunity.com/sharedfiles/workshoplegalagreement");
root.close();
2021-01-05 17:01:13 +01:00
}
}
2020-08-20 17:21:09 +02:00
}
}
2021-05-16 19:37:55 +02:00
background: Rectangle {
color: Material.theme === Material.Light ? "white" : Material.background
}
2020-08-20 17:21:09 +02:00
}