1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Add Steam Workshop Agreement

This commit is contained in:
Elias Steurer 2021-01-05 17:01:13 +01:00
parent cb344457a5
commit daa76b8b51
3 changed files with 59 additions and 31 deletions

View File

@ -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
}

View File

@ -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
}
Button {
id:btnAbort
text: qsTr("Abort Upload.")
onClicked: {
ColumnLayout {
anchors {
fill: parent
margins: 20
}
}
Button {
id:btnAgree
text: qsTr("I Agree to the Steam Workshop Agreement")
highlighted: true
Material.background: Material.accent
Material.foreground: "white"
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
}
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()
}
}
}
}
}

View File

@ -31,16 +31,6 @@ Popup {
}
}
Connections {
target: SP.Workshop.steamWorkshop.uploadListModel
function onUserNeedsToAcceptWorkshopLegalAgreement() {
popupSteamWorkshopAgreement.open()
}
}
PopupSteamWorkshopAgreement {
id: popupSteamWorkshopAgreement
}
Component {
id: com