Almost done with init screen

This commit is contained in:
Zach Fox 2019-10-07 20:29:18 -04:00
parent a23bee19e8
commit b0adf1ef02

View file

@ -27,6 +27,8 @@ Rectangle {
} }
Component.onCompleted: { Component.onCompleted: {
// ZRF REMOVE ME
return;
if (Settings.getValue("simplifiedUI/alreadyAutoSelectedAvatarFromInventory", false) || if (Settings.getValue("simplifiedUI/alreadyAutoSelectedAvatarFromInventory", false) ||
Settings.getValue("simplifiedUI/closedAvatarPageOfInitialLaunchWindow", false)) { Settings.getValue("simplifiedUI/closedAvatarPageOfInitialLaunchWindow", false)) {
tempAvatarPageContainer.visible = false; tempAvatarPageContainer.visible = false;
@ -38,104 +40,110 @@ Rectangle {
id: tempAvatarPageContainer id: tempAvatarPageContainer
anchors.fill: parent anchors.fill: parent
Flickable { Item {
id: tempAvatarPageFlickable id: contentContainer
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 16
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 16
anchors.bottom: continueLink.top anchors.bottom: continueLink.top
clip: true
contentWidth: parent.width
contentHeight: tempAvatarPageGrid.heights
interactive: contentHeight > height
RowLayout { Image {
id: tempAvatarPageGrid id: avatarImage
width: parent.width anchors.top: parent.top
anchors.topMargin: 96
anchors.bottom: parent.bottom
anchors.bottomMargin: 96
anchors.left: parent.left
anchors.leftMargin: 12
source: resourceDirectoryUrl + "qml/hifi/simplifiedUI/avatarApp/images/" +
MyAvatar.skeletonModelURL.substring(MyAvatar.skeletonModelURL.indexOf("simplifiedAvatar"), MyAvatar.skeletonModelURL.lastIndexOf("/")) + ".png"
mipmap: true
fillMode: Image.PreserveAspectFit
}
Flickable {
id: textContainer
clip: true
anchors.top: parent.top
anchors.topMargin: 128
anchors.bottom: qrAndInstructionsContainer.top
anchors.bottomMargin: 32
anchors.left: avatarImage.right
anchors.right: parent.right
contentWidth: width
contentHeight: contentItem.childrenRect.height
interactive: contentHeight > height
HifiStylesUit.RalewayBold {
id: headerText
text: "We know this isn't you..."
color: simplifiedUI.colors.text.black
size: 48
height: paintedHeight
wrapMode: Text.Wrap
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.rightMargin: 16
}
HifiStylesUit.RalewayRegular {
id: descriptionText
anchors.top: headerText.bottom
anchors.topMargin: 10
anchors.left: parent.left
width: Math.min(720, parent.width) - headerText.anchors.rightMargin
height: paintedHeight
text: "...but we've given you this <b>temporary avatar</b> to use " +
"for today. If you see this avatar in-world, walk up and " +
"say hello to other new users!<br><br>" +
"<b>We want you to be you</b> so we've built an Avatar Creator " +
"App that's as easy as taking a selfie and picking your " +
"outfits! Available now on iOS and Android."
color: simplifiedUI.colors.text.black
size: 22
wrapMode: Text.Wrap
}
}
Item {
id: qrAndInstructionsContainer
anchors.left: avatarImage.right
anchors.right: parent.right
anchors.rightMargin: 16
anchors.bottom: parent.bottom
height: 190
Image { Image {
Layout.preferredWidth: 428 id: avatarAppQRCodeImage
Layout.minimumHeight: 240 source: resourceDirectoryUrl + "qml/hifi/simplifiedUI/avatarApp/images/qrCode.jpg"
Layout.maximumHeight: 800 anchors.top: parent.top
Layout.fillHeight: true anchors.bottom: parent.bottom
source: resourceDirectoryUrl + "qml/hifi/simplifiedUI/avatarApp/images/" + anchors.left: parent.left
MyAvatar.skeletonModelURL.substring(MyAvatar.skeletonModelURL.indexOf("simplifiedAvatar"), MyAvatar.skeletonModelURL.lastIndexOf("/")) + ".png" width: 190
mipmap: true mipmap: true
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
} }
Item { HifiStylesUit.RalewayBold {
id: textAndQRContainer id: instructionText
Layout.minimumWidth: 300 anchors.top: avatarAppQRCodeImage.top
Layout.maximumWidth: 1680 anchors.bottom: avatarAppQRCodeImage.bottom
Layout.fillWidth: true anchors.left: avatarAppQRCodeImage.right
Layout.preferredHeight: childrenRect.height anchors.leftMargin: 30
anchors.right: parent.right
HifiStylesUit.RalewayBold { text: "Use your mobile phone to scan this QR code."
id: headerText color: simplifiedUI.colors.text.black
text: "We know this isn't you..." size: 22
color: simplifiedUI.colors.text.black wrapMode: Text.Wrap
size: 48
height: paintedHeight
wrapMode: Text.Wrap
anchors.top: parent.top
anchors.topMargin: 120
anchors.left: parent.left
anchors.right: parent.right
}
HifiStylesUit.RalewayRegular {
id: descriptionText
anchors.top: headerText.bottom
anchors.topMargin: 10
anchors.left: parent.left
anchors.right: parent.right
height: paintedHeight
text: "but we've given you this <b>temporary avatar</b> to use " +
"for today. If you see this avatar in-world, walk up and " +
"say hello to other new users!<br><br>" +
"<b>We want you to be you</b> so we've built an Avatar Creator " +
"App that's as easy as taking a selfie and picking your " +
"outfits! Available now on iOS and Android."
color: simplifiedUI.colors.text.black
size: 22
wrapMode: Text.Wrap
}
Item {
id: qrAndInstructionsContainer
anchors.top: descriptionText.bottom
anchors.topMargin: 50
anchors.left: parent.left
anchors.right: parent.right
height: avatarAppQRCodeImage.height
Image {
id: avatarAppQRCodeImage
source: resourceDirectoryUrl + "qml/hifi/simplifiedUI/avatarApp/images/qrCode.jpg"
height: 190
width: 190
mipmap: true
fillMode: Image.PreserveAspectFit
}
HifiStylesUit.RalewayBold {
id: instructionText
anchors.top: avatarAppQRCodeImage.top
anchors.bottom: avatarAppQRCodeImage.bottom
anchors.left: avatarAppQRCodeImage.right
anchors.leftMargin: 30
anchors.right: parent.right
text: "Use your mobile phone to scan this QR code."
color: simplifiedUI.colors.text.black
size: 22
wrapMode: Text.Wrap
}
}
} }
} }
SimplifiedControls.VerticalScrollBar {
parent: textContainer
anchors.topMargin: 96
anchors.bottomMargin: anchors.topMargin
}
} }
@ -167,10 +175,6 @@ Rectangle {
} }
} }
} }
SimplifiedControls.VerticalScrollBar {
parent: tempAvatarPageFlickable
}
} }
Item { Item {