mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 10:00:18 +02:00
don't show price for free items
This commit is contained in:
parent
3503d79b05
commit
936c2b2cab
1 changed files with 2 additions and 2 deletions
|
@ -448,7 +448,7 @@ Rectangle {
|
||||||
// "HFC" balance label
|
// "HFC" balance label
|
||||||
HiFiGlyphs {
|
HiFiGlyphs {
|
||||||
id: itemPriceTextLabel;
|
id: itemPriceTextLabel;
|
||||||
visible: !(root.isUpdating && root.itemEdition > 0);
|
visible: !(root.isUpdating && root.itemEdition > 0) && (root.itemPrice > 0);
|
||||||
text: hifi.glyphs.hfc;
|
text: hifi.glyphs.hfc;
|
||||||
// Size
|
// Size
|
||||||
size: 30;
|
size: 30;
|
||||||
|
@ -464,7 +464,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
FiraSansSemiBold {
|
FiraSansSemiBold {
|
||||||
id: itemPriceText;
|
id: itemPriceText;
|
||||||
text: (root.isUpdating && root.itemEdition > 0) ? "FREE\nUPDATE" : ((root.itemPrice === -1) ? "--" : root.itemPrice);
|
text: (root.isUpdating && root.itemEdition > 0) ? "FREE\nUPDATE" : ((root.itemPrice === -1) ? "--" : ((root.itemPrice > 0) ? root.itemPrice : "FREE"));
|
||||||
// Text size
|
// Text size
|
||||||
size: (root.isUpdating && root.itemEdition > 0) ? 20 : 26;
|
size: (root.isUpdating && root.itemEdition > 0) ? 20 : 26;
|
||||||
// Anchors
|
// Anchors
|
||||||
|
|
Loading…
Reference in a new issue