2012-03-27 00:24:01 +02:00
|
|
|
MiniWindow
|
2012-03-28 13:46:15 +02:00
|
|
|
id: inventoryMiniWindow
|
2012-04-26 21:54:16 +02:00
|
|
|
!text: tr('Inventory')
|
2012-03-27 00:24:01 +02:00
|
|
|
icon: inventory.png
|
2012-03-28 16:10:21 +02:00
|
|
|
height: 180
|
|
|
|
@onClose: Inventory.toggle()
|
2011-11-13 06:11:47 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
MiniWindowContents
|
|
|
|
Item
|
|
|
|
// head
|
|
|
|
id: slot1
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2012-04-30 18:40:12 +02:00
|
|
|
margin-top: 4
|
2012-03-27 00:24:01 +02:00
|
|
|
&position: {x=65535, y=1, z=0}
|
2011-11-13 06:11:47 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
Item
|
|
|
|
// armor
|
|
|
|
id: slot4
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: prev.horizontalCenter
|
|
|
|
margin-top: 5
|
|
|
|
&position: {x=65535, y=4, z=0}
|
2011-11-13 06:11:47 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
Item
|
|
|
|
// legs
|
|
|
|
id: slot7
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: prev.horizontalCenter
|
|
|
|
margin-top: 5
|
|
|
|
&position: {x=65535, y=7, z=0}
|
2011-11-13 06:11:47 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
Item
|
|
|
|
// feet
|
|
|
|
id: slot8
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: prev.horizontalCenter
|
|
|
|
margin-top: 5
|
|
|
|
&position: {x=65535, y=8, z=0}
|
2011-11-13 06:11:47 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
Item
|
|
|
|
// necklace
|
|
|
|
id: slot2
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.right: slot1.left
|
|
|
|
margin-top: 10
|
|
|
|
margin-right: 5
|
|
|
|
&position: {x=65535, y=2, z=0}
|
2011-11-13 06:11:47 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
Item
|
|
|
|
// left
|
|
|
|
id: slot6
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: prev.horizontalCenter
|
|
|
|
margin-top: 5
|
|
|
|
&position: {x=65535, y=6, z=0}
|
2011-11-13 06:11:47 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
Item
|
|
|
|
// ring
|
|
|
|
id: slot9
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: prev.horizontalCenter
|
|
|
|
margin-top: 5
|
|
|
|
&position: {x=65535, y=9, z=0}
|
2011-11-13 06:11:47 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
Item
|
|
|
|
// backpack
|
|
|
|
id: slot3
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.left: slot1.right
|
|
|
|
margin-top: 10
|
|
|
|
margin-left: 5
|
|
|
|
&position: {x=65535, y=3, z=0}
|
2011-11-13 06:11:47 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
Item
|
|
|
|
// right
|
|
|
|
id: slot5
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: prev.horizontalCenter
|
|
|
|
margin-top: 5
|
|
|
|
&position: {x=65535, y=5, z=0}
|
2011-11-17 22:41:02 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
Item
|
|
|
|
// ammo
|
|
|
|
id: slot10
|
|
|
|
anchors.top: prev.bottom
|
|
|
|
anchors.horizontalCenter: prev.horizontalCenter
|
|
|
|
margin-top: 5
|
|
|
|
&position: {x=65535, y=10, z=0}
|
2011-11-17 22:41:02 +01:00
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
GameLabel
|
|
|
|
id: capacity
|
2012-05-01 04:00:07 +02:00
|
|
|
height: 30
|
2012-03-27 00:24:01 +02:00
|
|
|
anchors.top: slot10.bottom
|
|
|
|
anchors.left: slot10.left
|
|
|
|
margin-top: 5
|
|
|
|
text-align: center
|
2012-06-07 14:25:41 +02:00
|
|
|
text-auto-resize: true
|
2011-11-10 06:29:25 +01:00
|
|
|
|