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-05-05 13:02:54 +02:00
|
|
|
import ScreenPlayWorkshop
|
2023-12-01 16:40:59 +01:00
|
|
|
import ScreenPlayUtil
|
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", {
|
2024-05-25 15:36:24 +02:00
|
|
|
"stackView": stackView,
|
|
|
|
"screenPlayWorkshop": screenPlayWorkshop,
|
|
|
|
"steamWorkshop": screenPlayWorkshop.steamWorkshop,
|
|
|
|
"background": background
|
|
|
|
});
|
2021-09-23 15:55:40 +02:00
|
|
|
} else {
|
2023-02-02 15:25:26 +01:00
|
|
|
popupOffline.open();
|
2021-09-23 15:55:40 +02:00
|
|
|
}
|
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
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|