2012-07-10 14:15:31 +02:00
|
|
|
HeadSlot < Item
|
|
|
|
id: slot1
|
|
|
|
image-source: /game_inventory/slots/head.png
|
|
|
|
|
|
|
|
BodySlot < Item
|
|
|
|
id: slot4
|
|
|
|
image-source: /game_inventory/slots/body.png
|
|
|
|
|
|
|
|
LegSlot < Item
|
|
|
|
id: slot7
|
|
|
|
image-source: /game_inventory/slots/legs.png
|
|
|
|
|
|
|
|
FeetSlot < Item
|
|
|
|
id: slot8
|
|
|
|
image-source: /game_inventory/slots/feet.png
|
|
|
|
|
|
|
|
NeckSlot < Item
|
|
|
|
id: slot2
|
|
|
|
image-source: /game_inventory/slots/neck.png
|
|
|
|
|
|
|
|
LeftSlot < Item
|
|
|
|
id: slot6
|
|
|
|
image-source: /game_inventory/slots/left-hand.png
|
|
|
|
|
|
|
|
FingerSlot < Item
|
|
|
|
id: slot9
|
|
|
|
image-source: /game_inventory/slots/finger.png
|
|
|
|
|
|
|
|
BackSlot < Item
|
|
|
|
id: slot3
|
|
|
|
image-source: /game_inventory/slots/back.png
|
|
|
|
|
|
|
|
RightSlot < Item
|
|
|
|
id: slot5
|
|
|
|
image-source: /game_inventory/slots/right-hand.png
|
|
|
|
|
|
|
|
AmmoSlot < Item
|
|
|
|
id: slot10
|
|
|
|
image-source: /game_inventory/slots/ammo.png
|
|
|
|
|
2012-03-27 00:24:01 +02:00
|
|
|
MiniWindow
|
2012-06-21 21:31:22 +02:00
|
|
|
id: inventoryWindow
|
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
|
2012-06-21 21:31:22 +02:00
|
|
|
@onClose: Inventory.onMiniWindowClose()
|
2012-06-24 14:41:39 +02:00
|
|
|
&save: true
|
2011-11-13 06:11:47 +01:00
|
|
|
|
2012-07-10 14:15:31 +02:00
|
|
|
MiniWindowContents
|
|
|
|
HeadSlot
|
2012-03-27 00:24:01 +02:00
|
|
|
// head
|
|
|
|
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-07-10 14:15:31 +02:00
|
|
|
BodySlot
|
|
|
|
// body
|
2012-03-27 00:24:01 +02:00
|
|
|
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-07-10 14:15:31 +02:00
|
|
|
LegSlot
|
2012-03-27 00:24:01 +02:00
|
|
|
// legs
|
|
|
|
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-07-10 14:15:31 +02:00
|
|
|
FeetSlot
|
2012-03-27 00:24:01 +02:00
|
|
|
// feet
|
|
|
|
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-07-10 14:15:31 +02:00
|
|
|
NeckSlot
|
|
|
|
// neck
|
2012-03-27 00:24:01 +02:00
|
|
|
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-07-10 14:15:31 +02:00
|
|
|
LeftSlot
|
|
|
|
// left hand
|
2012-03-27 00:24:01 +02:00
|
|
|
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-07-10 14:15:31 +02:00
|
|
|
FingerSlot
|
|
|
|
// finger
|
2012-03-27 00:24:01 +02:00
|
|
|
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-07-10 14:15:31 +02:00
|
|
|
BackSlot
|
|
|
|
// back
|
2012-03-27 00:24:01 +02:00
|
|
|
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-07-10 14:15:31 +02:00
|
|
|
RightSlot
|
|
|
|
// right hand
|
2012-03-27 00:24:01 +02:00
|
|
|
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-07-10 14:15:31 +02:00
|
|
|
AmmoSlot
|
2012-03-27 00:24:01 +02:00
|
|
|
// ammo
|
|
|
|
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
|