2021-09-10 12:45:15 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Controls.Material
|
2021-07-15 12:07:39 +02:00
|
|
|
import Qt5Compat.GraphicalEffects
|
2021-09-10 12:45:15 +02:00
|
|
|
import QtQuick.Layouts
|
2022-04-23 14:32:36 +02:00
|
|
|
import ScreenPlayWorkshop 1.0
|
2021-11-09 09:22:10 +01:00
|
|
|
import WorkshopEnums 1.0
|
2021-06-25 12:07:28 +02:00
|
|
|
import "upload/"
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
2022-04-23 14:32:36 +02:00
|
|
|
property Item modalSource
|
2022-01-16 12:22:57 +01:00
|
|
|
|
2021-09-23 15:55:40 +02:00
|
|
|
ScreenPlayWorkshop {
|
|
|
|
id: screenPlayWorkshop
|
|
|
|
Component.onCompleted: {
|
|
|
|
if (screenPlayWorkshop.init()) {
|
2022-04-30 13:22:17 +02:00
|
|
|
stackView.push("qrc:/qml/ScreenPlayWorkshop/qml/SteamWorkshopStartPage.qml", {
|
2021-09-23 15:55:40 +02:00
|
|
|
"stackView": stackView,
|
|
|
|
"screenPlayWorkshop": screenPlayWorkshop,
|
|
|
|
"steamWorkshop": screenPlayWorkshop.steamWorkshop,
|
2022-01-16 12:22:57 +01:00
|
|
|
"background": background,
|
2022-04-23 14:32:36 +02:00
|
|
|
// "modalSource": root.modalSource
|
2021-09-23 15:55:40 +02:00
|
|
|
})
|
|
|
|
} else {
|
|
|
|
popupOffline.open()
|
|
|
|
}
|
2021-06-25 12:07:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Background {
|
|
|
|
id: background
|
|
|
|
anchors.fill: parent
|
2021-09-23 15:55:40 +02:00
|
|
|
stackViewDepth: stackView.depth
|
2021-06-25 12:07:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-09-23 15:55:40 +02:00
|
|
|
PopupOffline {
|
|
|
|
id: popupOffline
|
|
|
|
workshop: screenPlayWorkshop
|
|
|
|
steam: screenPlayWorkshop.steamWorkshop
|
2022-01-16 12:22:57 +01:00
|
|
|
modalSource: root.modalSource
|
2021-06-25 12:07:28 +02:00
|
|
|
}
|
|
|
|
|
2021-09-23 15:55:40 +02:00
|
|
|
StackView {
|
|
|
|
id: stackView
|
|
|
|
property int duration: 300
|
2021-06-25 12:07:28 +02:00
|
|
|
|
2021-09-23 15:55:40 +02:00
|
|
|
Connections {
|
|
|
|
target: stackView.currentItem
|
|
|
|
ignoreUnknownSignals: true
|
|
|
|
function onRequestBack() {
|
|
|
|
stackView.pop()
|
2021-06-25 12:07:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-23 15:55:40 +02:00
|
|
|
anchors.fill: parent
|
|
|
|
replaceEnter: Transition {
|
|
|
|
OpacityAnimator {
|
|
|
|
from: 0
|
|
|
|
to: 1
|
|
|
|
duration: stackView.duration
|
|
|
|
easing.type: Easing.InOutQuart
|
2021-06-25 12:07:28 +02:00
|
|
|
}
|
|
|
|
|
2021-09-23 15:55:40 +02:00
|
|
|
ScaleAnimator {
|
|
|
|
from: 0.8
|
|
|
|
to: 1
|
|
|
|
duration: stackView.duration
|
|
|
|
easing.type: Easing.InOutQuart
|
2021-06-25 12:07:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-23 15:55:40 +02:00
|
|
|
replaceExit: Transition {
|
|
|
|
OpacityAnimator {
|
|
|
|
from: 1
|
|
|
|
to: 0
|
|
|
|
duration: stackView.duration
|
2021-06-25 12:07:28 +02:00
|
|
|
easing.type: Easing.InOutQuart
|
|
|
|
}
|
|
|
|
|
2021-09-23 15:55:40 +02:00
|
|
|
ScaleAnimator {
|
|
|
|
from: 1
|
|
|
|
to: 0.8
|
|
|
|
duration: stackView.duration
|
|
|
|
easing.type: Easing.InOutQuart
|
|
|
|
}
|
2021-06-25 12:07:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|