mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:38:27 +02:00
Case 21315, Case 21326, Case 21370
Case 21315 - Clicking on item picture from Inventor Items list does not always display the Marketplace item page. Case 21326 - See All Markets page is missing its footer and the two Explore buttons no longer work Case 21370 - QML Marketplace - For unavailable items (no more editions for sale), marketplace item list 'buy' button is not disabled Also, a few minor font sizing and other graphics tweaks
This commit is contained in:
parent
abb61b7e90
commit
cce43357d0
3 changed files with 17 additions and 13 deletions
|
@ -41,6 +41,7 @@ Rectangle {
|
||||||
property string searchScopeString: "Featured"
|
property string searchScopeString: "Featured"
|
||||||
property bool isLoggedIn: false
|
property bool isLoggedIn: false
|
||||||
property bool supports3DHTML: true
|
property bool supports3DHTML: true
|
||||||
|
property bool pendingGetMarketplaceItemCall: false
|
||||||
|
|
||||||
anchors.fill: (typeof parent === undefined) ? undefined : parent
|
anchors.fill: (typeof parent === undefined) ? undefined : parent
|
||||||
|
|
||||||
|
@ -100,7 +101,9 @@ Rectangle {
|
||||||
getMarketplaceItems();
|
getMarketplaceItems();
|
||||||
}
|
}
|
||||||
onGetMarketplaceItemsResult: {
|
onGetMarketplaceItemsResult: {
|
||||||
marketBrowseModel.handlePage(result.status !== "success" && result.message, result);
|
if (!pendingGetMarketplaceItemCall) {
|
||||||
|
marketBrowseModel.handlePage(result.status !== "success" && result.message, result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onGetMarketplaceItemResult: {
|
onGetMarketplaceItemResult: {
|
||||||
|
@ -127,6 +130,7 @@ Rectangle {
|
||||||
marketplaceItemScrollView.contentHeight = marketplaceItemContent.height;
|
marketplaceItemScrollView.contentHeight = marketplaceItemContent.height;
|
||||||
itemsList.visible = false;
|
itemsList.visible = false;
|
||||||
marketplaceItemView.visible = true;
|
marketplaceItemView.visible = true;
|
||||||
|
pendingGetMarketplaceItemCall = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1224,6 +1228,7 @@ Rectangle {
|
||||||
console.log("A message with method 'updateMarketplaceQMLItem' was sent without an itemId!");
|
console.log("A message with method 'updateMarketplaceQMLItem' was sent without an itemId!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
pendingGetMarketplaceItemCall = true;
|
||||||
marketplaceItem.edition = message.params.edition ? message.params.edition : -1;
|
marketplaceItem.edition = message.params.edition ? message.params.edition : -1;
|
||||||
MarketplaceScriptingInterface.getMarketplaceItem(message.params.itemId);
|
MarketplaceScriptingInterface.getMarketplaceItem(message.params.itemId);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -52,13 +52,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
onDescriptionChanged: {
|
onDescriptionChanged: {
|
||||||
|
descriptionText.text = description;
|
||||||
if(root.supports3DHTML) {
|
|
||||||
descriptionTextModel.clear();
|
|
||||||
descriptionTextModel.append({text: description});
|
|
||||||
} else {
|
|
||||||
descriptionText.text = description;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onAttributionsChanged: {
|
onAttributionsChanged: {
|
||||||
|
@ -250,7 +244,6 @@ Rectangle {
|
||||||
|
|
||||||
function evalHeight() {
|
function evalHeight() {
|
||||||
height = categoriesList.y - buyButton.y + categoriesList.height;
|
height = categoriesList.y - buyButton.y + categoriesList.height;
|
||||||
console.log("HEIGHT: " + height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HifiControlsUit.Button {
|
HifiControlsUit.Button {
|
||||||
|
@ -272,6 +265,9 @@ Rectangle {
|
||||||
text: isUpdate ? "UPDATE FOR FREE" : (isStocking ? "FREE STOCK" : (enabled ? (price || "FREE") : availability))
|
text: isUpdate ? "UPDATE FOR FREE" : (isStocking ? "FREE STOCK" : (enabled ? (price || "FREE") : availability))
|
||||||
color: hifi.buttons.blue
|
color: hifi.buttons.blue
|
||||||
|
|
||||||
|
buttonGlyphSize: 24
|
||||||
|
fontSize: 24
|
||||||
|
|
||||||
onClicked: root.buy();
|
onClicked: root.buy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -226,6 +226,7 @@ Rectangle {
|
||||||
top: parent.top
|
top: parent.top
|
||||||
left: parent.left
|
left: parent.left
|
||||||
leftMargin: 15
|
leftMargin: 15
|
||||||
|
topMargin: 10
|
||||||
}
|
}
|
||||||
width: paintedWidth
|
width: paintedWidth
|
||||||
|
|
||||||
|
@ -241,7 +242,7 @@ Rectangle {
|
||||||
anchors {
|
anchors {
|
||||||
top: creatorLabel.top;
|
top: creatorLabel.top;
|
||||||
left: creatorLabel.right;
|
left: creatorLabel.right;
|
||||||
leftMargin: 15;
|
leftMargin: 10;
|
||||||
}
|
}
|
||||||
width: paintedWidth;
|
width: paintedWidth;
|
||||||
|
|
||||||
|
@ -273,7 +274,7 @@ Rectangle {
|
||||||
anchors {
|
anchors {
|
||||||
top: categoryLabel.top
|
top: categoryLabel.top
|
||||||
left: categoryLabel.right
|
left: categoryLabel.right
|
||||||
leftMargin: 15
|
leftMargin: 10
|
||||||
}
|
}
|
||||||
width: paintedWidth
|
width: paintedWidth
|
||||||
|
|
||||||
|
@ -298,19 +299,21 @@ Rectangle {
|
||||||
topMargin:10
|
topMargin:10
|
||||||
bottomMargin: 10
|
bottomMargin: 10
|
||||||
}
|
}
|
||||||
|
width: 180
|
||||||
|
|
||||||
property bool isNFS: availability === "not for sale" // Note: server will say "sold out" or "invalidated" before it says NFS
|
property bool isNFS: availability === "not for sale" // Note: server will say "sold out" or "invalidated" before it says NFS
|
||||||
property bool isMine: creator === Account.username
|
property bool isMine: creator === Account.username
|
||||||
property bool isUpgrade: root.edition >= 0
|
property bool isUpgrade: root.edition >= 0
|
||||||
property int costToMe: ((isMine && isNFS) || isUpgrade) ? 0 : price
|
property int costToMe: ((isMine && isNFS) || isUpgrade) ? 0 : price
|
||||||
property bool isAvailable: costToMe >= 0
|
property bool isAvailable: availability === "available"
|
||||||
|
|
||||||
text: isUpgrade ? "UPGRADE FOR FREE" : (isAvailable ? (costToMe || "FREE") : availability)
|
text: isUpgrade ? "UPGRADE FOR FREE" : (isAvailable ? (costToMe || "FREE") : availability)
|
||||||
enabled: isAvailable
|
enabled: isAvailable
|
||||||
buttonGlyph: isAvailable ? (costToMe ? hifi.glyphs.hfc : "") : ""
|
buttonGlyph: isAvailable ? (costToMe ? hifi.glyphs.hfc : "") : ""
|
||||||
|
|
||||||
color: hifi.buttons.blue;
|
color: hifi.buttons.blue;
|
||||||
|
buttonGlyphSize: 24
|
||||||
|
fontSize: 24
|
||||||
onClicked: root.buy();
|
onClicked: root.buy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue