mirror of
https://github.com/overte-org/overte.git
synced 2025-06-19 20:00:19 +02:00
Merge pull request #58 from ctrlaltdavid/fix/avatar-packager-update
Update Avatar Packager
This commit is contained in:
commit
19bca588ca
5 changed files with 96 additions and 55 deletions
|
@ -229,7 +229,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function openDocs() {
|
function openDocs() {
|
||||||
Qt.openUrlExternally("https://docs.highfidelity.com/create/avatars/package-avatar.html");
|
Qt.openUrlExternally("https://docs.projectathena.dev/create/avatars/package-avatar.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
function openVideo() {
|
function openVideo() {
|
||||||
|
|
|
@ -128,6 +128,8 @@ ShadowRectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: Link to a Project Athena version of the video.
|
||||||
|
/*
|
||||||
RalewayButton {
|
RalewayButton {
|
||||||
id: video
|
id: video
|
||||||
visible: false
|
visible: false
|
||||||
|
@ -141,6 +143,12 @@ ShadowRectangle {
|
||||||
|
|
||||||
onClicked: videoButtonClicked()
|
onClicked: videoButtonClicked()
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
// Temporary placeholder for video button.
|
||||||
|
Rectangle {
|
||||||
|
id: video
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
|
|
||||||
RalewayButton {
|
RalewayButton {
|
||||||
id: docs
|
id: docs
|
||||||
|
|
|
@ -44,7 +44,11 @@ Item {
|
||||||
HifiControls.Button {
|
HifiControls.Button {
|
||||||
id: uploadButton
|
id: uploadButton
|
||||||
|
|
||||||
|
// FIXME: Re-enable if ability to upload to hosted location is added.
|
||||||
|
/*
|
||||||
visible: AvatarPackagerCore.currentAvatarProject && !AvatarPackagerCore.currentAvatarProject.fst.hasMarketplaceID && !root.hasSuccessfullyUploaded
|
visible: AvatarPackagerCore.currentAvatarProject && !AvatarPackagerCore.currentAvatarProject.fst.hasMarketplaceID && !root.hasSuccessfullyUploaded
|
||||||
|
*/
|
||||||
|
visible: false
|
||||||
enabled: Account.loggedIn
|
enabled: Account.loggedIn
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
@ -62,7 +66,11 @@ Item {
|
||||||
HifiControls.Button {
|
HifiControls.Button {
|
||||||
id: updateButton
|
id: updateButton
|
||||||
|
|
||||||
|
// FIXME: Re-enable if ability to upload to hosted location is added.
|
||||||
|
/*
|
||||||
visible: AvatarPackagerCore.currentAvatarProject && AvatarPackagerCore.currentAvatarProject.fst.hasMarketplaceID && !root.hasSuccessfullyUploaded
|
visible: AvatarPackagerCore.currentAvatarProject && AvatarPackagerCore.currentAvatarProject.fst.hasMarketplaceID && !root.hasSuccessfullyUploaded
|
||||||
|
*/
|
||||||
|
visible: false
|
||||||
enabled: Account.loggedIn
|
enabled: Account.loggedIn
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
@ -79,7 +87,12 @@ Item {
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
|
// FIXME: Re-enable if ability to upload to hosted location is added.
|
||||||
|
/*
|
||||||
visible: root.hasSuccessfullyUploaded
|
visible: root.hasSuccessfullyUploaded
|
||||||
|
*/
|
||||||
|
visible: false;
|
||||||
|
|
||||||
HifiControls.Button {
|
HifiControls.Button {
|
||||||
enabled: Account.loggedIn
|
enabled: Account.loggedIn
|
||||||
|
@ -115,6 +128,22 @@ Item {
|
||||||
onClicked: AvatarPackagerCore.currentAvatarProject.openInInventory()
|
onClicked: AvatarPackagerCore.currentAvatarProject.openInInventory()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// FIXME: Remove if "Upload" button is reinstated.
|
||||||
|
HifiControls.Button {
|
||||||
|
id: openDirectoryButton
|
||||||
|
visible: AvatarPackagerCore.currentAvatarProject
|
||||||
|
enabled: true
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
anchors.right: parent.right
|
||||||
|
text: qsTr("Open Project Folder")
|
||||||
|
color: hifi.buttons.blue
|
||||||
|
colorScheme: root.colorScheme
|
||||||
|
width: 200
|
||||||
|
height: 40
|
||||||
|
onClicked: {
|
||||||
|
fileDialogHelper.openDirectory(fileDialogHelper.pathToUrl(AvatarPackagerCore.currentAvatarProject.projectFolderPath));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
@ -263,13 +292,58 @@ Item {
|
||||||
color: 'white'
|
color: 'white'
|
||||||
size: 20
|
size: 20
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.top: errorsGlyph.bottom
|
anchors.top: errorsGlyph.bottom
|
||||||
|
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RalewayRegular {
|
||||||
|
id: notForSaleMessage
|
||||||
|
|
||||||
|
visible: root.hasSuccessfullyUploaded
|
||||||
|
|
||||||
|
color: 'white'
|
||||||
|
linkColor: '#00B4EF'
|
||||||
|
size: 20
|
||||||
|
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.top: doctorStatusMessage.bottom
|
||||||
|
anchors.topMargin: 10
|
||||||
|
|
||||||
|
anchors.bottomMargin: 24
|
||||||
|
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
text: "This item is not for sale yet, <a href='#'>learn more</a>."
|
||||||
|
|
||||||
|
onLinkActivated: {
|
||||||
|
Qt.openUrlExternally("https://docs.projectathena.dev/sell/add-item/upload-avatar.html");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
RalewayRegular {
|
||||||
|
id: showErrorsLink
|
||||||
|
|
||||||
|
color: 'white'
|
||||||
|
linkColor: '#00B4EF'
|
||||||
|
|
||||||
|
visible: AvatarPackagerCore.currentAvatarProject && AvatarPackagerCore.currentAvatarProject.hasErrors
|
||||||
|
|
||||||
|
anchors {
|
||||||
|
top: notForSaleMessage.bottom
|
||||||
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
}
|
||||||
|
|
||||||
|
size: 28
|
||||||
|
|
||||||
|
text: "<a href='toggle'>View all errors</a>"
|
||||||
|
|
||||||
|
onLinkActivated: {
|
||||||
|
avatarPackager.state = AvatarPackagerState.avatarDoctorErrorReport;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RalewayRegular {
|
RalewayRegular {
|
||||||
id: infoMessage
|
id: infoMessage
|
||||||
|
|
||||||
|
@ -297,60 +371,14 @@ Item {
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: doctorStatusMessage.bottom
|
anchors.bottom: showFilesText.top
|
||||||
|
|
||||||
anchors.bottomMargin: 24
|
anchors.bottomMargin: 24
|
||||||
|
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
|
|
||||||
text: "You can upload your files to our servers to always access them, and to make your avatar visible to other users."
|
// FIXME: Restore original text if ability to upload to hosted location is added.
|
||||||
}
|
//text: "You can upload your files to our servers to always access them, and to make your avatar visible to other users."
|
||||||
|
text: "Your files are ready to be uploaded to a server to make your avatar visible to other users."
|
||||||
RalewayRegular {
|
|
||||||
id: notForSaleMessage
|
|
||||||
|
|
||||||
visible: root.hasSuccessfullyUploaded
|
|
||||||
|
|
||||||
color: 'white'
|
|
||||||
linkColor: '#00B4EF'
|
|
||||||
size: 20
|
|
||||||
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.top: infoMessage.bottom
|
|
||||||
anchors.topMargin: 10
|
|
||||||
|
|
||||||
anchors.bottomMargin: 24
|
|
||||||
|
|
||||||
wrapMode: Text.Wrap
|
|
||||||
text: "This item is not for sale yet, <a href='#'>learn more</a>."
|
|
||||||
|
|
||||||
onLinkActivated: {
|
|
||||||
Qt.openUrlExternally("https://docs.highfidelity.com/sell/add-item/upload-avatar.html");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
RalewayRegular {
|
|
||||||
id: showErrorsLink
|
|
||||||
|
|
||||||
color: 'white'
|
|
||||||
linkColor: '#00B4EF'
|
|
||||||
|
|
||||||
visible: AvatarPackagerCore.currentAvatarProject && AvatarPackagerCore.currentAvatarProject.hasErrors
|
|
||||||
|
|
||||||
anchors {
|
|
||||||
top: notForSaleMessage.visible ? notForSaleMessage.bottom : infoMessage .bottom
|
|
||||||
bottom: showFilesText.top
|
|
||||||
horizontalCenter: parent.horizontalCenter
|
|
||||||
}
|
|
||||||
|
|
||||||
size: 28
|
|
||||||
|
|
||||||
text: "<a href='toggle'>View all errors</a>"
|
|
||||||
|
|
||||||
onLinkActivated: {
|
|
||||||
avatarPackager.state = AvatarPackagerState.avatarDoctorErrorReport;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HifiControls.Button {
|
HifiControls.Button {
|
||||||
|
@ -389,8 +417,13 @@ Item {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: loginRequiredMessage
|
id: loginRequiredMessage
|
||||||
|
|
||||||
|
// FIXME: Re-enable if ability to upload to hosted location is added.
|
||||||
|
/*
|
||||||
visible: !Account.loggedIn
|
visible: !Account.loggedIn
|
||||||
height: !Account.loggedIn ? loginRequiredTextRow.height + 20 : 0
|
height: !Account.loggedIn ? loginRequiredTextRow.height + 20 : 0
|
||||||
|
*/
|
||||||
|
visible: false
|
||||||
|
height: 0
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
|
|
|
@ -55,7 +55,7 @@ static QStringList HAND_MAPPING_SUFFIXES = {
|
||||||
"HandThumb1",
|
"HandThumb1",
|
||||||
};
|
};
|
||||||
|
|
||||||
const QUrl PACKAGE_AVATAR_DOCS_BASE_URL = QUrl("https://docs.highfidelity.com/create/avatars/package-avatar.html");
|
const QUrl PACKAGE_AVATAR_DOCS_BASE_URL = QUrl("https://docs.projectathena.dev/create/avatars/package-avatar.html");
|
||||||
|
|
||||||
AvatarDoctor::AvatarDoctor(const QUrl& avatarFSTFileUrl) :
|
AvatarDoctor::AvatarDoctor(const QUrl& avatarFSTFileUrl) :
|
||||||
_avatarFSTFileUrl(avatarFSTFileUrl) {
|
_avatarFSTFileUrl(avatarFSTFileUrl) {
|
||||||
|
|
|
@ -95,7 +95,7 @@ public:
|
||||||
static bool isValidNewProjectName(const QString& projectPath, const QString& projectName);
|
static bool isValidNewProjectName(const QString& projectPath, const QString& projectName);
|
||||||
|
|
||||||
static QString getDefaultProjectsPath() {
|
static QString getDefaultProjectsPath() {
|
||||||
return QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation) + "/High Fidelity Projects";
|
return QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation) + "/Project Athena Projects";
|
||||||
}
|
}
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
Loading…
Reference in a new issue