Ready for Zach to add default avatar changes

This commit is contained in:
RebeccaStankus 2019-10-01 16:36:06 -07:00
parent 3167dc9a35
commit d2e62749c7
12 changed files with 33 additions and 11 deletions

View file

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 159 KiB

View file

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View file

@ -129,6 +129,10 @@ Rectangle {
// If we have never auto-selected and the user is still using a default avatar or if the current avatar is not valid (fst), or if // If we have never auto-selected and the user is still using a default avatar or if the current avatar is not valid (fst), or if
// the current avatar is the old default (Woody), use top avatar from inventory or one of the new defaults. // the current avatar is the old default (Woody), use top avatar from inventory or one of the new defaults.
// FOR TESTING__________REMOVE
userHasValidAvatarInInventory = false;
if (!currentAvatarIsValid || userHasOldDefaultAvatar || (!avatarHasBeenAutoSelectedBefore && userIsWearingDefaultAvatar)) { if (!currentAvatarIsValid || userHasOldDefaultAvatar || (!avatarHasBeenAutoSelectedBefore && userIsWearingDefaultAvatar)) {
if (userHasValidAvatarInInventory) { if (userHasValidAvatarInInventory) {
MyAvatar.useFullAvatarURL(topBarInventoryModel.get(0).download_url); MyAvatar.useFullAvatarURL(topBarInventoryModel.get(0).download_url);

View file

@ -56,13 +56,19 @@ Rectangle {
id: tempAvatarPageContainer id: tempAvatarPageContainer
visible: true visible: true
SimplifiedControls.VerticalScrollBar {
parent: tempAvatarPageContainer
}
GridLayout { GridLayout {
id: tempAvatarPageGrid id: tempAvatarPageGrid
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: 180 anchors.leftMargin: 180
anchors.topMargin: 50 anchors.topMargin: 50
anchors.rightMargin: 100 anchors.rightMargin: 100
columns: 2 columns: root.width > root.height ? 2 : 1
rows: root.width > root.height ? 1 : 2
flow: root.width > root.height ? GridLayout.LeftToRight : GridLayout.TopToBottom
Item { Item {
id: textAndQRContainer id: textAndQRContainer
@ -75,7 +81,7 @@ Rectangle {
HifiStylesUit.RalewayBold { HifiStylesUit.RalewayBold {
id: headerText id: headerText
text: "We know this isn't you..." text: "We know this isn't you..."
color: simplifiedUI.colors.darkGray color: simplifiedUI.colors.text.darkGray
size: 48 size: 48
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
anchors.left: parent.left anchors.left: parent.left
@ -93,7 +99,7 @@ Rectangle {
<b>We want you to be you</b> so we've built an Avatar Creator <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 App that's as easy as taking a selfie and picking your
outfits! Available now on iOS and Android Platforms." outfits! Available now on iOS and Android Platforms."
color: simplifiedUI.colors.darkGray color: simplifiedUI.colors.text.darkGray
size: 22 size: 22
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
@ -111,7 +117,7 @@ Rectangle {
Image { Image {
id: avatarAppQRCodeImage id: avatarAppQRCodeImage
source: "images/qrCode.jpg" source: resourceDirectoryUrl + "qml/hifi/simplifiedUI/avatarApp/images/qrCode.jpg"
height: 190 height: 190
width: 190 width: 190
} }
@ -122,10 +128,9 @@ Rectangle {
anchors.top: avatarAppQRCodeImage.top anchors.top: avatarAppQRCodeImage.top
anchors.bottom: avatarAppQRCodeImage.bottom anchors.bottom: avatarAppQRCodeImage.bottom
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: avatarAppQRCodeImage.verticalCenter
anchors.leftMargin: 30 anchors.leftMargin: 30
text: "Use your mobile phone to scan this QR code." text: "Use your mobile phone to scan this QR code."
color: simplifiedUI.colors.darkGray color: simplifiedUI.colors.text.darkGray
size: 22 size: 22
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
@ -151,6 +156,7 @@ Rectangle {
onClicked: { onClicked: {
Tablet.playSound(TabletEnums.ButtonClick); Tablet.playSound(TabletEnums.ButtonClick);
print("_____________________________________", bottomRightAccentImage.source);
tempAvatarPageContainer.visible = false; tempAvatarPageContainer.visible = false;
controlsContainer.visible = true; controlsContainer.visible = true;
} }
@ -166,10 +172,12 @@ Rectangle {
Image { Image {
id: tempAvatarImage id: tempAvatarImage
width: 428 width: root.width > root.height ? 428 : 320
height: 800 height: root.width > root.height ? 800 : 598
source: "images/DefaultAvatar_" + MyAvatar.skeletonModelURL.substring(123, MyAvatar.skeletonModelURL.length - 11) + ".png" source: resourceDirectoryUrl + "qml/hifi/simplifiedUI/avatarApp/images/DefaultAvatar_" +
MyAvatar.skeletonModelURL.substring(123, MyAvatar.skeletonModelURL.length - 11) + ".png"
} }
// TODO move this to be above the rest of the grid layout stuff in landscape mode
} }
} }
} }
@ -179,6 +187,10 @@ Rectangle {
visible: false visible: false
anchors.fill: parent anchors.fill: parent
SimplifiedControls.VerticalScrollBar {
parent: tempAvatarPageContainer
}
HifiStylesUit.RalewayRegular { HifiStylesUit.RalewayRegular {
id: controlsDescriptionText id: controlsDescriptionText
text: "These are your avatar controls to <br></br> text: "These are your avatar controls to <br></br>

View file

@ -99,7 +99,7 @@ Rectangle {
Image { Image {
id: avatarAppQRCodeImage id: avatarAppQRCodeImage
anchors.horizontalCenter: instructionText.horizontalCenter anchors.horizontalCenter: instructionText.horizontalCenter
source: "images/qrCode.jpg" source: resourceDirectoryUrl + "qml/hifi/simplifiedUI/avatarApp/images/qrCode.jpg"
height: 220 height: 220
width: 220 width: 220
} }
@ -155,9 +155,14 @@ Rectangle {
id: heroImage id: heroImage
width: 428 width: 428
height: 800 height: 800
source: "images/hero.png" source: resourceDirectoryUrl + "qml/hifi/simplifiedUI/avatarApp/images/hero.png"
}
// TODO move this to be above the rest of the grid layout stuff in landscape mode
} }
} }
SimplifiedControls.VerticalScrollBar {
parent: root
} }
} }

View file

@ -358,6 +358,7 @@ function setOutputMuted(outputMuted) {
} }
} }
var TOP_BAR_HEIGHT_PX = 48;
var INITIAL_LAUNCH_QML_PATH = Script.resolvePath("./simplifiedFTUE/InitialLaunchWindow.qml"); var INITIAL_LAUNCH_QML_PATH = Script.resolvePath("./simplifiedFTUE/InitialLaunchWindow.qml");
var INITIAL_LAUNCH_WINDOW_TITLE = "Initial Launch"; var INITIAL_LAUNCH_WINDOW_TITLE = "Initial Launch";
var INITIAL_LAUNCH_PRESENTATION_MODE = Desktop.PresentationMode.NATIVE; var INITIAL_LAUNCH_PRESENTATION_MODE = Desktop.PresentationMode.NATIVE;