2020-08-19 15:58:25 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtGraphicalEffects 1.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
|
|
|
import shared.panels 1.0
|
2020-08-19 15:58:25 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
property string collectibleName: "Furbeard"
|
|
|
|
property string collectibleId: "1423"
|
2021-09-28 15:04:06 +00:00
|
|
|
property url collectibleImage: Style.png("collectibles/placeholders/kitty")
|
2020-08-19 15:58:25 +00:00
|
|
|
property string collectibleDescription: "Avast ye! I'm the dread pirate Furbeard, and I'll most likely sleep"
|
|
|
|
|
|
|
|
id: root
|
|
|
|
width: parent.width
|
|
|
|
|
2020-10-06 04:16:36 +00:00
|
|
|
RoundedImage {
|
2020-08-19 15:58:25 +00:00
|
|
|
id: collectibleImage
|
|
|
|
width: 248
|
|
|
|
height: 248
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
source: root.collectibleImage
|
2020-10-06 04:16:36 +00:00
|
|
|
radius: 16
|
2020-08-19 15:58:25 +00:00
|
|
|
fillMode: Image.PreserveAspectCrop
|
|
|
|
}
|
|
|
|
|
|
|
|
TextWithLabel {
|
|
|
|
id: idText
|
2022-04-04 11:26:30 +00:00
|
|
|
label: qsTr("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
|
2022-04-04 11:26:30 +00:00
|
|
|
label: qsTr("Description")
|
2020-08-19 15:58:25 +00:00
|
|
|
text: root.collectibleDescription
|
|
|
|
anchors.top: idText.bottom
|
|
|
|
anchors.topMargin: 0
|
|
|
|
wrap: true
|
|
|
|
}
|
|
|
|
}
|