2020-08-19 15:58:25 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtGraphicalEffects 1.13
|
|
|
|
import "../../../../../imports"
|
|
|
|
import "../../../../../shared"
|
|
|
|
|
|
|
|
Item {
|
|
|
|
property string collectibleName: "Furbeard"
|
|
|
|
property string collectibleId: "1423"
|
|
|
|
property url collectibleImage: "../../../../img/collectibles/placeholders/kitty.png"
|
|
|
|
property string collectibleDescription: "Avast ye! I'm the dread pirate Furbeard, and I'll most likely sleep"
|
|
|
|
|
|
|
|
id: root
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
Image {
|
|
|
|
id: collectibleImage
|
|
|
|
width: 248
|
|
|
|
height: 248
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
source: root.collectibleImage
|
2020-09-04 15:37:38 +00:00
|
|
|
sourceSize.width: width
|
|
|
|
sourceSize.height: height
|
2020-08-19 15:58:25 +00:00
|
|
|
fillMode: Image.PreserveAspectCrop
|
|
|
|
}
|
|
|
|
|
|
|
|
TextWithLabel {
|
|
|
|
id: idText
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "ID"
|
|
|
|
label: qsTrId("id")
|
2020-08-19 15:58:25 +00:00
|
|
|
text: root.collectibleId
|
|
|
|
anchors.top: collectibleImage.bottom
|
|
|
|
anchors.topMargin:0
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TextWithLabel {
|
|
|
|
visible: !!root.collectibleDescription
|
|
|
|
id: descriptionText
|
2020-08-26 15:52:26 +00:00
|
|
|
//% "Description"
|
|
|
|
label: qsTrId("description")
|
2020-08-19 15:58:25 +00:00
|
|
|
text: root.collectibleDescription
|
|
|
|
anchors.top: idText.bottom
|
|
|
|
anchors.topMargin: 0
|
|
|
|
wrap: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;formeditorColor:"#ffffff";height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|