Commit daa76b8b authored by Elias Steurer's avatar Elias Steurer 🇩🇪

Add Steam Workshop Agreement

parent cb344457
......@@ -51,7 +51,17 @@ Item {
UploadProject {
id: popupUploadProject
anchors.centerIn: Overlay.overlay
}
PopupSteamWorkshopAgreement {
id: popupSteamWorkshopAgreement
}
Connections {
target: Workshop.steamWorkshop.uploadListModel
function onUserNeedsToAcceptWorkshopLegalAgreement() {
popupSteamWorkshopAgreement.open()
}
}
Flickable {
......@@ -233,10 +243,9 @@ Item {
id: searchWrapper
width: 400
height: 45
height: 50
anchors {
top: parent.top
verticalCenter: parent.verticalCenter
left: parent.left
}
......
......@@ -6,33 +6,62 @@ import QtQuick.Layouts 1.12
import ScreenPlay.Workshop 1.0 as SP
import ScreenPlay 1.0
import "../../Common"
Popup {
id: popupSteamWorkshopAgreement
id: root
dim: true
width: 1100
height: 600
width: 800
height: 400
closePolicy: Popup.NoAutoClose
anchors.centerIn: Overlay.overlay
background: Rectangle {
color: Material.theme === Material.Light ? "white" : Material.background
}
ColumnLayout {
anchors {
fill: parent
margins: 20
}
Button {
id:btnAbort
text: qsTr("Abort Upload.")
onClicked: {
Headline {
text: qsTr("You Need to Agree To The Steam Subscriber Agreement First")
Layout.fillWidth: true
}
Text {
id: name
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.")
font: ScreenPlay.settings.font
color: Material.primaryTextColor
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
Layout.fillWidth: true
}
}
Button {
id:btnAgree
text: qsTr("I Agree to the Steam Workshop Agreement")
highlighted: true
Material.background: Material.accent
Material.foreground: "white"
onClicked: {
RowLayout {
Layout.fillWidth: true
Item {
Layout.fillWidth: true
}
Button {
id: btnAbort
text: qsTr("View The Steam Subscriber Agreement")
onClicked: Qt.openUrlExternally(
"https://store.steampowered.com/subscriber_agreement/")
}
Button {
id: btnAgree
text: qsTr("AcceptSteam Workshop Agreement")
highlighted: true
Material.background: Material.accent
Material.foreground: "white"
onClicked: {
Qt.openUrlExternally(
"https://steamcommunity.com/sharedfiles/workshoplegalagreement")
root.close()
}
}
}
}
}
......@@ -31,16 +31,6 @@ Popup {
}
}
Connections {
target: SP.Workshop.steamWorkshop.uploadListModel
function onUserNeedsToAcceptWorkshopLegalAgreement() {
popupSteamWorkshopAgreement.open()
}
}
PopupSteamWorkshopAgreement {
id: popupSteamWorkshopAgreement
}
Component {
id: com
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment