2022-04-04 18:06:43 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Layouts
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Controls.Material
|
2022-05-05 13:02:54 +02:00
|
|
|
import ScreenPlayWorkshop
|
2022-04-04 18:06:43 +02:00
|
|
|
|
|
|
|
Window {
|
|
|
|
id: root
|
2022-05-20 13:23:11 +02:00
|
|
|
width: 1400
|
2022-04-04 18:06:43 +02:00
|
|
|
height: 768
|
|
|
|
visible: true
|
|
|
|
title: qsTr("ScreenPlayWorkshop")
|
2022-07-01 17:41:45 +02:00
|
|
|
Component.onCompleted: {
|
2023-02-02 15:25:26 +01:00
|
|
|
root.Material.theme = Material.Dark;
|
2022-07-01 17:41:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ScreenPlayWorkshop {
|
|
|
|
id: screenPlayWorkshop
|
|
|
|
Component.onCompleted: {
|
|
|
|
if (screenPlayWorkshop.init()) {
|
2023-02-02 15:25:26 +01:00
|
|
|
print("init");
|
|
|
|
stackView.push("qrc:/qml/ScreenPlayWorkshop/qml/SteamWorkshopStartPage.qml", {
|
|
|
|
"stackView": stackView,
|
|
|
|
"screenPlayWorkshop": screenPlayWorkshop,
|
|
|
|
"steamWorkshop": screenPlayWorkshop.steamWorkshop,
|
|
|
|
"background": background
|
|
|
|
});
|
2022-07-01 17:41:45 +02:00
|
|
|
} else {
|
2023-02-02 15:25:26 +01:00
|
|
|
popupOffline.open();
|
2022-07-01 17:41:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-04 18:06:43 +02:00
|
|
|
|
2022-07-01 17:41:45 +02:00
|
|
|
Item {
|
2022-05-20 13:23:11 +02:00
|
|
|
anchors {
|
|
|
|
top: nav.bottom
|
|
|
|
right: parent.right
|
|
|
|
bottom: parent.bottom
|
|
|
|
left: parent.left
|
|
|
|
}
|
|
|
|
|
2022-07-01 17:41:45 +02:00
|
|
|
Background {
|
|
|
|
id: background
|
|
|
|
anchors.fill: parent
|
|
|
|
stackViewDepth: stackView.depth
|
|
|
|
}
|
|
|
|
|
|
|
|
PopupOffline {
|
|
|
|
id: popupOffline
|
|
|
|
workshop: screenPlayWorkshop
|
|
|
|
steam: screenPlayWorkshop.steamWorkshop
|
|
|
|
}
|
|
|
|
StackView {
|
|
|
|
id: stackView
|
|
|
|
property int duration: 300
|
|
|
|
|
|
|
|
anchors.fill: parent
|
|
|
|
replaceEnter: Transition {
|
|
|
|
OpacityAnimator {
|
|
|
|
from: 0
|
|
|
|
to: 1
|
|
|
|
duration: stackView.duration
|
|
|
|
easing.type: Easing.InOutQuart
|
|
|
|
}
|
|
|
|
|
|
|
|
ScaleAnimator {
|
|
|
|
from: 0.8
|
|
|
|
to: 1
|
|
|
|
duration: stackView.duration
|
|
|
|
easing.type: Easing.InOutQuart
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
replaceExit: Transition {
|
|
|
|
OpacityAnimator {
|
|
|
|
from: 1
|
|
|
|
to: 0
|
|
|
|
duration: stackView.duration
|
|
|
|
easing.type: Easing.InOutQuart
|
|
|
|
}
|
|
|
|
|
|
|
|
ScaleAnimator {
|
|
|
|
from: 1
|
|
|
|
to: 0.8
|
|
|
|
duration: stackView.duration
|
|
|
|
easing.type: Easing.InOutQuart
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-05-20 13:23:11 +02:00
|
|
|
}
|
|
|
|
Rectangle {
|
2023-02-02 15:25:26 +01:00
|
|
|
id: nav
|
2022-05-20 13:23:11 +02:00
|
|
|
height: 60
|
|
|
|
color: Material.background
|
|
|
|
anchors {
|
|
|
|
right: parent.right
|
|
|
|
left: parent.left
|
|
|
|
}
|
2022-04-23 14:32:36 +02:00
|
|
|
}
|
2022-04-04 18:06:43 +02:00
|
|
|
}
|